/* =========================================================
   TOKENS
   ========================================================= */
:root {
    --navy:       #30436B;
    --navy-dark:  #1e2d4a;
    --navy-light: #4a6394;
    --navy-soft:  #eef1f8;
    --white:      #ffffff;
    --bg:         #f8f9fc;
    --warm:       #faf8f5;
    --ink:        #1a1f2e;
    --muted:      #64748b;
    --line:       #e4e8f0;
    --shadow-sm:  0 2px 10px rgba(48, 67, 107, 0.07);
    --shadow:     0 8px 32px rgba(48, 67, 107, 0.1);
    --shadow-lg:  0 20px 60px rgba(48, 67, 107, 0.14);
    --radius:     14px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--white);
    font-family: 'DM Sans', system-ui, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, p { margin-top: 0; }

h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.8rem, 8vw, 7.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 28px;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--navy-light);
}

h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-bottom: 20px;
}

h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 6px;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.label {
    display: inline-block;
    margin: 0 0 16px;
    padding: 5px 14px;
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 999px;
}

.section {
    padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 96px);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 28px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease,
                border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-navy {
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 6px 20px rgba(48, 67, 107, 0.3);
}

.btn-navy:hover {
    background: var(--navy-dark);
    box-shadow: 0 10px 28px rgba(48, 67, 107, 0.4);
}

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

.btn-outline-navy:hover {
    background: var(--navy-soft);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px clamp(24px, 6vw, 96px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    transition: border-color 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.scrolled {
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--navy);
}

.contenedor-logo {
    width: 100%;       /* Ocupa todo el ancho de su espacio */
    max-width: 40px;  /* Pero nunca medirá más de 400px en pantallas grandes */
    margin: 0 auto;    /* Lo centra en la pantalla */
}

.brand-logo { flex-shrink: 0; }

.brand-wordmark {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--navy-light);
    letter-spacing: -0.01em;
}

.brand-wordmark strong {
    color: var(--navy);
    font-weight: 700;
}

/* Desktop nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.main-nav a { transition: color 150ms ease; }
.main-nav a:hover { color: var(--navy); }

/* Header social icons */
.header-social {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
}

.header-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    transition: color 150ms ease, background 150ms ease;
}

.header-social a:hover {
    color: var(--navy);
    background: var(--navy-soft);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 150ms ease, border-color 150ms ease;
}

.menu-toggle:hover {
    background: var(--navy-soft);
    border-color: var(--navy);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--navy);
    margin: 3.5px 0;
    transition: transform 220ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100svh - 72px);
    padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 96px);
    background: var(--bg);
    overflow: hidden;
}

.hero-deco {
    position: absolute;
    right: -2%;
    bottom: -8%;
    font-size: clamp(220px, 38vw, 520px);
    line-height: 1;
    color: rgba(48, 67, 107, 0.045);
    font-family: 'Cormorant Garamond', Georgia, serif;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-tag {
    display: inline-block;
    margin: 0 0 24px;
    padding: 6px 14px;
    background: var(--navy-soft);
    color: var(--navy-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
}

.hero-desc {
    max-width: 560px;
    margin-bottom: 36px;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--white); }

.about-body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}

.about-text p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 8px;
}

.stat-item {
    padding: 22px 24px;
    border-left: 3px solid var(--navy);
    background: var(--bg);
    border-radius: 0 8px 8px 0;
}

.stat-item + .stat-item { margin-top: 10px; }

.stat-item strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================================================
   MISIÓN & VISIÓN
   ========================================================= */
.mission-vision { background: var(--warm); }

.mv-head {
    max-width: 560px;
    margin-bottom: clamp(40px, 5vw, 60px);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mv-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.mv-label {
    display: block;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mv-label::before {
    content: '—';
    margin-right: 8px;
    color: var(--navy-light);
    font-weight: 400;
}

blockquote {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink);
    font-style: italic;
}

/* =========================================================
   BRANDS
   ========================================================= */
.brands { background: var(--white); }

.brands-head {
    max-width: 680px;
    margin-bottom: clamp(48px, 6vw, 72px);
}

.brands-desc {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.brand-accent-bar {
    height: 4px;
    background: var(--accent, var(--navy));
    flex-shrink: 0;
}

.brand-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.brand-category {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-desc {
    margin: 0 0 auto;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
    padding-bottom: 22px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: opacity 150ms ease, gap 150ms ease;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.brand-link:hover {
    opacity: 0.7;
    gap: 8px;
}

/* =========================================================
   CONTACT CTA
   ========================================================= */
.contact-cta {
    padding: clamp(80px, 10vw, 130px) clamp(24px, 6vw, 96px);
    background: var(--navy);
    text-align: center;
    color: var(--white);
}

.cta-inner { max-width: 620px; margin: 0 auto; }

.cta-tag {
    display: inline-block;
    margin: 0 0 16px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 999px;
}

.contact-cta h2 { color: var(--white); }

.contact-cta p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta-email {
    display: inline-block;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 3px;
    transition: border-color 150ms ease, color 150ms ease;
}

.cta-email:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.cta-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cta-social a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.cta-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px clamp(24px, 6vw, 96px);
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.84rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: -0.01em;
}

.footer-brand strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.site-footer p { margin: 0; }

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    transition: color 150ms ease, background 150ms ease;
}

.footer-social a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   MOBILE NAV — right drawer
   ========================================================= */
body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 190;
}

@media (max-width: 900px) {
    .header-social { display: none; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        width: min(320px, 85vw);
        margin: 0;
        padding: 80px 36px 40px;
        background: var(--navy);
        box-shadow: -24px 0 72px rgba(0, 0, 0, 0.22);
        transform: translateX(102%);
        transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1rem;
    }

    .main-nav.is-open { transform: translateX(0); }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 1.7rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: color 150ms ease;
    }

    .main-nav a:last-child { border-bottom: none; }

    .main-nav a:hover { color: var(--white); }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .about-body {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .stat-item {
        flex: 1;
        min-width: 140px;
    }

    .stat-item + .stat-item { margin-top: 0; }

    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .contact-cta {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .section {
        padding: 48px 20px;
    }

    .hero {
        min-height: auto;
        padding: 48px 20px 56px;
    }

    .hero-deco { display: none; }

    .hero-actions { flex-direction: column; }

    .btn { width: 100%; justify-content: center; }

    .about-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-item {
        flex: none;
        min-width: unset;
        width: 100%;
    }

    .contact-cta {
        padding: 48px 20px;
    }

    .brand-grid { grid-template-columns: 1fr; }

    .mv-card { padding: 28px 24px; }
}
