/* Incendib · web temporal. Solo tema claro. Tokens tomados de la app (src/lib/design/tokens.ts). */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #F4F2EC;
  --bg-sunken: #ECE9E1;
  --bg-card: #FFFFFF;
  --ink: #1C222A;
  --ink-2: #5C6470;
  --ink-3: #666D77;
  --line: rgba(28, 34, 42, 0.09);
  --line-strong: rgba(28, 34, 42, 0.16);
  --action: #C1272D;
  --action-hover: #A61F25;
  --action-ink: #A3242A;
  --action-soft: color-mix(in srgb, #C1272D 8%, #FFFFFF);
  --ok: #1F7245;
  --error: #C1272D;
  --pause: #B7791F;
  --brand: #E5484D;
  --bezel: #12171D;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(28, 34, 42, 0.05), 0 2px 8px rgba(28, 34, 42, 0.04);
  --shadow: 0 1px 2px rgba(28, 34, 42, 0.04), 0 8px 24px rgba(28, 34, 42, 0.07), 0 24px 48px rgba(28, 34, 42, 0.05);
  --shadow-l: 0 2px 4px rgba(28, 34, 42, 0.05), 0 24px 60px rgba(28, 34, 42, 0.16), 0 60px 120px rgba(28, 34, 42, 0.12);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--action-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.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; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--bg-card); color: var(--ink);
  padding: 10px 14px; border-radius: var(--radius-s); box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* ── Tipografía de sección ─────────────────────────────── */
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.kicker::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.kicker-num { color: var(--action-ink); }
.kicker-num::after { content: ' /'; color: var(--ink-3); }
.display { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.display-xl { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin-bottom: 20px; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.note { font-size: 0.9375rem; color: var(--ink-2); }

/* ── Botones ────────────────────────────────────────────── */
.button {
  --bg-btn: var(--action);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--bg-btn); color: #FFFFFF;
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px color-mix(in srgb, var(--action) 32%, transparent);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.2s;
}
.button:hover { background: var(--action-hover); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 28px color-mix(in srgb, var(--action) 38%, transparent); }
.button:active { transform: translateY(0); }
.button .icon { transition: transform 0.35s var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }
.button-ghost { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.button-ghost:hover { background: var(--bg-card); box-shadow: var(--shadow); }
.button-ghost:hover .icon { transform: translateY(3px); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; box-shadow: none; }
.button-small:hover { box-shadow: none; }
.button-large { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.button:disabled { opacity: 0.7; cursor: progress; transform: none; }

/* ── Cabecera ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.02em; }
.logo-mark { flex: none; border-radius: 9px; transition: transform 0.5s var(--ease-out); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.ib { color: var(--brand); }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px 5px 10px; white-space: nowrap;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pause); flex: none; }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--pause);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

.lang ul { display: flex; gap: 2px; padding: 3px; background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 999px; }
.lang a, .lang span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 38px; padding: 0 8px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem;
  border-radius: 999px; text-decoration: none;
}
.lang a { color: var(--ink-2); transition: color 0.2s; }
.lang a:hover { color: var(--ink); }
.lang span { color: var(--ink); background: var(--bg-card); box-shadow: var(--shadow-s); }

@media (max-width: 959px) { .main-nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 719px) { .site-header .status-chip { display: none; } }
@media (max-width: 400px) { .brand .wordmark { display: none; } .header-row { gap: 10px; } }

/* ── Fondo: brillos y contorno ──────────────────────────── */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; }
.glow-a { width: 46vmax; height: 46vmax; right: -12vmax; top: -16vmax; background: radial-gradient(circle, color-mix(in srgb, var(--action) 16%, transparent), transparent 65%); animation: drift 22s var(--ease-in-out) infinite alternate; }
.glow-b { width: 38vmax; height: 38vmax; left: -14vmax; bottom: -18vmax; background: radial-gradient(circle, rgba(196, 168, 120, 0.28), transparent 65%); animation: drift 26s var(--ease-in-out) infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4vmax, 3vmax, 0) scale(1.08); } }

.iberia { position: absolute; fill: none; }
.iberia-line { fill: none; stroke: var(--ink); stroke-opacity: 0.26; stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.iberia-land { fill: var(--ink); opacity: 0.075; }
.js .iberia-line { stroke-dashoffset: 1; animation: draw 3.6s var(--ease-in-out) 0.2s forwards; }
.js .iberia-land { opacity: 0; animation: fade-to 1.8s ease 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-to { to { opacity: 0.075; } }

/* ── Portada ────────────────────────────────────────────── */
.home .site-header { margin-bottom: calc(-1 * var(--header-h)); }
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 1000px);
  padding: calc(var(--header-h) + 32px) 0 96px;
  display: flex; align-items: center;
}
.hero .iberia { width: min(1100px, 120vw); right: -18vw; top: 50%; transform: translateY(-46%); -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,0.25) 5%, #000 45%); mask-image: linear-gradient(100deg, rgba(0,0,0,0.25) 5%, #000 45%); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; }
  .hero .iberia { right: -6vw; width: min(1000px, 75vw); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 24px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.hero-title { font-size: clamp(3rem, 1.5rem + 6.4vw, 6.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 28px; }
.hero-title .w { display: inline-block; }
.hero-lead { max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.emergency {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-weight: 600; font-size: 0.9375rem;
}
.emergency .icon { color: var(--error); flex: none; }

/* Entrada de la portada */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease-out) forwards; }
.js .hero-copy > .eyebrow { animation-delay: 0.1s; }
.js .hero-copy > .hero-title { opacity: 1; transform: none; animation: none; }
.js .hero-title .w { opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(8px); animation: rise-word 1s var(--ease-out) forwards; }
.js .hero-title .w:nth-child(1) { animation-delay: 0.25s; }
.js .hero-title .w:nth-child(2) { animation-delay: 0.36s; }
.js .hero-title .w:nth-child(3) { animation-delay: 0.47s; }
.js .hero-title .w:nth-child(4) { animation-delay: 0.58s; }
.js .hero-title .w:nth-child(5) { animation-delay: 0.69s; }
.js .hero-title .w:nth-child(6) { animation-delay: 0.8s; }
.js .hero-copy > .hero-lead { animation-delay: 0.75s; }
.js .hero-copy > .hero-actions { animation-delay: 0.9s; }
.js .hero-copy > .emergency { animation-delay: 1.05s; }
.js .hero-media { opacity: 0; transform: translateY(40px) scale(0.96); animation: rise 1.3s var(--ease-out) 0.45s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-word { to { opacity: 1; transform: none; filter: blur(0); } }

/* Teléfono con el reel */
.hero-media { display: flex; flex-direction: column; align-items: center; gap: 18px; perspective: 1400px; }
.phone {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  width: clamp(240px, 64vw, 340px);
  padding: 10px; border-radius: 48px;
  background: linear-gradient(145deg, #2A3038, var(--bezel) 40%, #0B0F13);
  box-shadow: var(--shadow-l), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  animation: float 7s var(--ease-in-out) infinite;
}
@media (min-width: 960px) { .phone { width: clamp(280px, 25vw, 350px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.phone::before {
  content: ''; position: absolute; z-index: 2; top: 20px; left: 50%; translate: -50% 0;
  width: 30%; height: 22px; border-radius: 999px; background: #05070A;
}
.phone-screen { position: relative; overflow: hidden; border-radius: 38px; background: #F3F1EB; aspect-ratio: 9 / 16; }
.phone-screen::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 35%); }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }

.phone-controls { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: flex; gap: 8px; }
.ctl {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer;
  color: var(--ink); background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(28, 34, 42, 0.18);
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.ctl:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.92); }
.ctl .icon { width: 18px; height: 18px; }
.ctl .i-play, .ctl .i-volume { display: none; }
.is-paused .ctl .i-pause { display: none; }
.is-paused .ctl .i-play { display: block; }
.has-sound .ctl .i-mute { display: none; }
.has-sound .ctl .i-volume { display: block; }

.live-caption {
  min-height: 3.2em; max-width: 340px; margin: 0; text-align: center;
  font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.live-caption.is-changing { opacity: 0; transform: translateY(6px); }

.transcript { width: 100%; max-width: 340px; font-size: 0.9375rem; }
.transcript summary {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  color: var(--action-ink); cursor: pointer; list-style: none; font-weight: 500;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: '+'; font-family: var(--font-mono); transition: transform 0.3s var(--ease-out); }
.transcript[open] summary::after { transform: rotate(45deg); }
.transcript ol { list-style: decimal; padding: 16px 16px 16px 36px; color: var(--ink-2); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.transcript li { margin-bottom: 6px; }

.scroll-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 24px; translate: -50% 0;
  display: none; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none;
}
.scroll-hint .icon { width: 18px; height: 18px; animation: nudge 2s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (min-width: 960px) and (min-height: 760px) { .scroll-hint { display: flex; } }

/* ── Secciones (estilo editorial: reglas finas, sin tarjetas) ── */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-sunken { background: var(--bg-sunken); }
.section-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 20px; max-width: 40em; }
.section-head.center { max-width: none; }
.section-head.center .display { max-width: 16em; }

/* Revelado al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js li[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.js li[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.js li[data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* Qué es */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } .split-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.features { margin: 36px 0; border-top: 2px solid var(--ink); }
.feature { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.feature p { margin: 4px 0 0; color: var(--ink-2); }
.marker { display: block; width: 14px; height: 14px; margin-top: 6px; border: 2px solid var(--ink); transition: border-color 0.3s; }
.marker-circle { border-radius: 50%; }
.marker-square { border-radius: 2px; }
.marker-triangle { width: 0; height: 0; border: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--ink); }
.feature:hover .marker { border-color: var(--action); }
.feature:hover .marker-triangle { border-color: transparent; border-bottom-color: var(--action); }
.signature { font-size: 1.0625rem; color: var(--ink); font-weight: 500; padding-left: 18px; border-left: 3px solid var(--action); }

/* Por qué: línea de tiempo */
.steps { position: relative; display: grid; }
.steps::before { content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 1px; background: var(--line-strong); }
.step { position: relative; display: grid; grid-template-columns: 24px auto minmax(0, 1fr); gap: 0 20px; padding: 18px 0 30px; }
.step-dot {
  position: relative; z-index: 1; margin-top: 7px; width: 23px; height: 23px; border-radius: 50%;
  background: var(--bg-sunken); border: 2px solid var(--ink-3);
  transition: background-color 0.6s var(--ease-out) 0.2s, border-color 0.6s var(--ease-out) 0.2s, box-shadow 0.6s var(--ease-out) 0.2s;
}
.step.is-in .step-dot { background: var(--ink); border-color: var(--ink); }
.step-pause.is-in .step-dot { background: var(--pause); border-color: var(--pause); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pause) 20%, transparent); }
.step-num { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; color: var(--action-ink); margin-top: 8px; }
.step h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 0; max-width: 36em; }

.meter { margin-top: 26px; max-width: 520px; }
.meter-labels { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.meter-limit-label { text-align: right; color: var(--action-ink); }
.meter-track { position: relative; height: 10px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10%); border-block: 1px solid var(--line-strong); }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 82%; background: var(--ink); }
.meter-limit { position: absolute; top: -10px; bottom: -10px; left: 82%; width: 0; border-left: 2px dashed var(--action); }
.js .meter-fill { width: 0; transition: width 2.2s var(--ease-in-out) 0.5s; }
.js .step.is-in .meter-fill { width: 82%; }
.js .step.is-in .meter-limit { animation: hit 0.9s var(--ease-out) 2.6s; }
@keyframes hit { 0% { transform: scaleY(1); } 30% { transform: scaleY(1.7); } 100% { transform: scaleY(1); } }

/* Compromiso: tres columnas con regla gruesa, sin tarjetas */
.promises { display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promise { padding: 28px 0 32px; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 760px) {
  .promise { padding: 32px 32px 8px; border-bottom: 0; border-left: 1px solid var(--line-strong); }
  .promise:first-child { padding-left: 0; border-left: 0; }
}
.promise-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.promise-num { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; color: var(--action-ink); }
.promise-icon { width: 28px; height: 28px; color: var(--ink); transition: transform 0.6s var(--ease-out); }
.promise:hover .promise-icon { transform: rotate(-10deg) scale(1.1); }
.promise h3 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin-bottom: 14px; }
.promise p { margin: 0; color: var(--ink-2); max-width: 22em; }

/* Síguenos: panel blanco con tarjetas (se conserva tal cual, a petición del propietario) */
.follow-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 6vw, 72px);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: clamp(24px, 3vw, 40px); box-shadow: var(--shadow);
}
.iberia-panel { z-index: -1; width: 640px; right: -140px; bottom: -120px; opacity: 0.75; }
.socials { display: grid; gap: 12px; }
@media (min-width: 760px) { .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.social {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 18px;
  background: color-mix(in srgb, var(--bg) 60%, #fff); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.social:hover { transform: translateY(-3px); background: var(--bg-card); border-color: var(--line-strong); box-shadow: var(--shadow); }
.social-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; transition: background-color 0.3s; }
.social:hover .social-icon { background: var(--action); }
.social-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.handle { font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.social-arrow { margin-left: auto; flex: none; color: var(--ink-3); transition: transform 0.4s var(--ease-out), color 0.3s; }
.social:hover .social-arrow { transform: translate(3px, -3px); color: var(--action-ink); }

/* Mientras tanto: fuentes como filas de una tabla */
.sources { border-top: 2px solid var(--ink); margin-bottom: 24px; }
.source {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none;
  transition: padding 0.45s var(--ease-out), background-color 0.3s;
}
.source-name { font-size: 1.1875rem; letter-spacing: -0.01em; }
.source-desc { grid-column: 1; color: var(--ink-2); }
.source-host { grid-column: 1; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); overflow-wrap: anywhere; }
.source-arrow { grid-column: 2; grid-row: 1; align-self: center; color: var(--action-ink); transition: transform 0.45s var(--ease-out); }
@media (min-width: 760px) {
  .source { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; }
  .source-desc, .source-host { grid-column: auto; }
  .source-arrow { grid-column: auto; grid-row: auto; }
}
.source:hover { background: var(--action-soft); padding-inline: 20px; }
.source:hover .source-arrow { transform: translate(3px, -3px); }

/* Llamada a contacto: banda roja a todo el ancho */
.cta-band { position: relative; overflow: hidden; background: var(--action); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%); mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.cta { position: relative; display: grid; gap: 28px; align-items: center; }
.cta .display { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem); letter-spacing: -0.04em; }
.cta .lead { margin: 16px 0 0; color: rgba(255, 255, 255, 0.88); }
@media (min-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.button-inverse { background: #fff; color: var(--action-ink); box-shadow: 0 10px 30px rgba(80, 10, 14, 0.35); }
.button-inverse:hover { background: #fff; box-shadow: 0 16px 40px rgba(80, 10, 14, 0.45); }
.cta-band :focus-visible { outline-color: #fff; }

/* ── Páginas interiores ─────────────────────────────────── */
.page-hero { position: relative; isolation: isolate; padding: clamp(48px, 8vw, 110px) 0 clamp(72px, 10vw, 130px); }
.page-hero .wrap { position: relative; z-index: 1; }
.iberia-page { width: 820px; right: -260px; top: -60px; opacity: 0.8; }
@media (min-width: 1200px) { .iberia-page { right: -80px; } }

.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.aside-card { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0; padding: 20px 0; border-block: 1px solid var(--line-strong); }
.aside-card p { margin: 0; }
.aside-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--action-ink); }
.aside-title { font-weight: 600; margin: 0 0 4px; }
.mini-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-social {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: 0.8125rem;
  transition: border-color 0.2s, transform 0.3s var(--ease-out);
}
.mini-social:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mini-social .icon { width: 18px; height: 18px; color: var(--action-ink); }

.form-card { padding: clamp(24px, 4vw, 44px); background: var(--bg-card); border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); border-radius: 4px; }
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
input[type='text'], input[type='email'], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 45%, #fff);
  border: 1px solid var(--line-strong); border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--action); box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 16%, transparent); }
textarea { resize: vertical; min-height: 170px; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--action); }
.check label { font-weight: 400; font-size: 0.9375rem; color: var(--ink-2); }
.contact-form .button { justify-self: start; }
.contact-form .note { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notices:has(.notice:target), .notices:has(.is-visible) { margin-bottom: 24px; }
.notice { display: none; margin: 0; padding: 14px 18px; border-radius: 12px; font-weight: 600; border: 1px solid; }
.notice-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, #fff); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice-error { color: var(--error); background: color-mix(in srgb, var(--error) 6%, #fff); border-color: color-mix(in srgb, var(--error) 28%, transparent); }
.notice:target, .notice.is-visible { display: block; animation: rise 0.5s var(--ease-out) both; }

.prose-card { margin-top: 32px; padding: clamp(24px, 4vw, 44px); background: var(--bg-card); border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); border-radius: 4px; }
.prose-card h2 { font-size: 1.375rem; margin: 0 0 14px; }
.prose-card h2:not(:first-child) { margin-top: 32px; }
.prose-card p { color: var(--ink-2); }

.page-404 { min-height: 60vh; display: flex; align-items: center; }

/* ── Pie ────────────────────────────────────────────────── */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--bg); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1.3fr auto; gap: 48px; } }
.brand-footer { font-size: 1.25rem; }
.footer-author { margin: 12px 0 0; color: var(--ink-2); }
.footer-emergency { display: flex; gap: 12px; padding: 14px 0; border-block: 1px solid var(--line-strong); }
.footer-emergency p { margin: 0; }
.footer-emergency .icon { color: var(--error); flex: none; margin-top: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--ink-2); display: inline-flex; min-height: 44px; align-items: center; }
.footer-links a:hover { color: var(--ink); }
.footer-geo { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }

/* ── Movimiento reducido ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-copy > *, .js .hero-title .w, .js .hero-media, .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .iberia-line { stroke-dashoffset: 0; }
  .js .iberia-land { fill: var(--ink); opacity: 0.075; }
  .js .meter-fill { width: 82%; }
  .social:hover, .source:hover { padding-inline: 4px; }
  .phone { transform: none !important; }
}
