/* =========================================================
   JS CAPITAL HUMANO — Estilos Globales v11
   ========================================================= */

:root {
    --navy: #0a1a35;
    --navy-2: #102449;
    --navy-light: #1a3463;
    --orange: #f2a93b;
    --orange-dark: #d98e1e;
    --teal: #2a9d8f;
    --teal-dark: #1f7a6f;
    --white: #ffffff;
    --gray-50: #f7f9fc;
    --gray-100: #eef2f8;
    --gray-200: #dde4ee;
    --gray-500: #6b7a90;
    --gray-700: #364152;
    --gray-900: #1c2433;
    --shadow-sm: 0 2px 8px rgba(10,26,53,.06);
    --shadow-md: 0 8px 24px rgba(10,26,53,.10);
    --shadow-lg: 0 18px 44px rgba(10,26,53,.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .3s ease;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

h1.h1-sm { font-size: 1.35rem; font-weight: 600; line-height: 1.35; }
h1.h1-md { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; }

p { margin-bottom: 1rem; }
a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: nowrap; }
.logo { flex-shrink: 0; display: block; }
.logo-img { height: 82px; width: auto; display: block; transition: height .25s ease; }

.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-left: auto; flex-wrap: nowrap; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; list-style: none; }
.main-nav > ul > li > a {
    display: block; padding: 10px 16px; color: var(--navy); font-weight: 600;
    font-size: .95rem; font-family: var(--font-head); border-radius: 8px;
    white-space: nowrap; text-decoration: none; transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--teal); background: var(--gray-50); }
.main-nav .caret { font-size: .7rem; margin-left: 4px; display: inline-block; transition: transform .25s ease; }
.main-nav .has-sub:hover > a .caret { transform: rotate(180deg); }
.main-nav .submenu {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    background: var(--white); box-shadow: var(--shadow-md); border-radius: var(--radius);
    padding: 8px; min-width: 260px; list-style: none; z-index: 1100;
    border: 1px solid var(--gray-100); margin: 0;
}
.main-nav .submenu li { list-style: none; }
.main-nav .submenu li a {
    display: block; padding: 11px 14px; border-radius: 8px; font-size: .92rem;
    color: var(--navy); font-family: var(--font-body); font-weight: 500;
    white-space: nowrap; text-decoration: none; transition: var(--transition);
}
.main-nav .submenu li a:hover { background: var(--gray-50); color: var(--teal); }
.main-nav .has-sub:hover > .submenu,
.main-nav .has-sub:focus-within > .submenu { display: block; }

.nav-cta { flex-shrink: 0; padding: 11px 22px; font-size: .88rem; white-space: nowrap; align-self: center; }

/* =========================================================
   TOGGLE HAMBURGUESA
   ========================================================= */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 12px 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1300;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 12px;
    transition: var(--transition);
}
.nav-toggle:hover { background: var(--gray-50); }
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Botón cerrar interno (oculto en desktop y móvil) */
.nav-close { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(10,26,53,.92), rgba(16,36,73,.85)),
                url('/imgs/hero-office.jpg') center/cover no-repeat;
    color: var(--white); padding: 100px 0;
}
.hero-content { max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,.9); margin-bottom: 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
    display: inline-block; background: rgba(242,169,59,.18); color: var(--orange);
    padding: 8px 20px; border-radius: 50px; font-size: .85rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px;
    border: 1px solid rgba(242,169,59,.35);
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-head h1,
.section-navy .section-head h2,
.section-navy .section-head h3 { color: var(--white); }
.section-navy .section-head p { color: rgba(255,255,255,.85); }

.section-head { text-align: center; max-width: 820px; margin: 0 auto 60px; }
.section-head .eyebrow {
    color: var(--teal); font-weight: 700; font-size: .85rem; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 12px; display: block; font-family: var(--font-head);
}
.section-navy .eyebrow { color: var(--orange); }

/* =========================================================
   GRIDS
   ========================================================= */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   CARD
   ========================================================= */
.card {
    background: var(--white) !important; border-radius: var(--radius-lg); padding: 34px 30px;
    box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--gray-100);
    color: var(--gray-700) !important;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h1, .card h2, .card h3, .card h4, .card h5 { color: var(--navy) !important; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray-500) !important; font-size: .95rem; margin: 0; }
.card .check-list li { color: var(--gray-700) !important; }
.card .check-list li::before { color: var(--white) !important; }
.section-navy .card { color: var(--gray-700) !important; }
.section-navy .card h1,
.section-navy .card h2,
.section-navy .card h3,
.section-navy .card h4,
.section-navy .card h5 { color: var(--navy) !important; }
.section-navy .card p,
.section-navy .card .check-list li { color: var(--gray-700) !important; }

.card-icon {
    width: 60px; height: 60px; border-radius: 14px; background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 20px; color: var(--teal);
}
.card-icon.orange { background: rgba(242,169,59,.15); color: var(--orange-dark); }
.card-icon.teal { background: rgba(42,157,143,.15); color: var(--teal-dark); }

/* =========================================================
   NÚMEROS / VALORES
   ========================================================= */
.number-badge {
    width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-family: var(--font-head); font-weight: 800;
    font-size: 1.7rem; margin-bottom: 22px;
}
.number-badge.orange { background: var(--orange); color: var(--navy); }
.number-badge.navy { background: var(--navy); color: var(--white); }
.number-badge.teal { background: var(--teal); color: var(--white); }

.value-item { text-align: center; padding: 30px 20px; }
.value-icon {
    width: 90px; height: 90px; border-radius: 50%; background: var(--gray-50);
    border: 3px solid var(--orange); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 22px; font-size: 2rem; color: var(--navy);
}

/* =========================================================
   LISTAS CHECK
   ========================================================= */
.check-list { list-style: none; padding: 0; }
.check-list li {
    position: relative; padding: 10px 0 10px 34px; font-size: .98rem;
    border-bottom: 1px dashed var(--gray-200); color: inherit;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 10px;
    width: 22px; height: 22px; background: var(--teal); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: bold;
}

/* =========================================================
   SPLIT
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: var(--white);
    padding: 70px 0; text-align: center; border-radius: var(--radius-lg); margin: 0 24px;
}
.cta-band h1, .cta-band h2 { color: var(--white); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 30px; font-size: 1.05rem; }

/* =========================================================
   FORMULARIOS
   ========================================================= */
.form-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 44px 40px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px;
    font-size: .92rem; font-family: var(--font-head);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 13px 16px; border: 2px solid var(--gray-200);
    border-radius: 10px; font-family: var(--font-body); font-size: .95rem;
    color: var(--gray-900); background: var(--white); transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(42,157,143,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 22px; font-size: .95rem; }
.alert-success { background: #e6f7f2; color: #14695d; border-left: 4px solid var(--teal); }
.alert-error { background: #fdeaea; color: #a02b2b; border-left: 4px solid #d64545; }

/* Checkbox de privacidad */
.form-privacy {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 6px 0 14px; padding: 14px 16px; background: var(--gray-50);
    border-radius: 10px; border: 1px solid var(--gray-100);
}
.form-privacy input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0;
    accent-color: var(--teal); cursor: pointer;
}
.form-privacy label {
    font-size: .85rem; color: var(--gray-700); line-height: 1.55;
    cursor: pointer; margin: 0; font-family: var(--font-body); font-weight: 400;
}
.form-privacy a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   PAGE HEADER
   ========================================================= */
.page-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--white); padding: 80px 0 70px; text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,.85); max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--orange); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding-top: 70px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 72px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1rem; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .93rem; }
.footer-col a:hover { color: var(--orange); }
.footer-col p { font-size: .93rem; }
.contact-list li { font-size: .92rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal-links { font-size: .82rem; color: rgba(255,255,255,.55); margin: 0; }
.footer-legal-links a { color: rgba(255,255,255,.72); transition: var(--transition); }
.footer-legal-links a:hover { color: var(--orange); }
.footer-legal-links span { margin: 0 6px; }

/* =========================================================
   SOCIAL LINKS
   ========================================================= */
.social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.78);
    transition: var(--transition); text-decoration: none; line-height: 1; flex-shrink: 0;
}
.social-links a:hover {
    background: var(--orange); color: var(--navy);
    transform: translateY(-3px); box-shadow: 0 6px 14px rgba(242, 169, 59, 0.35);
}
.social-links a svg { width: 18px; height: 18px; display: block; fill: currentColor; }

/* =========================================================
   AVISO DE PRIVACIDAD
   ========================================================= */
.legal-doc {
    max-width: 860px; margin: 0 auto; background: var(--white);
    border-radius: var(--radius-lg); padding: 50px 55px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    color: var(--gray-700); font-size: 1rem; line-height: 1.75;
}
.legal-meta {
    display: inline-block; background: var(--gray-50); color: var(--gray-500);
    padding: 8px 16px; border-radius: 50px; font-size: .85rem;
    margin-bottom: 30px; border: 1px solid var(--gray-100);
}
.legal-doc h2 {
    font-size: 1.25rem; color: var(--navy); margin: 38px 0 14px;
    padding-bottom: 10px; border-bottom: 2px solid var(--gray-100);
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p { margin-bottom: 14px; }
.legal-doc ul, .legal-doc ol { margin: 12px 0 18px 0; padding-left: 26px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: var(--navy); }
.legal-doc a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: var(--teal-dark); }

.legal-contact {
    background: var(--gray-50); border-radius: var(--radius); padding: 24px 26px;
    margin-top: 16px; border-left: 4px solid var(--orange);
}
.legal-contact-row {
    display: grid; grid-template-columns: 160px 1fr; gap: 14px;
    padding: 10px 0; border-bottom: 1px dashed var(--gray-200);
}
.legal-contact-row:last-child { border-bottom: none; }
.legal-contact-label { font-weight: 600; color: var(--navy); font-size: .9rem; font-family: var(--font-head); }
.legal-contact-value { color: var(--gray-700); }

/* =========================================================
   BANNER DE COOKIES
   ========================================================= */
.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 9999;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(10,26,53,.20); border: 1px solid var(--gray-100);
    padding: 22px 26px; opacity: 0; transform: translateY(30px);
    transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
}
.cookie-banner-content { display: flex; align-items: flex-start; gap: 16px; flex: 1 1 420px; }
.cookie-banner-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.cookie-banner-text h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; font-family: var(--font-head); }
.cookie-banner-text p { font-size: .88rem; color: var(--gray-500); margin: 0; line-height: 1.55; }
.cookie-banner-text a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.cookie-btn {
    font-family: var(--font-head); font-weight: 600; font-size: .85rem;
    padding: 10px 20px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: var(--transition); white-space: nowrap; line-height: 1.2;
}
.cookie-btn-accept { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.cookie-btn-accept:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cookie-btn-reject { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.cookie-btn-reject:hover { background: var(--gray-50); border-color: var(--gray-500); }
.cookie-btn-config { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.cookie-btn-config:hover { background: var(--gray-50); border-color: var(--teal); color: var(--teal); }

/* =========================================================
   PANEL CONFIG COOKIES
   ========================================================= */
.cookie-config {
    position: fixed; inset: 0; z-index: 10000; display: flex;
    align-items: center; justify-content: center; padding: 20px;
    opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.cookie-config.is-visible { opacity: 1; pointer-events: auto; }
.cookie-config-overlay {
    position: absolute; inset: 0; background: rgba(10,26,53,.65);
    backdrop-filter: blur(3px); cursor: pointer;
}
.cookie-config-panel {
    position: relative; background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(10,26,53,.30); max-width: 560px; width: 100%;
    max-height: 90vh; overflow-y: auto; transform: translateY(20px);
    transition: transform .25s ease;
}
.cookie-config.is-visible .cookie-config-panel { transform: translateY(0); }
.cookie-config-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 26px; border-bottom: 1px solid var(--gray-100);
}
.cookie-config-header h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.cookie-config-close {
    background: transparent; border: none; font-size: 1.8rem; color: var(--gray-500);
    cursor: pointer; line-height: 1; padding: 0 6px; transition: var(--transition);
}
.cookie-config-close:hover { color: var(--navy); }
.cookie-config-body { padding: 24px 26px; }
.cookie-config-intro { color: var(--gray-500); font-size: .92rem; margin-bottom: 22px; line-height: 1.6; }
.cookie-option {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--gray-200);
}
.cookie-option:last-child { border-bottom: none; }
.cookie-option-info h4 { font-size: .98rem; color: var(--navy); margin-bottom: 4px; }
.cookie-option-info p { font-size: .85rem; color: var(--gray-500); margin: 0; line-height: 1.5; }

.cookie-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; cursor: pointer; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider { position: absolute; inset: 0; background: var(--gray-200); border-radius: 50px; transition: var(--transition); }
.cookie-switch-slider::before {
    content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
    background: var(--white); border-radius: 50%; transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.cookie-switch input:checked + .cookie-switch-slider { background: var(--teal); }
.cookie-switch input:checked + .cookie-switch-slider::before { transform: translateX(22px); }
.cookie-switch input:disabled + .cookie-switch-slider { opacity: .7; cursor: not-allowed; }

.cookie-config-footer { padding: 20px 26px; border-top: 1px solid var(--gray-100); text-align: right; }

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 1100px) {
    .logo-img { height: 72px; }
}

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 34px; }
    .main-nav > ul > li > a { padding: 10px 12px; font-size: .88rem; }
    .nav-cta { padding: 10px 16px; font-size: .82rem; }
    .logo-img { height: 68px; }
}

/* =========================================================
   MÓVIL — Menú lateral rediseñado
   ========================================================= */
@media (max-width: 860px) {

    /* Toggle visible */
    .nav-toggle { display: flex; }

    /* Ocultar el botón × interno (usamos el toggle del header) */
    .nav-close { display: none !important; }

    /* =========================================================
       PANEL LATERAL — Fondo blanco sólido, esquinas redondeadas
       ========================================================= */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: -20px 0 60px rgba(10,26,53,.25);
        padding: 90px 20px 30px;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        transition: right .35s cubic-bezier(.4, 0, .2, 1);
        z-index: 1200;
        border-radius: 20px 0 0 20px;
    }
    .main-nav.open { right: 0; }

    /* =========================================================
       OVERLAY OSCURO con blur detrás del panel
       ========================================================= */
    .main-nav::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 26, 53, .55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
        z-index: -1;
    }
    .main-nav.open::before {
        opacity: 1;
        pointer-events: auto;
    }

    /* =========================================================
       LISTA PRINCIPAL
       ========================================================= */
    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        margin-bottom: 20px;
    }

    .main-nav > ul > li {
        width: 100%;
        position: relative;
    }

    /* Links principales — limpios, sin cajas */
    .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 18px;
        font-size: 1.05rem;
        font-weight: 600;
        font-family: var(--font-head);
        color: var(--navy);
        border-radius: 12px;
        background: transparent;
        border: none;
        white-space: normal;
        transition: background .25s ease, color .25s ease;
        letter-spacing: -0.2px;
    }

    .main-nav > ul > li > a:hover,
    .main-nav > ul > li > a:active {
        background: var(--gray-50);
        color: var(--teal);
    }

    /* Link activo — barra lateral teal */
    .main-nav > ul > li > a.active {
        color: var(--teal);
        background: linear-gradient(90deg, rgba(42,157,143,.10), rgba(42,157,143,.02));
        border-left: 4px solid var(--teal);
        padding-left: 14px;
        font-weight: 700;
    }

    /* Caret del desplegable */
    .main-nav .caret {
        font-size: .9rem;
        margin-left: auto;
        color: var(--gray-500);
        transition: transform .3s ease, color .3s ease;
    }
    .main-nav .has-sub:hover .caret { color: var(--teal); }

    /* =========================================================
       SUBMENÚ — Indentado con línea lateral, sin cajas
       ========================================================= */
    .main-nav .submenu {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 4px 0 8px 0;
        padding: 0 0 0 18px;
        min-width: 0;
        border-left: 2px solid var(--gray-200);
    }

    .main-nav .submenu li {
        width: 100%;
        margin: 0;
    }

    .main-nav .submenu li a {
        display: block;
        padding: 12px 16px;
        font-size: .95rem;
        font-weight: 500;
        color: var(--gray-700);
        background: transparent;
        border-radius: 10px;
        font-family: var(--font-body);
        transition: background .25s ease, color .25s ease, padding .25s ease;
        white-space: normal;
    }

    .main-nav .submenu li a:hover,
    .main-nav .submenu li a:active {
        background: var(--gray-50);
        color: var(--teal);
        padding-left: 20px;
    }

    /* =========================================================
       CTA — Botón ancho al fondo del panel
       ========================================================= */
    .nav-cta {
        display: block;
        width: 100%;
        margin: auto 0 0 0;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
        border-radius: 50px;
        align-self: stretch;
        box-shadow: 0 6px 18px rgba(242, 169, 59, .35);
    }

    /* =========================================================
       Toggle hamburguesa — Con fondo, sombra y esquinas
       ========================================================= */
    .nav-toggle {
        display: flex;
        width: 46px;
        height: 46px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(10,26,53,.08);
        gap: 5px;
    }
    .nav-toggle:hover { background: var(--gray-50); }
    .nav-toggle span {
        width: 22px;
        height: 2.5px;
    }

    /* Bloquear scroll del body cuando el menú está abierto */
    body.menu-open { overflow: hidden; }

    /* =========================================================
       Otras adaptaciones de layout
       ========================================================= */
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-card { padding: 30px 24px; }
    .hero { min-height: 70vh; padding: 80px 0; }
    .cta-band { margin: 0 16px; padding: 50px 24px; }
    .logo-img { height: 62px; }
    .footer-logo { height: 62px; }

    .legal-doc { padding: 30px 24px; }
    .legal-doc h2 { font-size: 1.15rem; }
    .legal-contact-row { grid-template-columns: 1fr; gap: 2px; }
    .legal-contact-label { font-size: .85rem; }

    .cookie-banner { padding: 18px 20px; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; text-align: center; }

    .cookie-config-body { padding: 18px 20px; }
    .cookie-config-footer { padding: 16px 20px; text-align: center; }
    .cookie-config-footer .cookie-btn { width: 100%; }
}

/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */
@media (max-width: 480px) {
    .social-links { gap: 8px; }
    .social-links a { width: 34px; height: 34px; }
    .social-links a svg { width: 16px; height: 16px; }

    .cookie-banner { bottom: 10px; left: 10px; right: 10px; border-radius: var(--radius); }
    .cookie-banner-icon { display: none; }
    .cookie-banner-actions { flex-direction: column; }
    .cookie-btn { width: 100%; }
}