/* RÜM Showroom — vista pública editorial. Misma voz que el index (assets/home/home.css):
   navy de RÜM Experience, Syne en titulares, Inter en todo lo demás, Baloo 2 solo en la marca. */

/* Fuentes propias (variables, las mismas del index): un archivo por familia, sin Google Fonts. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/home/fonts/baloo2-var.woff2) format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/home/fonts/syne-var.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/home/fonts/inter-var.woff2) format("woff2"); }

:root {
  --terracotta: #B8784C;
  --peach: #F3D2B2;
  --peach-hi: #F7DFC6;
  --charcoal: #1C1F26;
  --navy: #07091A;
  --navy-2: #0C1024;
  --card: #11152A;
  --ink: #F4F1EC;
  --em: var(--peach);

  --f-logo: "Baloo 2", system-ui, sans-serif;
  --f-display: "Syne", "Inter", system-ui, sans-serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 88px);
  --rule: 1px solid rgba(244, 241, 236, .18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.sr-ed {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.sr-ed.sr-cap-lock { overflow: hidden; }

.sr-ed a { color: inherit; }
.sr-ed em { font-style: normal; }
.sr-ed h1, .sr-ed h2, .sr-ed h3, .sr-ed p, .sr-ed ol, .sr-ed ul, .sr-ed dl, .sr-ed dd, .sr-ed figure { margin: 0; }
.sr-ed ol, .sr-ed ul { padding: 0; list-style: none; }
.sr-ed button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.sr-ed :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 60;
  background: var(--peach); color: var(--charcoal); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.mono {
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- masthead ---------- */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  background: linear-gradient(var(--navy) 55%, rgba(7, 9, 26, 0));
  transition: transform .5s var(--ease-out);
}
.masthead.is-hidden { transform: translateY(-110%); }
.logo {
  font-family: var(--f-logo); font-weight: 800; font-size: 30px; line-height: 1;
  letter-spacing: -.01em; text-decoration: none; padding-top: 4px;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); margin-left: auto; }
.nav a {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-n { opacity: .5; margin-right: 6px; }
.nav-showroom { color: var(--em); }
.nav-contact { border: 1px solid currentColor; padding: 6px 12px !important; border-radius: 999px; }
.nav-contact::after { display: none; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; }
.lang-switch a { text-decoration: none; opacity: .5; }
.lang-switch a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-switch span { opacity: .4; }
.folio { font-size: 12px; letter-spacing: .08em; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.folio-sep { opacity: .4; margin: 0 4px; }

/* ---------- shared editorial pieces ---------- */
main { position: relative; z-index: 1; }
.spread { position: relative; padding: 0 var(--gutter); }
.chapter-no { opacity: .75; }
.kicker { font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* titulares grandes: las palabras suben una a una desde su renglón (el bloque no se funde) */
.reveal.ed-rise { opacity: 1; transform: none; }
.ed-rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.ed-rise .w > span {
  display: inline-block; transform: translateY(108%) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i) * 55ms);
}
.ed-rise.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .ed-rise .w > span { transform: none; transition: none; } }

.ed-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.sr-ed .btn-pill, .sr-ed .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.sr-ed .btn-pill { background: var(--peach); color: var(--charcoal); }
.sr-ed .btn-pill:hover { transform: translateY(-2px); background: var(--peach-hi); }
.sr-ed .btn-ghost { border: 1px solid currentColor; }
.sr-ed .btn-ghost:hover { background: var(--ink); color: var(--navy); }

/* ---------- 01 portada: el mensaje a lo grande sobre los clips; RÜM chico como firma ---------- */
.ed-hero {
  min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; align-items: start;
  padding-top: 92px; padding-bottom: clamp(24px, 5vh, 56px);
}
/* fondo: capa fija con los clips de las demos; se apaga con el scroll (showroom_editorial.js) */
.ed-hero-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--navy); }
.ed-hero-bg.is-off { visibility: hidden; }
/* sin zoom lento sobre el video: reescalar un video a escala fraccionaria cambiante hace "nadar" las texturas
 * finas (travertino, cuerda) y se percibe como temblor; el movimiento lo pone la cámara del clip */
.ed-hero-bg-clip {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03); transition: opacity 1.8s ease;
}
.ed-hero-bg-clip.is-on { opacity: 1; }
.ed-hero-bg-dim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 26, .72) 0%, rgba(7, 9, 26, .3) 55%, rgba(7, 9, 26, .35) 100%),
    linear-gradient(180deg, rgba(7, 9, 26, .55) 0%, rgba(7, 9, 26, .12) 38%, rgba(7, 9, 26, .5) 72%, rgba(7, 9, 26, .92) 100%);
}
.ed-word {
  /* fija: acompaña todo el scroll (poses en showroom_editorial.js) */
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 0;
}
.ed-word-fallback {
  display: none;
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  place-content: center; text-align: center;
  font-family: var(--f-logo); font-weight: 800; line-height: 1;
  font-size: min(34vw, 58vh);
  background: linear-gradient(160deg, #F6DCC0, #E9B58D 55%, var(--terracotta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ed-hero > *:not(.ed-word):not(.ed-word-fallback) { position: relative; z-index: 1; }
.ed-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.ed-hero-meta { display: grid; gap: 2px; }
.ed-hero-side { text-align: right; display: grid; justify-items: end; gap: 12px; }
.ed-hero-side .kicker { max-width: 22ch; }
.ed-client-pill { border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; color: var(--em); }
/* el mensaje: más grande que la marca, sobre los clips */
.ed-hero-title {
  align-self: center; margin: 6vh 0 5vh;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 6.3vw, 140px); line-height: .96; letter-spacing: -.03em;
  text-shadow: 0 2px 40px rgba(7, 9, 26, .45);
  text-wrap: balance;
}
/* entra exactamente como "Imaginar es solo el principio": el bloque .reveal (fundido + subida suave) */
.ed-hero-title .line { display: block; }
.ed-hero-title em { color: var(--em); }
/* pie: RÜM (chico, ventana) a la izquierda; la oferta y los botones a la derecha */
.ed-hero-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 24px 48px; }
.ed-hero-mark { width: clamp(150px, 15vw, 290px); aspect-ratio: 2.25 / 1; }
.ed-hero-offer { justify-self: end; display: grid; gap: 18px; max-width: 46ch; }
.ed-hero-lede { font-size: 16px; }
.ed-hero-lede strong { font-weight: 600; color: var(--em); }
.scroll-cue { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; opacity: .6; font-size: 11px; }
.scroll-cue b { font-weight: 500; }
.scroll-cue span { display: block; width: 48px; height: 1px; background: currentColor; transform-origin: left; animation: cue 2.6s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

.ed-share { padding: 0 var(--gutter); position: relative; z-index: 1; }
.ed-share .share-banner {
  border-top: var(--rule); border-bottom: var(--rule); padding: 14px 0;
  font-size: 13px; letter-spacing: .02em; opacity: .85;
}
.ed-share .share-banner strong { color: var(--em); font-weight: 600; }

/* ---------- 02 la frase ---------- */
.ed-statement { padding-top: 22vh; padding-bottom: 14vh; }
.ed-statement-title {
  margin-top: 28px;
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.035em; line-height: .92;
  font-size: clamp(48px, 8.4vw, 168px);
}
.ed-statement-title .line { display: block; }
.ed-statement-title em { color: var(--em); }
.ed-lane-title, .ed-build-title, .ed-contact-title {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.025em; line-height: .95;
}
.ed-lane-title em, .ed-build-title em, .ed-contact-title em { color: var(--em); }

/* ---------- capítulos por línea ---------- */
.ed-lane { padding-top: 14vh; padding-bottom: 8vh; }
.ed-lane-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 48px;
  border-top: var(--rule); padding-top: 22px;
}
.ed-lane-head .chapter-no { grid-column: 1 / -1; }
.ed-lane-title { font-size: clamp(44px, 5.6vw, 100px); }
.ed-lane-count { opacity: .6; }

/* Estaciones: demo chica + nota sobre lo que nuestro trabajo le da a tu cliente; mucho aire entre una y otra. */
.ed-stations { margin-top: 14vh; display: grid; gap: clamp(120px, 22vh, 240px); }
.ed-station { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; align-items: center; }
.ed-station .ed-card { grid-row: 1; }
.ed-station .ed-note { grid-row: 1; }
.ed-station.is-left .ed-card { grid-column: 1 / 6; }
.ed-station.is-left .ed-note { grid-column: 7 / 12; }
.ed-station.is-right .ed-card { grid-column: 8 / 13; }
.ed-station.is-right .ed-note { grid-column: 2 / 7; }
.ed-station .ed-media { aspect-ratio: 4 / 3; }
.ed-note { display: grid; gap: 14px; }
.ed-note-n { opacity: .55; }
.ed-note-t { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 56px); line-height: 1; letter-spacing: -.025em; }
.ed-note-d { max-width: 40ch; opacity: .78; font-size: clamp(16px, 1.15vw, 18px); }
.ed-station.is-left .ed-note-t { color: var(--ink); }
.ed-station:nth-child(4n + 3) .ed-note-t, .ed-station:nth-child(4n + 4) .ed-note-t { color: var(--em); }
.ed-station .ed-t { font-size: clamp(24px, 2vw, 34px); }

/* Actos: la línea se parte en cuatro climas. Cada intertítulo es un respiro de pantalla casi completa
 * (sin regla: es un cambio de aire, no de capítulo) y la primera demo de cada acto va a lo grande. */
.ed-act { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 18px; padding: 18vh 0 6vh; }
.ed-act-title { max-width: 12ch; font-family: var(--f-display); font-weight: 400; letter-spacing: -.025em; line-height: .95; font-size: clamp(44px, 6.4vw, 118px); }
.ed-act-title em { color: var(--em); }
.ed-act-lede { max-width: 42ch; font-size: clamp(16px, 1.2vw, 19px); opacity: .82; }
.ed-stations + .ed-act { margin-top: clamp(60px, 10vh, 120px); }
.ed-act + .ed-stations { margin-top: 6vh; }
/* la demo grande de cada acto: 7 columnas (el usuario pidió cuadros más chicos; antes 8 y 16:10) */
.ed-station.is-lead.is-left .ed-card { grid-column: 1 / 8; }
.ed-station.is-lead.is-left .ed-note { grid-column: 9 / 13; }
.ed-station.is-lead.is-right .ed-card { grid-column: 6 / 13; }
.ed-station.is-lead.is-right .ed-note { grid-column: 1 / 5; }
.ed-station.is-lead .ed-media { aspect-ratio: 3 / 2; }
.ed-station.is-lead .ed-note-t { font-size: clamp(26px, 2.4vw, 40px); }

.ed-station .ed-d { font-size: 15px; }

.ed-card { display: grid; gap: 8px; text-decoration: none; }
.ed-media {
  position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--card);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.ed-media img, .ed-media video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .6s;
}
/* póster (img perezosa) y clip apilados: el clip aparece encima en cuanto reproduce */
.ed-media .ed-poster, .ed-media .ed-clip { position: absolute; inset: 0; }
.ed-media .ed-clip { opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease-out), filter .6s; }
.ed-media .ed-clip.is-playing { opacity: 1; }
a.ed-card:hover .ed-media img, a.ed-card:hover .ed-media video { transform: scale(1.04); }
/* entrada de la tarjeta: una cortina del color del fondo se retira hacia abajo (solo transform: el video sigue en
 * el compositor; un clip-path sobre el contenedor lo sacaba de ahí y hundía el celular a 5 fps) */
.ed-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--navy);
  transform-origin: 50% 100%; transition: transform 1.15s var(--ease-out) .08s;
}
.ed-card.reveal.in .ed-media::after { transform: scaleY(0); }
/* la imagen vive en su propio contenedor (.ed-media-in) para el parallax de escritorio: showroom_editorial.js le
 * pone el transform cuadro a cuadro, sin transición (una transición reiniciada en cada cuadro cuesta más que el efecto) */
.ed-media-in { position: absolute; inset: 0; display: block; }
@media (min-width: 761px) {
  .ed-station .ed-media-in { inset: -6% 0; will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-media::after { display: none; }
  .ed-station .ed-media-in { transform: none !important; }
}
.ed-num {
  position: absolute; left: 14px; top: 12px; z-index: 1;
  font-size: 11px; color: var(--ink); mix-blend-mode: difference; opacity: .9;
}
.ed-cat { margin-top: 10px; color: var(--em); }
.ed-views.is-out { color: #E2685F; }
.ed-t { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 44px); line-height: 1; letter-spacing: -.02em; }
.ed-d { max-width: 52ch; opacity: .8; }
.ed-open { margin-top: 10px; justify-self: start; }

.ed-station.is-depleted .ed-card { cursor: not-allowed; }
.ed-station.is-depleted .ed-media img, .ed-station.is-depleted .ed-media video { filter: grayscale(1) brightness(.55); }
.ed-station.is-depleted .ed-open { opacity: .6; border-style: dashed; }

/* ---------- atmósfera del recorrido: lluvia → nieve → amanecer ---------- */
.ed-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; }
/* cielo del amanecer: continúa hacia arriba el borde de arriba del video, columna por columna (franja horizontal
 * con los colores medidos del cuadro: selva oscura a los lados, bruma azul grisácea y la luz del sol al centro-
 * derecha) YA con el mismo velo azul que lleva el video (.ed-dawn-shade, como el hero) y se oscurece hacia arriba
 * para que el texto de la última demo se siga leyendo. Abajo la franja queda limpia, así que donde el video toca el
 * cielo los colores empatan. En vertical va el recorte del celular (con el velo vertical del celular).
 * El velo oscuro (.ed-sky-dawn-veil) baja solo hasta el borde de #dawn: JS lo escala a esa altura. */
:root { --dawn-band: linear-gradient(90deg, #080A18 0%, #0A0D18 12%, #0D111A 19%, #111620 26%, #181D26 33%, #2D3243 40%, #323849 47%, #383B4B 54%, #3C3F4F 61%, #42424E 68%, #33323E 72%, #222528 79%, #171B1E 85%, #161B1F 91%, #12171B 100%); }
.ed-sky--dawn { background: var(--dawn-band); }
/* el azul de la marca encima de la franja: cubre todo al empezar y se va retirando (JS: opacidad) hasta dejar ver los
 * tonos fríos del video */
.ed-sky-dawn-wash { position: absolute; inset: 0; background: var(--navy); }
.ed-sky-dawn-veil {
  position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform;
  background: linear-gradient(180deg, rgba(7, 9, 26, .94) 0%, rgba(7, 9, 26, .78) 34%, rgba(7, 9, 26, .4) 70%, rgba(7, 9, 26, 0) 100%);
}
@media (orientation: portrait) {
  :root { --dawn-band: linear-gradient(90deg, #3D4553 0%, #434A5B 18%, #434A5A 38%, #464B5B 50%, #4B4E5C 62%, #50515D 72%, #54525D 84%, #44434C 93%, #3B3A43 100%); }
}
.ed-atmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.link-arrow span:last-child { transition: transform .5s var(--ease-out); }
.link-arrow:hover span:last-child { transform: translate(3px, -3px); }

/* ---------- y no solo eso: sistemas completos ---------- */
.ed-build {
  position: relative; margin-top: 12vh; padding-top: 18vh; padding-bottom: 16vh; overflow: hidden;
  background: none; /* deja ver la palabra RÜM, enorme y tenue, detrás */
}
.ed-build::before {
  /* barrido de luz que cruza la sección al entrar */
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(243, 210, 178, .08), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.ed-build.is-in::before { animation: edSweep 1.8s var(--ease-out) .2s both; }
@keyframes edSweep { from { left: -40%; opacity: 1; } to { left: 120%; opacity: 1; } }
.ed-build-kicker { opacity: 0; transition: opacity .8s; }
.ed-build.is-in .ed-build-kicker { opacity: .75; }
.ed-build-title {
  margin-top: 18px; font-family: var(--f-display); font-weight: 400; letter-spacing: -.03em; line-height: .98;
  font-size: clamp(40px, 5.4vw, 104px);
}
.ed-build-l1, .ed-build-l2 { display: block; }
.ed-build-l2 { color: var(--em); }
.ed-build-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.ed-build-title .w > span {
  display: inline-block; transform: translateY(105%) rotate(7deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms);
}
.ed-build-l2 .w > span { transition-delay: calc(380ms + var(--i) * 70ms); }
.ed-build.is-in .ed-build-title .w > span { transform: none; }

.ed-build-body {
  margin-top: 9vh; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 28px 56px;
  opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out) 1s, transform 1.2s var(--ease-out) 1s;
}
.ed-build.is-in .ed-build-body { opacity: 1; transform: none; }
.ed-build-count { display: flex; align-items: flex-end; gap: 16px; }
.ed-build-num {
  font-family: var(--f-logo); font-weight: 800; line-height: .8; color: var(--em);
  font-size: clamp(72px, 8vw, 150px); font-variant-numeric: tabular-nums;
}
.ed-build-count .mono { opacity: .7; padding-bottom: 6px; }
.ed-build-lede { max-width: 52ch; font-size: clamp(16px, 1.2vw, 19px); opacity: .85; }

.ed-build-groups { margin-top: 10vh; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.ed-build-groups li {
  position: relative;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(1.25s + var(--i) * 60ms);
}
.ed-build-groups li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(244, 241, 236, .18);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out);
  transition-delay: calc(1.25s + var(--i) * 60ms);
}
.ed-build.is-in .ed-build-groups li { opacity: 1; transform: none; }
.ed-build.is-in .ed-build-groups li::after { transform: scaleX(1); }
.ed-build-groups button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 12px;
  padding: 20px 8px 20px 0; text-align: left;
  font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -.01em;
  transition: color .3s, padding .5s var(--ease-out);
}
.ed-build-gn, .ed-build-gc { opacity: .5; font-family: var(--f-sans); }
.ed-build-groups button:hover { color: var(--em); padding-left: 10px; }
@media (prefers-reduced-motion: reduce) {
  .ed-build-kicker, .ed-build-body, .ed-build-groups li, .ed-build-title .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ed-build-groups li::after { transform: none; transition: none; }
  .ed-build.is-in::before { animation: none; }
}

/* ---------- contacto ---------- */
.ed-contact { min-height: 90vh; display: flex; flex-direction: column; justify-content: space-between; padding-top: 14vh; padding-bottom: 10vh; }
.ed-contact-body { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 32px 64px; margin-top: 30vh; }
.ed-contact-title { font-size: clamp(40px, 4.8vw, 86px); }
.ed-contact-side { justify-self: end; display: grid; gap: 22px; }
.ed-contact-mail {
  font-family: var(--f-logo); font-weight: 700; font-size: clamp(20px, 2vw, 32px);
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; word-break: break-all;
}
.ed-contact-mail:hover { border-bottom-style: dashed; color: var(--em); }
.ed-contact-facts { display: grid; gap: 10px; }
.ed-contact-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.ed-contact-facts dt { opacity: .55; }

/* ---------- colofón ---------- */
.colophon {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px;
  padding: 36px var(--gutter) 40px; border-top: var(--rule);
}
.logo--small { font-size: 24px; }
.colophon-links { display: flex; gap: 20px; flex-wrap: wrap; }
.colophon-links a { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.colophon-links a:hover { text-decoration: underline; }
.colophon-c { grid-column: 1 / -1; opacity: .6; font-size: 11px; }

/* ---------- barra admin / cliente ---------- */
.ed-admin {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(12, 16, 36, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: var(--rule); border-radius: 999px;
}
.ed-admin span { padding: 0 10px; opacity: .65; }
.ed-admin a {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
}
.ed-admin a:hover { background: rgba(244, 241, 236, .1); }
.ed-admin a.is-primary { background: var(--peach); color: var(--charcoal); }

/* ---------- drawer del catálogo ---------- */
.sr-cap-drawer[hidden] { display: none; }
.sr-cap-drawer { position: fixed; inset: 0; z-index: 80; }
.sr-cap-backdrop {
  position: absolute; inset: 0; background: rgba(4, 5, 14, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s;
}
.sr-cap-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  display: flex; flex-direction: column;
  background: var(--navy-2); border-left: var(--rule); outline: none;
  transform: translateX(100%); transition: transform .45s var(--ease-out);
}
.sr-cap-drawer.is-open .sr-cap-backdrop { opacity: 1; }
.sr-cap-drawer.is-open .sr-cap-panel { transform: none; }
.sr-cap-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: var(--rule) !important; font-size: 22px !important; line-height: 1;
}
.sr-cap-close:hover { background: var(--ink) !important; color: var(--navy) !important; }
.sr-cap-head { padding: 32px 28px 18px; border-bottom: var(--rule); display: grid; gap: 12px; }
.sr-cap-kicker { color: var(--em); }
.sr-cap-head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.02em; padding-right: 48px; }
.sr-cap-lead { font-size: 14px; opacity: .75; }
.sr-cap-search {
  width: 100%; min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: rgba(244, 241, 236, .06); border: var(--rule); color: var(--ink); font: inherit; font-size: 15px;
}
.sr-cap-search:focus { outline: none; border-color: var(--peach); }
.sr-cap-toolbar { display: flex; gap: 16px; }
.sr-cap-toolbtn { opacity: .6; text-decoration: underline; text-underline-offset: 4px; }
.sr-cap-toolbtn:hover { opacity: 1; }
.sr-cap-body { flex: 1; overflow-y: auto; padding: 8px 28px 24px; overscroll-behavior: contain; }
.sr-cap-empty { padding: 24px 0; opacity: .7; }
.sr-cap-group { border-bottom: var(--rule); }
.sr-cap-group-head {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 18px 0; font-family: var(--f-display); font-size: 20px; letter-spacing: -.01em;
}
.sr-cap-group-head::-webkit-details-marker { display: none; }
.sr-cap-group-head:hover { color: var(--em); }
.sr-cap-group-count { opacity: .55; }
.sr-cap-list { padding-bottom: 14px; }
.sr-cap-item-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; text-align: left; font-size: 15px; opacity: .85;
}
.sr-cap-item-btn:hover, .sr-cap-item-btn[aria-expanded="true"] { opacity: 1; color: var(--em); }
.sr-cap-item-chevron { width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .3s; flex: none; }
.sr-cap-item-btn[aria-expanded="true"] .sr-cap-item-chevron { transform: rotate(-135deg); }
.sr-cap-item-panel p { padding: 2px 0 12px; font-size: 14px; opacity: .72; max-width: 52ch; }
.sr-cap-foot { padding: 18px 28px 24px; border-top: var(--rule); display: grid; gap: 14px; }
.sr-cap-foot p { font-size: 13px; opacity: .7; }
.sr-cap-foot .btn-pill { justify-self: start; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) and (min-width: 761px) {
  .ed-build-body { grid-template-columns: 1fr 1fr; }
  .ed-build-body .ed-ctas { grid-column: 1 / -1; }
  .ed-station.is-left .ed-card { grid-column: 1 / 7; }
  .ed-station.is-right .ed-card { grid-column: 7 / 13; }
  .ed-station.is-left .ed-note { grid-column: 8 / 13; }
  .ed-station.is-right .ed-note { grid-column: 1 / 6; }
  .ed-station.is-lead.is-left .ed-card { grid-column: 1 / 8; }
  .ed-station.is-lead.is-left .ed-note { grid-column: 8 / 13; }
  .ed-station.is-lead.is-right .ed-card { grid-column: 6 / 13; }
  .ed-station.is-lead.is-right .ed-note { grid-column: 1 / 6; }
  .ed-build-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 14px; }
  .nav-n { display: none; }
}

@media (max-width: 760px) {
  .masthead { padding: 14px 16px; gap: 14px; }
  .logo { font-size: 26px; }
  .nav { gap: 12px; }
  .nav a:not(.nav-contact):not(.nav-showroom) { display: none; }
  .nav-contact { padding: 4px 9px !important; }
  .folio { display: none; }
  /* portada: el mensaje ocupa la plana, RÜM chico debajo, la oferta y los dos botones al pie */
  .ed-hero { padding-top: 76px; padding-bottom: 22px; }
  .ed-hero-side .kicker { display: none; }
  .ed-hero-title { margin: 5vh 0 4vh; font-size: clamp(40px, 12vw, 64px); line-height: .98; }
  .ed-hero-foot { grid-template-columns: 1fr; gap: 18px; }
  .ed-hero-mark { width: min(42vw, 170px); }
  .ed-hero-offer { justify-self: start; max-width: none; gap: 14px; }
  .ed-hero-lede { font-size: 15px; line-height: 1.5; }
  .ed-hero .ed-ctas { gap: 8px; }
  .ed-hero .ed-ctas .fbtn { padding: .7rem 1.3rem; font-size: .8rem; min-height: 2.6rem; }
  .ed-hero-bg-dim {
    background:
      linear-gradient(180deg, rgba(7, 9, 26, .6) 0%, rgba(7, 9, 26, .25) 30%, rgba(7, 9, 26, .55) 60%, rgba(7, 9, 26, .95) 100%);
  }
  .scroll-cue { display: none; }
  .ed-statement { padding-top: 14vh; padding-bottom: 8vh; }
  .ed-statement-title { font-size: clamp(40px, 12.5vw, 64px); }
  .ed-lane { padding-top: 10vh; }
  .ed-lane-head { grid-template-columns: 1fr; gap: 12px; }
  .ed-lane-title { font-size: clamp(36px, 10.5vw, 56px); }
  .ed-stations { margin-top: 9vh; gap: 14vh; }
  /* una columna: la tarjeta primero (es lo que se abre), la nota debajo. Las reglas de escritorio de las
   * estaciones "lead" (3 clases) ganaban a las de aquí y dejaban la nota en una columna de 60 px. */
  .ed-station { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .ed-station .ed-card, .ed-station.is-left .ed-card, .ed-station.is-right .ed-card,
  .ed-station.is-lead.is-left .ed-card, .ed-station.is-lead.is-right .ed-card { grid-column: 1 / -1; grid-row: 1; }
  .ed-station .ed-note, .ed-station.is-left .ed-note, .ed-station.is-right .ed-note,
  .ed-station.is-lead.is-left .ed-note, .ed-station.is-lead.is-right .ed-note { grid-column: 1 / -1; grid-row: 2; }
  .ed-station .ed-media, .ed-station.is-lead .ed-media { aspect-ratio: 4 / 3; }
  .ed-station .ed-t { font-size: 26px; }
  .ed-note { gap: 10px; border-top: var(--rule); padding-top: 16px; }
  .ed-note-t, .ed-station.is-lead .ed-note-t { font-size: clamp(24px, 7vw, 30px); }
  .ed-note-d { font-size: 15px; }
  .ed-act { min-height: 0; padding: 10vh 0 2vh; }
  .ed-act-title { max-width: none; }
  .ed-act-title { font-size: clamp(36px, 10.5vw, 56px); }
  .ed-build { padding-top: 12vh; padding-bottom: 12vh; }
  .ed-build-title { font-size: clamp(32px, 9.5vw, 48px); }
  .ed-build-body { grid-template-columns: 1fr; gap: 20px; margin-top: 6vh; }
  .ed-build-count { align-items: center; }
  .ed-build-groups { grid-template-columns: 1fr; margin-top: 6vh; }
  .ed-build-groups button { padding: 14px 8px 14px 0; }
  .ed-contact { min-height: 80svh; }
  .ed-contact-body { grid-template-columns: 1fr; margin-top: 18vh; }
  .ed-contact-side { justify-self: start; }
  .colophon { grid-template-columns: 1fr; }
  .ed-admin { left: 50%; transform: translateX(-50%); bottom: 12px; max-width: calc(100% - 24px); }
  .ed-admin span { display: none; }
  /* rendimiento en el celular: sombras cortas en las tarjetas (las difusas grandes son caras de pintar al entrar) */
  .ed-media { box-shadow: 0 16px 28px -18px rgba(0, 0, 0, .6); }
}

@media (max-width: 420px) {
  .lang-switch { font-size: 10.5px; }
}


/* ---------- botones: FlowButton, el mismo componente y movimiento del index ---------- */
.sr-ed .fbtn {
  --fb-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --fb-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fb-orb: cubic-bezier(0.19, 1, 0.22, 1);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 2.85rem; padding: 0.75rem 2rem; border-radius: 100px;
  border: 1.5px solid rgba(244, 241, 236, 0.4); background: transparent; color: #F4F1EC;
  font-family: var(--f-sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; text-transform: none; white-space: nowrap; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: border-color 600ms var(--fb-ease), border-radius 600ms var(--fb-ease), color 600ms var(--fb-ease), transform 200ms var(--fb-ease);
}
.sr-ed .fbtn:hover, .sr-ed .fbtn:focus-visible, .sr-ed a.ed-card:hover .fbtn, .sr-ed a.ed-card:focus-visible .fbtn { border-color: transparent; border-radius: 12px; }
.sr-ed .fbtn:active { transform: scale(0.95); }
.sr-ed .fbtn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-ed .fbtn:disabled { opacity: .55; cursor: progress; }
.sr-ed .fbtn__label { position: relative; z-index: 1; transform: translateX(-0.75rem); transition: transform 800ms ease-out; }
.sr-ed .fbtn:hover .fbtn__label, .sr-ed .fbtn:focus-visible .fbtn__label, .sr-ed a.ed-card:hover .fbtn__label { transform: translateX(0.75rem); }
.sr-ed .fbtn__arr { position: absolute; z-index: 9; width: 1rem; height: 1rem; pointer-events: none; transition: left 800ms var(--fb-spring), right 800ms var(--fb-spring); }
.sr-ed .fbtn__arr--in { left: -25%; }
.sr-ed .fbtn:hover .fbtn__arr--in, .sr-ed .fbtn:focus-visible .fbtn__arr--in, .sr-ed a.ed-card:hover .fbtn__arr--in { left: 1rem; }
.sr-ed .fbtn__arr--out { right: 1rem; }
.sr-ed .fbtn:hover .fbtn__arr--out, .sr-ed .fbtn:focus-visible .fbtn__arr--out, .sr-ed a.ed-card:hover .fbtn__arr--out { right: -25%; }
.sr-ed .fbtn__orb {
  position: absolute; z-index: 0; top: 50%; left: 50%; width: 1rem; height: 1rem; border-radius: 50%;
  background: #F4F1EC; opacity: 0; pointer-events: none; transform: translate(-50%, -50%);
  transition: width 800ms var(--fb-orb), height 800ms var(--fb-orb), opacity 800ms var(--fb-orb);
}
.sr-ed .fbtn:hover .fbtn__orb, .sr-ed .fbtn:focus-visible .fbtn__orb, .sr-ed a.ed-card:hover .fbtn__orb { width: 26rem; height: 26rem; opacity: 1; }
.sr-ed .fbtn--primary { border-color: rgba(243, 210, 178, 0.4); color: var(--peach); }
.sr-ed .fbtn--primary .fbtn__orb { background: var(--peach); }
.sr-ed .fbtn--primary:hover, .sr-ed .fbtn--primary:focus-visible { color: #5c3a21; }
.sr-ed .fbtn--ghost:hover, .sr-ed .fbtn--ghost:focus-visible, .sr-ed a.ed-card:hover .fbtn--ghost { color: #111; }
.sr-ed span.fbtn { cursor: inherit; }
@media (prefers-reduced-motion: reduce) { .sr-ed .fbtn, .sr-ed .fbtn * { transition: none !important; } }

/* ---------- amanecer: imaginar es solo el principio + hablemos ---------- */
.ed-dawn-stage { position: relative; }
/* el amanecer queda fijo (sticky dentro de .ed-dawn-stage) y la plana de Hablemos sube encima tapándolo */
.ed-dawn { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 22vh; overflow: hidden; isolation: isolate; }
.ed-dawn-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--navy); }
/* El fondo es el clip de Kling (la hoja de monstera a contraluz), tal cual, sin zoom: object-position sube el encuadre
 * para que el sol no se corte en pantallas muy anchas. Sin luces ni destellos encima (el usuario los quitó). */
.ed-dawn-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* el mismo velo azul que el video del hero (.ed-hero-bg-dim): más denso a la izquierda, donde va el titular.
 * Si cambia, recalcular --dawn-band (los colores del borde del video ya con este velo encima). */
.ed-dawn-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 26, .72) 0%, rgba(7, 9, 26, .3) 55%, rgba(7, 9, 26, .35) 100%),
    linear-gradient(180deg, rgba(7, 9, 26, .55) 0%, rgba(7, 9, 26, .12) 38%, rgba(7, 9, 26, .5) 72%, rgba(7, 9, 26, .92) 100%);
}
@media (orientation: portrait) {
  .ed-dawn-shade { background: linear-gradient(180deg, rgba(7, 9, 26, .6) 0%, rgba(7, 9, 26, .25) 30%, rgba(7, 9, 26, .55) 60%, rgba(7, 9, 26, .95) 100%); }
}
/* se oscurece mientras Hablemos sube encima (JS pone la opacidad) */
/* el borde de arriba del video se funde con la misma franja del cielo: sin línea donde se tocan */
.ed-dawn-shade::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12%; background: var(--dawn-band);
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, 0) 100%);
  mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, 0) 100%);
}
.ed-dawn-dim { position: absolute; inset: 0; background: var(--navy); opacity: 0; }
.ed-dawn-haze { position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(rgba(7, 9, 26, 0), var(--navy)); }

.ed-dawn-title { margin-top: 18px; font-family: var(--f-display); font-weight: 400; letter-spacing: -.035em; line-height: .94; font-size: clamp(52px, 8vw, 156px); }
.ed-dawn-title .line { display: block; }
.ed-dawn-title em { color: var(--em); }
.ed-dawn-grid { margin-top: 10vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px 72px; align-items: start; }
.ed-dawn-copy { display: grid; gap: 18px; align-content: start; }
.ed-dawn-talk { font-family: var(--f-display); font-size: clamp(36px, 3.6vw, 64px); letter-spacing: -.03em; line-height: 1; }
.ed-dawn-lede { max-width: 42ch; font-size: clamp(16px, 1.2vw, 19px); opacity: .9; }
.ed-dawn-grid .ed-contact-mail { justify-self: start; }
/* hablemos: plana propia, sobre el azul, fuera del deslumbre */
.ed-talk {
  padding-top: 16vh; padding-bottom: 16vh; z-index: 2; background: var(--navy);
  border-radius: 28px 28px 0 0; box-shadow: 0 -30px 70px rgba(7, 9, 26, .55);
}
.ed-talk .ed-dawn-talk { margin-top: 18px; }
.ed-talk .ed-dawn-grid { margin-top: 6vh; }
.ed-form {
  display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 36px); border-radius: 12px;
  background: rgba(7, 9, 26, .55); border: 1px solid rgba(244, 241, 236, .18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -40px rgba(7, 9, 26, .8);
}
.ed-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ed-field { display: grid; gap: 6px; }
.ed-field .mono { opacity: .7; }
.ed-field input, .ed-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(244, 241, 236, .06);
  border: 1px solid rgba(244, 241, 236, .2); border-radius: 8px; padding: 12px 14px; resize: vertical;
}
.ed-field input:focus, .ed-field textarea:focus { outline: none; border-color: var(--peach); background: rgba(244, 241, 236, .09); }
.ed-field textarea::placeholder { color: rgba(244, 241, 236, .45); }
.ed-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ed-form-foot { display: flex; align-items: center; gap: 16px; }
.ed-form-status { font-size: 13px; color: var(--em); }
.ed-form-foot .fbtn { margin-left: auto; min-height: 3.2rem; padding: 0.9rem 2.3rem; }
.ed-form.is-sent .ed-field, .ed-form.is-sent .ed-form-row, .ed-form.is-sent .fbtn { display: none; }
.ed-form.is-sent .ed-form-status { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); color: var(--ink); line-height: 1.15; }
@media (max-width: 760px) {
  .ed-dawn-grid { grid-template-columns: 1fr; }
  .ed-form-row { grid-template-columns: 1fr; }
  .ed-talk { border-radius: 20px 20px 0 0; }
  /* rendimiento: sin desenfoque de fondo en el celular (repinta todo lo que hay detrás en cada cuadro de scroll) */
  .ed-form { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 9, 26, .8); }
}
