/* El Espejo Encantado — bloques de contenido (tarjetas y Detalles), hojas (Detalles y "Pide un deseo") y visor de
   recuerdos. Encabezado y barra fijos, cuerpo con desplazamiento sin barra nativa visible; textos de datos ≥ 16 px. */

/* ---------- bloques ---------- */
.ee .countdown { padding: 6px 0 2px; }
.ee .cd-label { margin: 0 0 6px; font: 700 16px/1.2 var(--font-text); color: var(--muted); }
.ee .cd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ee .cd-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 12px; background: rgba(var(--ee-deep-rgb), .6); box-shadow: inset 0 0 0 1px rgba(var(--ee-gold-rgb), .45); }
.ee .cd-cell b { font: 700 25px/1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; color: #FFFFFF; }
.ee .cd-cell span { font: 700 13px/1 var(--font-text); color: var(--muted); }
.ee .countdown.is-done .cd-row { display: none; }
.ee .venue .big { margin: 0; font: 700 21px/1.2 var(--font-head); color: #FFFFFF; }
.ee .venue .addr { margin: 4px 0 0; font: 600 16px/1.45 var(--font-text); color: var(--ink); }
.ee .note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font: 600 16px/1.45 var(--font-text); color: var(--muted); }
.ee .note span:first-child { display: grid; margin-top: 2px; color: var(--ee-magic); }
.ee .pmap { margin: 8px 0; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(var(--ee-gold-rgb), .5); }
.ee .pmap svg { display: block; width: 100%; height: auto; }
.ee .itin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ee .itin li { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(var(--ee-deep-rgb), .5); box-shadow: inset 0 0 0 1px rgba(var(--ee-gold-rgb), .35); }
.ee .itin .time { flex: none; min-width: 64px; font: 700 17px/1.2 var(--font-head); color: var(--ee-gold); }
.ee .itin .what { display: flex; flex-direction: column; gap: 1px; }
.ee .itin .what b { font: italic 700 18px/1.15 var(--font-head); color: #FFFFFF; }
.ee .itin .what span { font: 600 16px/1.3 var(--font-text); color: var(--muted); }
.ee .gifts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ee .gifts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--ee-deep-rgb), .5); box-shadow: inset 0 0 0 1px rgba(var(--ee-gold-rgb), .4); }
.ee .gifts li.is-top { background: linear-gradient(180deg, rgba(var(--ee-gold-rgb), .28), rgba(var(--ee-primary-rgb), .18)); box-shadow: inset 0 0 0 2px rgba(var(--ee-gold-rgb), .85), 0 0 16px rgba(var(--ee-gold-rgb), .25); }
.ee .gi { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--ee-primary-rgb), .25); color: var(--ee-primary); }
.ee .gifts li.is-top .gi { background: var(--gold-grad); color: #3A2618; }
.ee .gt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ee .gn { font: 700 16px/1.25 var(--font-text); color: #FFFFFF; }
.ee .gnote { font: 600 15px/1.3 var(--font-text); color: var(--muted); }
.ee .gifts .ver { flex: none; min-width: 64px; }
.ee .dress .dtitle { margin: 6px 0 2px; font: 700 19px/1.2 var(--font-head); color: #FFFFFF; }
.ee .dress p { margin: 0; font: 600 16px/1.45 var(--font-text); color: var(--ink); }
.ee .check { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ee .check li { display: flex; gap: 8px; align-items: flex-start; font: 600 16px/1.4 var(--font-text); color: var(--ink); }
.ee .check li span:first-child { display: grid; margin-top: 2px; color: var(--ee-magic); }
.ee .faq details { border-radius: 12px; background: rgba(var(--ee-deep-rgb), .5); box-shadow: inset 0 0 0 1px rgba(var(--ee-gold-rgb), .35); margin-bottom: 6px; }
.ee .faq summary { min-height: 44px; display: flex; align-items: center; padding: 8px 12px; font: 700 16px/1.3 var(--font-text); cursor: pointer; list-style: none; }
.ee .faq summary::-webkit-details-marker { display: none; }
.ee .faq summary::after { content: "+"; margin-left: auto; font: 700 22px/1 var(--font-head); color: var(--ee-gold); }
.ee .faq details[open] summary::after { content: "–"; }
.ee .faq p { margin: 0; padding: 0 12px 10px; font: 600 16px/1.45 var(--font-text); color: var(--ink); }
.ee .contact p { margin: 0 0 8px; font: 600 16px/1.45 var(--font-text); }
.ee .carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; }
.ee .carousel .frame { flex: none; width: 124px; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; text-align: center; }
.ee .fr-in { display: block; padding: 4px; border-radius: 50%; background: conic-gradient(from 0deg, #B9A2FF, #7FE0E8, #FFD98A, #F7B6D8, #B9A2FF); box-shadow: 0 0 14px rgba(var(--ee-primary-rgb), .45); }
.ee .fr-in img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.ee .fcap { font: 700 14px/1.2 var(--font-text); color: var(--muted); }

/* ---------- hojas ---------- */
.ee .sheet { position: absolute; inset: 0; z-index: 60; display: flex; align-items: stretch; justify-content: center; padding: calc(8px + var(--safe-t)) 8px calc(8px + var(--safe-b)); background: rgba(8, 5, 18, .55); opacity: 0; transition: opacity .35s; }
.ee .sheet.is-on { opacity: 1; }
.ee .sheet-panel { display: flex; flex-direction: column; width: min(414px, 100%); height: 100%; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #261C4A, #17112E); box-shadow: 0 0 0 1px rgba(var(--ee-gold-rgb), .6), 0 20px 50px rgba(0, 0, 0, .5); transform: translateY(24px); transition: transform .45s var(--ease-soft); }
.ee .sheet.is-on .sheet-panel { transform: none; }
.ee .sh-head { position: relative; flex: none; padding: 16px 18px 10px; border-bottom: 1px solid rgba(var(--ee-gold-rgb), .4); }
.ee .sh-head .c-close { position: absolute; right: 12px; top: 12px; }
.ee .sh-titles { padding-right: 52px; }
.ee .sh-head h2 { margin: 0; font: 700 27px/1.1 var(--font-head); color: #FFFFFF; }
.ee .sh-head .sub { margin: 4px 0 0; font: 600 16px/1.35 var(--font-text); color: var(--muted); }
.ee .sh-head .kick { margin: 0 0 2px; font: 800 13px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ee-gold); }
.ee .chips { display: flex; gap: 6px; overflow-x: auto; margin: 10px -18px 0; padding: 2px 18px 4px; }
.ee .chip { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid rgba(var(--ee-gold-rgb), .55); border-radius: 999px; background: rgba(var(--ee-deep-rgb), .55); color: var(--ink); font: 700 15px/1 var(--font-text); cursor: pointer; }
.ee .chip.is-on { background: var(--gold-grad); color: #2A1A12; border-color: #C99A48; }
.ee .sh-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; }
.ee .sh-body > * { flex: none; }
.ee .sh-bar { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px 12px; border-top: 1px solid rgba(var(--ee-gold-rgb), .4); background: rgba(18, 12, 36, .96); }
.ee .sh-bar .gbtn { width: 100%; }
.ee .sh-bar .dead, .ee .sh-bar .done { margin: 0; font: 600 15px/1.2 var(--font-text); color: var(--muted); }
.ee .sh-bar .done { display: flex; align-items: center; gap: 6px; color: #9BE8C0; }
.ee .dcard { position: relative; padding: 14px 14px 12px; border-radius: 16px; background: rgba(var(--ee-deep-rgb), .35); border: 1px solid rgba(var(--ee-gold-rgb), .35); scroll-margin-top: 8px; overflow: hidden; }
.ee .dcard h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 22px/1.15 var(--font-head); color: #FFFFFF; }
.ee .dic { display: grid; color: var(--ee-gold); }
.ee .dcard > p { margin: 0 0 6px; font: 600 16px/1.45 var(--font-text); color: var(--ink); }
.ee .dcard .big { font: 700 21px/1.25 var(--font-head); color: #FFFFFF; }

/* ---------- "Pide un deseo" ---------- */
.ee .rv-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px 14px; touch-action: pan-y; }
.ee .rv-top { display: flex; align-items: center; gap: 14px; }
.ee .rv-intro { margin: 0; font: 600 16px/1.4 var(--font-text); color: var(--ink); }
.ee .wish-orb { flex: none; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 10%, var(--c) 28%, transparent 70%); box-shadow: 0 0 30px 6px color-mix(in srgb, var(--c) 45%, transparent); animation: ee-orb 2.6s ease-in-out infinite; }
@keyframes ee-orb { 50% { transform: translateY(-4px) scale(1.06); } }
.ee.rm .wish-orb { animation: none; }
.ee .flabel { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font: 700 16px/1.2 var(--font-text); color: #FFFFFF; }
.ee .count { font: 600 14px/1 var(--font-text); color: var(--muted); }
.ee .rv-body input, .ee .rv-body textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(var(--ee-gold-rgb), .7); border-radius: 12px; background: rgba(255, 255, 255, .07); color: #FFFFFF; font: 600 17px/1.35 var(--font-text); resize: none; user-select: text; -webkit-user-select: text; }
.ee .rv-body input:focus, .ee .rv-body textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--ee-magic-rgb), .45); }
.ee .rv-body ::placeholder { color: #A99BC8; }
.ee .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ee .stepper { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 14px; background: rgba(var(--ee-deep-rgb), .5); border: 1px solid rgba(var(--ee-gold-rgb), .35); }
.ee .slabel { font: 700 16px/1 var(--font-text); }
.ee .sctrl { display: flex; align-items: center; justify-content: space-between; }
.ee .sctrl output { min-width: 30px; text-align: center; font: 700 26px/1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; }
.ee .step { width: 44px; height: 44px; border: 1px solid rgba(var(--ee-gold-rgb), .8); border-radius: 50%; background: rgba(var(--ee-deep-rgb), .8); color: #FFFFFF; font: 700 22px/1 var(--font-text); cursor: pointer; }
.ee .step:disabled { opacity: .35; cursor: default; }
.ee .swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ee .swatch { position: relative; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: radial-gradient(circle, #FFFFFF 0 12%, var(--c) 40%); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); cursor: pointer; }
.ee .swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ee-gold), 0 0 16px var(--c); }
.ee .swatch[aria-checked="true"]::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 var(--font-text); color: #1A1230; }
.ee .err { min-height: 1.3em; margin: 0; font: 700 16px/1.3 var(--font-text); color: #FFB0C4; text-align: center; }
.ee .err:empty { min-height: 0; }

/* ---------- visor de recuerdos ---------- */
.ee .viewer { position: absolute; inset: 0; z-index: 75; background: #0E0A1C; opacity: 0; transition: opacity .3s; transform: translateY(var(--drag, 0)); }
.ee .viewer.is-on { opacity: 1; }
.ee .v-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; touch-action: pan-x; }
.ee .v-slide { flex: none; width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 70px 18px 84px; scroll-snap-align: center; }
.ee .v-frame { padding: 8px; border-radius: 14px; background: var(--gold-grad); box-shadow: 0 0 40px rgba(var(--ee-primary-rgb), .4), 0 16px 40px rgba(0, 0, 0, .5); max-width: 100%; }
.ee .v-frame img { display: block; max-width: 100%; max-height: calc(100dvh - 230px); object-fit: contain; border-radius: 8px; }
.ee .v-slide figcaption { font: italic 700 23px/1.2 var(--font-head); color: #FFF4DC; text-align: center; text-shadow: 0 0 10px rgba(var(--ee-magic-rgb), .6); }
.ee .v-count { position: absolute; left: 50%; top: calc(20px + var(--safe-t)); transform: translateX(-50%); margin: 0; font: 700 16px/1 var(--font-text); color: #FFFFFF; }
.ee .v-close { position: absolute; right: 12px; top: calc(12px + var(--safe-t)); }
.ee .v-nav { position: absolute; bottom: calc(18px + var(--safe-b)); }
.ee .v-prev { left: 18px; } .ee .v-next { right: 18px; }
.ee .v-nav:disabled { opacity: .3; }

/* ---------- panel de pruebas ---------- */
.ee .debug { position: fixed; right: 8px; bottom: 8px; z-index: 90; width: 260px; max-height: 80vh; overflow: auto; padding: 10px; border-radius: 12px; background: rgba(250, 246, 255, .96); color: #2A1E44; font: 600 12px/1.3 system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.ee .debug.is-min > :not(.debug-head) { display: none; }
.ee .debug-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.ee .debug h4 { margin: 8px 0 4px; font-size: 12px; }
.ee .debug-row { display: flex; flex-wrap: wrap; gap: 4px; }
.ee .debug button { padding: 4px 8px; border: 1px solid #8E75B8; border-radius: 6px; background: #FFF; color: #2A1E44; font: 600 12px system-ui; cursor: pointer; }
.ee .debug button.is-on { background: #D9C8FF; }
.ee .debug-perf { margin: 6px 0 0; }
