/* =========================================================
   ESFER · Hoja de estilos (borrador v0.3)
   Dirección visual: claro y limpio, con azul acero metálico
   como único color de marca.
   ========================================================= */

@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0f1d2e;
  --text: #3a4a5e;
  --muted: #6b7a8e;
  --paper: #f6f8fb;
  --paper-2: #edf1f6;
  --white: #ffffff;
  --line: rgba(15, 29, 46, .1);
  --line-2: rgba(15, 29, 46, .18);

  --steel: #2c5a87;
  --steel-dark: #1b3a5c;
  --steel-deep: #12263d;
  --steel-light: #9db8d3;
  --steel-pale: #e3ebf4;
  --metal: linear-gradient(120deg, #1b3a5c 0%, #33628f 30%, #9fbbd6 48%, #e6eef6 52%, #9fbbd6 56%, #33628f 72%, #1b3a5c 100%);
  --metal-flat: linear-gradient(135deg, #22476e 0%, #3a6b99 50%, #22476e 100%);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 78px;
  --shadow: 0 1px 2px rgba(15,29,46,.06), 0 12px 32px -12px rgba(15,29,46,.18);
  --shadow-lg: 0 2px 4px rgba(15,29,46,.05), 0 30px 60px -24px rgba(15,29,46,.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--f-sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--steel); color: #fff; }
.mono { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-alt { background: var(--white); }
.section-tint { background: var(--paper-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.eyebrow { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--metal-flat); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.025em; margin-bottom: 20px; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.18rem); color: var(--text); max-width: 60ch; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.metal-text { background: var(--metal); background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s var(--ease) infinite; }
@keyframes sheen { 0%, 20% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, color .3s, border-color .3s; }
.btn-metal { color: #fff; background: var(--metal-flat); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px -8px rgba(27,58,92,.6); }
.btn-metal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-metal:hover::after { transform: translateX(120%); }
.btn-metal:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 28px -10px rgba(27,58,92,.7); }
.btn-line { color: var(--ink); background: var(--white); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--steel); color: var(--steel); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--steel-pale); }
.btn-lg { padding: 17px 28px; font-size: 1rem; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--steel); padding-bottom: 4px; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--steel-deep); color: rgba(255,255,255,.7); font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-right { display: flex; gap: 22px; }
.topbar a:hover { color: #fff; }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15,29,46,.35); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 4px 8px rgba(27,58,92,.25)); transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: translateY(-2px); }
.footer-logo { margin-bottom: 18px; }
.footer-logo .logo-text { margin-bottom: 0; }
.logo-text { font-weight: 900; font-stretch: 115%; font-size: 1.35rem; letter-spacing: .04em; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; font-size: .95rem; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius); color: var(--ink); font-weight: 500; background: none; border: 0; cursor: pointer; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--metal-flat); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--steel); }
.caret { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.has-sub:hover .caret, .has-sub.is-open .caret { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 6px; color: var(--ink); font-weight: 600; transition: background .2s; }
.sub a small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.sub a:hover, .sub a.is-current { background: var(--steel-pale); }
.sub a.is-current { color: var(--steel); }
.nav-cta { margin-left: 10px; padding: 11px 18px; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero portada ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(800px 500px at 90% 0%, rgba(157,184,211,.38), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(44,90,135,.08), transparent 60%), var(--paper); padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 9vw, 110px); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; position: relative; }
.kicker { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 24px; }
.kicker-line { width: 44px; height: 2px; background: var(--metal-flat); }
.hero-title { font-size: clamp(2.8rem, 6.2vw, 5.7rem); font-weight: 900; font-stretch: 80%; letter-spacing: -.035em; line-height: .92; margin-bottom: 26px; }
.hero-title .line { display: block; padding-bottom: .04em; }
.hero-sub { font-size: clamp(1.05rem, 1.45vw, 1.22rem); max-width: 52ch; margin-bottom: 34px; }
.hero-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; max-width: 640px; }
.path-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 52px 20px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.path-card strong { font-weight: 700; color: var(--ink); line-height: 1.3; }
.path-tag { color: var(--steel); }
.path-arrow { position: absolute; right: 18px; bottom: 18px; font-size: 1.2rem; color: var(--steel); transition: transform .3s var(--ease); }
.path-card:hover { border-color: var(--steel-light); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.path-card:hover .path-arrow { transform: translateX(5px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; }
.facade { position: relative; aspect-ratio: 4 / 5; width: 100%; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.facade-layer, .ba-img { position: absolute; inset: 0; }
.facade-layer svg, .ba-img svg { width: 100%; height: 100%; }
.facade-new { clip-path: inset(0 0 100% 0); animation: paintDown 5.5s var(--ease) .8s forwards; }
@keyframes paintDown { to { clip-path: inset(0 0 0 0); } }
.rig { position: absolute; inset: 0; pointer-events: none; }
.rope { position: absolute; top: 0; width: 1px; height: 0; background: rgba(15,29,46,.6); animation: rope 5.5s var(--ease) .8s forwards; }
.rope-l { left: 30%; } .rope-r { left: 70%; }
@keyframes rope { to { height: 100%; } }
.cradle { position: absolute; left: 26%; width: 48%; height: 14px; top: 0; background: var(--metal-flat); border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.3); transform: translateY(-100%); animation: cradle 5.5s var(--ease) .8s forwards; }
.cradle::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; border: 2px solid var(--steel); border-bottom: 0; }
.roller { position: absolute; left: 10%; right: 10%; top: 100%; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 6px, #c9d6ea 6px 8px); }
@keyframes cradle { to { top: 100%; } }
.hero-badge { position: absolute; left: -18px; bottom: 28px; background: var(--white); padding: 12px 16px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-lg); font-size: .64rem; color: var(--ink); }
.hero-badge span:first-child { color: var(--steel); }

/* ---------- Cabecera de página interior ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(46px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: radial-gradient(700px 400px at 100% 0%, rgba(157,184,211,.38), transparent 60%), var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .hero-grid-bg { mask-image: radial-gradient(ellipse at 85% 20%, #000 10%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 85% 20%, #000 10%, transparent 60%); }
.page-hero-in { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--steel); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 900; font-stretch: 82%; letter-spacing: -.03em; margin-bottom: 18px; max-width: 20ch; }

/* ---------- Cinta ---------- */
.marquee { background: var(--metal-flat); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-weight: 800; font-stretch: 80%; font-size: clamp(1.2rem, 2.2vw, 1.8rem); text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; opacity: .5; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas de servicio ---------- */
.feature-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: 20px; }
.feature { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature .ph { border-radius: 0; aspect-ratio: 16 / 11; transition: transform .8s var(--ease); }
.feature:hover .ph { transform: scale(1.04); }
.feature-media { overflow: hidden; position: relative; }
.feature-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 10px; border-radius: 4px; background: var(--metal-flat); color: #fff; }
.feature-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.feature-body h3 { font-size: 1.55rem; font-weight: 800; font-stretch: 88%; margin-bottom: 10px; }
.feature-body p { font-size: .97rem; }
.feature-list { margin: 18px 0 6px; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; color: var(--ink); font-size: .95rem; }
.feature-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--steel); flex: none; transform: translateY(-1px); }
.feature-go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--steel); }
.feature-go span { transition: transform .3s var(--ease); }
.feature:hover .feature-go span { transform: translateX(6px); }
.feature-main { border-top: 3px solid var(--steel); }

/* ---------- Dos columnas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.split-rev > :first-child { order: 2; }
.split-media { position: relative; }
.split-index { position: absolute; top: -28px; right: -6px; font-family: var(--f-mono); font-size: clamp(4.5rem, 10vw, 8rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--steel-light); pointer-events: none; }
.checks { margin-top: 26px; display: grid; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.checks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--steel-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232c5a87' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.note { margin-top: 24px; padding: 14px 18px; font-size: .88rem; border-left: 3px solid var(--steel); background: var(--steel-pale); color: #34445e; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Marcadores de foto ---------- */
.ph { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(44,90,135,.06) 14px 15px), linear-gradient(160deg, #e6edf5, #cfdbe8); }
.ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; right: 14px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(15,29,46,.55); }
.ph::before { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 38px; transform: translate(-50%, -60%); border: 1.5px solid rgba(44,90,135,.4); border-radius: 4px; background: radial-gradient(circle at 50% 55%, transparent 7px, rgba(44,90,135,.4) 7.5px 9px, transparent 9.5px); }
.ph-tall { aspect-ratio: 4 / 5; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img::before, .ph.has-img::after { display: none; }
.ph-note { margin-top: 12px; color: var(--muted); }

/* ---------- Antes / después ---------- */
.ba { position: relative; aspect-ratio: 16 / 8; border-radius: 10px; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; --pos: 50%; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-label { position: absolute; top: 16px; padding: 7px 12px; background: rgba(15,29,46,.75); color: #fff; border-radius: 4px; }
.ba-label-l { left: 16px; } .ba-label-r { right: 16px; background: var(--steel); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); outline: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); color: var(--steel); display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.ba:hover .ba-knob, .ba-handle:focus-visible .ba-knob { transform: translate(-50%, -50%) scale(1.1); }

/* ---------- Galería de proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter { padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .25s var(--ease); display: inline-flex; gap: 8px; align-items: center; }
.filter .count { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.filter:hover { border-color: var(--steel); }
.filter.is-active { background: var(--metal-flat); color: #fff; border-color: transparent; }
.filter.is-active .count { color: rgba(255,255,255,.75); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s; text-align: left; padding: 0; color: inherit; font: inherit; }
.gcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gcard .ph { border-radius: 0; transition: transform .8s var(--ease); }
.gcard:hover .ph { transform: scale(1.04); }
.gcard-media { overflow: hidden; position: relative; }
.gcard-count { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(15,29,46,.75); color: #fff; padding: 5px 9px; border-radius: 4px; }
.gcard-body { padding: 18px 20px 20px; }
.gcard-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--steel); margin-bottom: 8px; }
.gcard-meta span:last-child { color: var(--muted); }
.gcard h3 { font-size: 1.15rem; font-weight: 700; }
.gcard.is-hidden { display: none; }
.gcard.is-entering { animation: pop .45s var(--ease); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(9,17,28,.92); display: none; align-items: center; justify-content: center; padding: 70px 20px; }
.lightbox.is-open { display: flex; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb-stage { width: min(1000px, 100%); }
.lb-stage .ph { aspect-ratio: 3 / 2; border-radius: 8px; }
.lb-stage .ph img { object-fit: contain; background: #000; }
.lb-cap { color: #fff; margin-top: 16px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lb-cap h3 { color: #fff; }
.lb-cap .mono { color: var(--steel-light); }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--steel) var(--prog, 0%), var(--line-2) var(--prog, 0%)); }
.step { position: relative; }
.step-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--steel); color: var(--steel); font-weight: 800; font-size: 1.2rem; position: relative; margin-bottom: 24px; transition: background .4s, color .4s; }
.step.is-in .step-n { background: var(--metal-flat); color: #fff; border-color: transparent; }
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .96rem; }

/* ---------- Cifras ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.fact { padding: 24px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.fact-n { font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 900; font-stretch: 80%; line-height: 1; }
.fact-l { font-size: .9rem; max-width: 20ch; }

/* ---------- Tarjetas simples ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--metal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover::before { transform: scaleX(1); }
.card-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--steel-pale); color: var(--steel); display: grid; place-items: center; margin-bottom: 18px; font-family: var(--f-mono); font-weight: 500; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .96rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 860px; }
.faq-group { margin-bottom: 44px; }
.faq-group > h2 { font-size: .9rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--steel-light); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 700; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--steel-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%232c5a87' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 22px; }
.faq-a p + p { margin-top: 10px; }

/* ---------- Llamada a la acción ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 14px; padding: clamp(36px, 6vw, 70px); background: var(--steel-deep); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--metal); opacity: .25; background-size: 200% 100%; animation: sheen 8s var(--ease) infinite; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.02em; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 12px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band .btn-line { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-line:hover { background: #fff; color: var(--ink); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--steel-light); }
.contact-card .mono { color: var(--steel); }
.contact-card strong { font-size: 1.15rem; color: var(--ink); }
.contact-card small { color: var(--muted); }

/* ---------- Formularios ---------- */
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--white); padding: clamp(22px, 4vw, 40px); border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.field { position: relative; }
.field-full { grid-column: 1 / -1; }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .field textarea, .field select { width: 100%; padding: 24px 16px 10px; font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); outline: none; resize: vertical; transition: border-color .25s, box-shadow .25s, background .25s; }
.field select { padding: 17px 44px 17px 16px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232c5a87' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--steel); background-color: var(--white); box-shadow: 0 0 0 3px rgba(44,90,135,.15); }
.field > label.float { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: transform .25s var(--ease), font-size .25s, color .25s; transform-origin: left top; }
.field input:focus + label.float, .field input:not(:placeholder-shown) + label.float, .field textarea:focus + label.float, .field textarea:not(:placeholder-shown) + label.float { transform: translateY(-10px); font-size: .72rem; color: var(--steel); }
.field.is-error input, .field.is-error select { border-color: #d14b4b; }
.field-title { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 100px; font-size: .9rem; cursor: pointer; color: var(--ink); background: var(--white); transition: all .25s var(--ease); }
.chip span:hover { border-color: var(--steel); }
.chip input:checked + span { background: var(--metal-flat); border-color: transparent; color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(44,90,135,.3); }
.chips.is-error .chip span { border-color: #d14b4b; }
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; cursor: pointer; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--paper); transition: border-color .25s, background .25s; }
.drop input { position: absolute; inset: 0; width: 100%; opacity: 0; pointer-events: none; }
.drop.is-over, .drop:hover { border-color: var(--steel); background: var(--steel-pale); }
.drop.is-error { border-color: #d14b4b; }
.drop-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--metal-flat); color: #fff; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.drop strong { color: var(--ink); }
.drop small { color: var(--muted); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius); animation: pop .35s var(--ease); }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; background: var(--steel-pale); color: var(--steel-dark); font-size: .88rem; font-weight: 600; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.legal-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.legal-check input { margin-top: 4px; accent-color: var(--steel); }
.legal-check a, .rgpd a { text-decoration: underline; color: var(--steel); }
.rgpd { font-size: .78rem; line-height: 1.5; color: var(--muted); }
.form-msg { font-size: .92rem; min-height: 1.4em; color: var(--steel); font-weight: 600; }
.form-msg:empty { display: none; }
.side-list { margin-top: 28px; display: grid; gap: 14px; }
.side-list li { display: flex; gap: 14px; align-items: flex-start; }
.side-list li span { font-family: var(--f-mono); color: var(--steel); font-size: .8rem; padding-top: 3px; }

/* ---------- Pie ---------- */
.footer { background: var(--steel-deep); color: rgba(255,255,255,.72); padding: 76px 0 28px; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--metal); }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .logo-text { color: #fff; font-size: 2rem; margin-bottom: 18px; }
.footer .logo-text small { color: rgba(255,255,255,.5); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--steel-light); margin-bottom: 8px; font-weight: 500; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .82rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: scale(0); transition: transform .4s var(--ease); }
.wa-float.is-visible { transform: scale(1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Pastilla de borrador ---------- */
.draft-pill { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 8px 8px 14px; border-radius: 100px; font: 500 .74rem var(--f-mono); letter-spacing: .05em; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.draft-dot { width: 8px; height: 8px; border-radius: 50%; background: #f0a33a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.draft-pill button { font: inherit; border: 0; background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 100px; cursor: pointer; }
body.show-pending .pending { outline: 2px dashed #e08a1e; outline-offset: 3px; position: relative; }
body.show-pending .pending::before { content: "Pendiente: " attr(data-pending); position: absolute; z-index: 5; top: -12px; left: 0; transform: translateY(-100%); background: #e08a1e; color: #fff; padding: 2px 8px; border-radius: 2px; font: 500 .62rem var(--f-mono); letter-spacing: .04em; white-space: nowrap; text-transform: none; }
body.show-pending .draft { background: rgba(240,163,58,.18); box-shadow: 0 0 0 4px rgba(240,163,58,.18); }

/* ---------- Páginas legales ---------- */
.legal-main { padding: clamp(50px, 8vw, 90px) 0 clamp(80px, 10vw, 120px); }
.legal-in { display: grid; grid-template-columns: 220px 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 30px); display: flex; flex-direction: column; gap: 4px; }
.legal-nav .mono { color: var(--muted); margin-bottom: 10px; }
.legal-nav a { padding: 10px 14px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a.is-current { border-color: var(--steel); color: var(--ink); font-weight: 700; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.3rem; font-weight: 800; margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-body p { margin-bottom: 14px; }
.legal-body a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.legal-warn { margin: 0 0 10px; padding: 14px 18px; border-left: 3px solid var(--steel); background: var(--steel-pale); font-size: .92rem; }
.data-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.data-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.data-list li:last-child { border-bottom: 0; }
.data-list li > span:first-child { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.dot-list { margin: 0 0 14px; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 20px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }
.table-wrap { overflow-x: auto; margin: 6px 0 16px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
.legal-body th, .legal-body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.legal-body th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.legal-date { margin-top: 40px; font-size: .88rem; color: var(--muted); }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-title.reveal { opacity: 1; transform: none; }
.hero-title .line { opacity: 0; transform: translateY(50%); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero-title.is-in .line { opacity: 1; transform: none; }
.hero-title.is-in .line:nth-child(2) { transition-delay: .12s; }


/* ---------- Especialidad destacada ---------- */
.feature-grid-lead { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
.feature-lead { grid-row: span 2; }
.feature-lead .ph { aspect-ratio: 4 / 3; }
.feature-lead .feature-body { padding: 32px 32px 34px; }
.feature-lead .feature-body h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.feature-lead .feature-body p { font-size: 1.05rem; }
.feature-list-2 { grid-template-columns: 1fr 1fr; }
.feature-grid-lead .feature:not(.feature-lead) .ph { aspect-ratio: 16 / 8; }

/* ---------- WhatsApp ---------- */
.btn-wa { color: #fff; background: #25d366; box-shadow: 0 8px 20px -8px rgba(37,211,102,.7); }
.btn-wa:hover { background: #1ebe5b; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: -6px; }
.contact-card-wa { border-color: rgba(37,211,102,.45); background: linear-gradient(180deg, rgba(37,211,102,.07), var(--white) 60%); }
.contact-card-wa .mono { color: #128c4a; }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .nav-link { padding: 10px 10px; }
  .nav-link::after { left: 10px; right: 10px; }
  .nav-cta { margin-left: 6px; }
}
@media (max-width: 1040px) {
  :root { --header-h: 68px; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .burger { display: block; z-index: 2; }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 10px var(--gutter) 40px; overflow-y: auto; font-size: 1.15rem; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-weight: 700; }
  .nav-link::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; display: none; background: none; }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover .caret { transform: none; }
  .has-sub.is-open .caret { transform: rotate(180deg); }
  .nav-cta { margin: 24px 0 0; padding: 16px; }
  .hero-in, .split, .form-wrap, .cta-band { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .hero-visual { max-width: 460px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .feature:last-child { grid-column: 1 / -1; }
  .feature-grid-lead .feature-lead { grid-column: 1 / -1; grid-row: auto; }
  .feature-grid-lead .feature:last-child { grid-column: auto; }
  .gallery, .cards, .contact-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process::before { display: none; }
  .cta-actions { justify-content: flex-start; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-in { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-nav .mono { width: 100%; }
  .legal-nav a { border-left: 0; border-bottom: 2px solid var(--line); padding: 8px 4px; margin-right: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .hero-paths, .feature-grid, .gallery, .cards, .contact-grid, .form, .facts { grid-template-columns: 1fr; }
  .feature-grid .feature:last-child { grid-column: auto; }
  .hero-ctas, .cta-actions { flex-direction: column; }
  .form-actions, .feature-list-2 { grid-template-columns: 1fr; }
  .hero-ctas .btn, .cta-actions .btn { width: 100%; }
  .hero-badge { left: 10px; }
  .process { grid-template-columns: 1fr; }
  .fact { flex-direction: row; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .ba { aspect-ratio: 4 / 5; }
  .footer-in { grid-template-columns: 1fr; }
  .data-list li { grid-template-columns: 1fr; gap: 4px; }
  .draft-pill { padding: 6px; }
  .draft-label { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .split-index { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .facade-new { clip-path: none; }
}

/* ---------- Antes y después con fotos reales ---------- */
.ba-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.ba-fig { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow-lg); }
.ba-fig .ph { aspect-ratio: 4 / 3; border-radius: 0; }
.ba-fig img { transition: transform 1.2s var(--ease); }
.ba-fig:hover img { transform: scale(1.05); }
.ba-tag { position: absolute; top: 14px; left: 14px; padding: 7px 12px; border-radius: 4px; background: rgba(15,29,46,.78); color: #fff; }
.ba-tag-after { background: var(--metal-flat); }
.ba-arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--metal-flat); color: #fff; font-size: 1.3rem; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .ba-pair { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- Aviso de cookies ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; justify-content: center; pointer-events: none; }
.cookie-bar[hidden] { display: none; }
.cookie-in { pointer-events: auto; width: min(980px, 100%); display: flex; align-items: center; gap: 24px; padding: 20px 24px; background: var(--steel-deep); color: rgba(255,255,255,.8); border-radius: 12px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); animation: cookieIn .5s var(--ease); }
@keyframes cookieIn { from { transform: translateY(30px); opacity: 0; } }
.cookie-text { flex: 1; }
.cookie-text strong { color: #fff; display: block; margin-bottom: 4px; }
.cookie-text p { font-size: .9rem; line-height: 1.5; }
.cookie-text a { color: var(--steel-light); text-decoration: underline; }
.cookie-in .btn { flex: none; }
@media (max-width: 640px) {
  .cookie-in { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cookie-bar { bottom: 12px; left: 12px; right: 12px; }
}
.legal-body .data-list { margin-bottom: 18px; }
.cookie-reset-msg { margin-left: 12px; font-size: .9rem; color: var(--steel); font-weight: 600; }
.legal-body td:first-child { white-space: nowrap; font-family: var(--f-mono); font-size: .82rem; }
