/* =========================================================
   Vaciados Castañeda — Hoja de estilos
   Paleta tomada del logo:
     Azul marino  #011C3F
     Amarillo     #FECD02
     Blanco       #FFFFFF
   ========================================================= */
:root {
    --navy: #011C3F;
    --navy-800: #06264F;
    --navy-700: #0B3266;
    --navy-100: #E6ECF5;
    --navy-50: #F3F6FB;
    --yellow: #FECD02;
    --yellow-600: #E8B900;
    --yellow-100: #FFF6CC;
    --white: #FFFFFF;

    --ink: #0A1730;
    --text: #2A3A55;
    --muted: #5A6B86;
    --line: #DCE3EE;

    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(1, 28, 63, .08);
    --shadow-lg: 0 20px 45px rgba(1, 28, 63, .16);
    --ease: cubic-bezier(.22, .8, .24, 1);

    --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;
    --header-h: 108px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .2px;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

strong { color: var(--ink); font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--navy-50); }
.bg-navy { background: var(--navy); color: #D5DEEC; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.text-center { text-align: center; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--yellow); color: var(--navy); padding: 10px 16px; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Cabeceras de sección ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head);
    font-weight: 700; font-size: .95rem; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--navy-700);
    margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 4px; background: var(--yellow); border-radius: 2px; }
.bg-navy .eyebrow { color: var(--yellow); }

.section-header { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-header .eyebrow { justify-content: center; }
.section-header p { margin-top: 14px; color: var(--muted); font-size: 1.12rem; }
.bg-navy .section-header p { color: #B9C6DB; }

.hl {
    color: var(--navy);
    background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
    padding: 0 4px;
}
.hl-y { color: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
    text-decoration: none; cursor: pointer; border: 2px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 18px rgba(254, 205, 2, .35); }
.btn-yellow:hover { background: var(--yellow-600); box-shadow: 0 10px 26px rgba(254, 205, 2, .45); }

.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(1, 28, 63, .25); }
.btn-navy:hover { background: var(--navy-700); }

.btn-whatsapp { background: var(--whatsapp); color: #06331A; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); }

.btn-outline-white { border-color: rgba(255, 255, 255, .75); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

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

.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--navy); text-decoration: none;
    border-bottom: 3px solid var(--yellow); padding-bottom: 2px;
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: #C9D4E6; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.topbar i { color: var(--yellow); margin-right: 6px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--yellow); }

/* ---------- Cabecera / navegación ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--yellow);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(1, 28, 63, .12); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 96px; height: 96px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--navy); text-transform: uppercase; letter-spacing: .4px; }
.brand-sub { font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: .5px; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.main-nav a, .main-nav button.dd-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    color: var(--navy); text-decoration: none;
    padding: 10px 14px; border-radius: 6px; background: none; border: 0; cursor: pointer;
    transition: background-color .2s, color .2s;
}
.main-nav a:hover, .main-nav button.dd-toggle:hover, .main-nav a.active { background: var(--navy-50); }
.main-nav a.active { box-shadow: inset 0 -3px 0 var(--yellow); }
.main-nav .dd-toggle i { font-size: .7rem; transition: transform .2s; }

.has-dd { position: relative; }
.dd {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
    background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--yellow);
    padding: 10px; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.dd.dd-cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 420px; }
.has-dd:hover .dd, .has-dd:focus-within .dd, .has-dd.open .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dd:hover .dd-toggle i, .has-dd.open .dd-toggle i { transform: rotate(180deg); }
.dd a { display: flex; width: 100%; padding: 9px 12px; font-weight: 500; }
.dd a i { color: var(--navy-700); width: 18px; text-align: center; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { white-space: nowrap; }

.menu-toggle {
    display: none; background: var(--navy); color: var(--white);
    border: 0; border-radius: 8px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; color: var(--white);
    background-color: var(--navy);
    background-image: linear-gradient(100deg, rgba(1, 28, 63, .96) 0%, rgba(1, 28, 63, .86) 45%, rgba(1, 28, 63, .45) 100%), url('../img/hero/hero-principal.webp?v=5');
    background-size: cover; background-position: center;
    padding: 80px 0 96px;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--navy) 22px 44px);
}
.hero .container { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(254, 205, 2, .14); border: 1px solid rgba(254, 205, 2, .55); color: var(--yellow);
    padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; text-transform: none; }
.hero h1 .hl-y { display: block; }
.hero-lead { font-size: 1.2rem; color: #D7E0EE; max-width: 620px; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.hero-points i { color: var(--yellow); }

.quote-card {
    background: var(--white); color: var(--text);
    border-radius: 18px; padding: 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
    border-top: 6px solid var(--yellow);
}
.quote-card h2 { font-size: 1.9rem; margin-bottom: 6px; }
.quote-card > p { color: var(--muted); margin-bottom: 18px; font-size: .98rem; }
.quote-card .form-group { margin-bottom: 14px; }
.quote-card .note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Franja de confianza ---------- */
.trust-band { background: var(--yellow); }
.trust-band ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.trust-band li { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 700; line-height: 1.25; }
.trust-band i {
    flex: 0 0 44px; height: 44px; display: grid; place-items: center;
    background: var(--navy); color: var(--yellow); border-radius: 50%; font-size: 1.1rem;
}

/* ---------- Bloques de texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-media::before {
    content: ''; position: absolute; inset: 22px -18px -18px 22px; border-radius: var(--radius);
    background: var(--yellow); z-index: -1;
}
.split.reverse .split-media::before { inset: 22px 22px -18px -18px; }
.split-text h2 { margin-bottom: 18px; }
.split-text p { margin-bottom: 16px; }

.check-list { list-style: none; margin: 18px 0 26px; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 10px; }
.check-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 2px; width: 24px; height: 24px; display: grid; place-items: center;
    background: var(--yellow); color: var(--navy); border-radius: 50%; font-size: .72rem;
}

/* ---------- Tarjetas de servicio ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    display: flex; flex-direction: column; background: var(--white);
    border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
    box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img { position: relative; height: 210px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-icon {
    position: absolute; left: 20px; bottom: -24px; width: 56px; height: 56px; border-radius: 12px;
    background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.4rem;
    box-shadow: 0 8px 18px rgba(1, 28, 63, .25);
}
.service-card-body { padding: 38px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; flex: 1; }
.service-card .link-arrow { align-self: flex-start; }
.service-card.featured { border: 2px solid var(--yellow); }

/* ---------- Tarjetas simples / ventajas ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--yellow); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
    background: var(--navy); color: var(--yellow); font-size: 1.35rem; margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; font-size: 1.35rem; }
.feature p { color: var(--muted); font-size: .98rem; }
.bg-navy .feature { background: var(--navy-800); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.bg-navy .feature p { color: #B9C6DB; }
.bg-navy .feature-icon { background: var(--yellow); color: var(--navy); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative; background: var(--white); border-radius: var(--radius);
    padding: 34px 24px 26px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -20px; left: 24px; width: 44px; height: 44px; border-radius: 10px;
    background: var(--yellow); color: var(--navy); display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
    box-shadow: 0 6px 14px rgba(1, 28, 63, .2);
}
.step h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Precio / factores ---------- */
.factors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin-top: 10px; }
.factor { display: flex; gap: 14px; align-items: flex-start; }
.factor i { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow-100); color: var(--navy); }
.factor h4 { margin-bottom: 2px; }
.factor p { font-size: .96rem; color: var(--muted); }

/* ---------- Zonas ---------- */
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.zone-link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
    padding: 14px 16px; border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 600;
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.zone-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-left-color: var(--navy); }
.zone-link small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.zone-link.is-city { background: var(--navy); color: var(--white); border-left-color: var(--yellow); }
.zone-link.is-city small { color: var(--yellow); }
.zones-note { margin-top: 22px; text-align: center; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
    background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(1, 28, 63, .04); overflow: hidden;
}
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
    font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy);
    display: grid; place-items: center; font-family: var(--font-body); font-weight: 800; font-size: 1.2rem;
}
.faq details[open] summary::after { content: '–'; }
.faq details[open] { border-color: var(--yellow); }
.faq .faq-a { padding: 0 22px 20px; color: var(--text); }
.faq .faq-a p + p { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden;
    background: var(--navy); color: #D5DEEC; padding: 80px 0; text-align: center;
}
.cta::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--navy) 22px 44px);
}
.cta h2 { color: var(--white); max-width: 820px; margin: 0 auto 14px; }
.cta p { max-width: 720px; margin: 0 auto 30px; font-size: 1.15rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero {
    position: relative; color: #D5DEEC; padding: 64px 0 70px;
    background-color: var(--navy);
    background-size: cover; background-position: center;
}
.page-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--navy) 22px 44px);
}
.page-hero h1 { color: var(--white); margin: 10px 0 14px; max-width: 900px; }
.page-hero .lead { max-width: 760px; font-size: 1.15rem; margin-bottom: 26px; }
.page-hero .hero-buttons { margin-bottom: 0; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: #AFC0DA; }
.breadcrumbs li + li::before { content: '›'; color: var(--yellow); font-weight: 700; }
.breadcrumbs a { color: var(--white); text-decoration: none; }
.breadcrumbs a:hover { color: var(--yellow); }

/* ---------- Contenido ---------- */
.prose { max-width: 820px; }
.prose p { margin-bottom: 16px; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 6px; }

.info-box {
    background: var(--yellow-100); border-left: 5px solid var(--yellow); border-radius: 10px;
    padding: 18px 22px; margin: 24px 0; color: var(--ink);
}
.info-box i { color: var(--navy); margin-right: 6px; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag-list li { background: var(--navy-50); border: 1px solid var(--line); color: var(--navy); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
    display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text);
    transition: transform .2s var(--ease), border-color .2s;
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--yellow); }
.contact-card .ic { flex: 0 0 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-size: 1.3rem; }
.contact-card .ic.wa { background: var(--whatsapp); color: var(--white); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.contact-card p { font-weight: 600; color: var(--navy); }
.contact-card small { color: var(--muted); font-weight: 500; }

.form-panel {
    background: var(--white); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--yellow);
}
.form-panel h2 { font-size: 2rem; margin-bottom: 6px; }
.form-panel > p { color: var(--muted); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.form-control {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(254, 205, 2, .45); }
select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.form-privacy input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: 0 0 20px; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); font-weight: 600; text-align: center; display: none; }
.form-msg.success-msg { display: block; background: #E7F7EE; border: 1px solid #2E9E5B; color: #145A32; }
.form-msg.error-msg { display: block; background: #FDECEC; border: 1px solid #D64545; color: #7A1C1C; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C6DB; padding-top: 72px; position: relative; }
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--navy) 22px 44px);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 180px; height: 180px; margin-bottom: 18px; }
.footer-brand p { font-size: .96rem; margin-bottom: 18px; }
.site-footer h3 {
    color: var(--white); font-size: 1.25rem; margin-bottom: 18px; padding-bottom: 10px; position: relative;
}
.site-footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 4px; background: var(--yellow); border-radius: 2px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer .zones-list { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.site-footer a { color: #D5DEEC; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--yellow); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--yellow); margin-top: 5px; width: 16px; text-align: center; }
.social { display: flex; gap: 10px; }
.social a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: var(--white); font-size: 1.15rem;
}
.social a:hover { background: var(--yellow); color: var(--navy); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .9rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Botones flotantes ---------- */
.float-btns { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 999; }
.float-btn {
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem;
    text-decoration: none; box-shadow: 0 10px 25px rgba(1, 28, 63, .3); transition: transform .25s var(--ease);
    position: relative;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.wa { background: var(--whatsapp); color: var(--white); }
.float-btn.tel { background: var(--yellow); color: var(--navy); font-size: 1.4rem; }
.float-btn .tip {
    position: absolute; right: 74px; white-space: nowrap; background: var(--navy); color: var(--white);
    font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 8px;
    opacity: 0; pointer-events: none; transform: translateX(8px); transition: .25s;
}
.float-btn:hover .tip { opacity: 1; transform: none; }

/* Barra fija de móvil */
.mobile-bar { display: none; }

/* ---------- Cookies ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; display: none;
    max-width: 980px; margin: 0 auto; background: var(--navy); color: #D5DEEC;
    border-radius: 14px; padding: 20px 24px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--yellow);
}
.cookie-banner.visible { display: block; }
.cookie-banner-content { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text h2 { color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.cookie-banner-text p { font-size: .92rem; }
.cookie-banner-text a { color: var(--yellow); }
.cookie-banner-actions { display: flex; gap: 10px; }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Páginas legales ---------- */
.legal-content { max-width: 860px; margin: 0 auto; line-height: 1.8; }
.legal-content h2 {
    font-size: 1.6rem; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--yellow); display: inline-block;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 10px 0 18px 24px; }
.legal-content li { margin-bottom: 8px; }
.legal-content code { background: var(--navy-50); color: var(--navy); padding: 2px 7px; border-radius: 4px; font-size: .9rem; }
.legal-update { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; }
.cookie-table-wrapper { overflow-x: auto; margin: 16px 0 24px; border-radius: 10px; box-shadow: var(--shadow); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 540px; }
.cookie-table thead { background: var(--navy); color: var(--white); }
.cookie-table th { padding: 12px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
.cookie-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 100px 0; }
.error-page .big { font-family: var(--font-head); font-size: 8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.error-page .big span { color: var(--yellow); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .main-nav .nav-extra { display: none; }
    .header-phone span { display: none; }
}

@media (max-width: 1024px) {
    :root { --header-h: 88px; }
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
    .brand img { width: 74px; height: 74px; }
    .brand-name { font-size: 1.35rem; }
    .menu-toggle { display: grid; place-items: center; }
    .header-cta .btn { display: none; }

    .main-nav {
        position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 88vw);
        background: var(--white); box-shadow: -20px 0 40px rgba(1, 28, 63, .2);
        transform: translateX(100%); transition: transform .35s var(--ease);
        padding: 90px 22px 30px; overflow-y: auto; z-index: 1001;
        border-left: 5px solid var(--yellow);
    }
    .main-nav.open { transform: none; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a, .main-nav button.dd-toggle { width: 100%; justify-content: space-between; font-size: 1.08rem; padding: 13px 12px; }
    .main-nav .nav-extra { display: block; }
    .main-nav .dd a { justify-content: flex-start; gap: 10px; font-size: 1rem; padding: 10px 12px; }
    .dd, .dd.dd-cols {
        position: static; min-width: 0; box-shadow: none; border-top: 0; padding: 0 0 6px 12px;
        opacity: 1; visibility: visible; transform: none; display: none;
    }
    .has-dd:hover .dd { display: none; }
    .has-dd.open .dd { display: block; }
    .dd.dd-cols { grid-template-columns: 1fr; }
    .has-dd.open .dd.dd-cols { display: grid; }
    .menu-close { display: grid !important; }
    .nav-overlay { position: fixed; inset: 0; background: rgba(1, 28, 63, .5); z-index: 999; opacity: 0; visibility: hidden; transition: .3s; }
    .nav-overlay.open { opacity: 1; visibility: visible; }

    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .split, .split.reverse { grid-template-columns: 1fr; gap: 44px; }
    .split.reverse .split-media { order: 0; }
    .split-media img { height: 340px; }
    .services-grid, .cards-3 { grid-template-columns: 1fr 1fr; }
    .cards-4, .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .trust-band ul { grid-template-columns: 1fr 1fr; }
    .zones-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.menu-close { display: none; position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 8px; border: 0; background: var(--navy-50); color: var(--navy); font-size: 1.3rem; cursor: pointer; place-items: center; }

@media (max-width: 720px) {
    body { font-size: 1rem; padding-bottom: 64px; }
    .section { padding: 68px 0; }
    .topbar .hide-sm { display: none; }
    .topbar ul { gap: 14px; }
    .brand-sub { display: none; }
    .hero { padding: 48px 0 70px; }
    .hero-lead { font-size: 1.08rem; }
    .hero-buttons .btn { flex: 1 1 100%; }
    .quote-card { padding: 24px; }
    .services-grid, .cards-3, .cards-4, .steps, .factors { grid-template-columns: 1fr; }
    .trust-band ul { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
    .zones-grid { grid-template-columns: 1fr 1fr; }
    .form-row, .form-actions { grid-template-columns: 1fr; }
    .form-panel { padding: 26px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .split-media::before { inset: 14px -10px -10px 14px; }
    .split.reverse .split-media::before { inset: 14px 14px -10px -10px; }
    .split-media img { height: 260px; }
    .float-btns { display: none; }
    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
        box-shadow: 0 -6px 20px rgba(1, 28, 63, .2);
    }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; font-weight: 700; text-decoration: none; }
    .mobile-bar .tel { background: var(--yellow); color: var(--navy); }
    .mobile-bar .wa { background: var(--whatsapp); color: var(--white); }
    .cookie-banner { bottom: 76px; }
    .error-page .big { font-size: 5.5rem; }
}

@media (max-width: 420px) {
    .zones-grid { grid-template-columns: 1fr; }
    .brand-name { font-size: 1.1rem; }
    .brand img { width: 64px; height: 64px; }
}

/* ---------- Blog ---------- */
.post-meta { font-size: .88rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.post-meta i { color: var(--navy-700); margin-right: 4px; }
.post-meta-hero { color: #B9C6DB; margin-top: -10px; }
.post-meta-hero i { color: var(--yellow); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-body { max-width: none; font-size: 1.08rem; }
.article-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); padding-bottom: 6px; border-bottom: 4px solid var(--yellow); display: inline-block; }
.article-body h3 { font-size: 1.35rem; }
.article-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.aside-cta { text-align: center; border-top: 6px solid var(--yellow); }
.aside-cta img { width: 110px; height: 110px; margin: 0 auto 10px; }
.aside-cta p { color: var(--muted); margin-bottom: 14px; }
.aside-cta .btn + .btn { margin-top: 10px; }
.aside-links { list-style: none; display: grid; gap: 6px; }
.aside-links a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--navy); }
.aside-links a:hover { background: var(--navy-50); }
.aside-links i { color: var(--navy-700); width: 18px; text-align: center; }
.table-wrap { overflow-x: auto; margin: 10px 0 20px; border-radius: 12px; box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 560px; }
.compare-table th { background: var(--navy); color: var(--white); text-align: left; padding: 12px 14px; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .3px; }
.compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--white); }
.compare-table tr:last-child td { background: var(--yellow-100); font-weight: 600; }
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-aside { position: static; }
}
@media (max-width: 720px) { .article-img { height: 240px; } }
