@charset "UTF-8";
/* =========================================================
   ESA Group — Sitio corporativo
   Sistema de diseño compartido (Inicio · Servicios · Nosotros · Contacto)
   Paleta y tipografía alineadas a context/brand.md y brand-colours/palette.md
   ========================================================= */

:root {
    --color-primary: #073674;
    --color-secondary: #052a5a;
    --color-deep: #03194a;
    --color-accent: #b92727;
    --color-accent-hover: #a02020;

    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fb;
    --color-bg-tint: #eef3fa;

    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-faint: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;

    --font-heading: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --container-max: 1180px;
    --container-narrow: 820px;
    --section-padding: 96px 24px;
    --section-padding-mobile: 60px 20px;

    --radius: 4px;
    --radius-lg: 6px;

    --shadow-xs: 0 1px 2px rgba(3, 25, 74, 0.06);
    --shadow-sm: 0 2px 8px rgba(3, 25, 74, 0.06);
    --shadow-md: 0 8px 28px rgba(3, 25, 74, 0.09);
    --shadow-lg: 0 24px 64px rgba(3, 25, 74, 0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: rgba(7, 54, 116, 0.14); }

/* ---------- Layout ---------- */

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: var(--section-padding); position: relative; }
.section-tight { padding-top: 64px; padding-bottom: 64px; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: rgba(255, 255, 255, 0.86); }
.section-deep {
    background: linear-gradient(150deg, var(--color-deep) 0%, var(--color-primary) 100%);
    color: rgba(255, 255, 255, 0.86);
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Tipografía ---------- */

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); }

h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.022em;
    margin-bottom: 22px;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.018em;
    margin-bottom: 18px;
}

h3 {
    font-size: 1.18rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.008em;
    margin-bottom: 10px;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 8px;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: clamp(1.02rem, 1.55vw, 1.16rem);
    line-height: 1.72;
    color: var(--color-text);
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.section-deep h1, .section-deep h2, .section-deep h3, .section-deep h4 { color: #ffffff; }

.section-dark p, .section-deep p { color: rgba(255, 255, 255, 0.82); }

/* Kicker / eyebrow */
.kicker {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}
.kicker-light { color: rgba(255, 255, 255, 0.72); }

/* Regla corta bajo titulares */
.rule {
    width: 54px; height: 3px; background: var(--color-accent);
    border-radius: 2px; margin: 0 0 26px;
}
.rule-center { margin-left: auto; margin-right: auto; }
.rule-light { background: rgba(255, 255, 255, 0.55); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

/* ---------- Header / navegación ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding-top: 14px; padding-bottom: 14px;
}

.brand-lockup { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-lockup img { height: 46px; width: auto; }

.nav-wrap { display: flex; align-items: center; gap: 32px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem; font-weight: 700;
    color: var(--color-text); text-decoration: none;
    padding: 6px 0; position: relative;
    transition: color 0.18s ease;
}
.site-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--color-accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.22s ease;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--color-primary); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-phone {
    font-family: var(--font-heading); font-weight: 800;
    color: var(--color-primary); text-decoration: none; font-size: 0.95rem;
    white-space: nowrap;
}

.header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--color-accent); color: #fff; text-decoration: none;
    font-family: var(--font-heading); font-weight: 800; font-size: 0.88rem;
    padding: 11px 22px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}
.header-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none; background: none; border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 8px; cursor: pointer;
    color: var(--color-primary);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Botones ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-heading); font-weight: 800;
    text-decoration: none; cursor: pointer; border: none;
    border-radius: var(--radius);
    padding: 16px 32px; font-size: 1.02rem;
    letter-spacing: 0.005em;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}

.btn-primary {
    background: var(--color-accent); color: #ffffff;
    box-shadow: 0 6px 20px rgba(185, 39, 39, 0.22);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(185, 39, 39, 0.28);
}

.btn-light {
    background: #ffffff; color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22); }

.btn-outline {
    background: transparent; color: var(--color-primary);
    border: 1.5px solid var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-bg-tint); }

.btn-ghost-light {
    background: transparent; color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
}
.btn-ghost-light:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.text-center { justify-content: center; }

.btn-note { display: block; font-size: 0.86rem; color: var(--color-text-light); margin-top: 14px; }
.btn-note.on-dark { color: rgba(255, 255, 255, 0.62); }

/* Enlace con flecha */
.link-arrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-heading); font-weight: 800; font-size: 0.92rem;
    color: var(--color-accent); text-decoration: none;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: linear-gradient(140deg, var(--color-deep) 0%, var(--color-primary) 100%);
    color: #ffffff;
    padding: 104px 24px 84px;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 12% -10%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 55%),
        radial-gradient(ellipse at 95% 110%, rgba(185, 39, 39, 0.16) 0%, rgba(185, 39, 39, 0) 55%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #ffffff; }
.hero p { color: rgba(255, 255, 255, 0.86); }

.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 64px; align-items: center;
}

.hero-image {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px rgba(0, 0, 0, 0.42);
    aspect-ratio: 4 / 3;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(3, 25, 74, 0.12) 0%, rgba(3, 25, 74, 0) 45%, rgba(3, 25, 74, 0.42) 100%);
}

.hero-caption {
    position: absolute; left: 18px; bottom: 18px; z-index: 2;
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(3, 25, 74, 0.78);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; padding: 10px 16px; border-radius: var(--radius);
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Hero con video de fondo ---------- */

.hero-video { padding: 124px 24px 84px; }

.hero-media {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
}
.hero-media .hero-video-el {
    width: 100%; height: 100%; object-fit: cover;
    display: block; filter: saturate(0.92) contrast(1.03);
}
/* Velo de marca: mantiene el texto legible sobre cualquier fotograma */
.hero-media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(3, 25, 74, 0.90) 0%, rgba(3, 25, 74, 0.78) 34%, rgba(7, 54, 116, 0.52) 62%, rgba(7, 54, 116, 0.36) 100%),
        linear-gradient(to bottom, rgba(3, 25, 74, 0.55) 0%, rgba(3, 25, 74, 0) 26%, rgba(3, 25, 74, 0) 58%, rgba(3, 25, 74, 0.78) 100%);
}

.hero-video .hero-copy { position: relative; z-index: 1; max-width: 760px; padding-bottom: 72px; }

.hero-media-caption {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
}
.hero-media-caption::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(185, 39, 39, 0.22);
}

/* Sin animación para quien la desactiva en su sistema */
@media (prefers-reduced-motion: reduce) {
    .hero-media .hero-video-el { display: none; }
    .hero-media {
        background: url('/media/hero-bodega-esa.jpg') center / cover no-repeat;
    }
}

/* Hero compacto para páginas interiores */
.hero-inner {
    background: linear-gradient(140deg, var(--color-deep) 0%, var(--color-primary) 100%);
    color: #ffffff; padding: 84px 24px 72px; position: relative; overflow: hidden;
}
.hero-inner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 85% -20%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}
.hero-inner .container { position: relative; z-index: 1; }
.hero-inner h1 { color: #ffffff; margin-bottom: 18px; }
.hero-inner p { color: rgba(255, 255, 255, 0.84); max-width: 700px; }

/* Migas */
.breadcrumb {
    font-size: 0.82rem; color: rgba(255, 255, 255, 0.58);
    margin-bottom: 18px; letter-spacing: 0.02em;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "·"; opacity: 0.6; }

/* ---------- Barra de cifras ---------- */

.stat-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.hero-video .stat-strip.on-hero { position: relative; z-index: 1; margin-bottom: 0; }
.stat-strip.on-hero {
    margin-top: 64px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stat-cell {
    padding: 28px 24px; text-align: center;
    border-right: 1px solid var(--color-border);
}
.stat-strip.on-hero .stat-cell { border-right-color: rgba(255, 255, 255, 0.14); }
.stat-cell:last-child { border-right: none; }

.stat-value {
    display: block; font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900;
    line-height: 1; letter-spacing: -0.03em;
    color: var(--color-primary); margin-bottom: 8px;
}
.stat-strip.on-hero .stat-value { color: #ffffff; }

.stat-label { font-size: 0.85rem; line-height: 1.45; color: var(--color-text-light); }
.stat-strip.on-hero .stat-label { color: rgba(255, 255, 255, 0.72); }

/* ---------- Franja de logos ---------- */

.logos-band { padding: 46px 0 0; background: var(--color-bg); }
.logos-eyebrow {
    text-align: center; font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-text-faint); margin-bottom: 26px;
}
.logos-marquee {
    position: relative; overflow: hidden; padding: 34px 0;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-top: 1px solid rgba(3, 25, 74, 0.14);
    border-bottom: 1px solid rgba(3, 25, 74, 0.14);
}
.logos-marquee::before, .logos-marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 130px; z-index: 2; pointer-events: none;
}
.logos-marquee::before { left: 0; background: linear-gradient(90deg, var(--color-primary) 0%, rgba(7, 54, 116, 0) 100%); }
.logos-marquee::after { right: 0; background: linear-gradient(270deg, var(--color-secondary) 0%, rgba(5, 42, 90, 0) 100%); }

.logos-track { display: flex; gap: 68px; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-track img {
    height: 46px; width: auto; max-width: 170px; object-fit: contain;
    opacity: 0.78; filter: brightness(0) invert(1);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.logos-track img:hover { opacity: 1; transform: scale(1.05); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; gap: 44px; }
}

/* ---------- Rejillas ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Tarjetas de servicio ---------- */

.service-card {
    display: flex; flex-direction: column;
    padding: 34px 30px 30px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.24s ease, border-color 0.22s ease;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--color-accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.28s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .ico { color: var(--color-primary); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.62; margin-bottom: 18px; }
.service-card .link-arrow { margin-top: auto; }

.tag {
    display: inline-block; align-self: flex-start;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--color-primary); background: var(--color-bg-tint);
    padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.service-card .tag {
    position: absolute; top: 22px; right: 22px; margin-bottom: 0;
}
.service-card .ico { max-width: 32px; }
.tag-accent { color: var(--color-accent); background: rgba(185, 39, 39, 0.08); }

/* ---------- Bloque split (imagen + texto) ---------- */

.split-image {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}
.split-image picture, .gallery-strip picture { display: contents; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
/* Foto panorámica: se muestra completa, sin recortar (el letrero va arriba) */
.split-image-wide { aspect-ratio: auto; }
.split-image-wide img { height: auto; }

/* ---------- Galería de operación real ---------- */

.gallery-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-strip figure {
    position: relative; margin: 0; overflow: hidden;
    border-radius: var(--radius-lg); aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-md);
}
.gallery-strip img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gallery-strip figure:hover img { transform: scale(1.05); }
.gallery-strip figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 42px 16px 15px; color: #ffffff;
    font-size: 0.79rem; font-weight: 800; line-height: 1.35;
    letter-spacing: 0.04em;
    background: linear-gradient(to top, rgba(3, 25, 74, 0.88) 0%, rgba(3, 25, 74, 0.55) 45%, rgba(3, 25, 74, 0) 100%);
}

/* ---------- Bloque de video institucional ---------- */

.video-block {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    background: var(--color-deep); aspect-ratio: 16 / 9;
}
.video-block video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-note {
    display: block; margin-top: 14px;
    font-size: 0.85rem; color: var(--color-text-light);
}

.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
    display: flex; gap: 13px; align-items: flex-start;
    padding: 11px 0; font-size: 0.97rem; line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
}
.check-list li:last-child { border-bottom: none; }
.check-list svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }
.section-dark .check-list li, .section-deep .check-list li {
    border-bottom-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.88);
}
.section-dark .check-list svg, .section-deep .check-list svg { color: #ffffff; }

/* ---------- Proceso numerado ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 12px; }
.step {
    padding: 34px 30px;
    border-left: 1px solid var(--color-border);
    position: relative;
}
.step:first-child { border-left: none; padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
    display: block; font-family: var(--font-heading);
    font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em;
    color: var(--color-accent); margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 0; }

/* ---------- Tarjeta de dato / capacidad ---------- */

.fact-card {
    padding: 30px 26px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--color-primary);
}
.fact-card .ico { color: var(--color-primary); margin-bottom: 16px; }
.fact-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.fact-card p { font-size: 0.93rem; color: var(--color-text-light); margin-bottom: 0; line-height: 1.6; }

.value-card {
    padding: 30px 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
}
.value-card .ico { color: #ffffff; margin-bottom: 16px; opacity: 0.9; }
.value-card h3 { color: #ffffff; font-size: 1.06rem; margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.74); margin-bottom: 0; line-height: 1.6; }

/* ---------- Testimonios ---------- */

.testimonial {
    display: flex; flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 34px 32px;
    box-shadow: var(--shadow-sm);
}
.testimonial-text { font-size: 1rem; line-height: 1.72; color: var(--color-text); margin-bottom: 24px; }
.testimonial-text p { margin-bottom: 12px; }
.testimonial-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial-photo {
    width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid #ffffff; box-shadow: 0 0 0 1px var(--color-border);
}
.testimonial-author { font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); font-size: 0.98rem; }
.testimonial-role { font-size: 0.85rem; color: var(--color-text-light); }

/* ---------- Bloque CTA ---------- */

.cta-band {
    background: linear-gradient(140deg, var(--color-deep) 0%, var(--color-primary) 100%);
    padding: 88px 24px; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 78% 120%, rgba(185, 39, 39, 0.18) 0%, rgba(185, 39, 39, 0) 58%);
    pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.84); }

/* ---------- Formulario ---------- */

.form-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 1.32rem; font-weight: 800; margin-bottom: 6px; }
.form-card .form-intro { font-size: 0.93rem; color: var(--color-text-light); margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.97rem; font-family: var(--font-body);
    color: var(--color-text); background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(7, 54, 116, 0.1);
}
.form-select { appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
    padding-right: 38px;
}
.form-textarea { resize: vertical; min-height: 104px; }

.form-submit {
    width: 100%; padding: 16px;
    background: var(--color-accent); color: #ffffff;
    border: none; border-radius: var(--radius);
    font-family: var(--font-heading); font-size: 1.03rem; font-weight: 800;
    cursor: pointer; margin-top: 6px;
    box-shadow: 0 6px 20px rgba(185, 39, 39, 0.22);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.22s ease;
}
.form-submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(185, 39, 39, 0.28);
}
.form-privacy { font-size: 0.79rem; line-height: 1.55; color: var(--color-text-light); text-align: center; margin: 12px 0 0; }
.form-privacy a { color: inherit; text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contacto ---------- */

.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ico { color: var(--color-accent); flex-shrink: 0; width: 24px; height: 24px; margin-top: 3px; }
.contact-item h4 { margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: 0.96rem; color: var(--color-text-light); text-decoration: none; margin-bottom: 0; }
.contact-item a:hover { color: var(--color-primary); }

.map-frame {
    width: 100%; height: 380px; border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
}

.whatsapp-link {
    display: inline-flex; align-items: center; gap: 9px;
    background: #1f9c4d; color: #ffffff;
    padding: 13px 26px; border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(20, 83, 45, 0.2);
    transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.whatsapp-link:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(20, 83, 45, 0.28); }

/* ---------- Preguntas frecuentes ---------- */

.faq-item { border-bottom: 1px solid var(--color-border); padding: 26px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-q { font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); font-size: 1.06rem; margin-bottom: 10px; }
.faq-a { color: var(--color-text); font-size: 0.97rem; line-height: 1.7; margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--color-deep); color: rgba(255, 255, 255, 0.6); padding: 68px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: 0.94; margin-bottom: 20px; }
.footer-tagline { font-size: 0.92rem; line-height: 1.65; color: rgba(255, 255, 255, 0.6); max-width: 300px; margin-bottom: 0; }

.footer-col h4 {
    color: #ffffff; font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col span {
    font-size: 0.92rem; color: rgba(255, 255, 255, 0.62);
    text-decoration: none; transition: color 0.18s ease; line-height: 1.55;
}
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
    max-width: var(--container-max); margin: 44px auto 0;
    padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
    font-size: 0.83rem; color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.58); text-decoration: none; }
.footer-bottom a:hover { color: #ffffff; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Mapa con carga bajo demanda ---------- */
/* El mapa de Google no se incrusta al abrir la página: cargarlo enviaría la IP
   de quien visita a un tercero sin que lo haya decidido. Se carga al pulsar. */

.map-carga {
    width: 100%; height: 380px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; padding: 32px 26px; text-align: center;
}
.map-carga-dir { font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); margin: 0; }
.map-carga-aviso { font-size: 0.86rem; color: var(--color-text-light); max-width: 46ch; margin: 0; line-height: 1.55; }
.map-carga-alt { font-size: 0.85rem; color: var(--color-text-light); }
.map-carga-alt:hover { color: var(--color-primary); }

/* ---------- Iconografía de línea ---------- */

.ico { width: 32px; height: 32px; display: block; stroke-width: 1.4; }
.ico-sm { width: 22px; height: 22px; }
.ico-inline { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.18em; margin-right: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .site-nav { gap: 22px; }
    .site-nav a { font-size: 0.9rem; }
    .header-phone { display: none; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .gallery-strip, .gallery-strip.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--color-border); }
    .stat-strip.on-hero .stat-cell:nth-child(1),
    .stat-strip.on-hero .stat-cell:nth-child(2) { border-bottom-color: rgba(255, 255, 255, 0.14); }
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .nav-wrap {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #ffffff; border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md); padding: 8px 24px 22px;
    }
    .nav-wrap.is-open { display: flex; }
    .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--color-border); font-size: 1rem; }
    .site-nav a::after { display: none; }
    .header-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 18px; }
    .header-cta { justify-content: center; padding: 14px 22px; font-size: 0.95rem; }
    .site-header .container { position: relative; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    section { padding: var(--section-padding-mobile); }
    .hero { padding: 64px 20px 60px; }
    .hero-video { padding: 76px 20px 56px; }
    .hero-video .hero-copy { padding-bottom: 44px; }
    .hero-media-caption { margin-top: 22px; font-size: 0.7rem; }
    .hero-inner { padding: 56px 20px 48px; }
    .cta-band { padding: 60px 20px; }
    .grid-3, .grid-2-tight { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step { border-left: none; border-top: 1px solid var(--color-border); padding: 26px 0; }
    .step:first-child { border-top: none; padding-top: 0; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
    .section-head { margin-bottom: 36px; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .logos-track { gap: 42px; }
    .logos-track img { height: 36px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .map-frame { height: 300px; }
    .testimonial { padding: 26px 22px; }
}

@media (max-width: 480px) {
    .gallery-strip, .gallery-strip.cols-3 { grid-template-columns: 1fr; gap: 14px; }
    .gallery-strip figure { aspect-ratio: 3 / 2; }
    .stat-strip { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--color-border); }
    .stat-cell:last-child { border-bottom: none; }
    .brand-lockup img { height: 36px; }
}
