/* ==========================================================================
   J&B Privé · "Niñas Bien" — sistema visual
   Materiales del flyer: satén rosa, oro metálico con diamantes, placas vino
   brillantes con marco dorado, caligrafía, números serif y purpurina.
   ========================================================================== */

@font-face { font-family: 'Alex Brush'; src: url('../fonts/alex-brush.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  /* Satén */
  --saten: #F7D9E2;
  --saten-luz: #FDF1F5;
  --saten-medio: #F4CCD8;
  --saten-sombra: #E7AFC1;
  /* Vino y magenta */
  --vino: #7A1238;
  --vino-brillo: #A8235A;
  --vino-oscuro: #4C0A22;
  --magenta: #C2185B;
  /* Oro */
  --oro: #C9A04F;
  --oro-claro: #F1D99A;
  --oro-texto: #74500F;
  /* Tinta */
  --tinta: #3A0E20;
  --tinta-2: #6B3A4E;
  --tinta-3: #8E6576;

  /* Materiales */
  --oro-metal: linear-gradient(128deg, #8A5D17 0%, #D6AE5A 18%, #FFF3CF 34%, #C9963F 50%, #F3D78E 68%, #A87428 86%, #E7C677 100%);
  --oro-hilo: linear-gradient(90deg, #A87428, #F3D78E 30%, #FFF3CF 50%, #D6AE5A 70%, #A87428);
  --rosa-oro: linear-gradient(170deg, #7C4524 0%, #D59A6C 22%, #FFE5CC 40%, #C17F52 58%, #EDBE95 76%, #84502D 100%);
  --placa-vino: radial-gradient(130% 160% at 50% -20%, #C33A73 0%, #8E1A47 38%, #6A0E31 66%, #470820 100%);
  --placa-brillo: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 46%, transparent 47%);
  --seda: linear-gradient(180deg, #FFF9FB 0%, #FDEFF4 100%);
  --sombra-placa: 0 14px 30px -14px rgba(90, 10, 40, 0.65), 0 2px 4px rgba(90, 10, 40, 0.18);
  --sombra-seda: 0 12px 28px -18px rgba(122, 18, 56, 0.5), 0 1px 0 #FFFFFF inset;

  /* Tipografía */
  --f-script: 'Alex Brush', 'Great Vibes', cursive;
  --f-serif: 'Playfair Display', 'Didot', Georgia, serif;
  --f-sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  /* Compatibilidad con el panel */
  --bg: var(--saten-luz);
  --card: #FFFFFF;
  --line: #EDC3D1;
  --line2: #F6DFE7;
  --rosa: #F7D9E3;
  --rosa2: #FDF3F6;
  --gris: #F3E6EB;
  --txt: var(--tinta);
  --txt2: var(--tinta-2);
  --txt3: var(--tinta-3);
  --oro-txt: var(--oro-texto);
  --oro-bg: #FFF6E3;
  --oro-line: #E8CB8C;
  --ok: #22663C;
  --ok-bg: #E5F2E9;
  --err: #9C1D2E;
  --err-bg: #FBE7EA;
  --azul: #1F4E8C;
  --azul-bg: #E9F0FA;
  --radius: 20px;
  --script: var(--f-script);
  --sans: var(--f-sans);
  --sombra: var(--sombra-placa);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  color: var(--tinta);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: lining-nums;
  background-color: var(--saten);
  /* Satén: pliegues con brillo diagonal */
  background-image:
    linear-gradient(112deg, transparent 0 14%, rgba(255, 255, 255, 0.55) 21%, transparent 30%, transparent 47%, rgba(255, 255, 255, 0.38) 55%, transparent 63%, transparent 80%, rgba(255, 255, 255, 0.3) 86%, transparent 92%),
    linear-gradient(158deg, rgba(205, 96, 132, 0.22) 0%, transparent 26%, rgba(205, 96, 132, 0.14) 58%, transparent 74%, rgba(205, 96, 132, 0.2) 100%),
    radial-gradient(90% 60% at 0% 0%, #FCE9EF 0%, transparent 70%),
    radial-gradient(80% 60% at 100% 100%, #EDB3C6 0%, transparent 70%);
  background-attachment: fixed;
  min-height: 100dvh;
}
a { color: var(--vino); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Estructura ---------- */
.shell { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
/* Polvo de oro en la esquina superior, como el destello del flyer */
.shell::before {
  content: ''; position: fixed; top: 0; right: max(0px, calc(50% - 300px)); width: 260px; height: 260px; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(232, 188, 98, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 236, 190, 0.9) 0 0.8px, transparent 1.4px),
    radial-gradient(circle, rgba(214, 160, 70, 0.8) 0 1.3px, transparent 2px);
  background-size: 13px 17px, 7px 9px, 23px 19px;
  background-position: 0 0, 3px 5px, 9px 2px;
  -webkit-mask-image: radial-gradient(70% 70% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(70% 70% at 100% 0%, #000 0%, transparent 70%);
  opacity: 0.85;
}
.vista { position: relative; z-index: 1; flex: 1; padding: 26px 18px 120px; display: flex; flex-direction: column; gap: 18px; }
.muted { color: var(--tinta-2); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grow { flex: 1; min-width: 0; }
.serif { font-family: var(--f-serif); }
.nota { font-family: var(--f-serif); font-style: italic; color: var(--tinta-2); font-size: 15px; line-height: 1.55; }

/* ---------- Títulos caligráficos con purpurina ---------- */
.script {
  font-family: var(--f-script); font-weight: 400; line-height: 1; letter-spacing: 0.01em;
  background-image:
    radial-gradient(circle, rgba(255, 210, 228, 0.75) 0 0.6px, transparent 1.1px),
    radial-gradient(circle, rgba(255, 240, 210, 0.6) 0 0.5px, transparent 1px),
    linear-gradient(180deg, #B12A62 0%, #7A1238 55%, #4C0A22 100%);
  background-size: 5px 6px, 7px 5px, 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
  padding: 0.08em 0.12em 0.14em 0.04em; margin-left: -0.04em;
}
h1.script { font-size: clamp(40px, 11.5vw, 52px); margin: 0; }
h1.t { margin: 0; font-family: var(--f-serif); font-size: 24px; font-weight: 700; color: var(--vino-oscuro); }
h2.script { font-size: 38px; margin: 0; }
h2.t, h3.t { margin: 0; font-family: var(--f-serif); font-size: 19px; font-weight: 700; color: var(--vino-oscuro); }
/* Corazón dibujado a mano junto al título, como en "Gran Apertura ♡" */
.corazon { position: relative; display: inline-block; padding-right: 30px; }
.corazon::after {
  content: ''; position: absolute; top: 0; right: 0; width: 26px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24' fill='none' stroke='%237A1238' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M13 21C6 16 2 12.5 2.5 8 3 4.5 6.3 2.6 9 3.6c1.8.7 3 2.3 4 4.2 1-2.3 2.6-4.3 5-4.6 3-.4 5.6 2 5.3 5.4-.4 4.2-4.6 8-10.6 12.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* Trazo dorado bajo un título, como el de "Consentirnos" */
.trazo { position: relative; padding-bottom: 12px; }
.trazo::before {
  content: ''; position: absolute; left: 4%; right: 8%; bottom: 0; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23A87428' stop-opacity='0'/%3E%3Cstop offset='.3' stop-color='%23F3D78E'/%3E%3Cstop offset='.55' stop-color='%23FFF3CF'/%3E%3Cstop offset='.8' stop-color='%23C9963F'/%3E%3Cstop offset='1' stop-color='%23A87428' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 9 C 80 1, 190 1, 298 7' stroke='url(%23g)' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------- Encabezado de pantalla ---------- */
.cab { display: flex; align-items: center; gap: 10px; }
.btn-icono {
  width: 46px; height: 46px; flex: none; border-radius: 50%; cursor: pointer; text-decoration: none; color: var(--vino);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent; background: var(--seda) padding-box, var(--oro-metal) border-box; box-shadow: var(--sombra-seda);
}
.btn-icono svg { width: 20px; height: 20px; }
.btn-icono:active { transform: scale(0.95); }

/* ---------- Pasos: cuentas doradas unidas por un hilo ---------- */
.pasos { display: flex; align-items: center; gap: 0; padding: 0 4px; }
.pasos span { position: relative; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--saten-luz); border: 1.5px solid #D9B26A; }
.pasos span.on { background: radial-gradient(circle at 35% 30%, #C33A73, #6A0E31 70%); border-color: #E7C677; box-shadow: 0 0 0 3px rgba(201, 160, 79, 0.25); }
.pasos i { flex: 1; height: 2px; background: #E8C9D3; }
.pasos i.on { background: var(--oro-hilo); }
.paso-txt { font-family: var(--f-serif); font-style: italic; font-size: 14px; color: var(--tinta-2); }

/* ---------- Paneles ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: 16px 18px;
  background: rgba(255, 249, 251, 0.86); border: 1px solid rgba(231, 175, 193, 0.75); box-shadow: var(--sombra-seda);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* Panel con marco de oro: información clave */
.card.oro, .panel-oro {
  border: 2px solid transparent;
  background: var(--seda) padding-box, var(--oro-metal) border-box;
  box-shadow: var(--sombra-seda), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.card.aviso { background: linear-gradient(180deg, #FFF8E8, #FDEFD2); border-color: var(--oro-line); color: var(--oro-texto); }
.card.error { background: var(--err-bg); border-color: #EFBDC5; color: var(--err); }
.card.exito { background: linear-gradient(180deg, #F0F8F2, #E1F1E6); border-color: #B9DCC5; color: var(--ok); }
.card.info { background: var(--azul-bg); border-color: #BCD0EA; color: var(--azul); }
.lista-datos > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(231, 175, 193, 0.5); }
.lista-datos > div:last-child { border-bottom: none; }
.lista-datos .k { font-size: 13px; color: var(--tinta-2); }
.lista-datos .v { font-weight: 600; word-break: break-all; }
.lista-datos .v.num { font-family: var(--f-serif); font-weight: 700; }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 50px; padding: 0 22px; border-radius: 999px; cursor: pointer; text-decoration: none; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-sans); font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; color: var(--vino);
  border: 1px solid #E5A9BD; background: linear-gradient(180deg, #FFF8FA 0%, #F9DCE6 100%);
  box-shadow: 0 6px 16px -10px rgba(122, 18, 56, 0.55), 0 1px 0 #FFFFFF inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { color: var(--vino-oscuro); }
.btn:active { transform: translateY(1px) scale(0.985); }
/* Brillo que recorre el botón al tocarlo */
.btn::after {
  content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%); width: 45%;
}
.btn:hover::after, .btn:active::after { animation: brillo 0.85s ease; }
/* Placa vino con marco dorado (acción principal) */
.btn.primario {
  color: #FFF4E6; border: 2px solid transparent; text-shadow: 0 1px 1px rgba(60, 5, 25, 0.5);
  background: var(--placa-brillo) padding-box, var(--placa-vino) padding-box, var(--oro-metal) border-box;
  box-shadow: var(--sombra-placa);
}
.btn.primario:hover { color: #FFFFFF; }
/* Oro metálico (acción sobre fondo vino) */
.btn.dorado {
  color: var(--vino-oscuro); border: 1px solid #B8862F; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  background: var(--oro-metal); box-shadow: 0 6px 16px -8px rgba(60, 5, 25, 0.8), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.btn.suave { border-color: #EDC3D1; }
.btn.peligro { color: var(--err); border-color: #E8AEB7; }
.btn.bloque { width: 100%; }
.btn.grande { min-height: 58px; font-size: 17px; }
.btn.chico { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.wa { color: #17633B; border-color: #A9D3B9; background: linear-gradient(180deg, #F7FCF8, #E3F2E8); }
.link { background: none; border: none; color: var(--vino); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; min-height: 44px; font-family: var(--f-sans); }

/* ---------- Píldoras (como "Av. Salk 175") ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--vino-oscuro);
  background: linear-gradient(180deg, #FCE6ED, #F4C5D4); border: 1px solid #EBA8BE; box-shadow: 0 1px 0 #FFFFFF inset, 0 6px 14px -10px rgba(122, 18, 56, 0.6);
}
.pill svg { width: 18px; height: 18px; color: var(--vino); flex: none; }
.pill.oro { background: var(--oro-metal); border-color: #B8862F; color: var(--vino-oscuro); }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .campo .lbl { font-size: 14px; font-weight: 600; color: var(--vino-oscuro); }
.campo .ayuda { font-size: 13px; color: var(--tinta-2); }
.input, select.input, textarea.input {
  min-height: 50px; width: 100%; border-radius: 14px; padding: 11px 14px; font-size: 16px; color: var(--tinta);
  background: rgba(255, 252, 253, 0.95); border: 1px solid #E8BACA; box-shadow: 0 2px 6px -4px rgba(122, 18, 56, 0.35) inset;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(201, 160, 79, 0.22); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--vino); flex: none; margin: 0; }

/* ---------- Estados ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.e-pendiente_pago { background: #FFF4DE; color: var(--oro-texto); border-color: #E8CB8C; }
.e-comprobante_enviado { background: var(--azul-bg); color: var(--azul); border-color: #BCD0EA; }
.e-confirmada { background: #E3F2E8; color: var(--ok); border-color: #B9DCC5; }
.e-atendida { background: var(--placa-vino); color: #FFF4E6; border-color: #D6AE5A; }
.e-cancelada, .e-expirada, .e-no_asistio { background: #F2E6EB; color: var(--tinta-2); border-color: #E3CCD5; }

/* ---------- Servicios ---------- */
.svc {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; min-height: 70px;
  padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(231, 175, 193, 0.85);
  background: rgba(255, 249, 251, 0.88); box-shadow: var(--sombra-seda);
  transition: transform 0.15s ease, border-color 0.2s;
}
.svc:active { transform: scale(0.99); }
.svc.sel { border: 2px solid transparent; padding: 13px 15px; background: linear-gradient(180deg, #FFFBFC, #FDEBF1) padding-box, var(--oro-metal) border-box; }
/* Sello vino con aro dorado */
.svc .caja { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid #D9A8B9; background: #FFFFFF; }
.svc.sel .caja { border: 2px solid #E7C677; background: radial-gradient(circle at 35% 30%, #C33A73, #6A0E31 75%); box-shadow: 0 2px 6px -2px rgba(90, 10, 40, 0.7); }
.svc .caja svg { width: 13px; height: 13px; display: none; }
.svc.sel .caja svg { display: block; animation: sello 0.32s cubic-bezier(.3, 1.6, .5, 1); }
.svc .nom { font-weight: 600; font-size: 16px; color: var(--tinta); }
.svc .det { font-size: 13.5px; color: var(--tinta-2); }
.svc .precio { font-family: var(--f-serif); font-weight: 700; font-size: 18px; color: var(--vino); white-space: nowrap; text-align: right; line-height: 1.1; }
.svc .precio small { display: block; font-family: var(--f-sans); font-weight: 500; font-size: 11.5px; color: var(--tinta-3); }
.svc .foto { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; border: 1.5px solid #E7C677; }
.variantes { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px 18px; }
.var {
  min-height: 42px; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--vino-oscuro);
  background: linear-gradient(180deg, #FFF8FA, #FBE4EC); border: 1px solid #EAB3C5;
}
.var .p { font-family: var(--f-serif); font-weight: 700; }
.var.sel { color: #FFF4E6; border: 1.5px solid transparent; background: var(--placa-brillo) padding-box, var(--placa-vino) padding-box, var(--oro-metal) border-box; }
/* Selector de largo o tamaño con silueta */
.figuras { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; padding: 2px 0 8px; }
.fig {
  --fig-fondo: #FFF9FB; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 12px; cursor: pointer; min-width: 0;
  border-radius: 18px; color: var(--vino); border: 1.5px solid transparent;
  background: linear-gradient(180deg, #FFFBFC, #FBE6EE) padding-box, linear-gradient(135deg, #E6C78A, #F6E3B7 50%, #D1A759) border-box;
  box-shadow: 0 8px 16px -12px rgba(122, 18, 56, 0.7); transition: transform 0.15s ease;
}
.fig:active { transform: scale(0.97); }
.fig .figura { width: 50px; height: 64px; margin-bottom: 4px; }
.fig .fn { font-weight: 600; font-size: 13px; color: var(--tinta); text-align: center; line-height: 1.2; }
.fig .fp { font-family: var(--f-serif); font-weight: 700; font-size: 16.5px; color: var(--vino); line-height: 1.15; }
.fig .fd { font-size: 12px; color: var(--tinta-2); }
.fig.sel { --fig-fondo: #7A1238; color: #F3D78E; border-width: 2px; background: var(--placa-brillo) padding-box, var(--placa-vino) padding-box, var(--oro-metal) border-box; box-shadow: var(--sombra-placa); }
.fig.sel .fn, .fig.sel .fp { color: #FFF4E6; }
.fig.sel .fd { color: #F8D7E3; }
.fig.sel .figura { animation: sello 0.35s cubic-bezier(.3, 1.6, .5, 1); }
.seccion-cat { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; }

/* ---------- Días y horarios ---------- */
.dias { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 10px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia {
  flex: none; width: 62px; height: 84px; border-radius: 16px; cursor: pointer; padding: 0; scroll-snap-align: start; color: var(--tinta);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(255, 249, 251, 0.92); border: 1px solid #EBC0CF; box-shadow: var(--sombra-seda);
}
.dia .ds { font-size: 12px; font-weight: 600; text-transform: capitalize; }
.dia .dn { font-family: var(--f-serif); font-size: 24px; font-weight: 700; line-height: 1.1; }
.dia .dm { font-family: var(--f-serif); font-style: italic; font-size: 12px; color: var(--tinta-2); }
.dia.sel { color: #FFF4E6; border: 2px solid transparent; background: var(--placa-brillo) padding-box, var(--placa-vino) padding-box, var(--oro-metal) border-box; box-shadow: var(--sombra-placa); }
.dia.sel .dm { color: var(--oro-claro); }
.dia.off { background: rgba(243, 230, 235, 0.7); color: var(--tinta-3); cursor: not-allowed; box-shadow: none; }
.dia.off .dn { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.horas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Marco dorado de hora, como "3:00 PM" */
.hora {
  min-height: 52px; border-radius: 14px; cursor: pointer; font-family: var(--f-serif); font-weight: 700; font-size: 17px; color: var(--vino-oscuro);
  border: 1.5px solid transparent; background: linear-gradient(180deg, #FFFBFC, #FCECF1) padding-box, linear-gradient(135deg, #E6C78A, #F6E3B7 50%, #D1A759) border-box;
  box-shadow: 0 6px 14px -12px rgba(122, 18, 56, 0.7);
}
.hora small { font-family: var(--f-sans); font-weight: 600; font-size: 12px; margin-left: 2px; }
.hora.sel { color: #FFF4E6; border-width: 2px; background: var(--placa-brillo) padding-box, var(--placa-vino) padding-box, var(--oro-metal) border-box; box-shadow: var(--sombra-placa); }

/* ---------- Barra flotante de resumen (placa vino) ---------- */
.barra {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; max-width: 496px; margin: 0 auto;
  border-radius: 24px; padding: 12px 12px 12px 20px; color: #FFF4E6;
  border: 2px solid transparent; background: var(--placa-brillo) padding-box, var(--placa-vino) padding-box, var(--oro-metal) border-box;
  box-shadow: 0 20px 40px -18px rgba(70, 8, 32, 0.85);
  animation: subir 0.35s cubic-bezier(.2, .8, .3, 1);
}
.barra-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barra .r1 { font-size: 13px; color: #F8D7E3; }
.barra .r2 { font-family: var(--f-serif); font-size: 24px; font-weight: 700; line-height: 1.15; }
.barra .btn { color: var(--vino-oscuro); border: 1px solid #B8862F; background: var(--oro-metal); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); box-shadow: 0 6px 16px -8px rgba(30, 0, 10, 0.9), 0 1px 0 rgba(255, 255, 255, 0.7) inset; flex: none; }
.barra .btn:disabled { opacity: 0.45; }

/* ---------- Navegación inferior ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.nav-in {
  pointer-events: auto; max-width: 496px; margin: 0 auto; display: flex; justify-content: space-around; padding: 6px; border-radius: 22px;
  background: rgba(255, 247, 250, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(231, 175, 193, 0.9); box-shadow: 0 14px 30px -16px rgba(90, 10, 40, 0.6);
}
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 8px 6px 6px; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--tinta-2); border-radius: 16px; }
.nav a svg { width: 22px; height: 22px; }
.nav a.on { color: var(--vino); font-weight: 700; background: linear-gradient(180deg, #FDEAF0, #F8D6E1); }
.nav a.on::before {
  content: ''; position: absolute; top: -9px; left: 50%; width: 18px; height: 11px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M1 10 L2.5 2.5 L6 6 L9 1 L12 6 L15.5 2.5 L17 10Z' fill='%23E2BC6C' stroke='%23A87428' stroke-width='.8' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
body.con-barra .nav { display: none; }

/* ==========================================================================
   Portada
   ========================================================================== */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 4px; }

/* Monograma J&B: aro de diamantes, corona, J y B en oro rosa, & caligráfico magenta */
.monograma { position: relative; width: 260px; height: 252px; margin: 0 auto; }
.monograma .aro { position: absolute; inset: 22px 6px 0; width: calc(100% - 12px); height: auto; overflow: visible; }
.monograma .aro .trazo-aro { stroke-dasharray: 690; stroke-dashoffset: 0; }
.monograma .corona { position: absolute; top: 0; left: 50%; width: 92px; transform: translateX(-50%); filter: drop-shadow(0 3px 3px rgba(90, 50, 10, 0.35)); }
.monograma .letras { position: absolute; left: 0; right: 0; top: 66px; display: flex; justify-content: center; align-items: center; height: 128px; }
.monograma .l {
  font-family: var(--f-serif); font-weight: 800; font-size: 118px; line-height: 1; letter-spacing: -0.02em;
  background: var(--rosa-oro); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 #FFF2E3) drop-shadow(0 3px 2px rgba(110, 50, 20, 0.45));
}
.monograma .l.j { margin-right: -2px; }
.monograma .l.b { margin-left: -4px; }
.monograma .amp {
  position: relative; z-index: 2; font-family: var(--f-script); font-size: 128px; line-height: 1; margin: 18px -12px 0;
  background: linear-gradient(170deg, #F9B9CF 0%, #E0558E 35%, #B71C5B 70%, #F3A6C2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 3px 3px rgba(120, 10, 50, 0.4));
}
.monograma .prive {
  position: absolute; left: 0; right: 0; bottom: 6px; font-family: var(--f-serif); font-weight: 700; font-size: 26px; letter-spacing: 0.42em; padding-left: 0.42em;
  background: linear-gradient(180deg, #B07A26 0%, #E3BE6A 38%, #8A5D17 62%, #C99A45 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 1px rgba(110, 60, 10, 0.35));
}
.lema-servicios { font-family: var(--f-serif); font-size: 13px; letter-spacing: 0.22em; color: var(--vino-oscuro); display: flex; gap: 10px; align-items: center; justify-content: center; }
.lema-servicios .d { color: var(--oro); font-size: 10px; }

/* Destellos de la portada */
.destello { position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: 0; }
.destello svg { width: 100%; height: 100%; }

/* Placa "Niñas Bien" con corona */
.placa-lema { position: relative; margin-top: 10px; }
.placa-lema .mini-corona { position: absolute; top: -20px; left: 50%; width: 40px; transform: translateX(-50%); filter: drop-shadow(0 2px 2px rgba(90, 50, 10, 0.4)); }
.placa-lema .texto {
  display: inline-block; padding: 6px 40px 12px; border-radius: 28px; font-family: var(--f-script); font-size: 44px; line-height: 1.05; color: #FFFFFF;
  border: 3px solid transparent; background: var(--placa-brillo) padding-box, var(--placa-vino) padding-box, var(--oro-metal) border-box;
  box-shadow: var(--sombra-placa), 0 0 0 1px rgba(255, 230, 180, 0.5) inset; text-shadow: 0 2px 2px rgba(60, 5, 25, 0.6);
}

/* Medallones de categoría */
.medallones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.medallon { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--vino-oscuro); font-family: var(--f-serif); font-weight: 600; font-size: 15px; }
.medallon .ic {
  width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--vino);
  border: 2.5px solid transparent; background: radial-gradient(circle at 35% 30%, #FFFFFF, #FBE1E9 70%) padding-box, var(--oro-metal) border-box;
  box-shadow: 0 10px 20px -12px rgba(122, 18, 56, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}
.medallon .ic svg { width: 30px; height: 30px; }
.medallon:active .ic { transform: scale(0.94); }
.info-salon { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.punto { width: 9px; height: 9px; border-radius: 50%; background: #2E8A55; flex: none; box-shadow: 0 0 0 3px rgba(46, 138, 85, 0.2); }
.punto.off { background: var(--tinta-3); box-shadow: none; }
.firma { font-family: var(--f-serif); font-style: italic; font-size: 14px; color: var(--tinta-2); text-align: center; }

/* ---------- Folio en marco (como "Corte de listón") ---------- */
.marco-folio {
  position: relative; text-align: center; padding: 18px 16px 16px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 3px solid transparent; background: linear-gradient(180deg, #FFFBFC, #FDEDF2) padding-box, var(--oro-metal) border-box;
  box-shadow: var(--sombra-seda), 0 0 0 5px rgba(255, 255, 255, 0.55), 0 0 0 6.5px rgba(201, 160, 79, 0.55);
  margin: 6px 6px 0;
}
.marco-folio .et { font-family: var(--f-script); font-size: 30px; line-height: 1; color: var(--vino); }
.folio { font-variant-numeric: lining-nums tabular-nums; font-family: var(--f-serif); font-size: 36px; font-weight: 800; letter-spacing: 0.06em; color: var(--vino-oscuro); word-break: break-all; line-height: 1.15; }
.marco-folio .ayuda { font-size: 13.5px; color: var(--tinta-2); max-width: 280px; }
.monto-anticipo { font-family: var(--f-serif); font-size: 28px; font-weight: 700; color: var(--vino); }

/* Línea de tiempo de la cita */
.linea-tiempo { display: flex; align-items: center; gap: 0; }
.linea-tiempo .p { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #D9B26A; background: var(--saten-luz); flex: none; display: flex; align-items: center; justify-content: center; }
.linea-tiempo .p.on { border: 2px solid #E7C677; background: radial-gradient(circle at 35% 30%, #C33A73, #6A0E31 75%); }
.linea-tiempo .p svg { width: 12px; height: 12px; }
.linea-tiempo .l { flex: 1; height: 2px; background: #E8C9D3; }
.linea-tiempo .l.on { background: var(--oro-hilo); }
.montos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.montos > div { border-radius: 14px; padding: 10px 4px; background: linear-gradient(180deg, #FDF2F6, #F9E1E9); border: 1px solid #F1CBD8; }
.montos .k { font-size: 12px; color: var(--tinta-2); }
.montos .v { font-family: var(--f-serif); font-size: 18px; font-weight: 700; }
.fecha-grande { font-family: var(--f-serif); font-size: 22px; font-weight: 700; color: var(--vino-oscuro); line-height: 1.2; }

/* ---------- Mapa y galería ---------- */
#mapa { height: 280px; border-radius: 22px; overflow: hidden; z-index: 0; border: 2px solid transparent; background: var(--seda) padding-box, var(--oro-metal) border-box; box-shadow: var(--sombra-seda); }
.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.galeria figure { margin: 0; border-radius: 18px; overflow: hidden; border: 2px solid transparent; background: var(--seda) padding-box, var(--oro-metal) border-box; box-shadow: var(--sombra-seda); }
.galeria img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.galeria figcaption { font-family: var(--f-serif); font-style: italic; font-size: 14px; padding: 8px 12px; color: var(--tinta-2); }
.galeria figure:nth-child(3n + 1) { grid-column: span 2; }
.galeria figure:nth-child(3n + 1) img { aspect-ratio: 16 / 10; }

/* ---------- Avisos, modal, carga ---------- */
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 16px; font-size: 15px; color: #FFF4E6;
  border: 1.5px solid transparent; background: var(--placa-vino) padding-box, var(--oro-metal) border-box; box-shadow: var(--sombra-placa);
  animation: subir 0.3s ease;
}
.toast.error { background: linear-gradient(180deg, #A3243A, #7C1527) padding-box, var(--oro-metal) border-box; }
.velo { position: fixed; inset: 0; z-index: 50; background: rgba(58, 14, 32, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: aparecer 0.2s ease; }
.modal {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; border-radius: 28px 28px 0 0;
  padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, #FFF8FA, #FBE7EE); border-top: 3px solid var(--oro);
  box-shadow: 0 -20px 40px -20px rgba(70, 8, 32, 0.6); animation: subir 0.3s cubic-bezier(.2, .8, .3, 1);
}
.modal::before { content: ''; position: absolute; top: 9px; left: 50%; width: 44px; height: 4px; border-radius: 4px; transform: translateX(-50%); background: var(--oro-hilo); }
@media (min-width: 700px) { .velo { align-items: center; } .modal { border-radius: 28px; border: 2px solid var(--oro); } }
.cargando { display: flex; justify-content: center; padding: 40px 0; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(201, 160, 79, 0.25); border-top-color: var(--oro); border-right-color: var(--vino); animation: girar 0.9s linear infinite; }
.vacio { text-align: center; color: var(--tinta-2); padding: 28px 8px; font-family: var(--f-serif); font-style: italic; font-size: 16px; }
.sep { height: 1px; margin: 4px 0; background: linear-gradient(90deg, transparent, #E7C677, transparent); }
.pie-legal { text-align: center; font-size: 12.5px; color: var(--tinta-2); padding: 4px 0 0; }
.pie-legal a { color: var(--tinta-2); }
#purpurina { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* ---------- Animaciones ---------- */
@keyframes brillo { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(320%) skewX(-18deg); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes sello { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.toast { animation-name: subir-toast; }
@keyframes subir-toast { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Secuencia de la portada (un solo momento orquestado) */
.entrada .monograma .aro .trazo-aro { animation: dibujar 1.3s cubic-bezier(.5, 0, .2, 1) both; }
.entrada .monograma .aro .diamantes { animation: aparecer 0.6s 0.9s both; }
.entrada .monograma .l.j { animation: letra-izq 0.8s 0.15s cubic-bezier(.2, .8, .2, 1) both; }
.entrada .monograma .l.b { animation: letra-der 0.8s 0.15s cubic-bezier(.2, .8, .2, 1) both; }
.entrada .monograma .amp { animation: amp 0.9s 0.45s cubic-bezier(.2, .8, .2, 1) both; }
.entrada .monograma .corona { animation: corona 0.75s 0.75s cubic-bezier(.3, 1.4, .5, 1) both; }
.entrada .monograma .prive { animation: aparecer 0.7s 1s both; }
.entrada .lema-servicios { animation: aparecer 0.7s 1.15s both; }
.entrada .placa-lema { animation: placa 0.7s 1.25s cubic-bezier(.2, .9, .3, 1.2) both; }
.entrada .destello { animation: titilar 2.4s var(--d, 1.4s) ease-in-out 2; }
@keyframes dibujar { from { stroke-dashoffset: 690; } to { stroke-dashoffset: 0; } }
@keyframes letra-izq { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes letra-der { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes amp { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes corona { from { opacity: 0; transform: translate(-50%, -24px) scale(0.8); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes placa { from { opacity: 0; transform: translateY(16px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes titilar { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } }
.destello { animation: titilar-lento 6s var(--d, 2s) ease-in-out infinite; }
@keyframes titilar-lento { 0%, 80%, 100% { opacity: 0; transform: scale(0.4); } 88% { opacity: 1; transform: scale(1) rotate(30deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  .destello { display: none; }
}
@media (max-width: 360px) {
  h1.script { font-size: 44px; }
  .monograma { transform: scale(0.88); margin: -12px auto -16px; }
  .horas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
