/* El Móvil — base: colores (tres paletas que eligen los papás), tipografía, marco, escenario, botones, hojas (sheets),
   avisos, visor de fotos y versión sin WebGL. Todo bajo html.movil (prototipo aislado). La app es contenedor de tamaño:
   por dentro se mide en cqw/cqh y con @container (en computadora, contra el marco de teléfono; nunca contra la ventana).
   Texto ciruela sobre crema (contraste ≥ 4.5:1). */
.movil {
  --ink: #45384A; --ink-2: #6A5B6E; --cream: #FFFBF4; --cream-2: #F6EEE4; --line: #EADFD2;
  --accent: #4F7FB3; --accent-2: #3D6798; --soft: #E3EEFA; --on-accent: #FFFFFF; --sun: #FFD27A;
  --shadow: 0 12px 34px rgba(40, 28, 50, .26);
  --radius: 24px;
  --font-d: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-b: "Nunito", "Baloo 2", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.movil[data-palette="rosa"] { --accent: #C95A80; --accent-2: #A8466A; --soft: #FCE4EA; }
.movil[data-palette="neutra"] { --accent: #8A6F51; --accent-2: #6E583F; --soft: #F1EADD; }
.movil *, .movil *::before, .movil *::after { box-sizing: border-box; }
.movil body { height: 100%; overflow: hidden; color: var(--ink); font: 400 16px/1.45 var(--font-b); -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
.movil button { font: inherit; color: inherit; }
.movil :focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.movil .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.movil .noscript { position: fixed; inset: auto 16px 16px; padding: 16px; border-radius: 16px; background: var(--cream); color: var(--ink); }

/* ---------- la app: pantalla completa en el teléfono; marco de teléfono (≤ 430 px) centrado en computadora ---------- */
.movil .room { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(45% 35% at 32% 28%, rgba(255, 206, 150, .45), transparent 70%), linear-gradient(180deg, #5B5378 0%, #443D60 60%, #332D4A 100%); }
.movil .room::before { /* la recámara, difuminada: barrotes de la cuna y lucecitas */
  content: ""; position: absolute; inset: -40px; filter: blur(14px); opacity: .55;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 241, 200, .9) 0 3px, transparent 12px), radial-gradient(circle at 84% 16%, rgba(255, 241, 200, .8) 0 3px, transparent 12px), radial-gradient(circle at 70% 72%, rgba(255, 241, 200, .7) 0 3px, transparent 12px), radial-gradient(circle at 20% 80%, rgba(255, 241, 200, .7) 0 3px, transparent 12px),
    repeating-linear-gradient(90deg, rgba(245, 225, 200, .35) 0 18px, transparent 18px 70px);
}
.movil .app { position: fixed; inset: 0; z-index: 1; overflow: hidden; isolation: isolate; container-type: size; transition: opacity .5s ease; }
@media (min-width: 560px) and (min-height: 560px) {
  .movil .app { inset: auto; left: 50%; top: 50%; width: min(430px, 100vw - 32px); height: min(932px, 100dvh - 40px); transform: translate(-50%, -50%);
    border-radius: 36px; box-shadow: 0 0 0 10px #2E2840, 0 0 0 12px rgba(255, 230, 190, .3), 0 30px 80px rgba(20, 10, 30, .55), 0 0 90px rgba(255, 200, 150, .14); }
}
.movil.is-showcase .room { display: none; }
.movil.is-showcase .app { inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; border-radius: 0 !important; box-shadow: none !important; }
.movil .stage { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(70% 55% at 35% 30%, #F4E3D0, #CDBCA8 70%, #9E8E80); }
.movil .gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: grab; }
.movil .gl:active { cursor: grabbing; }
.movil .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.movil.is-ready .poster { animation: mv-fade-out .5s ease .2s forwards; }
@keyframes mv-fade-out { to { opacity: 0; visibility: hidden; } }
/* penumbra de la recámara: la lamparita alumbra el centro (fija: no se anima) */
.movil .vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(85% 70% at 50% 42%, transparent 55%, rgba(40, 28, 46, .38) 100%); }
/* de noche (final): la recámara se oscurece alrededor (capa aparte: sólo cambia su opacidad) */
.movil .vignette::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 75% at 50% 35%, rgba(30, 22, 44, .1) 30%, rgba(24, 18, 38, .62) 100%); opacity: 0; transition: opacity 2.4s ease; will-change: opacity; }
.movil .app.is-final .vignette::after { opacity: 1; }
.movil .veil { position: absolute; inset: 0; background: #3A3350; opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 3; }
.movil .veil.is-on { opacity: 1; }
.movil .ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.movil .ui > * { pointer-events: auto; }

/* (sólo para generar la imagen OG: ?showcase=1&still=1&og=1) */
.movil .og-title { position: absolute; left: 50%; top: 26px; z-index: 4; padding: 14px 34px 16px; border-radius: 30px; background: rgba(255, 251, 244, .95); color: var(--accent-2); text-align: center; box-shadow: 0 12px 30px rgba(40, 28, 50, .28); transform: translateX(-50%); pointer-events: none; }
.movil .og-title::after { content: ""; position: absolute; inset: 7px; border: 2.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 24px; }
.movil .og-title p { margin: 0; font: 700 34px/1 var(--font-d); color: var(--ink); }
.movil .og-title strong { display: block; margin-top: 2px; font: 800 64px/1 var(--font-d); white-space: nowrap; }

/* ---------- botones ---------- */
.movil .gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); font: 700 16px/1.1 var(--font-d); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 rgba(69, 56, 74, .12); transition: transform .12s ease, box-shadow .12s ease, background .2s; }
.movil .gbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(69, 56, 74, .12); }
.movil .gbtn.is-primary { border-color: transparent; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-2), 0 8px 18px rgba(40, 28, 50, .25); }
.movil .gbtn.is-primary:active { box-shadow: 0 1px 0 var(--accent-2); }
.movil .gbtn.is-soft { background: rgba(255, 251, 244, .78); }
.movil .gbtn.is-big { min-height: 54px; font-size: 18px; padding: 0 24px; }
.movil .gbtn.is-small { min-height: 44px; font-size: 15px; padding: 0 16px; }
.movil .gbtn[disabled] { opacity: .5; cursor: default; }
.movil .round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 251, 244, .92); color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px rgba(40, 28, 50, .22); }
.movil .round-btn[disabled] { opacity: .4; cursor: default; }

/* ---------- hojas (confirmación, información) ---------- */
.movil .sheet { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(40, 28, 50, 0); pointer-events: auto; transition: background .35s ease; }
.movil .sheet.is-on { background: rgba(40, 28, 50, .22); }
.movil .sheet.is-rsvp.is-on { background: rgba(40, 28, 50, 0); } /* (la figura 3D se ve arriba) */
.movil .sheet-panel { display: flex; flex-direction: column; width: min(560px, 100%); max-height: min(78cqh, 720px); border-radius: var(--radius) var(--radius) 0 0; background: var(--cream); box-shadow: var(--shadow); transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .9, .25, 1.05); overflow: hidden; padding-bottom: var(--safe-b); }
.movil .sheet.is-on .sheet-panel { transform: none; }
.movil .sheet.is-rsvp .sheet-panel { max-height: min(64cqh, 640px); }
.movil .sheet.is-details .sheet-panel { max-height: 92cqh; }
.movil .sh-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 8px 20px; border-bottom: 1px solid var(--line); }
.movil .sh-head > div:first-child, .movil .sh-titles { flex: 1; min-width: 0; }
.movil .sh-head.is-sticky { flex-wrap: wrap; }
.movil .sh-head .chips { flex-basis: 100%; }
.movil .kick { margin: 0; font: 700 20px/1.2 var(--font-d); color: var(--ink); }
.movil .sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.movil .sh-titles h2 { margin: 2px 0 0; font: 700 24px/1.15 var(--font-d); }
.movil .sh-body, .movil .rv-body { flex: 1; overflow: auto; padding: 12px 20px 16px; overscroll-behavior: contain; }
.movil .sh-bar { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px 14px; border-top: 1px solid var(--line); background: var(--cream); }
.movil .sh-bar .dead { margin: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.movil .c-close { flex: none; width: 44px; height: 44px; box-shadow: none; background: var(--cream-2); }
.rm.movil .sheet-panel { transition: opacity .2s ease; transform: none; opacity: 0; }
.rm.movil .sheet.is-on .sheet-panel { opacity: 1; }

/* ---------- avisos ---------- */
.movil .toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 70px); z-index: 40; max-width: min(92cqw, 440px); padding: 12px 18px; border-radius: 18px; background: var(--cream); color: var(--ink); font: 700 16px/1.3 var(--font-d); text-align: center; box-shadow: var(--shadow); transform: translate(-50%, -12px); opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.movil .toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.movil .notice { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(40, 28, 50, .45); opacity: 0; transition: opacity .25s ease; pointer-events: auto; }
.movil .notice.is-on { opacity: 1; }
.movil .notice-card { width: min(380px, 100%); padding: 22px 20px 18px; border-radius: var(--radius); background: var(--cream); text-align: center; box-shadow: var(--shadow); }
.movil .notice-card h2 { margin: 8px 0 6px; font: 700 22px/1.2 var(--font-d); }
.movil .notice-card p { margin: 0 0 10px; color: var(--ink-2); }
.movil .notice-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #DDF5E3; color: #1E7A43; }
.movil .notice-msg { margin: 0 0 14px; padding: 12px; border-radius: 14px; background: #fff; text-align: left; white-space: pre-wrap; font: 600 14px/1.45 var(--font-b); color: var(--ink); max-height: 30cqh; overflow: auto; }
.movil .notice-card .gbtn { width: 100%; }

/* ---------- visor de fotos ---------- */
.movil .viewer { position: absolute; inset: 0; z-index: 45; background: rgba(36, 28, 46, .95); opacity: 0; transition: opacity .25s ease; pointer-events: auto; transform: translateY(var(--drag, 0)); }
.movil .viewer.is-on { opacity: 1; }
.movil .v-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.movil .v-track::-webkit-scrollbar { display: none; }
.movil .v-slide { flex: 0 0 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 16px 72px; scroll-snap-align: center; }
.movil .v-frame { position: relative; max-width: 100%; padding: 10px; border-radius: 26px; background: var(--soft); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.movil .v-frame::after { content: ""; position: absolute; inset: 5px; border-radius: 21px; border: 2px dashed rgba(255, 255, 255, .9); pointer-events: none; }
.movil .v-frame img { display: block; max-width: calc(100cqw - 52px); max-height: calc(100cqh - 200px); border-radius: 18px; object-fit: contain; }
.movil .v-slide figcaption { color: var(--cream); font: 700 18px/1.2 var(--font-d); }
.movil .v-count { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 22px); margin: 0; transform: translateX(-50%); color: var(--cream); font-weight: 700; }
.movil .v-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.movil .v-prev { left: 12px; } .movil .v-next { right: 12px; }
.movil .v-close { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; }

/* ---------- sin WebGL: versión ilustrada ---------- */
.movil .fb { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.movil .fb-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.movil .fb-card { position: relative; max-height: 72cqh; overflow: auto; margin: 0; padding: 18px 20px calc(var(--safe-b) + 16px); border-radius: var(--radius) var(--radius) 0 0; background: var(--cream); box-shadow: var(--shadow); }
.movil .fb-kick { margin: 0; font: 700 15px/1.3 var(--font-b); color: var(--ink-2); }
.movil .fb-title { margin: 2px 0 4px; font: 800 34px/1.05 var(--font-d); color: var(--accent-2); }
.movil .fb-sub { margin: 0 0 8px; font-weight: 600; }
.movil .fb-facts { margin: 8px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.movil .fb-facts li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.movil .fb-facts li > span:first-child { flex: none; color: var(--accent); }
.movil .fb-count { margin: 6px 0; font-weight: 800; color: var(--ink-2); }
.movil .fb-mine { display: flex; align-items: center; gap: 10px; }
.movil .fb-mine p { margin: 0; font-weight: 700; }
.movil .fb-actions { display: grid; gap: 8px; margin-top: 10px; }
