/* Livestream MX · Dance Cam (página dinámica)
   Base de bodas (marfil, arena, dorado) con una noche de pista: fondo oscuro, rosa neón y cian.
   Las escenas ligadas al scroll las mueve js/dc.js con variables de CSS. */
.dc { --night: #120e13; --night-2: #1d1619; --neon: #ff4f9e; --neon-2: #4fd8ff; --warm: #e9d6b4; }
.dc h1 em, .dc h2 em, .dc p em { color: #b0546f; }
.dc .kicker { display: block; margin-bottom: 14px; }
.dc .h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 940px; text-wrap: balance; }
/* La portada es de noche: el menú va claro sobre ella */
.bodas:has(.dc) .nav:not(.scrolled) { background: linear-gradient(rgba(18,14,19,.6), rgba(18,14,19,0)); }
.bodas:has(.dc) .nav:not(.scrolled) .b-logo span, .bodas:has(.dc) .nav:not(.scrolled) .nav-links a, .bodas:has(.dc) .nav:not(.scrolled) .menu-btn { color: #fbf8f2; }
.bodas:has(.dc) .nav:not(.scrolled) .lang { border-color: rgba(251,248,242,.5); color: #fbf8f2; }

/* Píxeles de pantalla LED (sobre cualquier video) */
.dc-led { position: absolute; inset: 0; pointer-events: none; opacity: var(--led, .55); mix-blend-mode: multiply;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,1) 0 42%, rgba(0,0,0,.85) 72%) 0 0 / 4px 4px; }
.dc-live { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(18,14,19,.72); color: #fff; font-size: 11px; letter-spacing: .16em; font-weight: 400; }
.dc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: dc-blink 1.2s steps(2, start) infinite; }
@keyframes dc-blink { to { visibility: hidden; } }

/* ---------- 1 · Portada ---------- */
.dc-hero { position: relative; height: 420vh; background: var(--night); }
.dc-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fbf8f2;
  background: radial-gradient(ellipse 80% 60% at 50% 38%, #2a1b2a 0%, var(--night) 70%); }
.dc-photo, .dc-front { position: absolute; left: 0; top: 0; width: 2400px; max-width: none; height: auto; transform-origin: 0 0; pointer-events: none; user-select: none; }
.dc-photo { opacity: var(--st, 0); }
.dc-front { opacity: var(--fr, 0); }
/* Celular: la foto no llena el alto; se funde arriba y abajo con la noche */
.dc-port .dc-photo, .dc-port .dc-front { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); }
.dc-screen { position: absolute; left: 0; top: 0; overflow: hidden; background: #000; transform-origin: 0 0; will-change: transform; }
.dc-screen .dc-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-screen .dc-led { opacity: var(--led, 0); }
.dc-screen .dc-live { opacity: var(--lv, 0); }
/* Visor de la cámara: REC, código de tiempo y esquinas */
.dc-vf { position: absolute; inset: max(76px, 9vh) max(20px, 4vw) max(20px, 4vh); opacity: var(--vf, 1); pointer-events: none; font: 13px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.dc-vf > span { position: absolute; }
.dc-vf .rec { left: 22px; top: 18px; display: flex; align-items: center; gap: 8px; }
.dc-vf .rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: dc-blink 1s steps(2, start) infinite; }
.dc-vf .tc { right: 22px; top: 18px; }
.dc-vf .bat { left: 22px; bottom: 18px; }
.dc-vf .ch { right: 22px; bottom: 18px; }
.dc-vf .k { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.85); }
.dc-vf .tl { left: 0; top: 0; border-right: 0; border-bottom: 0; } .dc-vf .tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.dc-vf .bl { left: 0; bottom: 0; border-right: 0; border-top: 0; } .dc-vf .br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.dc-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(18,14,19,.5) 0%, rgba(18,14,19,0) 16%, rgba(18,14,19,0) 50%, rgba(18,14,19,.85) 100%); opacity: var(--vl, .7); }
.dc-cap { position: absolute; left: 0; right: 0; bottom: max(8vh, 48px); padding: 0 var(--gutter); text-align: center; pointer-events: none; }
.dc-cap > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dc-cap .kicker { color: var(--warm); margin: 0; }
.dc-cap h1, .dc-cap p.display { font-size: clamp(38px, 6vw, 92px); margin: 0; line-height: 1.02; text-shadow: 0 2px 40px rgba(18,14,19,.6); text-wrap: balance; max-width: 1100px; }
.dc .dc-cap em { color: #ffc6dc; }
.dc-cap .c2, .dc-cap .c3 { opacity: 0; }
.dc-cap .c2 p.display, .dc-cap .c3 p.display { font-size: clamp(32px, 4.6vw, 70px); }
.dc-cap .btn-row { justify-content: center; pointer-events: auto; }
.dc-cap .btn-ghost { color: #fbf8f2; border-color: rgba(251,248,242,.7); background: rgba(18,14,19,.25); }
.dc-cap .btn-primary { background: #fbf8f2; color: var(--ink); }
.dc-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(251,248,242,.8); }
.dc-hint i { width: 1px; height: 30px; background: linear-gradient(rgba(251,248,242,.9), rgba(251,248,242,0)); animation: dc-drop 1.8s infinite; }
@keyframes dc-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .dc-cap .btn-row { flex-direction: column; } .dc-vf { font-size: 10px; } .dc-vf .bat, .dc-vf .ch { display: none; } }

.dc-lead { padding-block: 130px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.dc-lead .lead { font-family: var(--display); font-size: clamp(26px, 3vw, 42px); line-height: 1.25; color: var(--ink); max-width: 940px; margin: 0; text-wrap: balance; }
.dc-quote { margin: 0; font-family: var(--display); font-style: italic; font-size: 24px; color: #b0546f; }

/* ---------- 2 · Circuito cerrado ---------- */
.dc-flow { padding: 90px 0 140px; }
.dc-path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 64px; }
.dc-wire { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 40px; overflow: visible; z-index: 0; }
.dc-wire path { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p, 0) - .15) * 2.4, 1)); vector-effect: non-scaling-stroke; }
.dc-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.dc-node .ico { position: relative; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 20px 40px -24px rgba(58,49,41,.45); }
.dc-node .ico svg { width: 46px; }
.dc-node:nth-child(3) .ico { background: var(--night); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgba(255,79,158,.12), 0 0 40px rgba(255,79,158,.35); }
.dc-node .wave { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--gold-2); animation: dc-ring 2.4s cubic-bezier(.2,.6,.3,1) infinite; }
.dc-node .wave + .wave { animation-delay: 1.2s; }
@keyframes dc-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.dc-node strong { font-size: 28px; font-weight: 500; margin-top: 10px; }
.dc-node > span:not(.ico) { color: var(--ink-2); font-size: 16px; max-width: 300px; }
.dc-node-foto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-top: auto; position: relative; top: 18px; box-shadow: 0 24px 50px -30px rgba(58,49,60,.5); }
@media (max-width: 760px) {
  .dc-path { grid-template-columns: 1fr; gap: 50px; }
  .dc-wire { display: none; }
}

/* ---------- 3 · Dinámicas (pantalla fija, pasos que corren) ---------- */
.dc-hap { background: var(--night); color: #f4eee4; padding: 140px 0 60px; }
.dc-hap .kicker { color: var(--warm); }
.dc .dc-hap h2 em { color: #ffb3d1; }
.dc-hap-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 90px); }
.dc-hap-head { grid-column: 1 / -1; margin-bottom: 30px; }
.dc-steps { list-style: none; margin: 0; padding: 0; grid-column: 1; }
.dc-steps li { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: .3; transition: opacity .5s; }
.dc-steps li.on { opacity: 1; }
.dc-steps b { font: 13px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--neon); letter-spacing: .14em; }
.dc-steps strong { font-size: clamp(40px, 4.4vw, 64px); font-weight: 400; }
.dc-steps li.on strong { text-shadow: 0 0 30px rgba(255,79,158,.45); }
.dc-steps span { color: #d3c7b9; font-size: 18px; max-width: 460px; }
.dc-tv-col { grid-column: 2; grid-row: 2; }
.dc-tv { position: sticky; top: calc(50vh - min(17vw, 210px)); width: 100%; aspect-ratio: 3 / 2; max-height: 62vh; margin-inline: auto; overflow: hidden; background: #000; border-radius: 6px;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9); }
.dc-tv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.dc-tv[data-k="dance"] video[data-k="dance"], .dc-tv[data-k="kiss"] video[data-k="kiss"], .dc-tv[data-k="shot"] video[data-k="shot"], .dc-tv[data-k="lipsync"] video[data-k="lipsync"] { opacity: 1; }
.dc-tv .noise { position: absolute; inset: -20%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, transparent 2px 5px), linear-gradient(90deg, rgba(255,79,158,.35), rgba(79,216,255,.35)); }
.dc-tv.zap .noise { animation: dc-zap .38s steps(6) both; }
.dc-tv.zap video { animation: dc-shake .38s steps(6) both; }
@keyframes dc-zap { 0% { opacity: 1; transform: translateY(0); } 50% { opacity: .8; transform: translateY(-6%); } 100% { opacity: 0; transform: translateY(4%); } }
@keyframes dc-shake { 0% { transform: translateX(-3%) skewX(4deg); filter: saturate(2) hue-rotate(40deg); } 40% { transform: translateX(2%) skewX(-3deg); } 100% { transform: none; filter: none; } }
.dc-dots { display: flex; justify-content: center; gap: 10px; position: sticky; top: calc(50vh + min(17vw, 210px) + 30px); margin-top: 26px; }
.dc-dots i { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); transition: background .3s, box-shadow .3s; }
.dc-tv-col[data-k="dance"] i[data-k="dance"], .dc-tv-col[data-k="kiss"] i[data-k="kiss"], .dc-tv-col[data-k="shot"] i[data-k="shot"], .dc-tv-col[data-k="lipsync"] i[data-k="lipsync"] { background: var(--neon); box-shadow: 0 0 10px var(--neon); }
@media (max-width: 860px) {
  .dc-hap-in { grid-template-columns: 1fr; }
  .dc-tv-col { grid-column: 1; grid-row: 2; position: sticky; top: 72px; z-index: 2; height: 0; }
  .dc-tv { position: relative; top: 0; width: 100%; max-height: none; }
  .dc-dots { position: relative; top: 0; margin-top: 16px; }
  .dc-steps { grid-row: 3; }
  .dc-steps li { min-height: 80vh; justify-content: flex-end; padding-bottom: 10vh; }
  .dc-steps span { font-size: 16px; }
}

/* ---------- 4 · La noche (scroll horizontal) ---------- */
.dc-night { position: relative; height: 420vh; background: var(--night); color: #f4eee4; }
.dc-night-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.dc-night-head { width: 100%; }
.dc-night-head .kicker { color: var(--warm); }
.dc .dc-night-head h2 em { color: #ffb3d1; }
.dc-night-head .lead { color: #d3c7b9; max-width: 620px; margin-top: 14px; }
.dc-line { height: 1px; background: rgba(244,238,228,.18); margin-inline: var(--gutter); }
.dc-line i { display: block; height: 100%; width: calc(var(--mp, 0) * 100%); background: linear-gradient(90deg, var(--neon-2), var(--neon)); box-shadow: 0 0 12px var(--neon); }
.dc-track { display: flex; gap: 28px; padding-inline: var(--gutter); transform: translateX(var(--mx, 0px)); will-change: transform; }
.dc-track figure { flex: none; width: clamp(280px, 34vw, 520px); margin: 0; display: flex; flex-direction: column; gap: 14px; }
.dc-track img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.9); transform: scale(calc(.92 + .08 * var(--f, 0))); opacity: calc(.45 + .55 * var(--f, 0)); transition: transform .4s var(--ease), opacity .4s; }
.dc-track figcaption { display: flex; flex-direction: column; gap: 2px; }
.dc-track time { font: 30px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--warm); letter-spacing: -.02em; }
.dc-track strong { font-weight: 500; font-size: 17px; }
.dc-track span { font-size: 14px; color: #bfb2a3; }
@media (max-width: 700px) { .dc-night-head .lead { display: none; } .dc-track figure { width: 78vw; } .dc-track time { font-size: 24px; } }

/* ---------- 5 · Después de la fiesta ---------- */
.dc-after { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: 160px 120px; }
.dc-after-tx { display: flex; flex-direction: column; gap: 20px; }
.dc-after-tx .lead { margin: 0; }
.dc-film { position: relative; }
.dc-film-scr { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 60px 100px -50px rgba(58,49,41,.8); transform: translateY(calc((.5 - var(--p, .5)) * 60px)); }
.dc-film-scr video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-film-strip { display: flex; gap: 8px; margin-top: 14px; padding: 8px; background: #17120f; border-radius: 6px; transform: translateX(calc((.5 - var(--p, .5)) * -120px)); position: relative; }
.dc-film-strip::before, .dc-film-strip::after { content: ""; position: absolute; left: 6px; right: 6px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 14px); }
.dc-film-strip::before { top: 2px; } .dc-film-strip::after { bottom: 2px; }
.dc-film-strip img { flex: 1; min-width: 0; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
@media (max-width: 860px) { .dc-after { grid-template-columns: 1fr; padding-block: 110px 80px; } }

/* ---------- 6 · Incluye ---------- */
.dc-incl { background: linear-gradient(180deg, var(--bg-2), #f6e9ee); padding: 140px 0; }
.dc-incl ul { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
.dc-incl li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.dc-incl li::before { content: "✦"; position: absolute; left: 0; top: 18px; color: #c46a8c; font-size: 14px; }
.dc-incl-foto { margin: 50px 0 0; }
.dc-incl-foto img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%; border-radius: 18px; display: block; }
@media (max-width: 760px) { .dc-incl ul { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; } }
@media (max-width: 760px) { .dc-incl-foto img { aspect-ratio: 3 / 2; } }
.dc-combo { margin-top: 60px; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: rgba(251,248,242,.6); }
.dc-combo > div { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.dc-combo strong { font-size: 28px; font-weight: 500; }
.dc-combo span { color: var(--muted); font-size: 15px; }

/* ---------- 7 · Cierre ---------- */
.dc-cta { position: relative; overflow: hidden; padding: 150px 0 120px; color: #fbf8f2; background: var(--night); }
.dc-cta-bg { position: absolute; inset: 0; }
.dc-cta-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - .18 * var(--p, 0))); will-change: transform; }
.dc-cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(18,14,19,.6), rgba(18,14,19,.86)); }
.dc-cta-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dc-cta .kicker { color: var(--warm); }
.dc .dc-cta h2 em { color: #ffc6dc; }
.dc-cta .lead { color: #e6dccf; margin: 16px auto 0; text-align: center; }
.dc-cta form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; width: 100%; max-width: 920px; margin: 44px auto 0; text-align: left; background: rgba(251,248,242,.95); color: var(--ink); padding: 34px; border-radius: 12px; }
.dc-cta form .btn { grid-column: 1 / -1; justify-self: center; margin-top: 10px; }
.dc-legal { grid-column: 1 / -1; text-align: center; margin: 0; font-size: 13px; }
.dc-ok { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.dc-ok[hidden] { display: none; }
.dc-back { margin-top: 40px; }
.dc-back .btn-ghost { color: #fbf8f2; border-color: rgba(251,248,242,.6); background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .dc-node .wave, .dc-hint i { animation: none; }
}
