/* ==========================================================
   La Lata — estilos de la web pública · v1.15
   Paleta basada en Luminous Blue (WGSN × Coloro 2027)
   ========================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #040817;          /* fondo */
  --ink-2: #0B1330;        /* superficies */
  --ink-3: #0D1636;        /* huecos de imagen */
  --line: #1E2A55;
  --line-2: #2C3A70;
  --text: #FFFFFF;
  --soft: #C8D1EE;
  --muted: #A3AED0;        /* 9:1 sobre --ink */
  --faint: #5A6A9E;
  --blue: #1F46B0;         /* Luminous Blue */
  --blue-light: #7C9BFF;   /* acento sobre oscuro, 7.6:1 */
  --blue-soft: #D6DEFF;    /* texto secundario sobre azul, 6:1 */
  --blue-mid: #B9C7FF;
  /* Variables de paleta (cambian con Ajustes › Colores) */
  --band: #1F46B0;              /* franjas de color: cinta y contacto */
  --band-rgb: 31, 70, 176;
  --on-band: #FFFFFF;           /* texto sobre la franja (8.2:1) */
  --on-band-soft: #D6DEFF;
  --on-band-mid: #B9C7FF;
  --on-band-line: rgba(255,255,255,.35);
  --on-band-line-strong: rgba(255,255,255,.55);
  --on-band-placeholder: rgba(214,222,255,.6);
  --accent: #7C9BFF;            /* acento sobre fondo oscuro */
  --accent-mid: #B9C7FF;
  --ink-rgb: 4, 8, 23;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --radius: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
a, button, label { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.band-blue :focus-visible { outline-color: var(--on-band); }
::selection { background: var(--band); color: var(--on-band); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- tipografía ---------- */
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.soft { color: var(--on-band-soft); }
.small { font-size: 14px; }
.display-hero { font-size: clamp(42px, 6vw, 92px); line-height: .96; letter-spacing: -.05em; font-weight: 500; }
.display-xl { font-size: clamp(46px, 7.4vw, 112px); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.display-l { font-size: clamp(36px, 5.6vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.display-m { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.lead-xl { font-size: clamp(26px, 3.5vw, 52px); line-height: 1.14; letter-spacing: -.03em; font-weight: 400; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.link-u { border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 16px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: calc(880px + 2 * var(--pad)); }
.section { padding-block: clamp(80px, 11vw, 160px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.split { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(20px, 5vw, 80px); align-items: start; }
.split > .eyebrow { padding-top: .9em; }
.split-side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4vw, 56px) 24px; }
.grid-2.tight { gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rowhead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius); font-size: 16px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-mid); color: var(--ink); }
.band-blue .btn-white { background: var(--on-band); color: var(--band); font-weight: 600; }
.band-blue .btn-white:hover { background: var(--on-band-soft); color: var(--band); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

/* ---------- cabecera ---------- */
/* El desenfoque va en una capa propia: si estuviera en la cabecera, el menú móvil
   (position: fixed) quedaría encerrado dentro de ella. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); isolation: isolate; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--ink-rgb), .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header.is-over { position: absolute; left: 0; right: 0; border-bottom-color: transparent; }
.site-header.is-over::before { display: none; }
.header-in { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 600; font-size: 22px; letter-spacing: -.02em; position: relative; z-index: 2; }
.logo:hover { color: #fff; }
.logo { display: flex; align-items: center; }
.logo-img { display: block; height: 78px; width: auto; max-width: 240px; object-fit: contain; }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; }
.nav a[aria-current="page"] { color: #fff; border-bottom: 1px solid #fff; padding-bottom: 4px; }
.mnav { display: none; }
.header-cta { min-height: 44px; padding: 0 22px; font-size: 15px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; cursor: pointer; position: relative; z-index: 2; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 27px; }
.menu-open .menu-btn span:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(460px, 58vh, 620px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink-2); }
/* Degradado superior: el menú se lee sobre cualquier vídeo o imagen */
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 240px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(var(--ink-rgb),.88) 0%, rgba(var(--ink-rgb),.55) 45%, rgba(var(--ink-rgb),0) 100%); }
.hero-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-video, .hero-img, .band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; z-index: 1; inset: auto 0 0 0; height: 75%; background: linear-gradient(to top, var(--ink) 0%, rgba(var(--ink-rgb),.75) 35%, rgba(var(--ink-rgb),0) 100%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-bottom: clamp(36px, 4.5vw, 64px); padding-top: 124px; }
.hero-in h1 { max-width: 19ch; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; padding-bottom: 8px; flex-shrink: 0; }
.rec { display: flex; align-items: center; gap: 10px; color: var(--soft); white-space: nowrap; }
.dot { flex-shrink: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4a3d; box-shadow: 0 0 0 4px rgba(255, 74, 61, .18); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }

/* línea de tiempo (cabecera sin vídeo) */
.timeline { position: relative; width: min(80%, 1040px); margin-top: -18vh; opacity: .75; padding: 20px 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11, 19, 48, .7); display: grid; gap: 9px; }
.tl-head { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: 8px; font-size: 12px; }
.tl-head .tc { color: #fff; font-size: 20px; letter-spacing: .04em; }
.tl-row { position: relative; height: 38px; margin-left: 44px; }
.tl-row.a { height: 26px; }
.tl-row b { position: absolute; left: -44px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 11px; color: var(--muted); }
.tl-row i { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: 4px; background: #24407F; }
.tl-row:first-of-type i, .tl-row:nth-of-type(2) i { background: #2A4A9E; }
.tl-row:nth-of-type(3) i { background: #1F46B0; }
.tl-row.a i { background: #173A4A; }
.tl-playhead { position: absolute; top: 48px; bottom: 16px; left: 68px; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: play 24s linear infinite; }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(min(1080px, 78vw)); } }

/* ---------- declaración / servicios ---------- */
.statement .lead-xl { max-width: 24ch; }
.svc-list { border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a, .svc-list li > div { display: grid; grid-template-columns: 1fr minmax(240px, 420px) 40px; gap: 24px; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; }
.svc-list.static li > div { grid-template-columns: 1fr minmax(240px, 440px); }
.svc-name { font-size: clamp(30px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
.svc-desc { font-size: 16px; }
.svc-arrow { font-size: 28px; color: var(--muted); transition: transform .3s var(--ease), color .2s; justify-self: end; }
.svc-list a:hover { color: var(--text); }
.svc-list a:hover .svc-name { color: var(--accent); }
.svc-list a:hover .svc-arrow { transform: translateX(6px); color: var(--accent); }

/* ---------- tarjetas de proyecto ---------- */
.card { display: flex; flex-direction: column; gap: 18px; }
.card:hover { color: var(--text); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--ink-3); overflow: hidden; isolation: isolate; }
/* Zoom suave al pasar el ratón: lento, con aceleración y frenado progresivos */
.card-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); filter: brightness(.9) saturate(.95); transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .9s ease; will-change: transform; backface-visibility: hidden; }
.card:hover .card-img, .card:focus-visible .card-img { transform: scale(1.06); filter: brightness(1.04) saturate(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(var(--ink-rgb),.55), rgba(var(--ink-rgb),0) 45%); opacity: 0; transition: opacity .7s ease; }
.card:hover .card-media::after, .card:focus-visible .card-media::after { opacity: 1; }
.card-cta { position: absolute; left: clamp(16px, 2vw, 24px); bottom: clamp(16px, 2vw, 24px); z-index: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .7s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.card:hover .card-cta, .card:focus-visible .card-cta { opacity: 1; transform: none; }
@media (hover: none) { .card-cta, .card-media::after { display: none; } }
.card-fallback { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: clamp(20px, 3vw, 36px); background: linear-gradient(var(--ink-3), var(--ink-3)) padding-box; border-bottom: 3px solid var(--band); transition: background .3s; }
.card-fallback .it { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; color: var(--faint); transition: color .6s ease; }
.card-fallback.small .it { font-size: 34px; }
.card:hover .card-fallback .it, .news:hover .card-fallback .it { color: var(--accent); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.card:hover .card-title { color: var(--accent); }
.card-meta .muted { font-size: 15px; text-align: right; }
.card.is-hidden { display: none; }

.news { display: flex; flex-direction: column; gap: 12px; }
.news:hover { color: var(--text); }
.news-media { aspect-ratio: 3 / 2; background: var(--ink-3); overflow: hidden; margin-bottom: 6px; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.news:hover .news-media img { transform: scale(1.06); }
.news-title { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.news:hover .news-title { color: var(--accent); }

/* ---------- cinta de producciones ---------- */
.marquee { background: var(--band); overflow: hidden; height: clamp(76px, 8.4vw, 120px); display: flex; align-items: center; }
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee { position: relative; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-btn { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--on-band-line-strong); background: var(--band); color: var(--on-band); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.marquee-btn:hover { background: var(--on-band); color: var(--band); }
.marquee-btn svg { width: 14px; height: 14px; }
.marquee-btn .i-play { display: none; }
.marquee.is-paused .marquee-btn .i-play { display: block; }
.marquee.is-paused .marquee-btn .i-pause { display: none; }
.marquee-group { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); white-space: nowrap; font-size: clamp(24px, 3vw, 44px); letter-spacing: -.03em; color: var(--on-band-mid); }
.marquee-group .it { color: var(--on-band); }
.marquee.has-img { height: clamp(96px, 10vw, 140px); }
.mq-img { display: flex; align-items: center; height: clamp(56px, 6.4vw, 92px); }
.mq-img img { height: 100%; width: auto; max-width: 260px; object-fit: contain; border-radius: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- listas ---------- */
.lines { border-top: 1px solid var(--line); margin-top: 18px; }
.lines li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 18px; }

/* ---------- banda de imagen (CopterClouds) ---------- */
.band-media { position: relative; min-height: clamp(420px, 44vw, 640px); display: flex; align-items: flex-end; background: var(--ink-2); overflow: hidden; }
.band-in { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(36px, 5vw, 64px); }
.band-in .eyebrow { color: var(--soft); margin-bottom: 16px; }

/* ---------- contacto (banda azul) ---------- */
.band-blue { background: var(--band); color: var(--on-band); }
.band-blue a:hover { color: var(--on-band); text-decoration: underline; text-underline-offset: 4px; }
.contact { padding-block: clamp(96px, 13vw, 180px) clamp(64px, 8vw, 120px); }
.contact h1, .contact h2 { max-width: 14ch; }
.contact-mail { display: inline-block; margin-top: 36px; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.03em; border-bottom: 2px solid var(--on-band); padding-bottom: 4px; }
.contact-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(40px, 7vw, 96px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.team { display: flex; flex-direction: column; }
.team-row { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-top: 1px solid var(--on-band-line); }
.team-row:last-of-type { border-bottom: 1px solid var(--on-band-line); margin-bottom: 24px; }
.team-row strong { font-size: 18px; font-weight: 500; }
.team-row .mono { font-size: 14px; margin-top: 6px; }
.addr { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.addr-map { align-self: flex-start; margin: 6px 0; font-weight: 500; border-bottom: 1px solid var(--on-band-line-strong); padding-bottom: 2px; }
.band-blue .addr-map:hover { text-decoration: none; border-bottom-color: var(--on-band); }

.form { display: flex; flex-direction: column; gap: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--on-band-soft); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--on-band-line-strong); background: transparent; color: var(--on-band); font: inherit; font-size: 19px; padding: 10px 0; border-radius: 0; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--on-band); box-shadow: 0 1px 0 var(--on-band); }
.form ::placeholder { color: var(--on-band-placeholder); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 13px; color: var(--on-band-soft); padding: 0 0 12px; }
.form .chip { flex-direction: row; font-size: 15px; color: var(--on-band); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--on-band-line-strong); border-radius: var(--radius); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--on-band); color: var(--band); border-color: var(--on-band); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--on-band); outline-offset: 3px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--on-band-soft); max-width: 420px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--on-band); flex-shrink: 0; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fff; color: #8A1C1C; padding: 14px 18px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- páginas interiores ---------- */
.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head.tall { min-height: 70vh; display: flex; align-items: center; }
.page-head .wrap { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.page-head .lead { max-width: 44ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: #fff; }
.crumbs-only { padding-top: 32px; padding-bottom: 8px; }
.contact-page .contact { padding-top: clamp(56px, 8vw, 110px); }
.head-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.head-aside { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; padding-bottom: 12px; }
/* Imágenes grandes: el hueco tiene su propia proporción y la foto lo rellena siempre
   (se recorta lo que sobra, nunca se deforma ni deja franjas) */
.wide-media { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; min-height: 220px; background: var(--ink-3); overflow: hidden; }
.wide-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.blocks.offset { margin-top: clamp(40px, 5vw, 64px); margin-left: calc(min(280px, 22%) + clamp(20px, 5vw, 80px)); }
.block { border-top: 1px solid #fff; padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.block h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.case { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
/* Misma proporción que las tarjetas de Trabajos (16:10) */
.case-media { position: relative; aspect-ratio: 16 / 10; align-self: start; background: var(--ink-3); overflow: hidden; }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.case-body { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; align-items: flex-start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 28px; max-width: 64ch; }
.related { margin-top: 24px; }
.rel { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 180px; transition: border-color .2s, background .2s; }
.rel:hover { border-color: var(--accent); background: var(--ink-2); color: var(--text); }
.rel-name { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; }
.gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.gear-item { border-top: 1px solid var(--line-2); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.gear-item h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.tag { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn { min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 15px; color: var(--soft); }
.chip-btn:hover { border-color: var(--accent); color: #fff; }
.chip-btn[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 56px; }
.facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 18px; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; color: var(--soft); }
.prose .lead { color: #fff; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; }
.prose h2 { font-size: 28px; font-weight: 500; letter-spacing: -.02em; margin-top: 1.6em; color: #fff; }
.prose ul { list-style: none; border-top: 1px solid var(--line); }
.prose ul li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery figure { position: relative; aspect-ratio: 3 / 2; background: var(--ink-3); overflow: hidden; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.next { display: flex; flex-direction: column; gap: 16px; padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next:hover { color: var(--accent); }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { align-self: flex-start; }
.footer-logo .logo-img { height: 96px; max-width: 260px; }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; font-size: 15px; }
.footer-cols ul { display: flex; flex-direction: column; gap: 12px; }
.footer-cols address { font-style: normal; line-height: 1.8; }
.footer-legal { font-size: 13px; margin-top: 64px; }

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1080px) {
  .svc-list a, .svc-list li > div { grid-template-columns: 1fr 40px; }
  .svc-list.static li > div { grid-template-columns: 1fr; }
  .svc-desc { grid-column: 1; grid-row: 2; }
  .svc-arrow { grid-row: 1 / span 2; grid-column: 2; }
  .svc-list a, .svc-list li > div { row-gap: 8px; }
  .gear { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blocks.offset { margin-left: 0; }
}

/* ==========================================================
   Menú móvil
   ========================================================== */
@media (max-width: 900px) {
  .header-in { height: 72px; }
  .logo-img { height: 56px; max-width: 170px; }
  .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; }
  /* El menú móvil es una capa propia a pantalla completa, debajo de la cabecera (que muestra la X) */
  .mnav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; z-index: 40; background: var(--ink); padding: 100px var(--pad) calc(32px + env(safe-area-inset-bottom)); flex-direction: column; justify-content: flex-start; gap: 36px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .menu-open .mnav { display: flex; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { position: fixed; left: 0; right: 0; top: 0; border-bottom-color: transparent; }
  .menu-open .site-header::before { display: block; background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mnav ul { display: flex; flex-direction: column; gap: 4px; font-size: clamp(34px, 9vw, 52px); letter-spacing: -.04em; }
  .mnav ul a { display: block; padding: 6px 0; }
  .mnav a[aria-current="page"] { color: var(--accent); }
  .mnav-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
  .mnav-phone { font-size: 16px; color: var(--soft); }
  .split, .head-split, .case, .contact-grid { grid-template-columns: 1fr; }
  .split > .eyebrow { padding-top: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-in { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-side { align-items: flex-start; }
  .timeline { width: calc(100% - 2 * var(--pad)); margin-top: -22vh; padding: 14px; }
  .tl-row { height: 24px; margin-left: 30px; } .tl-row.a { height: 16px; }
  .tl-row b { left: -30px; }
  .tl-head span:first-child { display: none; }
  .tl-playhead { display: none; }
  .band-in { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   Móvil
   ========================================================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 540px; }
  .hero::before { height: 160px; }
  .grid-2, .grid-3, .gear, .gallery, .form-grid { grid-template-columns: 1fr; }
  .grid-2 { gap: 40px; }
  .card-meta { flex-direction: column; gap: 4px; }
  .card-meta .muted { text-align: left; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .footer-top { flex-direction: column; }
  .rel { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.marquee-track):not(.card-img):not(.card-cta):not(.news-media img):not(.card-media):not(.card-fallback .it), *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card-media::after { transition-duration: .7s !important; }
  /* La cinta sigue moviéndose, pero más despacio (y se puede pausar) */
  .marquee-track { animation-duration: 180s; }
}
.marquee-btn[hidden] { display: none; }
.marquee::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: calc(var(--pad) + 110px); background: linear-gradient(to right, rgba(var(--band-rgb), 0), var(--band) 55%); pointer-events: none; }
.marquee-btn { z-index: 2; }

/* ==========================================================
   Paleta alternativa: naranja del logo (Ajustes › Colores)
   ========================================================== */
html[data-tema="naranja"] {
  --ink: #0D0B09; --ink-2: #1A1511; --ink-3: #231C16; --ink-rgb: 13, 11, 9;
  --line: #3A2F25; --line-2: #54453A;
  --soft: #E2D6C8; --muted: #BCAE9F; --faint: #7D6D5E;
  --band: #EBA14A; --band-rgb: 235, 161, 74;
  --on-band: #1A1206;           /* 8.6:1 sobre el naranja */
  --on-band-soft: #4A3212;      /* 5.5:1 */
  --on-band-mid: #5E4118;
  --on-band-line: rgba(26,18,6,.3);
  --on-band-line-strong: rgba(26,18,6,.55);
  --on-band-placeholder: rgba(74,50,18,.65);
  --accent: #F2B366;            /* 10.7:1 sobre el fondo */
  --accent-mid: #F7CD93;
}
html[data-tema="naranja"] .tl-row i { background: #5A4128; }
html[data-tema="naranja"] .tl-row:nth-of-type(3) i { background: #B8792F; }
html[data-tema="naranja"] .tl-row.a i { background: #3A3A24; }

/* ==========================================================
   Paleta «Grafito»: monocromo editorial + acento rojo REC
   ========================================================== */
html[data-tema="grafito"] {
  --ink: #0A0A0B; --ink-2: #141416; --ink-3: #1B1B1E; --ink-rgb: 10, 10, 11;
  --line: #26262A; --line-2: #3A3A40;
  --soft: #D9D8D4; --muted: #A6A6AD; --faint: #6E6E75;   /* gris 8.2:1 */
  --band: #F2F0EB; --band-rgb: 242, 240, 235;             /* blanco cálido */
  --on-band: #0A0A0B;           /* 17:1 */
  --on-band-soft: #48484E;      /* 8:1 */
  --on-band-mid: #6A6A70;       /* 4.7:1 */
  --on-band-line: rgba(10,10,11,.18);
  --on-band-line-strong: rgba(10,10,11,.42);
  --on-band-placeholder: rgba(72,72,78,.7);
  --accent: #FF5A3C;            /* rojo REC, 6.4:1 sobre el fondo */
  --accent-mid: #FF9A85;
}
html[data-tema="grafito"] .tl-row i { background: #2E2E33; }
html[data-tema="grafito"] .tl-row:nth-of-type(3) i { background: #4A4A52; }
html[data-tema="grafito"] .tl-row.a i { background: #232327; }
html[data-tema="grafito"] .tl-playhead { background: #FF5A3C; box-shadow: 0 0 12px #FF5A3C; }
