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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* ===== PALETA SOFISTICADA ===== */
:root {
    --bg: #FAF8F5;
    --bg-secondary: #F5F0E8;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAF8F5;
    --bg-input: #FAF8F5;
    --text: #1A1A1A;
    --text-light: #4A4A4A;
    --text-muted: #8A8A8A;
    --green-deep: #1A3A2A;
    --green-moss: #2D5A3A;
    --gold: #C9A84C;
    --gold-soft: #E8D5A3;
    --gold-light: #F5EDD6;
    --border: rgba(201, 168, 76, 0.12);
    --border-input: rgba(201, 168, 76, 0.10);
    --shadow: 0 4px 24px rgba(26, 58, 42, 0.06);
    --shadow-hover: 0 12px 48px rgba(26, 58, 42, 0.10);
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.12);
    --gradient: linear-gradient(135deg, #1A3A2A 0%, #2D5A3A 60%, #C9A84C 100%);
    --gradient-gold: linear-gradient(135deg, #C9A84C 0%, #E8D5A3 100%);
    --radius: 20px;
    --transition: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================ */
/* MODO OSCURO */
/* ============================================================ */
body.dark {
    --bg: #0D1A12;
    --bg-secondary: #0D1A12;
    --bg-card: #1A2E22;
    --bg-card-hover: #223A2A;
    --bg-input: #0D1A12;
    --text: #E8E4DC;
    --text-light: #C8C4BC;
    --text-muted: #8A8A82;
    --border: rgba(201, 168, 76, 0.06);
    --border-input: rgba(201, 168, 76, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.04);
    
    background: #0D1A12;
    background-image: 
        radial-gradient(ellipse at 30% 20%, rgba(26, 58, 42, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(201, 168, 76, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(13, 26, 18, 1) 0%, #0D1A12 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.visible {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================================ */
/* HEADER */
/* ============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 0.6rem 2.5rem;
    background: rgba(250, 248, 245, 0.95);
    box-shadow: var(--shadow);
}

body.dark header {
    background: rgba(13, 26, 18, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}

body.dark header.scrolled {
    background: rgba(13, 26, 18, 0.97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.logo-img {
    height: 42px;
    width: auto;
    transition: transform 0.4s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: width 0.4s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--green-moss);
}

body.dark nav a:hover {
    color: var(--gold);
}

#themeToggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

#themeToggle:hover {
    transform: rotate(20deg);
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

body.dark #themeToggle:hover {
    background: var(--gold);
    color: var(--green-deep);
}

/* ============================================================ */
/* HERO */
/* ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-content {
    max-width: 750px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content .badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-content h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================ */
/* BOTONES */
/* ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2.4rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-gold);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--green-deep);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* ============================================================ */
/* GRID Y TARJETAS */
/* ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-soft);
}

body.dark .card {
    background: rgba(26, 46, 34, 0.85);
    border: 1px solid rgba(201, 168, 76, 0.06);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* ============================================================ */
/* SOBRE NOSOTROS Y SECCIONES */
/* ============================================================ */
.sobre-nosotros {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.sobre-nosotros-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sobre-nosotros-inner h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sobre-texto p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.sobre-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.imagen-placeholder {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--gold-soft);
    width: 100%;
    max-width: 280px;
}

/* ============================================================ */
/* TESTIMONIOS */
/* ============================================================ */
.testimonios {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonios-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.testimonios-inner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text);
}

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

.testimonio-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: left;
}

body.dark .testimonio-card {
    background: rgba(26, 46, 34, 0.85);
}

/* ============================================================ */
/* CONTACTO E INTERNAS (BARRA DE CONSULTAS PREMIUM) */
/* ============================================================ */
.contacto {
    padding: 5rem 2rem;
    background: var(--bg);
    text-align: center;
}

.contacto-inner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.contacto-inner p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.page-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(201, 168, 76, 0.12);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.2rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    margin-bottom: 2.5rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(26, 58, 42, 0.02);
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201, 168, 76, 0.3);
}

body.dark .info-box {
    background: linear-gradient(135deg, rgba(26, 46, 34, 0.9) 0%, rgba(17, 31, 23, 0.9) 100%);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-left: 4px solid var(--gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.info-box i, .info-box svg, .info-box .fa {
    color: var(--gold) !important;
    background: rgba(201, 168, 76, 0.1);
    padding: 0.6rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-box strong, .info-box b {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-right: 0.3rem;
}

/* ✨ NUEVA ETIQUETA EJECUTIVA DE DIRECTOR ✨ */
.info-box .director-tag {
    margin-left: auto; /* Empuja el nombre limpiamente a la derecha de la barra */
    background: rgba(26, 58, 42, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.18);
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Separador elegante interno (punto medio) */
.info-box .director-tag b {
    color: var(--gold);
    font-weight: 800;
    margin: 0 2px;
}

/* Comportamiento del Badge del Director en Modo Oscuro */
body.dark .info-box .director-tag {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.15);
    color: var(--text-light);
}

/* ============================================================ */
/* FAQ */
/* ============================================================ */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.faq-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    gap: 0.8rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-light);
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem;
}

/* ============================================================ */
/* CONTACTO INFO GRID */
/* ============================================================ */
.contacto-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.contacto-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

body.dark .contacto-info-item {
    background: rgba(26, 46, 34, 0.85);
}

.contacto-info-item i {
    font-size: 1.3rem;
    color: var(--gold);
}

.contacto-info-item a, .contacto-info-item span {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

/* ============================================================ */
/* WHATSAPP FLOTANTE Y FOOTER */
/* ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================ */
/* OPTIMIZACIÓN MÓVIL CRÍTICA REVOLUCIONARIA */
/* ============================================================ */
@media (max-width: 992px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sobre-imagen {
        order: -1;
    }
    .imagen-placeholder {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        position: relative !important;
        background: var(--bg-card) !important;
    }

    nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    nav a {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        background: rgba(201, 168, 76, 0.06) !important;
        border-radius: 8px !important;
    }

    nav a::after {
        display: none !important;
    }

    .hero {
        padding: 3rem 1rem !important;
        min-height: auto !important;
    }

    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .grid {
        grid-template-columns: 1fr !important;
        padding: 2rem 1rem !important;
    }

    .page-content {
        padding: 20px 1rem 3rem !important;
    }

    .page-header h2 {
        font-size: 1.9rem !important;
    }

    .sobre-nosotros-inner h2, .testimonios-inner h2, .contacto-inner h2 {
        font-size: 1.9rem !important;
    }

    .info-box {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem !important;
    }

    /* Ajuste responsivo automático para la etiqueta del director en móviles */
    .info-box .director-tag {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    .contacto-info-grid, .testimonios-grid {
        grid-template-columns: 1fr !important;
    }

    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}
/* ============================================================ */
/* MARCAS - SECCIÓN DE ALIADOS ESTRATÉGICOS */
/* ============================================================ */
.marcas {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marcas-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.marcas-inner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.marcas-inner h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.marcas-subtitulo {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.marca-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.4s ease;
    text-align: center;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.marca-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

body.dark .marca-item {
    background: rgba(26, 46, 34, 0.85);
    border-color: rgba(201, 168, 76, 0.06);
}

body.dark .marca-item:hover {
    border-color: var(--gold);
    background: rgba(26, 46, 34, 1);
}

.marcas-cta {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.marcas-cta a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.marcas-cta a:hover {
    color: var(--green-moss);
}

body.dark .marcas-cta a:hover {
    color: var(--gold-soft);
}

/* ============================================================ */
/* RESPONSIVE PARA MARCAS */
/* ============================================================ */
@media (max-width: 768px) {
    .marcas {
        padding: 3rem 1rem;
    }
    
    .marcas-inner h2 {
        font-size: 1.9rem;
    }
    
    .marcas-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
    .marca-item {
        font-size: 0.8rem;
        padding: 1rem 0.5rem;
    }
}