/* Relojería Edward — estilo joyería.
   Marfil y tinta por defecto, champán como único acento, líneas finas en vez de tarjetas.
   El reloj nunca va dentro de una caja: flota sobre la página con una sombra de piso. */

:root {
  --bg: #f3ecdf;
  --bg-2: #ebe2d0;
  --surface: #f7f1e6;
  --line: rgba(26, 24, 20, 0.12);
  --line-strong: rgba(26, 24, 20, 0.28);
  --ink: #1a1814;
  --muted: #77716a;
  --gold: #a88a52;
  --gold-2: #8c7040;
  --on-ink: #f6f2ea;
  --danger: #a3473b;
  --ok: #4f7a4a;
  --shadow-floor: rgba(40, 30, 15, 0.28);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0d0e;
  --bg-2: #131315;
  --surface: #17171a;
  --line: rgba(240, 232, 216, 0.12);
  --line-strong: rgba(240, 232, 216, 0.28);
  --ink: #f0e8d8;
  --muted: #9a958c;
  --gold: #c9ad78;
  --gold-2: #dcc497;
  --on-ink: #0d0d0e;
  --danger: #e09284;
  --ok: #9cc79a;
  --shadow-floor: rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0e;
    --bg-2: #131315;
    --surface: #17171a;
    --line: rgba(240, 232, 216, 0.12);
    --line-strong: rgba(240, 232, 216, 0.28);
    --ink: #f0e8d8;
    --muted: #9a958c;
    --gold: #c9ad78;
    --gold-2: #dcc497;
    --on-ink: #0d0d0e;
    --danger: #e09284;
    --ok: #9cc79a;
    --shadow-floor: rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.7 var(--font-body);
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.ed-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .ed-wrap { padding: 0 40px; } }

.ed-muted { color: var(--muted); }
.ed-brass, .ed-gold { color: var(--gold); }
.ed-mono, .ed-num { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.ed-eyebrow {
  margin: 0 0 20px;
  font: 400 11px/1.4 var(--font-body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.ed-h1, .ed-h2, .ed-h3 { font-family: var(--font-display); font-weight: 300; margin: 0; letter-spacing: 0.005em; }
.ed-h1 { font-size: clamp(44px, 7.2vw, 108px); line-height: 0.98; }
.ed-h1__line { display: block; }
.ed-h1 em, .ed-h2 em { font-style: italic; color: var(--gold); }
.ed-h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.05; }
.ed-h3 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; font-weight: 400; }
.ed-lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 52ch; margin: 22px 0 0; }
.ed-rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }

.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px; border-radius: 0;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink);
  font: 400 12px/1 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.ed-btn:hover { background: transparent; color: var(--ink); }
.ed-btn:disabled { opacity: .35; cursor: not-allowed; }
.ed-btn:disabled:hover { background: var(--ink); color: var(--on-ink); }
.ed-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ed-btn--ghost:hover { border-color: var(--ink); }
.ed-btn--sm { min-height: 40px; padding: 0 20px; font-size: 11px; }
.ed-link {
  font: 400 12px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--gold);
}

/* ------------------------------------------------------------------ navegación */
.ed-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .4s ease;
}
.ed-nav.is-scrolled { border-bottom-color: var(--line); }
.ed-nav__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 16px; }
/* Enlaces pegados a los extremos, con aire respecto al logo central */
.ed-nav__links { grid-column: 1; grid-row: 1; justify-self: start; display: none; gap: 34px; padding-right: 48px; font: 400 10.5px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.ed-nav__links--right { grid-column: auto; grid-row: auto; justify-self: auto; padding: 0 18px 0 48px; }
.ed-nav__links a { text-decoration: none; color: var(--muted); transition: color .3s; }
.ed-nav__links a:hover { color: var(--ink); }
.ed-logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; grid-column: 2; }
.ed-logo__mark { font: 400 24px/1 var(--font-display); letter-spacing: 0.42em; margin-right: -0.42em; }
.ed-logo__sub { font: 400 9px/1 var(--font-body); letter-spacing: 0.5em; margin-right: -0.5em; text-transform: uppercase; color: var(--gold); margin-top: 7px; }
.ed-logo--lg .ed-logo__mark { font-size: 34px; }
.ed-nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; grid-column: 3; }
.ed-theme {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.ed-theme svg { width: 15px; height: 15px; }
@media (max-width: 959px) {
  .ed-nav__row { grid-template-columns: auto 1fr; }
  .ed-logo { grid-column: 1; align-items: flex-start; }
  .ed-logo__mark { font-size: 20px; }
  .ed-nav__actions { grid-column: 2; }
}
@media (min-width: 1100px) { .ed-nav__links { display: flex; } }
@media (min-width: 1100px) and (max-width: 1279px) { .ed-nav__links--right { display: none; } }

/* ------------------------------------------------------------------ reloj libre (sin caja) */
[data-watch] { position: relative; }
.ed-w3d { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.1s ease; }
.is-3d > .ed-w3d { opacity: 1; }
[data-watch].is-3d > svg { visibility: hidden; }
/* Sombra de piso: lo único "debajo" del reloj */
.ed-floor {
  position: absolute; left: 50%; bottom: 4%; width: 46%; height: 5%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--shadow-floor), transparent); filter: blur(10px);
  pointer-events: none;
}

/* ------------------------------------------------------------------ inicio */
.ed-hero { position: relative; padding: 24px 0 40px; overflow-x: clip; }
.ed-hero__grid { display: grid; gap: 8px; align-items: center; min-height: calc(100vh - 76px); }
.ed-hero__copy { position: relative; z-index: 2; }
.ed-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.ed-hero__watch { width: 100%; height: min(78vh, 760px); min-height: 420px; }
/* El lienzo 3D se sale de la columna para que la correa nunca quede cortada */
.ed-hero__watch .ed-w3d { inset: -6% -18%; }
.ed-hero__watch > svg { width: 100%; height: 100%; }
@media (min-width: 960px) {
  .ed-hero__grid { grid-template-columns: 0.95fr 1.05fr; }
  .ed-hero__copy { padding-bottom: 6vh; }
}

/* Franja de garantías: texto quieto entre líneas finas */
.ed-strip { border-block: 1px solid var(--line); }
.ed-strip__track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 22px 16px;
  font: 400 11px/1.4 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.ed-strip__track > span:nth-child(n + 13) { display: none; }
.ed-strip__dot { color: var(--gold); font-size: 6px; align-self: center; }

/* ------------------------------------------------------------------ secciones */
.ed-section { padding: 96px 0; }
.ed-section--alt { background: var(--bg-2); }
.ed-section__head { margin: 0 auto 64px; max-width: 760px; text-align: center; }
.ed-section__head .ed-lead { margin-inline: auto; }
@media (min-width: 960px) { .ed-section { padding: 140px 0; } }

.ed-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.ed-step { text-align: center; padding: 0 12px; }
.ed-step__num { display: block; font: 300 italic 40px/1 var(--font-display); color: var(--gold); margin-bottom: 22px; }
@media (min-width: 720px) { .ed-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .ed-steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .ed-step + .ed-step { border-left: 1px solid var(--line); }
}

/* Por dentro: recorrido capa por capa. En escritorio la sección mide un tramo de scroll por capa
   (más uno inicial) y el contenido queda fijo mientras se recorre. */
.ed-explode { position: relative; height: calc(100vh + 5 * 75vh); }
.ed-explode__sticky { position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; align-items: center; overflow-x: clip; }
.ed-explode__grid { display: grid; gap: 24px; align-items: center; width: 100%; }
.ed-explode__watch { width: 100%; height: min(80vh, 760px); color: var(--muted); transition: transform 1s cubic-bezier(.22, .61, .36, 1); }
/* Armado (capa 0): 30 px más arriba; al pasar a la capa 1 baja a su lugar */
.ed-explode__watch.is-assembled { transform: translateY(-30px); }
.ed-explode__watch > svg { width: 100%; height: 100%; }
.ed-explode__watch .ed-w3d { inset: -10% -14%; }
/* El reloj (y su sombra) 30 px más arriba en todos los pasos; la entrada desde «Armado» se suma aparte */
.ed-explode__watch .ed-w3d, .ed-explode__watch > svg, .ed-explode__watch .ed-floor { translate: 0 -30px; }
.ed-steps-head { display: flex; align-items: center; gap: 18px; margin: 34px 0 6px; }
.ed-steps-head__count { font: 300 30px/1 var(--font-display); font-variant-numeric: tabular-nums; min-width: 92px; }
.ed-steps-head__bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.ed-steps-head__bar > span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s ease; }
.ed-steps-hint { margin: 0 0 8px; font: 400 10.5px/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.ed-steps-hint[hidden] { visibility: hidden; display: block; }
.ed-layers { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.ed-layers li { border-bottom: 1px solid var(--line); }
.ed-layer {
  width: 100%; display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; align-items: baseline; text-align: left;
  padding: 16px 0 16px 14px; border: 0; border-left: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted);
  transition: color .4s ease, border-color .4s ease, background .4s ease;
}
.ed-layer:hover { color: var(--ink); }
.ed-layer__num { font: 400 11px/1 var(--font-body); letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.ed-layer__name { font: 400 22px/1.2 var(--font-display); }
.ed-layer__desc { grid-column: 2; max-height: 0; overflow: hidden; opacity: 0; font-size: 14px; line-height: 1.55; transition: max-height .5s ease, opacity .5s ease, margin .5s ease; }
.ed-layer.is-done { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.ed-layer.is-active { color: var(--ink); border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.ed-layer.is-active .ed-layer__num { color: var(--gold); }
.ed-layer.is-active .ed-layer__desc { max-height: 6em; opacity: 1; margin-top: 8px; color: var(--muted); }
@media (max-width: 959px) {
  .ed-explode { height: auto; }
  .ed-explode__sticky { position: static; height: auto; padding: 72px 0; }
  .ed-explode__watch { height: 62vh; order: -1; }
  .ed-explode__copy { order: 1; }
}
@media (min-width: 960px) { .ed-explode__grid { grid-template-columns: 0.8fr 1.2fr; } }

/* Servicios: lista de precios */
.ed-services { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.ed-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ed-card .ed-h3 { margin: 0; }
.ed-card p { margin: 0; }
.ed-card .ed-muted { grid-column: 1; font-size: 15px; }
.ed-card .ed-mono { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; color: var(--gold); font-size: 14px; }

/* Control de calidad */
.ed-qc { display: grid; gap: 56px; text-align: center; }
.ed-qc > div:first-child { max-width: 720px; margin: 0 auto; }
.ed-qc > div:first-child .ed-lead { margin-inline: auto; }
.ed-qc__table { margin: 0; display: grid; gap: 32px; }
.ed-qc__row { display: grid; gap: 6px; }
.ed-qc__row dt { font: 400 11px/1.4 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.ed-qc__row dd { margin: 0; }
.ed-qc__row dd.ed-mono { font: 300 40px/1.1 var(--font-display); color: var(--ink); letter-spacing: 0; }
.ed-qc__row dd.ed-muted { font-size: 14px; max-width: 26ch; margin: 0 auto; }
@media (min-width: 720px) {
  .ed-qc__table { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .ed-qc__row + .ed-qc__row { border-left: 1px solid var(--line); }
}

/* Preguntas */
.ed-faq { max-width: 820px; margin: 0 auto; }
.ed-faq__list { border-top: 1px solid var(--line-strong); }
.ed-faq__item { border-bottom: 1px solid var(--line); }
.ed-faq__item summary {
  cursor: pointer; list-style: none; padding: 26px 40px 26px 0; position: relative;
  font: 400 22px/1.3 var(--font-display);
}
.ed-faq__item summary::-webkit-details-marker { display: none; }
.ed-faq__item summary::after { content: ""; position: absolute; right: 6px; top: 36px; width: 11px; height: 1px; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); transition: transform .3s; }
.ed-faq__item summary::before { content: ""; position: absolute; right: 11px; top: 31px; width: 1px; height: 11px; background: var(--gold); transition: transform .3s; }
.ed-faq__item[open] summary::before { transform: scaleY(0); }
.ed-faq__item p { margin: 0 0 26px; max-width: 64ch; }

/* Contacto y formularios (campos con línea inferior) */
.ed-contact { display: grid; gap: 56px; max-width: 1080px; margin: 0 auto; }
@media (min-width: 960px) { .ed-contact { grid-template-columns: 1fr 1fr; } }
.ed-form { display: grid; gap: 22px; }
.ed-field { display: grid; gap: 6px; font: 400 11px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ed-field input, .ed-field textarea, .ed-field select {
  width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-strong);
  border-radius: 0; background: transparent; color: var(--ink);
  font: 300 17px/1.4 var(--font-body); letter-spacing: 0.01em; text-transform: none;
}
.ed-field textarea { resize: vertical; min-height: 90px; }
.ed-field input:focus, .ed-field textarea:focus, .ed-field select:focus { outline: none; border-bottom-color: var(--gold); }
.ed-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ed-form__status { margin: 0; min-height: 1.4em; font-size: 14px; }
.ed-form__status.is-ok { color: var(--ok); }
.ed-form__status.is-error { color: var(--danger); }

/* Pie */
.ed-footer { border-top: 1px solid var(--line); padding: 80px 0 32px; text-align: center; }
.ed-footer__grid { display: grid; gap: 40px; justify-items: center; }
.ed-footer__grid > div { max-width: 320px; }
.ed-footer__title { font: 400 11px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.ed-footer p { margin: 0 0 8px; }
.ed-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ed-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font: 400 11px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 720px) { .ed-footer__grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }

/* Mantenimiento */
.ed-maint { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding: 32px 16px; }
.ed-maint__watch { width: min(320px, 80vw); height: 420px; }
.ed-maint__watch > svg { width: 100%; height: 100%; }

/* Aparición al bajar */
.ed-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.ed-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ configurador */
.ed-config-page .ed-config { padding-top: 48px; }
.eb { position: relative; display: grid; gap: 24px; }
.eb-loading { padding: 120px 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
@media (min-width: 1000px) { .eb.is-ready { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; } }

/* El escenario no tiene caja: el reloj flota sobre la página */
.eb-stage { position: relative; }
@media (min-width: 1000px) { .eb-stage { position: sticky; top: 92px; } }
.eb-watch, .eb-watch3d { position: relative; height: min(76vh, 760px); min-height: 440px; }
.eb-watch { display: grid; place-items: center; color: var(--muted); }
.eb-watch svg { height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 30px 28px var(--shadow-floor)); transition: opacity .2s ease; }
.eb-watch.is-preview svg { opacity: .92; }
.eb-watch[hidden], .eb-watch3d[hidden] { display: none; }
.eb-watch3d { touch-action: pan-y; cursor: grab; }
.eb-watch3d:active { cursor: grabbing; }
.eb-watch3d .eb-canvas { position: absolute; inset: -4% -10%; width: 120%; height: 108%; opacity: 0; transition: opacity 1.1s ease; }
.eb-watch3d.is-ready .eb-canvas { opacity: 1; }
.eb-canvas { display: block; width: 100%; height: 100%; }
.eb-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font: 400 10px/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.eb-stage__bar { position: relative; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-top: 18px; }
.eb-chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 2px; border: 0; border-bottom: 1px solid transparent;
  background: transparent; cursor: pointer; font: 400 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eb-chip:hover, .eb-chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }

.eb-panel { display: grid; gap: 20px; min-width: 0; }
.eb-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.eb-tabs::-webkit-scrollbar { display: none; }
.eb-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0; margin-bottom: -1px;
  border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer;
  font: 400 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eb-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.eb-tab__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.eb-tab.is-done .eb-tab__dot { background: var(--gold); }
.eb-tab.is-missing .eb-tab__dot { background: var(--danger); }

.eb-families { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.eb-families .eb-chip { min-height: 28px; font-size: 10px; }
.eb-grid { list-style: none; margin: 0; padding: 0; display: grid; max-height: 470px; overflow-y: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }
.eb-opt {
  width: 100%; text-align: left; display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 16px; align-items: center;
  padding: 14px 4px 14px 12px; border: 0; border-bottom: 1px solid var(--line); border-left: 1px solid transparent;
  background: transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.eb-opt:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.eb-opt[aria-pressed="true"] { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.eb-opt.is-conflict { opacity: .6; }
.eb-opt__swatch { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }
.eb-opt__name { font: 400 15px/1.35 var(--font-body); }
.eb-opt__specs { grid-column: 2; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.eb-opt__foot { grid-column: 3; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 2px; font-size: 13px; }
.eb-opt__price { color: var(--ink); font-variant-numeric: tabular-nums; }
.eb-opt__warn { color: var(--danger); font-size: 11px; max-width: 150px; text-align: right; line-height: 1.3; }
.eb-empty { color: var(--muted); padding: 24px 0; }

.eb-summary { display: grid; gap: 14px; padding-top: 8px; }
.eb-summary__list { list-style: none; margin: 0; padding: 0; display: grid; font-size: 14px; }
.eb-summary__list li { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.eb-summary__list .k { color: var(--muted); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding-top: 4px; }
.eb-summary__list .v { overflow-wrap: anywhere; }
.eb-summary__list .p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.eb-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.eb-summary__total .ed-muted { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.eb-summary__total strong { font: 300 38px/1 var(--font-display); color: var(--ink); }
.eb-status { font-size: 14px; margin: 0; }
.eb-status.is-ok { color: var(--ok); }
.eb-status.is-error { color: var(--danger); }
.eb-note { font-size: 13px; color: var(--muted); margin: 0; }
.eb-summary .ed-btn { width: 100%; }

.eb-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; z-index: 80;
  background: var(--ink); color: var(--on-ink); padding: 14px 22px; font-size: 13px; letter-spacing: .02em; max-width: min(92vw, 520px);
  transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.eb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.eb-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 0; padding: 0; background: var(--bg); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .25); }
.eb-dialog::backdrop { background: rgba(20, 18, 14, .45); backdrop-filter: blur(4px); }
.eb-dialog form { display: grid; gap: 20px; padding: 36px 32px; }
.eb-dialog h3 { margin: 0; font-size: 32px; font-weight: 300; }
.eb-radios { display: grid; gap: 0; border: 0; padding: 0; margin: 0; }
.eb-radios legend { font: 400 11px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.eb-radio { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.eb-radio input { accent-color: var(--gold); }
.eb-dialog__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.eb-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .eb-row { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ed-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ================================================================== móvil y táctil
   El configurador y «Cinco capas» cambian de patrón en pantallas angostas: reloj fijo arriba,
   un paso a la vez, tarjetas que se deslizan y la acción principal abajo, al alcance del pulgar. */

.ed-menu-btn, .eb-stephead, .eb-bar, .eb-summary__toggle, .ed-steps-nav { display: none; }
.eb-chip__short { display: none; }
.ed-menu { display: none; }
.ed-config, .ed-explode { overflow-x: clip; }
/* Sin "anclaje de scroll" en el configurador: al encogerse el reloj (se acuesta) el navegador movía
   la página para compensar, eso lo volvía a levantar y rebotaba en el punto de giro */
.ed-config { overflow-anchor: none; }

@media (max-width: 1099px) {
  /* Menú ☰ (donde no caben los enlaces) */
  .ed-menu-btn {
    display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer; color: var(--ink);
  }
  .ed-menu-btn span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .3s ease; }
  .menu-open .ed-menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .ed-menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .ed-menu:not([hidden]) {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 76px); z-index: 49;
    padding: 24px 24px 48px; background: var(--bg); border-top: 1px solid var(--line);
  }
  .ed-menu a {
    font: 300 34px/1.2 var(--font-display); text-decoration: none; padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .menu-open, .menu-open body { overflow: hidden; }
}

@media (max-width: 999px) {
  .ed-nav__actions .ed-btn--sm { display: none; }
  .ed-theme { width: 44px; height: 44px; }

  /* Configurador: el reloj queda fijo arriba mientras se elige debajo */
  .eb.is-ready { gap: 0; grid-template-columns: minmax(0, 1fr); }
  .eb-panel, .eb-stage { min-width: 0; }
  /* Sin esto la columna del panel crece al ancho de la fila de tarjetas (miles de px) */
  .eb-panel { grid-template-columns: minmax(0, 1fr); }
  .eb-stage {
    position: sticky; top: 76px; z-index: 5; background: var(--bg);
    margin: 0 -16px; padding: 0 16px 6px; border-bottom: 1px solid var(--line);
  }
  .eb-watch, .eb-watch3d { height: 42vh; min-height: 270px; transition: height .45s ease, min-height .45s ease; }
  /* Al bajar: contenedor apaisado y bajo, el reloj acostado (el 3D gira solo; el 2D con CSS) */
  .eb-stage.is-compact .eb-watch, .eb-stage.is-compact .eb-watch3d { height: 24vh; min-height: 150px; }
  .eb-watch { overflow: hidden; }
  .eb-watch svg { transition: transform .45s ease; }
  .eb-stage.is-compact .eb-watch svg { height: min(88vw, 340px); transform: rotate(90deg); }
  /* El lienzo mantiene la altura del reloj de pie y el contenedor lo recorta al acostarse:
     así no se redimensiona en cada cuadro de la animación (antes daba tirones) */
  .eb-watch3d { overflow: hidden; }
  .eb-watch3d .eb-canvas { left: -8%; right: auto; top: 50%; bottom: auto; width: 116%; height: max(43.7vh, 281px); transform: translateY(-50%); }
  .eb-hint { display: none; }
  /* Nada se desplaza dentro de la página: los botones se acomodan en líneas */
  /* Opciones del reloj: una sola línea, sin desplazamiento (etiquetas cortas) */
  .eb-stage__bar { flex-wrap: nowrap; justify-content: space-between; gap: 0 8px; margin-top: 2px; }
  .eb-chip { min-height: 44px; font-size: 10.5px; letter-spacing: .16em; white-space: nowrap; }
  .eb-chip__long { display: none; }
  .eb-chip__short { display: inline; }
  .eb-chip--rotate { color: var(--ink); border-bottom-color: var(--gold); }
  .eb-chip--rotate[aria-pressed="true"] { color: var(--gold); }
  /* Mientras se gira, un borde fino indica que el reloj tiene el control del dedo */
  .eb-watch3d.is-rotating { outline: 1px solid var(--gold); outline-offset: -1px; }

  .eb-panel { gap: 14px; padding-top: 14px; padding-bottom: 8px; }
  .eb-tabs { display: none; }
  /* Menú de pasos fijo bajo el reloj (siempre a mano para cambiar de pieza) */
  .eb-stephead {
    display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
    position: sticky; top: calc(76px + var(--eb-stage-h, 0px)); z-index: 4;
    margin: -14px -16px 0; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .eb-stephead__btn {
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%;
    background: transparent; color: var(--ink); font: 300 24px/1 var(--font-display); cursor: pointer;
  }
  .eb-stephead__btn:disabled { opacity: .3; }
  .eb-stephead__mid { display: grid; justify-items: center; gap: 4px; text-align: center; }
  .eb-stephead__count { font: 400 10.5px/1 var(--font-body); letter-spacing: .22em; color: var(--muted); }
  .eb-stephead__name { font: 400 24px/1.1 var(--font-display); }
  .eb-stephead__dots { display: flex; gap: 5px; }
  .eb-stephead__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
  .eb-stephead__dots i.is-done { background: var(--gold); opacity: .55; }
  .eb-stephead__dots i.is-current { background: var(--gold); width: 16px; border-radius: 3px; }

  /* Familias: en líneas, sin fila deslizable */
  .eb-families { flex-wrap: wrap; gap: 0 16px; }
  .eb-families .eb-chip { min-height: 40px; }

  /* Piezas: cuadrícula de dos columnas que baja con el scroll normal de la página */
  .eb-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: none; overflow: visible; border: 0; padding: 4px 0 6px;
  }
  .eb-grid > li { min-width: 0; }
  .eb-opt {
    height: 100%; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; gap: 6px; align-items: start;
    padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface);
  }
  .eb-opt__name { font-size: 14px; }
  .eb-opt[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--surface); }
  .eb-opt__swatch { grid-row: auto; width: 40px; height: 40px; }
  .eb-opt__specs, .eb-opt__foot { grid-column: auto; grid-row: auto; }
  .eb-opt__foot { justify-items: start; }
  .eb-opt__warn { text-align: left; max-width: none; }

  /* Resumen plegable; el total y «Solicitar» quedan al final, sin barra fija */
  .eb-summary__toggle {
    display: block; width: 100%; min-height: 44px; border: 1px solid var(--line-strong); background: transparent;
    font: 400 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .eb-summary__list { display: none; }
  .eb-summary.is-open .eb-summary__list { display: grid; }

}

@media (max-width: 959px) {
  /* «Cinco capas»: reloj fijo con ‹ › encima; la lista queda como índice debajo */
  .ed-explode__grid { gap: 0; }
  .ed-explode__watch {
    position: sticky; top: 76px; z-index: 3; height: 50vh; min-height: 300px; background: var(--bg);
    margin: 0 -16px; width: calc(100% + 32px); border-bottom: 1px solid var(--line); touch-action: pan-y;
  }
  .ed-explode__watch.is-assembled { transform: none; }
  .ed-steps-nav {
    display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
    position: absolute; left: 16px; right: 16px; bottom: 8px; z-index: 2;
  }
  .ed-steps-nav button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--ink); font: 300 24px/1 var(--font-display);
  }
  .ed-steps-nav button:disabled { opacity: .3; }
  .ed-steps-nav span { text-align: center; font: 400 10.5px/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
  .ed-explode__copy { padding-top: 28px; }
  .ed-steps-head, .ed-steps-hint { display: none; }
  .ed-layer { min-height: 52px; }

  /* Inicio un poco más compacto */
  .ed-hero__watch { height: 62vh; min-height: 360px; }
}

@media (hover: none) and (pointer: coarse) {
  .eb-chip, .ed-link, .ed-footer a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ================================================================== cambio de tema: barrido del segundero
   El tema nuevo se revela con un barrido cónico desde las 12 con centro en el medio de la pantalla, y
   una aguja (capa «ed-hand» de la transición) gira encima marcando el borde. Lo maneja landing.js. */
@property --sweep {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  -webkit-mask: conic-gradient(from 0deg at var(--sweep-x, 50%) var(--sweep-y, 50%), #000 var(--sweep), transparent 0);
  mask: conic-gradient(from 0deg at var(--sweep-x, 50%) var(--sweep-y, 50%), #000 var(--sweep), transparent 0);
}
::view-transition-group(ed-hand) { animation: none; transform-origin: var(--hand-x, 50%) var(--hand-y, 50%); }
::view-transition-old(ed-hand),
::view-transition-new(ed-hand) { animation: none; }
.ed-sweep-hand { position: fixed; inset: 0; z-index: 100; pointer-events: none; view-transition-name: ed-hand; }
.ed-sweep-hand svg { display: block; width: 100%; height: 100%; }
.ed-sweep-hand__line { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.ed-sweep-hand__pearl { fill: #e6ecd2; stroke: var(--gold); stroke-width: 1.4; }
.ed-sweep-hand__weight { fill: var(--gold); }
.ed-sweep-hand__cap { fill: var(--gold); stroke: var(--bg); stroke-width: 1.5; }
