/* El Viaje en Carruaje — bloques de contenido (pergaminos y Detalles), hojas (Detalles y la confirmación "Las sombras
   del baile") y visor de recuerdos. Encabezado y barra fijos, cuerpo con desplazamiento sin barra nativa visible;
   textos de datos ≥ 16 px. */

/* ---------- bloques ---------- */
.vc .countdown { padding: 8px 0 2px; }
.vc .cd-label { margin: 0 0 6px; font: 700 16px/1.2 var(--font-text); color: #6A4A58; }
.vc .cd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vc .cd-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 12px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(var(--rz-gold-rgb), .55); }
.vc .cd-cell b { font: 700 24px/1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; color: var(--rz-ink); }
.vc .cd-cell span { font: 700 13px/1 var(--font-text); color: #7A5A68; }
.vc .countdown.is-done .cd-row { display: none; }
.vc .venue .big { margin: 0; font: 700 20px/1.25 var(--font-head); }
.vc .venue .addr { margin: 4px 0 0; font: 600 16px/1.45 var(--font-text); }
.vc .note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font: 600 16px/1.45 var(--font-text); color: #5A3E4C; }
.vc .note span:first-child { display: grid; margin-top: 2px; color: #B8903E; }
.vc .pmap { margin: 8px 0; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(var(--rz-gold-rgb), .6); }
.vc .pmap svg { display: block; width: 100%; height: auto; }
.vc .itin { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vc .itin li { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(var(--rz-gold-rgb), .45); }
.vc .itin .time { flex: none; min-width: 64px; font: 700 16px/1.2 var(--font-head); color: #9A5A74; }
.vc .itin .what { font: 700 16px/1.3 var(--font-text); }
.vc .gifts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vc .gifts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(var(--rz-gold-rgb), .5); }
.vc .gifts li.is-top { background: linear-gradient(180deg, #FFF6DC, #FBE6B8); box-shadow: inset 0 0 0 2px rgba(var(--rz-gold-rgb), .85), 0 4px 12px rgba(160, 120, 40, .2); }
.vc .gi { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--rz-primary-rgb), .3); color: #9A5A74; }
.vc .gt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vc .gn { font: 700 16px/1.25 var(--font-text); }
.vc .gnote { font: 600 15px/1.3 var(--font-text); color: #7A5A68; }
.vc .gifts .ver { flex: none; min-width: 64px; }
.vc .dress .dtitle { margin: 6px 0 2px; font: 700 18px/1.2 var(--font-head); }
.vc .dress p { margin: 0; font: 600 16px/1.45 var(--font-text); }
.vc .check { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vc .check li { display: flex; gap: 8px; align-items: flex-start; font: 600 16px/1.4 var(--font-text); }
.vc .check li span:first-child { display: grid; margin-top: 2px; color: #3E8A62; }
.vc .faq details { border-radius: 12px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(var(--rz-gold-rgb), .45); margin-bottom: 6px; }
.vc .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; }
.vc .faq summary::-webkit-details-marker { display: none; }
.vc .faq summary::after { content: "+"; margin-left: auto; font: 700 20px/1 var(--font-head); color: #B8903E; }
.vc .faq details[open] summary::after { content: "–"; }
.vc .faq p { margin: 0; padding: 0 12px 10px; font: 600 16px/1.45 var(--font-text); }
.vc .contact p { margin: 0 0 8px; font: 600 16px/1.45 var(--font-text); }
.vc .carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; }
.vc .carousel .frame { flex: none; width: 128px; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; text-align: center; }
.vc .fr-in { display: block; padding: 5px; border-radius: 8px; background: var(--gold-grad); box-shadow: 0 4px 10px rgba(90, 60, 40, .22); }
.vc .fr-in img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.vc .fcap { font: 700 14px/1.2 var(--font-text); color: #6A4A58; }

/* ---------- hojas ---------- */
.vc .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(70, 44, 52, .4); opacity: 0; transition: opacity .35s; }
.vc .sheet.is-on { opacity: 1; }
.vc .sheet-panel { display: flex; flex-direction: column; width: min(414px, 100%); height: 100%; overflow: hidden; transform: translateY(24px); transition: transform .45s var(--ease-soft); }
.vc .sheet.is-on .sheet-panel { transform: none; }
.vc .sh-head { position: relative; flex: none; padding: 16px 18px 10px; border-bottom: 1px solid rgba(var(--rz-gold-rgb), .55); }
.vc .sh-head .c-close { position: absolute; right: 12px; top: 12px; }
.vc .sh-titles { padding-right: 52px; }
.vc .sh-head h2 { margin: 0; font: 700 24px/1.15 var(--font-head); color: var(--rz-ink); }
.vc .sh-head .sub { margin: 4px 0 0; font: 600 16px/1.35 var(--font-text); color: #6A4A58; }
.vc .sh-head .kick { margin: 0 0 2px; font: 800 13px/1.2 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: #9A6A48; }
.vc .chips { display: flex; gap: 6px; overflow-x: auto; margin: 10px -18px 0; padding: 2px 18px 4px; }
.vc .chip { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid rgba(var(--rz-gold-rgb), .7); border-radius: 999px; background: rgba(255, 255, 255, .6); color: var(--rz-ink); font: 700 15px/1 var(--font-text); cursor: pointer; }
.vc .chip.is-on { background: var(--gold-grad); color: #3A2618; border-color: #C99A48; }
.vc .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; }
.vc .sh-body > * { flex: none; } /* (las tarjetas no se encogen: el cuerpo se desplaza) */
.vc .sh-bar { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px 12px; border-top: 1px solid rgba(var(--rz-gold-rgb), .55); background: linear-gradient(180deg, rgba(255, 248, 240, .6), rgba(242, 224, 196, .95)); }
.vc .sh-bar .gbtn { width: 100%; }
.vc .sh-bar .dead, .vc .sh-bar .done { margin: 0; font: 600 15px/1.2 var(--font-text); color: #6A4A58; }
.vc .sh-bar .done { display: flex; align-items: center; gap: 6px; color: #3E7A5A; }
/* tarjetas de Detalles con franja de color a la izquierda */
.vc .dcard { position: relative; padding: 14px 14px 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(var(--rz-gold-rgb), .5); scroll-margin-top: 8px; overflow: hidden; }
.vc .dcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--stripe, var(--rz-primary)); }
.vc .dcard.s-a { --stripe: var(--rz-primary); } .vc .dcard.s-b { --stripe: #A9DCC6; } .vc .dcard.s-c { --stripe: #C9B3EC; } .vc .dcard.s-d { --stripe: #F2D38A; }
.vc .dcard h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 20px/1.2 var(--font-head); color: var(--rz-ink); }
.vc .dic { display: grid; color: #B8903E; }
.vc .dcard > p { margin: 0 0 6px; font: 600 16px/1.45 var(--font-text); }
.vc .dcard .big { font: 700 20px/1.25 var(--font-head); }

/* ---------- confirmación: "Las sombras del baile" ---------- */
.vc .rv-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px 14px; touch-action: pan-y; }
.vc .rv-top { display: flex; align-items: center; gap: 12px; }
.vc .rv-intro { margin: 0; font: 600 16px/1.4 var(--font-text); }
.vc .sil-preview { flex: none; width: 92px; height: 110px; display: grid; place-items: center; border-radius: 50% 50% 14px 14px; background: radial-gradient(80% 70% at 50% 60%, #FFE9C4, #F5D3A4 70%, #EBC08E); box-shadow: inset 0 0 0 1px rgba(var(--rz-gold-rgb), .7); overflow: hidden; }
.vc .sil-preview svg { animation: vc-waltz 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.vc.rm .sil-preview svg { animation-duration: 9s; }
.vc .flabel { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font: 700 16px/1.2 var(--font-text); color: var(--rz-ink); }
.vc .count { font: 600 14px/1 var(--font-text); color: #7A5A68; }
.vc .rv-body input, .vc .rv-body textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(var(--rz-gold-rgb), .9); border-radius: 12px; background: rgba(255, 255, 255, .88); color: var(--rz-ink); font: 600 17px/1.35 var(--font-text); resize: none; user-select: text; -webkit-user-select: text; }
.vc .rv-body input:focus, .vc .rv-body textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--rz-gold-rgb), .45); }
.vc .rv-body ::placeholder { color: #9A8290; }
.vc .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vc .stepper { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(var(--rz-gold-rgb), .45); }
.vc .slabel { font: 700 16px/1 var(--font-text); }
.vc .sctrl { display: flex; align-items: center; justify-content: space-between; }
.vc .sctrl output { min-width: 30px; text-align: center; font: 700 24px/1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; }
.vc .step { width: 44px; height: 44px; border: 1px solid rgba(var(--rz-gold-rgb), .9); border-radius: 50%; background: var(--rz-ivory); color: var(--rz-ink); font: 700 22px/1 var(--font-text); cursor: pointer; }
.vc .step:disabled { opacity: .35; cursor: default; }
.vc .sils { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc .sil { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 10px; border: 1px solid rgba(var(--rz-gold-rgb), .6); border-radius: 14px; background: rgba(255, 255, 255, .55); color: var(--rz-ink); font: 700 15px/1.15 var(--font-text); text-align: left; cursor: pointer; }
.vc .sil-ic { flex: none; display: grid; }
.vc .sil[aria-checked="true"] { background: var(--gold-grad); border-color: #C99A48; color: #3A2618; box-shadow: 0 0 0 2px rgba(var(--rz-gold-rgb), .35); }
.vc .swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.vc .swatch { position: relative; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: var(--c); box-shadow: 0 0 0 1px rgba(var(--rz-gold-rgb), .7); cursor: pointer; }
.vc .swatch[aria-checked="true"] { box-shadow: 0 0 0 3px #C99A48; }
.vc .swatch[aria-checked="true"]::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 var(--font-text); color: var(--rz-ink); }
.vc .err { min-height: 1.3em; margin: 0; font: 700 16px/1.3 var(--font-text); color: #B0364F; text-align: center; }
.vc .err:empty { min-height: 0; }

/* ---------- visor de recuerdos ---------- */
.vc .viewer { position: absolute; inset: 0; z-index: 75; background: #2A1C26; opacity: 0; transition: opacity .3s; transform: translateY(var(--drag, 0)); }
.vc .viewer.is-on { opacity: 1; }
.vc .v-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; touch-action: pan-x; }
.vc .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; }
.vc .v-frame { padding: 10px; border-radius: 12px; background: var(--gold-grad); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); max-width: 100%; }
.vc .v-frame img { display: block; max-width: 100%; max-height: calc(100dvh - 230px); object-fit: contain; border-radius: 6px; }
.vc .v-slide figcaption { font: italic 700 22px/1.2 var(--font-head); color: #F4DE9E; text-align: center; }
.vc .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: #FFF8F0; }
.vc .v-close { position: absolute; right: 12px; top: calc(12px + var(--safe-t)); }
.vc .v-nav { position: absolute; bottom: calc(18px + var(--safe-b)); }
.vc .v-prev { left: 18px; } .vc .v-next { right: 18px; }
.vc .v-nav:disabled { opacity: .3; }

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