/* Hojas y capas: Bitácora, visor de fotos, avisos, radio (formulario dentro del monitor) y botón de sonido.
   Legibilidad: textos de datos ≥ 16 px, contraste alto, áreas táctiles ≥ 44 px. */

/* ---------- botón de sonido (esquina de la ventana) ---------- */
.sound-btn { position: absolute; z-index: 4; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; color: var(--cream);
  background: rgba(23, 18, 53, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 247, 236, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sound-btn:focus-visible { outline: 3px solid var(--theme-gold); outline-offset: 2px; }
.is-showcase .sound-btn, .is-showcase .dash, .is-showcase .ui { display: none !important; }
.is-showcase .window { height: 100%; }
/* vitrina: la cabina a sangre en su marco (iframe del home, imagen OG), sin marco de teléfono */
.is-showcase .app { inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; border-radius: 0 !important; box-shadow: none !important; }

/* ---------- Bitácora ---------- */
.sheet { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(11, 9, 34, 0); transition: background .35s ease; }
.sheet.is-on { background: rgba(11, 9, 34, .55); }
.spanel { position: relative; width: 100%; height: calc(100% - 28px); display: flex; flex-direction: column; border-radius: 26px 26px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #FFF9F1, #F6EEFF); color: var(--ink); transform: translateY(100%); transition: transform .38s var(--ease-soft); box-shadow: 0 -12px 40px rgba(0, 0, 0, .4); }
.sheet.is-on .spanel { transform: none; }
.rm .spanel { transition-duration: .01s; }
.sclose { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: rgba(30, 27, 75, .08); color: var(--ink); }
/* (columna flexible con tarjetas que no se encogen: en una rejilla de alto fijo, las tarjetas con overflow:hidden se
   aplastaban para caber y sólo se veía su título) */
.sbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.sbody > * { flex: none; }
.shead { padding: 4px 48px 4px 4px; }
.skick { margin: 0; font: 700 12px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--theme); }
.shead h2 { margin: 4px 0 2px; font: 600 28px/1.1 var(--font-head); color: var(--ink); }
.ssub { margin: 0; font-size: 16px; color: #3B2A7A; }
.smsg { margin: 8px 0 0; font-size: 16px; color: #3B2A7A; }
.scard { position: relative; padding: 14px 14px 14px 20px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 2px 0 rgba(30, 27, 75, .06), 0 8px 20px rgba(30, 27, 75, .08); font-size: 16px; line-height: 1.4; overflow: hidden; }
.scard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--stripe, var(--theme)); }
.c-date { --stripe: var(--theme-gold); } .c-place { --stripe: var(--theme-2); } .c-plan { --stripe: var(--theme-accent); } .c-dress { --stripe: var(--theme-hi); }
.c-gifts { --stripe: #FF8FA3; } .c-photos { --stripe: var(--theme-2); } .c-faq { --stripe: #B9A2FF; } .c-contact { --stripe: #9BE5B4; } .c-live { --stripe: var(--theme); }
.scard h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 18px/1.2 var(--font-head); color: var(--ink); }
.sic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--stripe) 22%, #FFFFFF); color: var(--ink); }
.scard p { margin: 0; }
.sbig { font: 600 20px/1.2 var(--font-head); }
.scard .big { font: 600 20px/1.2 var(--font-head); color: var(--ink); }
.scard .addr, .scard .note { color: #3B2A7A; font-size: 16px; }
.scard .note { display: flex; gap: 6px; margin-top: 8px; }
.scard .mbtn { color: var(--ink); background: linear-gradient(180deg, #FFFFFF, #EFE7FF); box-shadow: 0 3px 0 #CFC2F0, 0 4px 10px rgba(30, 27, 75, .1); }
.scard .mbtn.is-primary { color: var(--on-theme); background: linear-gradient(180deg, var(--theme-hi), var(--theme)); box-shadow: 0 3px 0 var(--theme-lo); }
.scard .itin li { background: #F6F1FF; } .scard .itin .time { color: var(--theme-lo); } .scard .itin .what { color: var(--ink); }
.scard .gifts li { background: #F6F1FF; } .scard .gifts li.is-top { background: linear-gradient(90deg, #FFF1C6, #FFF9E6); box-shadow: inset 0 0 0 1px #F2C94C; }
.scard .gifts .gn { color: var(--ink); } .scard .gifts .gnote { color: #5A4E8C; } .scard .gifts .gi { color: var(--theme); }
.check { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.check li { display: flex; gap: 8px; align-items: flex-start; } .check li span:first-child { color: #3DB57A; flex: none; }
.faq details { padding: 10px 0; border-top: 1px solid #EEE6FF; } .faq details:first-child { border-top: 0; padding-top: 0; }
.faq summary { min-height: 32px; cursor: pointer; font: 600 16px/1.3 var(--font-head); list-style: none; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 22px; line-height: 1; color: var(--theme); } .faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 4px; color: #3B2A7A; }
.contact p { margin-bottom: 6px; color: #3B2A7A; }
.scard .pgrid { margin-top: 0; }
.scard .pthumb { box-shadow: none; background: #EEE6FF; }
.sbar { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(246, 238, 255, 0), #F6EEFF 30%); display: grid; gap: 4px; justify-items: center; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 0; border-radius: 999px; cursor: pointer; font: 600 19px/1 var(--font-head); color: var(--ink); background: #FFFFFF; }
.sbtn.is-primary { color: var(--on-theme); background: linear-gradient(180deg, var(--theme-hi), var(--theme)); box-shadow: 0 4px 0 var(--theme-lo), 0 8px 18px color-mix(in srgb, var(--theme) 40%, transparent); }
.sbtn:active { transform: translateY(2px); }
.sdead { margin: 0; font-size: 16px; color: #5A4E8C; }

/* ---------- visor de fotos ---------- */
.viewer { position: absolute; inset: 0; z-index: 45; background: rgba(8, 6, 26, .96); opacity: 0; transition: opacity .3s ease; transform: translateY(var(--drag, 0)); }
.viewer.is-on { opacity: 1; }
.v-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.v-slide { flex: 0 0 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; scroll-snap-align: center; padding: 60px 16px 80px; }
.v-slide img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.v-slide figcaption { font: 600 18px/1.2 var(--font-head); color: var(--cream); text-align: center; }
.v-count { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font: 600 16px/1 var(--font-head); color: rgba(255, 247, 236, .85); }
.v-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 247, 236, .14); color: var(--cream); }
.v-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 247, 236, .14); color: var(--cream); }
.v-prev { left: 8px; } .v-next { right: 8px; } .v-next svg { transform: scaleX(-1); }
.v-nav:disabled { opacity: .25; cursor: default; }

/* ---------- avisos ---------- */
.toast { position: absolute; left: 50%; bottom: calc(46% + 12px); z-index: 50; max-width: calc(100% - 40px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 16px/1.3 var(--font-head); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transform: translate(-50%, 10px); opacity: 0; transition: opacity .3s, transform .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.notice { position: absolute; inset: 0; z-index: 55; display: grid; place-items: center; padding: 20px; background: rgba(11, 9, 34, 0); transition: background .3s; }
.notice.is-on { background: rgba(11, 9, 34, .6); }
.notice-card { width: min(340px, 100%); padding: 22px 20px 18px; border-radius: 24px; background: #FFF9F1; color: var(--ink); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transform: scale(.92); opacity: 0; transition: transform .3s var(--ease-spring), opacity .25s; }
.notice.is-on .notice-card { transform: none; opacity: 1; }
.notice-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #FFFFFF; }
.notice h2 { margin: 10px 0 6px; font: 600 22px/1.2 var(--font-head); }
.notice p { margin: 0 0 10px; font-size: 16px; color: #3B2A7A; }
.notice-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: #EEF9EF; text-align: left; white-space: pre-wrap; font: 16px/1.4 var(--font-text); color: #1F3B27; }

/* ---------- radio (dentro del monitor ampliado) ---------- */
/* la radio es una hoja dentro del monitor: encabezado fijo · cuerpo con scroll · barra fija abajo */
.screen.is-form { overflow: hidden; padding: 0; }
.screen.is-form .rwrap { height: 100%; }
.radio { display: flex; flex-direction: column; height: 100%; }
.rhead { flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px 8px; border-bottom: 1px solid rgba(111, 224, 240, .2); }
.rhead .mk { margin: 2px 0 2px; }
.mback { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer; background: rgba(191, 246, 255, .14); color: #D9FBFF; box-shadow: inset 0 0 0 1px rgba(191, 246, 255, .3); }
.mback:focus-visible { outline: 3px solid var(--theme-gold); outline-offset: 2px; }
.rq { margin: 0; font: 600 18px/1.2 var(--font-head); color: #FFFFFF; }
.rbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 14px; }
.rbody > * { flex: none; }
.rfoot { flex: none; display: grid; gap: 2px; justify-items: center; padding: 8px 12px 6px; background: linear-gradient(180deg, rgba(7, 24, 42, .85), #07182A); box-shadow: 0 -8px 16px rgba(7, 24, 42, .9); border-top: 1px solid rgba(111, 224, 240, .2); }
.rfoot .rchange { width: 100%; }
.rfield { display: grid; gap: 4px; position: relative; }
.rfield label, .rlbl { font: 600 16px/1.2 var(--font-head); color: #BFF6FF; margin: 0; }
.radio input, .radio textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid rgba(111, 224, 240, .4); background: rgba(3, 18, 32, .6); color: #FFFFFF; font: 16px/1.3 var(--font-text); }
.radio textarea { resize: none; }
.radio input:focus, .radio textarea:focus { outline: none; border-color: var(--theme-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-gold) 35%, transparent); }
.radio ::placeholder { color: rgba(191, 246, 255, .5); }
.rleft { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: rgba(191, 246, 255, .6); }
.rerr { margin: 0; font: 600 16px/1.3 var(--font-head); color: #FFB3C6; }
.rpeople { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stepper { display: grid; gap: 4px; padding: 8px; border-radius: 14px; background: rgba(191, 246, 255, .07); }
.slbl { font: 600 16px/1.2 var(--font-head); color: #BFF6FF; }
.sctl { display: flex; align-items: center; justify-content: space-between; }
.step { width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; font: 600 24px/1 var(--font-head); color: #0A2236; background: linear-gradient(180deg, #E9FEFF, #A8EEF7); box-shadow: 0 3px 0 #4FB6C6; }
/* deshabilitado: el mismo botón, relleno y apagado (no un círculo vacío) */
.step:disabled { cursor: default; color: rgba(10, 34, 54, .45); background: linear-gradient(180deg, #7FA3AE, #5E828D); box-shadow: 0 3px 0 #3F5F69; }
.stepper output { font: 600 24px/1 var(--font-head); color: #FFFFFF; min-width: 28px; text-align: center; }
.rlink { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 600 16px/1 var(--font-head); color: #6FE0F0; text-decoration: underline; text-underline-offset: 3px; }
.rno { justify-self: center; color: #BFF6FF; }
.rbadge-pick { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; background: rgba(191, 246, 255, .07); }
.rbadge { display: grid; place-items: center; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); position: relative; }
.swatch::after, .sym::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; }
.swatch[aria-checked="true"]::after, .sym[aria-checked="true"]::after { border-color: #FFFFFF; }
.sym { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: rgba(191, 246, 255, .14); color: #FFFFFF; }
.rsend { width: 100%; min-height: 48px; font-size: 18px; }
.rno { min-height: 44px; }
.rdone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 0; }
.rbadge.is-big { animation: badge-in .8s var(--ease-spring) both; }
@keyframes badge-in { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
.crew-row { margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgba(111, 224, 240, .3); }
.crew-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crew-list li { display: flex; align-items: center; gap: 4px; font-size: 16px; color: #FFFFFF; }
.crew-list li.is-mine { color: var(--theme-gold); font-weight: 700; }
.cb { display: grid; place-items: center; }
