/* Fuentes alojadas en la propia web (Barlow y Barlow Condensed, licencia SIL OFL,
   subconjunto latino): así el navegador no contacta a Google antes de aceptar cookies. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }

/* ==========================================================================
   Industrias DUMAR — estilos del sitio web
   Colores y tipografías: solo en estas variables. Para cambiar la paleta,
   edita este bloque; el resto del archivo las usa.
   ========================================================================== */
:root {
    /* Marca */
    --brand: #3b4e9b;          /* azul del logo */
    --brand-600: #2f3f85;
    --brand-300: #9fb0ec;
    --brand-100: #e9edfb;
    --accent: #f2b705;         /* amarillo: solo botones y líneas */
    --accent-600: #d9a300;
    --green: #2e7d4f;          /* solo mensaje de envío exitoso */

    /* Fondos oscuros: azul del logo oscurecido */
    --navy-950: #0e1430;
    --navy-900: #161f45;
    --navy-800: #222d5e;

    /* Grises */
    --ink: #1c2547;
    --text: #3f4652;
    --muted: #6b7280;
    --line: #e3e5e9;
    --surface: #f2f3f5;
    --white: #ffffff;
    --gray: #8a9099;
    --gray-dark: #4b515b;
    --danger: #c53030;

    /* Tipografía */
    --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Forma y ritmo */
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px -18px rgba(22, 31, 69, .28);
    --shadow-sm: 0 6px 20px -10px rgba(22, 31, 69, .22);
    --header-h: 112px;
    --section-pad: clamp(64px, 9vw, 120px);
    --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--accent); color: var(--navy-950);
    padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

.btn-accent { background: var(--accent); color: var(--navy-950); }
.btn-accent:hover { background: var(--accent-600); color: var(--navy-950); }

.btn-gray { background: var(--gray); color: var(--navy-950); }
.btn-gray:hover { background: #a1a6ae; color: var(--navy-950); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-600); color: var(--white); }

.btn-ghost { border-color: rgba(255, 255, 255, .65); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-900); }

.btn-text { padding-inline: 8px; color: var(--brand); }
.btn-text:hover { color: var(--brand-600); text-decoration: underline; transform: none; }

/* ---------- Títulos de sección ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--brand);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 32px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.eyebrow-light { color: var(--brand-300); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
    font-size: clamp(2.3rem, 4.6vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.12rem; }

.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }

.section-head-light h2 { color: var(--white); }
.section-head-light p { color: rgba(255, 255, 255, .74); }

/* ---------- Encabezado ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    color: var(--white);
    transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
    background: rgba(14, 20, 48, .94);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.site-header .container { max-width: 1300px; }

/* Franja superior: teléfono, ciudad, empleados e idioma */
.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
    overflow: hidden;
    max-height: 40px;
    transition: max-height .3s, opacity .3s;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar-info, .topbar-actions { display: flex; align-items: center; gap: 22px; }
.topbar-info a, .topbar-info > span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .78); }
.topbar-info a:hover { color: var(--white); }
.topbar .icon { width: 15px; height: 15px; }
.topbar .lang-switch { padding: 2px 2px 2px 9px; }
.topbar .lang-switch button { padding: 2px 8px; font-size: .85rem; }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
    transition: height .3s;
}
.is-scrolled .header-inner { height: 64px; }

.brand { flex-shrink: 0; }
.brand img { width: auto; height: 46px; }
/* El logo HD es azul; sobre fondos oscuros se muestra en blanco */
.logo-white { filter: brightness(0) invert(1); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0; }
.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    color: rgba(255, 255, 255, .86);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 9px; right: 9px; bottom: 2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.main-nav a:hover, .main-nav a.is-current { color: var(--white); }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.nav-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .lang-switch-compact { display: none; }
.header-actions .btn-sm { padding: 10px 16px; }
.header-employees .icon { width: 18px; height: 18px; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 3px 3px 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
}
.lang-switch .icon { margin-right: 4px; opacity: .8; }
.lang-switch button {
    min-width: 38px;
    padding: 5px 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--navy-900); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1279px) {
    :root { --header-h: 66px; }
    .topbar { display: none; }
    .header-actions .lang-switch-compact { display: inline-flex; }
    .menu-toggle { display: inline-flex; }
    .header-inner, .is-scrolled .header-inner { height: 66px; }
    .main-nav {
        /* Altura explícita: el desenfoque del encabezado lo vuelve el contenedor del panel */
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        height: calc(100vh - 66px);
        height: calc(100dvh - 66px);
        display: none;
        margin: 0;
        padding: 24px var(--gutter) 40px;
        background: var(--navy-950);
        overflow-y: auto;
    }
    .menu-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .main-nav a { width: 100%; padding: 16px 4px; font-size: 1.4rem; }
    .main-nav a::after { display: none; }
    .main-nav a.is-current { color: var(--brand-300); }
    .nav-mobile-only { display: block; }
}

@media (max-width: 560px) {
    .header-cta, .header-employees { display: none; }
    .brand img { height: 38px; }
    .header-inner { gap: 12px; }
}

/* ---------- Portada ---------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--white);
    background: var(--navy-950);
    overflow: hidden;
}

.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media::after {
    content: "";
    background:
        linear-gradient(90deg, rgba(14, 20, 48, .9) 0%, rgba(14, 20, 48, .62) 50%, rgba(14, 20, 48, .25) 100%),
        linear-gradient(0deg, rgba(14, 20, 48, .85) 0%, rgba(14, 20, 48, 0) 40%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.6s ease;
}
/* Fotos completas, sin acercamiento: solo cambian con un fundido */
.hero-slide.is-active { opacity: 1; }

.hero-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
}

.hero h1 {
    max-width: 880px;
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: .98;
    text-transform: uppercase;
}
.hero h1 span { display: block; color: var(--brand-300); }

.hero-lead {
    max-width: 620px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

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

.hero-stats {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: rgba(14, 20, 48, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat {
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
    color: var(--white);
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
}
.stat > span { margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: .95rem; line-height: 1.3; }

@media (max-width: 720px) {
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat { padding: 16px 14px; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Quiénes somos ---------- */
.about { padding-top: var(--section-pad); background: var(--white); }

.about-intro {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
}
.about-intro h2 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); text-transform: uppercase; }
.about-text { margin-top: 20px; font-size: 1.15rem; }
/* Foto de las troqueladoras al lado del texto */
.about-intro { grid-template-columns: 1fr 1fr; align-items: center; }
.about-photo { margin: 0; }
.about-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.social { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); font-size: .95rem; }
/* Logos originales de Instagram y LinkedIn */
.social a {
    display: inline-flex;
    border-radius: 9px;
    transition: transform .2s, box-shadow .2s;
}
.social a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); }
.social .icon { width: 36px; height: 36px; }

/* Imagen completa (con el logo), sin texto encima del logo */
.about-banner {
    position: relative;
    margin: clamp(40px, 6vw, 72px) 0 0;
    background: var(--navy-900);
}
/* Foto de la recepción + logo HD como capa aparte (nítido en cualquier pantalla) */
.about-banner-frame {
    position: relative;
    max-width: 1600px;
    margin-inline: auto;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}
.about-banner-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.55) saturate(.9);
}
.about-banner-logo {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 72%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35));
}
.about-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 20%;
    background: linear-gradient(180deg, rgba(22, 31, 69, 0), var(--navy-900));
    pointer-events: none;
}
@media (min-width: 1600px) {
    .about-banner-frame {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }
}

.about-values { padding-bottom: var(--section-pad); background: var(--navy-900); }

.values-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
    /* Las tarjetas suben solo sobre el piso de la foto (último 20 %), nunca sobre el logo */
    margin-top: calc(-1 * min(8vw, 128px));
}

.value-card {
    padding: clamp(26px, 3vw, 40px);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.value-card h3 { margin-bottom: 14px; font-size: 2rem; text-transform: uppercase; }
.value-card p { text-align: justify; hyphens: auto; }

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--brand-100);
    color: var(--brand);
}
.value-icon .icon { width: 26px; height: 26px; }

.value-vision {
    display: flex;
    flex-direction: column;
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-600) 55%, var(--navy-800) 100%);
    color: var(--white);
}
.value-vision h3 { color: var(--white); }
.value-vision .value-icon { background: rgba(255, 255, 255, .14); color: var(--white); }
.value-quote {
    margin-top: auto;
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.15;
    text-align: left !important;
}
.value-quote::before {
    content: "“";
    display: block;
    height: .55em;
    color: var(--brand-300);
    font-size: 3em;
    line-height: 1;
}

/* Fotos: la planta a todo el ancho entre misión/visión y sostenibilidad;
   el equipo en dos columnas debajo de sostenibilidad */
.values-photos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.values-photos img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.values-photos-plant { grid-template-columns: 1fr; }
.values-photos-plant img { aspect-ratio: 5 / 2; object-position: center 60%; }

.value-sustainability {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.sustain-figure {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius-sm);
    background: linear-gradient(160deg, var(--surface), #e9ebf0);
    color: var(--brand);
}
.sustain-figure .value-icon { background: var(--white); color: var(--brand); }
.sustain-figure strong {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    line-height: .9;
}
.sustain-figure > span { margin-top: 8px; color: var(--gray-dark); font-weight: 500; line-height: 1.4; }

@media (max-width: 899px) {
    .about-intro { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; margin-top: 0; padding-top: 8px; }
    .value-sustainability { grid-template-columns: 1fr; }
    .value-card p { text-align: left; }
    .values-photos { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Historia (línea de tiempo) ---------- */
.history { padding-block: var(--section-pad); background: var(--surface); }

.timeline { --progress: 0; position: relative; max-width: 1040px; margin-inline: auto; }
.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after {
    height: calc(var(--progress) * 100%);
    background: linear-gradient(180deg, var(--brand), var(--accent));
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 88px 1fr;
    align-items: start;
    padding-bottom: 44px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-inline: auto;
    border: 3px solid var(--brand);
    border-radius: 50%;
    background: var(--white);
    color: var(--brand);
    box-shadow: 0 0 0 8px var(--surface);
    transition: background-color .5s, color .5s, transform .5s;
}
.tl-marker .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.tl-item.is-visible .tl-marker,
html:not(.js-reveal) .tl-marker { background: var(--brand); color: var(--white); }
.tl-item.is-visible .tl-marker { transform: scale(1.04); }
.tl-item-today .tl-marker { border-color: var(--accent); }
.tl-item-today.is-visible .tl-marker,
html:not(.js-reveal) .tl-item-today .tl-marker { background: var(--navy-800); color: var(--white); }

.tl-card {
    position: relative;
    grid-row: 1;
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tl-card::before {
    content: "";
    position: absolute;
    top: 26px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
}
.tl-item:nth-child(odd) .tl-card { grid-column: 1; text-align: right; }
.tl-item:nth-child(odd) .tl-card::before { right: -8px; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-item:nth-child(even) .tl-card::before { left: -8px; }

.tl-year {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}
.tl-item-today .tl-year { color: var(--brand); }
.tl-card h3 { margin-bottom: 10px; font-size: 1.5rem; text-transform: uppercase; }
.tl-card p { color: var(--text); }
.tl-card strong { color: var(--brand); }

.tl-photo { margin: 18px 0 0; }
.tl-photo img { width: 100%; border-radius: var(--radius-sm); filter: grayscale(1) contrast(1.05); }
.tl-photo figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; font-style: italic; }

@media (max-width: 899px) {
    .timeline::before, .timeline::after { left: 34px; }
    .tl-item { grid-template-columns: 68px 1fr; column-gap: 18px; padding-bottom: 28px; }
    .tl-marker { grid-column: 1; width: 60px; height: 60px; margin: 0 0 0 4px; }
    .tl-marker .icon { width: 28px; height: 28px; }
    .tl-item:nth-child(n) .tl-card { grid-column: 2; text-align: left; padding: 22px; }
    .tl-item:nth-child(n) .tl-card::before { left: -8px; right: auto; top: 22px; }
    .tl-year { font-size: 2.3rem; }
}

/* ---------- Clientes ---------- */
.clients { padding-block: var(--section-pad); background: var(--white); border-top: 1px solid var(--line); }

/* Carrusel continuo: todas las tarjetas miden lo mismo y cada logo cabe en la misma caja */
.clients-marquee {
    --card-w: 230px;
    --card-gap: 20px;
    position: relative;
    overflow: hidden;
    padding-block: 10px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
    display: flex;
    gap: var(--card-gap);
    width: max-content;
    animation: clients-scroll var(--duration, 30s) linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes clients-scroll {
    to { transform: translateX(calc(-1 * var(--loop-width, 50%))); }
}
.clients-track li {
    display: flex;
    flex: 0 0 var(--card-w);
    align-items: center;
    justify-content: center;
    height: 124px;
    padding: 0 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.clients-track img { width: 150px; height: 56px; object-fit: contain; }
.client-name span {
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 560px) {
    .clients-marquee { --card-w: 180px; --card-gap: 14px; }
    .clients-track li { height: 100px; padding: 0 22px; }
    .clients-track img { width: 124px; height: 46px; }
    .client-name span { font-size: 1.1rem; }
}

/* Sin animación: las tarjetas se acomodan en filas */
@media (prefers-reduced-motion: reduce) {
    .clients-marquee { -webkit-mask-image: none; mask-image: none; }
    .clients-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
}

/* ---------- Especialidades ---------- */
.specialties { padding-top: var(--section-pad); background: var(--white); }

.spec {
    display: grid;
    grid-template-columns: 58fr 42fr;
    min-height: 560px;
}
.spec-reverse { grid-template-columns: 42fr 58fr; background: var(--surface); }
.spec-reverse .spec-media { order: 2; }

.spec-media {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}
.spec-reverse .spec-media { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.spec-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    will-change: transform;
}
.spec-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 78, 155, .25), rgba(14, 20, 48, .1));
}

.spec-body {
    align-self: center;
    max-width: 560px;
    padding: clamp(36px, 5vw, 80px);
}
.spec-num {
    display: block;
    margin-bottom: -10px;
    color: transparent;
    font-family: var(--font-head);
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 700;
    line-height: .85;
    -webkit-text-stroke: 2px var(--brand-300);
}
.spec-body h3 {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 16px;
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    text-transform: uppercase;
}
.spec-body h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
}
.spec-body > p { font-size: 1.12rem; margin-bottom: 22px; }

/* Capacidad instalada dentro de cada especialidad */
.spec-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
}
.spec-stats > div {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border-left: 1px solid var(--line);
    border-top: 3px solid var(--brand);
}
.spec-stats > div:first-child { border-left: 0; }
.spec-stats strong {
    color: var(--brand);
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.spec-stats-3 > div { padding: 14px 12px; }
.spec-stats-3 strong { font-size: clamp(1.3rem, 1.75vw, 1.7rem); }
@media (max-width: 560px) {
    .spec-stats-3 { grid-template-columns: 1fr 1fr; }
    .spec-stats-3 > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
}
.spec-stats span { margin-top: 6px; color: var(--gray-dark); font-size: .9rem; line-height: 1.3; }

.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: var(--ink); font-weight: 500; }
.check-list .icon {
    width: 24px;
    height: 24px;
    padding: 4px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand);
    stroke-width: 2.6;
}

@media (max-width: 899px) {
    .spec, .spec-reverse { grid-template-columns: 1fr; min-height: 0; }
    .spec-reverse .spec-media { order: 0; }
    .spec-media, .spec-reverse .spec-media {
        aspect-ratio: 4 / 3;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    .spec-body { padding: 24px var(--gutter) 56px; max-width: none; }
}

/* ---------- Portafolio ---------- */
.portfolio { padding-block: var(--section-pad); background: var(--surface); }

.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.doc-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.doc-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 20px;
    background: radial-gradient(circle at 30% 25%, #5b6fc0 0%, var(--brand) 40%, #26336b 78%, var(--navy-950) 100%);
    color: var(--white);
    overflow: hidden;
}
.doc-cover-alt { background: radial-gradient(circle at 70% 20%, #a3a8b1 0%, #6b717b 40%, #464b54 78%, #2d3138 100%); }
.doc-cover::before {
    content: "";
    position: absolute;
    left: -40%;
    bottom: 18%;
    width: 180%;
    height: 60%;
    border-radius: 50%;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.doc-cover::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 26px 26px 0;
    border-style: solid;
    border-color: var(--surface) var(--surface) rgba(255, 255, 255, .25) rgba(255, 255, 255, .25);
}
.doc-cover span {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .85;
}
.doc-cover strong {
    margin-top: 6px;
    font-family: var(--font-head);
    font-size: 1.4rem;
    line-height: 1.05;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.doc-cover img { width: 110px; margin-top: auto; opacity: .95; }

.doc-body { display: flex; flex-direction: column; padding: 28px; }
.doc-body h3 { margin-bottom: 10px; font-size: 1.8rem; text-transform: uppercase; }
.doc-body > p { color: var(--text); }

.doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.doc-tags li {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-600);
    font-size: .88rem;
    font-weight: 500;
}

.doc-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 12px;
    margin: auto 0 22px;
    padding: 14px 0;
    border-block: 1px solid var(--line);
}
.doc-meta dt { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.doc-meta dd { margin: 2px 0 0; color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }

.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

@media (max-width: 1100px) {
    .docs-grid { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
}
@media (max-width: 600px) {
    .doc-card { grid-template-columns: 1fr; }
    .doc-cover { min-height: 170px; }
    .doc-cover img { position: absolute; right: 20px; bottom: 20px; }
    .doc-actions .btn-primary { flex: 1 1 100%; }
}

/* ---------- Cumplimiento ---------- */
.compliance { padding-block: var(--section-pad); background: var(--surface); }

/* Fondo con foto de la planta, apenas suavizada. El velo claro es fuerte del lado
   del texto (izquierda) y suave del lado de la tarjeta, para que se vea la planta. */
.area.area-photo, .compliance.area-photo { background-position: center; background-size: cover; }
.area.area-photo-plant {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .78) 42%, rgba(255, 255, 255, .15) 100%), url("../img/fondo-inyeccion.jpg");
}
.compliance.area-photo-compliance {
    background-image: linear-gradient(90deg, rgba(242, 243, 245, .9) 0%, rgba(242, 243, 245, .78) 38%, rgba(242, 243, 245, .15) 100%), url("../img/fondo-troquelado.jpg");
}
/* La nota pequeña bajo la tarjeta queda sobre la foto: fondo claro para leerla */
.area-photo .area-note {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
}
.area-photo .policy { background-color: rgba(255, 255, 255, .85); }
/* En celular el texto ocupa todo el ancho: velo parejo */
@media (max-width: 960px) {
    .area.area-photo-plant {
        background-image: linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)), url("../img/fondo-inyeccion.jpg");
    }
    .compliance.area-photo-compliance {
        background-image: linear-gradient(rgba(242, 243, 245, .82), rgba(242, 243, 245, .82)), url("../img/fondo-troquelado.jpg");
    }
}

.compliance-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.policy {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.35;
}
.policy > .icon { width: 26px; height: 26px; color: var(--brand); }
.policy > span:nth-child(2) { flex: 1; }

.badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff4cf;
    color: #7a5800;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

.policy-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* ---------- Formularios ---------- */
.form-card {
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.form-card-raised { border: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }

.form-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.form-card-head > .icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 14px;
    background: var(--brand-100);
    color: var(--brand);
}
.form-card-head h3 { margin-bottom: 6px; font-size: 1.8rem; text-transform: uppercase; }
.form-card-head p { color: var(--muted); font-size: .98rem; line-height: 1.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.field abbr { color: var(--danger); text-decoration: none; }
.field-hint { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23677489' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(59, 78, 155, .15);
}
.field .is-invalid, .field .is-invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(197, 48, 48, .12); }

.field-error { margin: 6px 0 0; color: var(--danger); font-size: .85rem; font-weight: 500; }

.check-field {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: flex-start;
    margin: 4px 0 20px;
    color: var(--text);
    font-size: .92rem;
    line-height: 1.5;
    cursor: pointer;
}
.check-field input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.check-field > span { flex: 1; min-width: 0; }
.check-field .field-error { flex-basis: 100%; margin-left: 32px; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-status { flex: 1 1 220px; margin: 0; font-size: .95rem; font-weight: 500; line-height: 1.4; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--danger); }

@media (max-width: 980px) {
    .compliance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .form-actions .btn { flex: 1 1 100%; }
}

/* ---------- Áreas: Comercial y Trabaja con nosotros ---------- */
.area {
    padding-block: var(--section-pad);
    background: var(--white);
    border-top: 1px solid var(--line);
}

.area-grid {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.area-steps > li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.area-steps > li:last-child { padding-bottom: 0; }
.area-steps > li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 50px;
    bottom: 4px;
    width: 2px;
    background: var(--line);
}
.area-step-num {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
}
.area-steps h3 { margin: 8px 0 4px; font-size: 1.35rem; text-transform: uppercase; }
.area-steps a { font-weight: 600; overflow-wrap: anywhere; }

/* Documentos dentro del paso a paso */
.step-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.step-docs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.3;
}
.step-docs .icon { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 520px) {
    .step-docs { grid-template-columns: 1fr; }
}

/* Tarjeta corporativa centrada en su columna */
.area-aside { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; height: 100%; }
.area-aside .biz-card { width: 100%; max-width: 520px; }

/* Tarjeta corporativa (proporción de tarjeta de presentación) */
.biz-card {
    position: relative;
    display: grid;
    grid-template-columns: 38% 1fr;
    aspect-ratio: 1.75 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.biz-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand) 0 38%, var(--accent) 38% 100%);
}
.biz-card-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-600) 60%, var(--navy-800) 100%);
    overflow: hidden;
}
.biz-card-side::before {
    /* Arco tenue como marca de agua */
    content: "";
    position: absolute;
    width: 150%;
    aspect-ratio: 1;
    right: 30%;
    border: 2px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}
.biz-card-side img { position: relative; width: 82%; max-width: 170px; }

.biz-card-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(18px, 2.4vw, 30px);
}
.biz-card-area {
    color: var(--brand);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.biz-card-company {
    position: relative;
    margin: 4px 0 14px;
    padding-bottom: 12px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.1;
}
.biz-card-company::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
}
.biz-card-data li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    color: var(--gray-dark);
    font-size: .95rem;
    line-height: 1.35;
}
.biz-card-data .icon { width: 16px; height: 16px; color: var(--brand); }
.biz-card-data a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.biz-card-data a:hover { color: var(--brand); }

.area-note { max-width: 460px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; text-align: center; }

@media (max-width: 960px) {
    .area-grid { grid-template-columns: 1fr; }
    .area-aside { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 520px) {
    .biz-card { grid-template-columns: 1fr; aspect-ratio: auto; }
    .biz-card::after { background: linear-gradient(90deg, var(--brand) 0 30%, var(--accent) 30% 100%); }
    .biz-card-side { padding: 22px; }
    .biz-card-side img { width: 150px; }
    .biz-card-main { padding: 22px 22px 26px; }
}

/* ---------- Contacto ---------- */
.contact {
    padding-top: var(--section-pad);
    background:
        radial-gradient(ellipse at 10% 10%, rgba(59, 78, 155, .5), transparent 50%),
        var(--navy-900);
    color: rgba(255, 255, 255, .8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list > li > .icon {
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: var(--brand-300);
}
.contact-list div { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.contact-label { color: var(--brand-300); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact-list a { color: var(--white); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand-300); }
.contact-directions { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .95rem; }
.contact-list .contact-directions { color: var(--brand-300); }

.map { margin-top: var(--section-pad); line-height: 0; }
.map iframe { width: 100%; height: 380px; border: 0; filter: saturate(.85); }

@media (max-width: 980px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .66); font-size: .96rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 36px;
    padding-block: 64px 48px;
}
.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.site-footer h3 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: 1.15rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.footer-links li { padding: 4px 0; }
.footer-links a { color: rgba(255, 255, 255, .7); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--white); }

.site-footer .social { margin-top: 20px; }

.footer-bottom { padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Aparición al hacer scroll ---------- */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js-reveal .tl-item[data-reveal]:nth-child(odd) .tl-card { transform: translateX(-30px); transition: transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.js-reveal .tl-item[data-reveal]:nth-child(even) .tl-card { transform: translateX(30px); transition: transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.js-reveal .tl-item.is-visible .tl-card { transform: none; }
.js-reveal .tl-item.is-visible .tl-card:hover { transform: translateY(-4px); }

@media (max-width: 899px) {
    .js-reveal .tl-item[data-reveal]:nth-child(n) .tl-card { transform: translateX(20px); }
    .js-reveal .tl-item.is-visible .tl-card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    max-width: 960px;
    margin-inline: auto;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: var(--navy-900);
    color: rgba(255, 255, 255, .86);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .5);
    font-size: .95rem;
    line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 380px; margin: 0; }
.cookie-banner a { color: var(--brand-300); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
@media (max-width: 520px) {
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; }
}

/* ---------- Mapa bajo demanda y nota de documentos ---------- */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 380px;
    padding: 24px var(--gutter);
    background:
        linear-gradient(rgba(159, 176, 236, .07) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(159, 176, 236, .07) 1px, transparent 1px) 0 0 / 40px 40px,
        var(--navy-800);
    color: rgba(255, 255, 255, .86);
    line-height: 1.5;
    text-align: center;
}
.map-placeholder .icon { width: 40px; height: 40px; color: var(--brand-300); }
.map-address { margin: 0; font-size: 1.05rem; }
.map-note { margin: 0; color: rgba(255, 255, 255, .6); font-size: .85rem; }
.map.is-loaded iframe { display: block; }

.step-docs-note { margin: 10px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.step-docs li:last-child:nth-child(odd) { grid-column: 1 / -1; }
