/* Ambar Wedding Studio · paleta y componentes propios (se carga después de bodas.css)
   Marfil #F6F0E6 · Negro cálido #14110F · Arena #E4D9C6 · Ámbar #D98E04 · Ámbar oscuro #9A5F05
   Reglas: el ámbar es la joya (≤5 %). Texto ámbar sobre claro: siempre ámbar oscuro. */
body.bodas {
  --bg: #F6F0E6;
  --bg-2: #FBF7EF;
  --sand: #E4D9C6;
  --ink: #14110F;
  --ink-2: #4A413A;
  --muted: #6B5B45;
  --line: #E4D9C6;
  --gold: #9A5F05;
  --gold-2: #D98E04;
  --orange: #9A5F05;
  --orange-2: #9A5F05;
  --card: #FBF7EF;
  --amber: #D98E04;
  --amber-deep: #9A5F05;
  --ivory: #F6F0E6;
  background: var(--bg);
  color: var(--ink);
}
.bodas .nav.scrolled { background: rgba(246,240,230,.86); border-color: rgba(20,17,15,.1); }
@media (max-width: 1080px) { .bodas .nav-links { background: rgba(246,240,230,.98); } }
.bodas .btn-primary { background: var(--ink); color: #FBF7EF; box-shadow: 0 14px 40px -18px rgba(20,17,15,.6); }
.bodas .btn-ghost { border-color: var(--ink); background: rgba(251,247,239,.5); color: var(--ink); }
.bodas .lang button[aria-pressed="true"] { background: var(--ink); color: #FBF7EF; }
.bodas .b-hero .veil { background: rgba(246,240,230, calc(.62 + .28 * var(--p, 0))); }
.bodas .b-hero h1 em { color: var(--amber-deep); }
.bodas .b-respect { background: var(--ink); color: #F6F0E6; }
.bodas .b-respect .kicker { color: var(--amber); }

/* Logotipo: wordmark en cursiva con el punto ámbar (la gota de resina) */
.ambar-logo { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.ambar-logo .wm { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 32px; letter-spacing: .1em; line-height: 1; color: var(--ink); }
.ambar-logo .wm i { font-style: normal; color: var(--amber); }
.ambar-logo small { font-family: var(--body); font-weight: 500; font-size: 10px; letter-spacing: .38em; color: var(--amber-deep); }
@media (max-width: 640px) { .ambar-logo small { display: none; } .ambar-logo .wm { font-size: 30px; } }

/* Los servicios, en un carrusel horizontal */
.reel { background: var(--bg-2); padding: 130px 0 110px; overflow: hidden; }
.reel-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 56px; padding-inline: var(--gutter); }
.reel-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 8px var(--gutter) 28px; }
.reel-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { .reel-rail { padding-inline: calc((100vw - 1240px) / 2); } }
.rcard { position: relative; flex: 0 0 min(78vw, 340px); aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; scroll-snap-align: center; color: #FBF7EF; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; text-decoration: none; isolation: isolate; box-shadow: 0 40px 70px -40px rgba(20,17,15,.6); }
.rcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.rcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,17,15,.9), rgba(20,17,15,.05) 62%); }
.rcard:hover img, .rcard:focus-visible img { transform: scale(1.05); }
.rcard .no { position: absolute; top: 22px; left: 26px; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--amber); }
.rcard .tag { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.rcard h3 { font-family: var(--display); font-size: 36px; font-weight: 500; line-height: 1.02; margin: 0 0 10px; }
.rcard p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; opacity: .92; }
.rcard .go { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.rcard.type::after { background: none; }
.rcard.type .mark { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-style: italic; font-size: 170px; line-height: 1; color: var(--amber); opacity: .9; }
.reel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.reel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #cdbfa9; background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--ink); }

/* Pasos, incluye y venta cruzada de las páginas de servicio */
.svc { padding-block: 120px 40px; }
.svc .lead { max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; counter-reset: s; list-style: none; padding: 0; margin: 48px 0 0; }
.steps li { border-top: 1px solid #cdbfa9; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-style: italic; font-size: 26px; color: var(--amber-deep); }
.steps strong { font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.1; }
.incl { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 44px; }
.incl li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.incl li::before { content: ""; position: absolute; left: 0; top: 25px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.xsell { background: var(--bg-2); padding: 100px 0; }
.xsell .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.xsell .row a { border: 1px solid #cdbfa9; border-radius: 999px; padding: 12px 22px; text-decoration: none; color: var(--ink); background: var(--bg); }
.xsell .row a:hover { border-color: var(--amber-deep); color: var(--amber-deep); }

/* Planners */
.planners-cta { background: var(--ink); color: #F6F0E6; padding: 120px var(--gutter); text-align: center; }
.planners-cta .kicker { color: var(--amber); }
.planners-cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 58px); line-height: 1.1; max-width: 860px; margin: 18px auto 0; }
.planners-cta p { max-width: 620px; margin: 22px auto 34px; color: #d8cfbf; font-size: 18px; line-height: 1.6; }
.planners-cta .btn-primary { background: var(--amber); color: var(--ink); }
.pl-menu { max-width: 980px; margin: 56px auto 0; }
.pl-row { display: grid; grid-template-columns: minmax(160px, 240px) 1fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid #cdbfa9; }
.pl-row:last-child { border-bottom: 1px solid #cdbfa9; }
.pl-row h3 { font-family: var(--display); font-size: 32px; font-weight: 500; margin: 0; }
.pl-row h3 small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: .24em; color: var(--amber-deep); text-transform: uppercase; margin-top: 6px; font-weight: 500; }
.pl-row p { margin: 0; color: var(--ink-2); }
.pl-row a { color: var(--amber-deep); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .pl-row { grid-template-columns: 1fr; gap: 10px; } }

/* Formulario: servicios de interés */
.bodas .pick button { border-color: #cdbfa9; color: var(--ink); }
.bodas .pick button[aria-pressed="true"] { background: var(--ink); color: #FBF7EF; border-color: var(--ink); }
.b-form .pick { grid-column: 1 / -1; }
.b-form .pick-label { grid-column: 1 / -1; color: var(--ink-2); letter-spacing: .04em; font-size: 14px; margin-bottom: -8px; }

/* Dance Cam abre con una portada oscura: logotipo y menú en marfil hasta que se hace scroll */
body:has(main.dc) .nav:not(.scrolled) .ambar-logo .wm,
body:has(main.dc) .nav:not(.scrolled) .nav-links a,
body:has(main.dc) .nav:not(.scrolled) .menu-btn { color: #FBF7EF; }

/* Tráiler de Film */
.trailer video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 6px; display: block; box-shadow: 0 50px 90px -50px rgba(20,17,15,.6); }
.trailer .muted { margin-top: 12px; font-size: 13px; }

/* ============================================================
   Movimiento y escenas (inspirado en Apple y Tesla): minimalismo, lujo silencioso
   ============================================================ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Menú «Servicios» desplegable */
.nav-dd { position: relative; }
.nav-dd > button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 0; letter-spacing: inherit; }
.nav-dd > button::after { content: ""; width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav-dd[data-open="true"] > button::after { transform: translateY(1px) rotate(-135deg); }
.dd-panel { position: absolute; top: calc(100% + 20px); left: -28px; min-width: 360px; background: rgba(251,247,239,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 6px; padding: 10px; box-shadow: 0 50px 90px -40px rgba(20,17,15,.55); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.nav-dd[data-open="true"] .dd-panel { opacity: 1; visibility: visible; transform: none; }
.nav-links .dd-panel a { display: grid; gap: 3px; padding: 13px 16px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.nav-links .dd-panel a:hover { background: var(--sand); color: var(--ink); }
.dd-panel strong { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.1; }
.dd-panel span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-deep); font-weight: 500; }
@media (max-width: 1080px) {
  .dd-panel { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 8px 14px; min-width: 0; }
  .nav-dd[data-open="true"] .dd-panel { display: block; }
}

/* Portada a pantalla completa con video */
.hv { position: relative; height: 250vh; background: var(--ink); }
.hv .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ivory); }
.hv .stage video, .hv .stage .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.03 + .13 * var(--p, 0))); transform-origin: 50% 42%; }
.hv .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,15,.86), rgba(20,17,15,.1) 58%, rgba(20,17,15,.42)); }
.hv .veil::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: calc(.62 * var(--p, 0)); }
.hv .copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(12vh, 80px); max-width: 1040px; transform: translateY(calc(-90px * var(--p, 0))); opacity: calc(1 - 1.9 * var(--p, 0)); }
body.bodas .hv .kicker { color: var(--amber); }
body.bodas .hv h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7.6vw, 124px); line-height: .98; letter-spacing: -.012em; margin: 14px 0 0; color: var(--ivory); }
body.bodas .hv h1 em { color: var(--amber); font-style: italic; }
body.bodas .hv .lead { color: rgba(246,240,230,.84); max-width: 540px; margin: 24px 0 30px; font-size: clamp(16px, 1.5vw, 19px); }
.hv .btn-primary { background: var(--ivory); color: var(--ink); box-shadow: none; }
.hv .btn-ghost { border-color: rgba(246,240,230,.55); color: var(--ivory); background: transparent; }
.hv .cue { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 54px; background: linear-gradient(var(--amber), transparent); transform-origin: top; animation: cue 2.6s var(--ease) infinite; opacity: calc(1 - 4 * var(--p, 0)); }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Menú sobre la portada oscura */
body:has(.hv) .nav:not(.scrolled):not(.open) .ambar-logo .wm,
body:has(.hv) .nav:not(.scrolled):not(.open) .nav-links a,
body:has(.hv) .nav:not(.scrolled):not(.open) .nav-dd > button,
body:has(.hv) .nav:not(.scrolled):not(.open) .menu-btn,
body:has(.hv) .nav:not(.scrolled):not(.open) .lang button { color: #FBF7EF; }
body:has(.hv) .nav:not(.scrolled):not(.open) .lang { border-color: rgba(251,247,239,.4); }
body:has(.hv) .nav:not(.scrolled):not(.open) .lang button[aria-pressed="true"] { background: #FBF7EF; color: var(--ink); }
body:has(.hv) .nav:not(.scrolled):not(.open) .btn-primary { background: #FBF7EF; color: var(--ink); }

/* Declaración palabra por palabra */
.bodas .scene-words { height: 230vh; background: var(--bg); }
.bodas .scene-words .stick { justify-content: center; padding: 0 var(--gutter); }
.bodas .words { font-family: var(--display); font-style: italic; font-stretch: normal; font-weight: 500; font-size: clamp(34px, 5.2vw, 82px); line-height: 1.1; letter-spacing: -.01em; max-width: 1120px; margin: 0 auto; text-align: center; }
.bodas .words span { color: rgba(20,17,15,.16); transition: color .5s var(--ease); }
.bodas .words span.on { color: var(--ink); }
.bodas .words span.on.hl { color: var(--amber-deep); }

/* Servicios: paneles que se apilan al hacer scroll */
.sv-head { padding: 120px var(--gutter) 64px; background: var(--bg); }
.stack { position: relative; }
.sp { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); color: var(--ivory); transform: scale(calc(1 - .06 * var(--q, 0))); transform-origin: 50% 0; filter: brightness(calc(1 - .55 * var(--q, 0))); border-radius: calc(26px * (1 - var(--e, 1))) calc(26px * (1 - var(--e, 1))) 0 0; will-change: transform; }
.sp .media { position: absolute; inset: 0; }
.sp .media video, .sp .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.16 - .16 * var(--e, 0))); }
.sp .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,15,.88), rgba(20,17,15,.12) 62%), linear-gradient(to right, rgba(20,17,15,.55), transparent 60%); }
.sp .txt { position: absolute; left: var(--gutter); bottom: max(11vh, 70px); max-width: 600px; opacity: calc((var(--e, 0) - .25) * 2); transform: translateY(calc((1 - var(--e, 0)) * 60px)); }
body.bodas .sp .no { display: block; font-family: var(--display); font-style: italic; font-size: 26px; color: var(--amber); }
body.bodas .sp .tag { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--amber); font-weight: 500; }
body.bodas .sp h2 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 8vw, 128px); line-height: .96; margin: 12px 0 20px; letter-spacing: -.01em; }
body.bodas .sp .frase { font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; color: var(--ivory); margin-bottom: 12px; }
body.bodas .sp p { color: rgba(246,240,230,.82); font-size: 17px; line-height: 1.55; max-width: 460px; }
body.bodas .sp .go { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--ivory); text-decoration: none; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.sp .go i { width: 46px; height: 1px; background: var(--amber); position: relative; transition: width .4s var(--ease); }
.sp .go:hover i { width: 70px; }
.sp.light { background: var(--bg-2); color: var(--ink); }
.sp.light .veil { display: none; }
body.bodas .sp.light h2, body.bodas .sp.light .frase { color: var(--ink); }
body.bodas .sp.light p { color: #4a413a; }
body.bodas .sp.light .go { color: var(--ink); }
body.bodas .sp.light .no, body.bodas .sp.light .tag { color: var(--amber-deep); }
.sp .phone { position: absolute; right: max(8vw, 28px); top: 50%; height: 80vh; width: auto; max-width: 42vw; object-fit: contain; border-radius: 34px; box-shadow: 0 70px 120px -50px rgba(20,17,15,.7); transform: translateY(-50%) translateY(calc((1 - var(--e, 0)) * 90px)) rotate(calc(5deg * (1 - var(--e, 0)))); }
.sp.cine .media { inset: 13vh 0; }
.sp.cine .veil { background: linear-gradient(to top, rgba(20,17,15,.8), transparent 55%); inset: 13vh 0; }
@media (max-width: 760px) {
  .sp .phone { right: 50%; transform: translate(50%, 0) translateY(calc((1 - var(--e, 0)) * 60px)); top: 7vh; height: 46vh; max-width: 70vw; }
  .sp .txt { bottom: 8vh; }
}

/* Revelado más suave en todo el sitio */
.js .reveal { transition-duration: 1.3s; }
@media (prefers-reduced-motion: reduce) { .hv, .sp, .bodas .scene-words { height: auto; } .sp { position: relative; } .hv .stage { position: relative; } }

/* El desplegable conserva texto oscuro aunque el menú esté sobre la portada */
body:has(.hv) .nav:not(.scrolled):not(.open) .nav-links .dd-panel a,
body.bodas .nav-links .dd-panel a { color: var(--ink); }
body:has(.hv) .nav:not(.scrolled):not(.open) .nav-links .dd-panel a strong { color: var(--ink); }
body:has(.hv) .nav:not(.scrolled):not(.open) .nav-links .dd-panel a span { color: var(--amber-deep); }
