/* style.css - UI/UX B2B Ultra-Premium para SPE */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Colores de Marca Exacta */
    --primary-color: #0F2B3D; /* Azul Marino PROFUNDO */
    --primary-dark: #081721;
    --accent-color: #00B3B3;  /* Cian Eléctrico */
    --accent-hover: #00cccc;
    --bg-light: #F8FAFC;      /* Gris extra claro y limpio */
    --bg-card: #FFFFFF;
    --white: #FFFFFF;
    
    /* Textos */
    --text-main: #334155;
    --text-muted: #64748B;
    --text-green: #10b981;
    --text-red: #ef4444;
    
    /* Estructura & Efectos Premium */
    --font-family-body: 'Inter', sans-serif;
    --font-family-heading: 'Outfit', sans-serif;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Sombras multicapa suaves (Efecto Apple/Stripe) */
    --shadow-sm: 0 4px 6px -1px rgba(15, 43, 61, 0.05), 0 2px 4px -1px rgba(15, 43, 61, 0.03);
    --shadow-md: 0 10px 25px -3px rgba(15, 43, 61, 0.08), 0 4px 6px -2px rgba(15, 43, 61, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(15, 43, 61, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 179, 179, 0.4);
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Tipografía Básica */
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-family-heading); 
    color: var(--primary-color); 
    font-weight: 800; 
    line-height: 1.15; 
    letter-spacing: -0.02em; 
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
p { font-size: 1.05rem; color: var(--text-muted); }

/* Utilidades */
.bg-primary { background-color: var(--primary-color); color: var(--white); position: relative; overflow: hidden; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--text-green); font-weight: 700; }
.text-red { color: var(--text-red); font-weight: 700; }
.text-cyan { color: var(--accent-color); font-weight: 700; }
.highlight { font-weight: 800; }

/* Header & Logo Horizontal */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(15, 43, 61, 0.05);
    position: sticky; top: 0; z-index: 1000;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex: 1 1 0%; }
.logo-spe { font-weight: 900; font-family: var(--font-family-heading); font-size: 2.2rem; color: var(--primary-color); letter-spacing: -0.04em; }
.logo-text { font-weight: 500; font-size: 1.1rem; color: var(--text-muted); margin-top: 0.2rem; border-left: 2px solid #e2e8f0; padding-left: 0.5rem; }

/* Nav Links & Dropdown */
.nav { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav > a, .dropbtn {
    text-decoration: none; color: var(--text-main); margin: 0 1.2rem; 
    font-weight: 600; font-size: 0.95rem; transition: var(--transition-fast);
    cursor: pointer; padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav > a:hover, .nav > a.active, .dropdown:hover .dropbtn { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background-color: var(--white);
    min-width: 250px; box-shadow: var(--shadow-md); z-index: 1001;
    border-radius: var(--radius-sm); top: 100%; left: 0;
    border: 1px solid rgba(15, 43, 61, 0.05); padding: 0.5rem 0;
}
.dropdown-content a {
    color: var(--text-main); padding: 12px 16px; text-decoration: none;
    display: block; font-size: 0.9rem; font-weight: 500; transition: var(--transition-fast);
}
.dropdown-content a:hover { background-color: var(--bg-light); color: var(--primary-color); }
.dropdown:hover .dropdown-content { display: block; }

.nav-right { flex: 1 1 0%; display: flex; justify-content: flex-end; }

/* Botones Premium */
.btn-primary, .btn-accent, .btn-outline-dark {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 14px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; cursor: pointer; transition: var(--transition-smooth); border: none;
}

.btn-primary { background: var(--primary-color); color: var(--white); box-shadow: 0 4px 15px rgba(15, 43, 61, 0.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(15, 43, 61, 0.3); }

.btn-accent { background: var(--accent-color); color: var(--white); box-shadow: 0 4px 15px rgba(0, 179, 179, 0.3); }
.btn-accent:hover { background: var(--white); color: var(--primary-color); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.btn-outline-dark { border: 1px solid var(--text-muted); color: var(--text-main); }
.btn-outline-dark:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

.btn-sm { padding: 10px 22px; font-size: 0.95rem; }
.btn-block { width: 100%; padding: 16px; font-size: 1.1rem; border-radius: var(--radius-md); }

/* Hero Section (Design Match + Video Background) */
.design-hero { position: relative; padding: 10rem 0 14rem; color: var(--white); overflow: hidden; }
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-bg-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15, 43, 61, 0.95) 0%, rgba(15, 43, 61, 0.5) 100%);
    z-index: 1;
}
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 650px; }
.design-hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; text-transform: uppercase; color: var(--white); }
.hero-subtitle { font-size: 1.15rem; color: #e2e8f0; margin-bottom: 2.5rem; line-height: 1.6; }

.btn-hero {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1.1rem;
    background: transparent; border: 2px solid var(--white); color: var(--white);
    transition: var(--transition-smooth);
}
.btn-hero:hover { background: var(--accent-color); color: var(--white); border-color: var(--accent-color); }
.btn-hero-solid {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1.1rem;
    background: var(--accent-color); border: 2px solid var(--accent-color); color: var(--primary-color);
    transition: var(--transition-smooth);
}
.btn-hero-solid:hover { background: var(--white); color: var(--primary-color); border-color: var(--white); box-shadow: var(--shadow-glow); }

/* Solutions Overlap Section */
.solutions-overlap-section { padding: 0 0 5rem; position: relative; margin-top: -8rem; z-index: 10; }
.solutions-grid-overlap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.overlap-card {
    background: var(--white); border-radius: var(--radius-xl); padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(15, 43, 61, 0.08); transition: var(--transition-smooth);
    border: 1px solid rgba(15, 43, 61, 0.05); display: flex; flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.overlap-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(15, 43, 61, 0.12); }
.icon-circle {
    width: 64px; height: 64px; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; font-size: 1.8rem; color: var(--primary-color);
}
.overlap-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-color); text-align: left; }
.card-intro { font-size: 1rem; color: var(--accent-color); margin-bottom: 1rem; text-align: left; }
.overlap-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; text-align: left; }
.overlap-card .btn-outline-dark,
.overlap-card .btn-primary {
    margin-top: auto;
}

.feature-list-check { list-style: none; padding: 0; margin-bottom: 2rem; text-align: left; }
.feature-list-check li { margin-bottom: 0.5rem; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 0.5rem; color: var(--text-main); font-weight: 500; }
.feature-list-check i { color: var(--accent-color); margin-top: 3px; }

/* Bottom Features Section */
.bottom-features-section { padding: 6rem 0; }
.bottom-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 43, 61, 0.03);
    transition: var(--transition-smooth); display: flex; flex-direction: column; align-items: flex-start;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(0, 179, 179, 0.3); }
.feature-card .icon-circle { background: transparent; border: 2px solid rgba(15, 43, 61, 0.1); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }

/* Resultados Reales: Facturas */
.facturas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.factura-item {
    background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
    border: 1px solid rgba(15, 43, 61, 0.05); box-shadow: var(--shadow-sm);
    display: flex; gap: 1.5rem; align-items: center;
}
.factura-img-placeholder {
    width: 120px; height: 140px; background: #f8fafc; border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm); display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
.factura-info h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-main); }
.highlight-data { font-size: 1.4rem; font-family: var(--font-family-body); letter-spacing: -0.5px; }
.roi-badge {
    display: inline-block; background: #10b981; color: white; padding: 4px 12px;
    border-radius: 20px; font-weight: 700; font-size: 0.85rem; margin-top: 0.5rem;
}

/* Glassmorphism Form Card */
.glass-form-card {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-xl);
    padding: 3rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.glass-form-card input, .glass-form-card select {
    background: rgba(255, 255, 255, 0.9); border: none; color: var(--text-main); margin-bottom: 1rem;
}
.glass-form-card input:focus, .glass-form-card select:focus {
    box-shadow: 0 0 0 4px rgba(0, 179, 179, 0.3); background: var(--white);
}

/* Tech Ecosystem Grid */
.tech-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.tech-category-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 43, 61, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.tech-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 179, 179, 0.2);
}
.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.category-header i {
    font-size: 1.8rem;
    color: var(--accent-color);
}
.category-header h4 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary-color);
}
.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.tag {
    background: #f8fafc;
    color: var(--brand-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.tag:hover {
    background: var(--brand-color);
    color: #fff;
    transform: scale(1.05);
}
.category-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: auto;
}

/* Colorful Brands Grid (Legacy / if used elsewhere) */

/* Formularios Premium B2B */
.input-group { margin-bottom: 1.5rem; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--primary-color); opacity: 0.9; }
label i { color: var(--accent-color); margin-right: 6px; width: 16px; text-align: center; }

input, select {
    width: 100%; padding: 14px 18px; margin-bottom: 0;
    border: 1px solid #e2e8f0; border-radius: var(--radius-md);
    font-family: var(--font-family-body); font-size: 0.95rem; color: var(--primary-color);
    background: #fdfdfd; transition: var(--transition-fast);
}

input[type="range"] {
    -webkit-appearance: none; width: 100%; height: 6px; background: #e2e8f0;
    border-radius: 5px; outline: none; margin: 15px 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
    background: var(--accent-color); cursor: pointer; border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 179, 179, 0.4); border: 2px solid #fff;
}

input:focus, select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(0, 179, 179, 0.1); background: var(--white); }

/* Calculadora (Glass/Soft UI) */
.calc-card, .result-card {
    background: var(--bg-card); border: 1px solid rgba(15, 43, 61, 0.04);
    border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.calc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.res-item { background: #f8fafc; padding: 1.2rem; border-radius: var(--radius-md); border: 1px solid #f1f5f9; display: flex; flex-direction: column; justify-content: center; }
.res-label { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 700; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.res-value { display: block; font-size: 1.3rem; color: var(--primary-color); font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-family-body); }

/* Aliados Logos Secundarios */
.aliados-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2.5rem; align-items: center; justify-items: center; }
.color-logo { max-height: 40px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: var(--transition-smooth); }
.color-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* FOOTER B2B ULTRA-PREMIUM */
.footer-b2b {
    background: var(--primary-color); color: var(--white); padding: 6rem 0 2rem;
    border-top: 4px solid var(--accent-color); font-family: var(--font-family-body);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 3rem; margin-bottom: 4rem;
}
.footer-title { font-size: 1.2rem; color: var(--white); margin-bottom: 1.5rem; font-family: var(--font-family-heading); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: #cbd5e1; text-decoration: none; font-size: 0.95rem; font-weight: 400;
    transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

.brand-col p { max-width: 300px; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05);
    border-radius: 50%; color: var(--accent-color); font-size: 1.1rem;
    transition: var(--transition-fast);
}
.social-icons a:hover { background: var(--accent-color); color: var(--primary-color); transform: translateY(-3px); }

.contact-col .footer-mail { display: block; color: var(--accent-color); font-size: 1.1rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; }
.contact-col .footer-mail:hover { text-decoration: underline; }

.btn-glass-footer {
    display: inline-block; padding: 12px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    background: rgba(0, 179, 179, 0.1); border: 1px solid rgba(0, 179, 179, 0.3); color: var(--accent-color);
    transition: var(--transition-smooth); backdrop-filter: blur(4px);
}

/* Nosotros Carousel Styles */
.image-card { position: relative; width: 100%; height: 500px; overflow: hidden; border-radius: var(--radius-xl); }
.carousel-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1;
}
.carousel-img.active { opacity: 1; z-index: 2; }

/* Timeline Section */
.timeline-section { padding: 6rem 0; background: #f8fafc; overflow: hidden; }
.timeline-horizontal-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-bottom: 2rem;
}
.timeline-horizontal-container::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
    z-index: 1;
    opacity: 0.8;
}

.timeline-step-horizontal {
    flex: 1;
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timeline-step-horizontal .step-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}
.timeline-step-horizontal:hover .step-dot {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}
.timeline-step-horizontal .step-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.8rem 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 43, 61, 0.06);
    width: 100%;
    transition: var(--transition-smooth);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.timeline-step-horizontal:hover .step-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}
.timeline-step-horizontal .step-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.timeline-step-horizontal .step-card h4 {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.timeline-step-horizontal .step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media screen and (max-width: 992px) {
    .timeline-horizontal-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .timeline-horizontal-container::before {
        display: none;
    }
    .timeline-step-horizontal {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .timeline-step-horizontal .step-dot {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .timeline-step-horizontal .step-card {
        min-height: auto;
    }
}

/* Team Section */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.team-card {
    background: var(--white); border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(15, 43, 61, 0.05);
    transition: var(--transition-smooth); text-align: center; padding: 2.5rem 1.5rem;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--accent-color); }
.team-avatar {
    width: 140px; height: 140px; background: #f1f5f9; border-radius: 50%;
    margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary-color); border: 3px solid var(--accent-color);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card h4 { font-size: 1.2rem; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
.team-card .role { color: var(--accent-color); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.team-card p { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
.team-social {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.team-social a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: var(--transition-fast);
}
.team-social a:hover {
    color: var(--accent-color);
}

.btn-glass-footer {
    display: inline-block; padding: 12px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    background: rgba(0, 179, 179, 0.1); border: 1px solid rgba(0, 179, 179, 0.3); color: var(--accent-color);
    transition: var(--transition-smooth); backdrop-filter: blur(4px);
}
.btn-glass-footer:hover { background: var(--accent-color); color: var(--primary-color); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); gap: 1rem;
}
.copyright { color: #94a3b8; font-size: 0.9rem; }
.legal-links { display: flex; gap: 1.5rem; }
.legal-links a { color: #94a3b8; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.legal-links a:hover { color: var(--white); }

/* Secciones Generales */
.section { padding: 6rem 0; }
.section-title { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
    content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: var(--accent-color); border-radius: 2px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-card, .calc-card, .result-card { padding: 2rem; }
}
@media (max-width: 768px) {
    .nav { display: none; } /* En móvil se necesita un menú hamburguesa real */
    .res-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Tabs Proyectos Destacados (Inner Pages) */
.tabs-container { margin-top: 3rem; }
.tabs-header { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn {
    background: transparent; border: 2px solid rgba(15, 43, 61, 0.1); padding: 12px 24px;
    border-radius: 50px; font-size: 1.05rem; font-weight: 600; color: var(--text-main);
    cursor: pointer; transition: var(--transition-smooth); font-family: var(--font-family-body);
}
.tab-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.tab-btn.active {
    background: var(--primary-color); color: var(--white); border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(15, 43, 61, 0.2);
}
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.project-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: stretch; }
.project-video-wrapper { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16/9; }
.project-video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); aspect-ratio: 4/3; box-shadow: var(--shadow-sm); transition: var(--transition-smooth); }
.project-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); z-index: 2; position: relative; }
.project-gallery .img-large { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 992px) { .project-grid { grid-template-columns: 1fr; } }

/* Animaciones Especiales */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 179, 179, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 179, 179, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 179, 179, 0); }
}

/* Modal Leads Video */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 43, 61, 0.95);
    backdrop-filter: blur(10px);
    display: none; /* Se activa por JS */
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 2rem;
}

.modal-content.glass-modal {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(15, 43, 61, 0.1);
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.modal-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.modal-form {
    text-align: left;
    margin-top: 2rem;
}

.modal-form .input-group {
    margin-bottom: 1.2rem;
}

.modal-form label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.video-wrapper {
    transition: var(--transition-smooth);
}

/* Carrusel Dinámico de Aliados */
.carousel-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel-track-container::before,
.carousel-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-track-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, rgba(248, 250, 252, 0) 100%);
}

.carousel-track-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, rgba(248, 250, 252, 0) 100%);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: scroll 35s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}

.carousel-track .color-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
    margin: 0;
}

.carousel-track .color-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Modalidades de Proyectos Solares (AGPE y AGRC) */
.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.modalidad-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 43, 61, 0.05);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modalidad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.modalidad-card.agpe::before {
    background: var(--accent-color);
}

.modalidad-card.agrc::before {
    background: var(--primary-color);
}

.modalidad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 179, 179, 0.3);
}

.modalidad-badge {
    align-self: flex-start;
    background: rgba(15, 43, 61, 0.05);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 43, 61, 0.1);
}

.modalidad-card.agpe .modalidad-badge {
    background: rgba(0, 179, 179, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 179, 179, 0.2);
}

.modalidad-card.agrc .modalidad-badge {
    background: rgba(15, 43, 61, 0.08);
    color: var(--primary-color);
    border-color: rgba(15, 43, 61, 0.15);
}

.modalidad-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modalidad-subtitle {
    font-size: 1.05rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.modalidad-saving-box {
    background: #f8fafc;
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 2.5rem;
}

.modalidad-saving-box.agrc {
    border-left-color: var(--primary-color);
}

.modalidad-saving-box p {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.modalidad-saving-box small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

.modalidad-card .feature-list-check {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.modalidad-card .feature-list-check li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-main);
}

.modalidad-card .btn-primary,
.modalidad-card .btn-outline-dark {
    width: 100%;
    justify-content: center;
}

/* Tarjeta de Respaldo - Aliados */
.respaldo-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 43, 61, 0.05);
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
}

.respaldo-card h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: none;
    padding-bottom: 0;
}

.respaldo-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.respaldo-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.respaldo-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.respaldo-item i {
    color: var(--primary-color);
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .respaldo-card {
        padding: 2rem 1.5rem;
    }
    .respaldo-card h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    .respaldo-row {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
        max-width: 420px;
        margin: 0 auto;
    }
    .respaldo-item {
        text-align: left;
        font-size: 0.95rem;
    }
}

/* Selector de Idiomas Premium */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
}
.lang-btn {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding: 2px 4px;
    border-bottom: 2px solid transparent;
}
.lang-btn:hover {
    color: var(--accent-color, #00b3b3);
}
.lang-btn.active {
    color: var(--primary-color, #0f2b3d);
    border-bottom-color: var(--accent-color, #00b3b3);
}
.lang-divider {
    color: rgba(15, 43, 61, 0.15);
    user-select: none;
}
/* Adaptación responsive para el selector de idiomas en el menú header móvil */
@media (max-width: 768px) {
    .lang-selector {
        margin-right: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }
}

