/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    /* Brand Colors */
    --clr-primary: #0A1F44;
    /* Dark Blue */
    --clr-secondary: #01AEAD;
    /* Teal/Cyan */
    --clr-tertiary: #442399;
    /* Purple */

    /* Neutral Colors / Dark Theme */
    --clr-bg-dark: #050d1d;
    /* Deep background */
    --clr-bg-card: rgba(10, 31, 68, 0.6);
    /* Translucent primary for glass */
    --clr-text-main: #f0f4f8;
    /* Off white */
    --clr-text-muted: #a0aec0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Utilities */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Glassmorphism */
    --glass-bg: rgba(10, 31, 68, 0.4);
    --glass-border: rgba(1, 174, 173, 0.2);
    --glass-blur: blur(12px);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

a {
    color: var(--clr-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: #01e5e3;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography Utilities */
.text-secondary {
    color: var(--clr-secondary);
}

.text-tertiary {
    color: var(--clr-tertiary);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(1, 174, 173, 0.3);
}

.btn-primary:hover {
    background-color: #018a89;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 174, 173, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-secondary);
    color: var(--clr-secondary);
}

.btn-outline:hover {
    background-color: rgba(1, 174, 173, 0.1);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: background-color var(--transition-base), padding var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(5, 13, 29, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-links a:not(.btn) {
    color: var(--clr-text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--clr-secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-secondary);
    background-color: rgba(0, 0, 0, 0.4);
}

.form-group select option {
    background-color: var(--clr-primary);
    color: #fff;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 13, 29, 0.9) 0%, rgba(10, 31, 68, 0.7) 100%);
}

.hero-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--clr-bg-dark), transparent);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    background-color: rgba(1, 174, 173, 0.15);
    color: var(--clr-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(1, 174, 173, 0.3);
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-form-card {
    max-width: 450px;
    margin-left: auto;
}

.hero-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-form-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-form-card {
        margin: 0 auto;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* =========================================================================
   NEW SECTIONS CSS
   ========================================================================= */

.section {
    padding: var(--space-xl) 0;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.bg-dark {
    background-color: #030812;
}

.bg-light-dark {
    background-color: #081226;
}

.mt-3 {
    margin-top: 1.5rem;
}

.pb-4 {
    padding-bottom: 2rem;
}

.text-left {
    text-align: left;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .grid-2-form {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card-glass {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(1, 174, 173, 0.1);
    border-color: rgba(1, 174, 173, 0.3);
}

.icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(1, 174, 173, 0.1);
    color: var(--clr-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.value-card {
    padding: 2rem;
    border-left: 3px solid var(--clr-tertiary);
    background: linear-gradient(90deg, rgba(68, 35, 153, 0.1) 0%, transparent 100%);
}

.blog-card {
    background: var(--clr-primary);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.blog-tag {
    font-size: 0.8rem;
    color: var(--clr-secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

/* Tabs */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tab-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--clr-text-main);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all var(--transition-base);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--clr-secondary);
    border-color: var(--clr-secondary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(10, 31, 68, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Backgrounds placeholders for tabs, normally these would be real images */
.tab-img-wrap {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tab-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bg-agro {
    background: linear-gradient(45deg, var(--clr-primary), #2d8a4e);
}

.bg-mineria {
    background: linear-gradient(45deg, var(--clr-primary), #8a6a2d);
}

.bg-energia {
    background: linear-gradient(45deg, var(--clr-primary), #8a2d2d);
}

.tab-text {
    padding: 2rem 2rem 2rem 0;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

.check-list li strong {
    color: var(--clr-text-main);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-secondary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .tab-grid {
        grid-template-columns: 1fr;
    }

    .tab-img-holder {
        min-height: 200px;
    }

    .tab-text {
        padding: 2rem;
    }
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-base);
}

.faq-question:hover {
    color: var(--clr-secondary);
}

.faq-icon {
    transition: transform var(--transition-base);
    color: var(--clr-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    /* arbitrary large enough number */
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--clr-text-muted);
}

/* Ecosistema Swiper */
.ecosistemaSwiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

/* Fade edges */
.ecosistemaSwiper::before,
.ecosistemaSwiper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ecosistemaSwiper::before {
    left: 0;
    background: linear-gradient(to right, #030812, transparent);
}

.ecosistemaSwiper::after {
    right: 0;
    background: linear-gradient(to left, #030812, transparent);
}

.ecosistemaSwiper .swiper-wrapper {
    align-items: center;
}

.ecosistema-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    opacity: 0.7;
    transition: opacity var(--transition-base), transform var(--transition-base);
    cursor: grab;
}

.ecosistema-img:active {
    cursor: grabbing;
}

.ecosistema-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: #02050b;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links a {
    display: block;
    color: var(--clr-text-muted);
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--clr-secondary);
}

.footer-contact p {
    color: var(--clr-text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Validadores / Blog Swiper */
.blogSwiper {
    width: 100%;
    padding-bottom: 3rem;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.real-image-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
    height: 100%;
}

.blog-cover-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.swiper-pagination-bullet {
    background: var(--clr-secondary);
}

.btn-gradient {
    background: linear-gradient(90deg, var(--clr-secondary), #01e5e3);
    border: none;
    box-shadow: 0 4px 15px rgba(1, 174, 173, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* Contacto Dos Columnas */
.contact-card-split {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-info {
    flex: 1 1 300px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--clr-bg-card), var(--clr-bg-dark));
}

.contact-form-side {
    flex: 1.5 1 400px;
    background: var(--glass-bg);
    padding: 3rem;
    backdrop-filter: var(--glass-blur);
}

@media (max-width: 900px) {
    .contact-card-split {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-side {
        flex: auto;
    }
}