/* Tema «Papelería» (5-nov-2026, pedido de Alberto): blanco, papel de piedra, títulos serif finos, sans geométrica
 * y botones rectos en mayúsculas, en la línea de los sitios de invitaciones. Pisa los tokens de @theme de src/index.css;
 * los componentes no cambian. Rubik y Frank Ruhl Libre quedan para el hebreo. Lo carga index.html. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,600&family=Frank+Ruhl+Libre:wght@400;500&family=Rubik:wght@400;500;600&display=swap');
/* 25-nov-2026: estilo de app unificado — títulos y texto en Plus Jakarta Sans (sin serif), fondos fríos muy claros
 * en lugar del papel beige. Source Serif 4 queda cargada para el sello de las invitaciones; Rubik para el hebreo. */
:root:root {
  --font-sans: 'Plus Jakarta Sans', 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --color-paper: #f7f7fb;
  --color-paper-2: #eeeef6;
  --color-ink: #1c1b29;
  --color-ink-2: #45445a;
  --color-ink-3: #6b6a80;
  /* 25-nov-2026: el verde #2b8259 pasó a índigo #4f46e5 (más moderno) y el «navy» verdoso a pizarra */
  --color-navy: #1e1b3a;
  --color-navy-2: #2e2a52;
  --color-gold: #4f46e5;
  --color-gold-2: #4338ca;
  --color-line: #e6e4ee;
}
html body { letter-spacing: 0; background: #fff; }
.h-display { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.eyebrow { color: #4f46e5; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.card { border-color: var(--color-line); border-radius: 14px; }
.input { border-radius: 10px; }
.input:focus { box-shadow: 0 0 0 3px rgb(79 70 229 / .16); }
/* Botones de app: redondeados, sin mayúsculas */
.btn { border-radius: 12px; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 10px 18px; }
.btn-primary, .btn-gold { box-shadow: 0 6px 16px -8px rgb(79 70 229 / .7); }
.btn-primary:hover:not(:disabled), .btn-gold:hover:not(:disabled) { background: #4338ca; }
.btn-ghost { background: #fff; color: #4f46e5; border-color: #c7d2fe; }
.btn-ghost:hover:not(:disabled) { background: rgb(79 70 229 / .07); border-color: #4f46e5; }
.btn-danger { border-radius: 12px; }
/* Colores fijos que quedaron en las clases: se pasan a la paleta nueva */
.bg-black { background: #1e1b3a; }
.bg-\[\#0071e3\]\/\[\.06\] { background-color: rgb(79 70 229 / .06); }
.bg-\[\#0071e3\] { background-color: #4f46e5; }
.text-\[\#0071e3\], .hover\:text-\[\#0071e3\]:hover { color: #4f46e5; }
.text-\[\#2997ff\] { color: #c7d2fe; }
.bg-\[\#2997ff\] { background-color: #c7d2fe; }
.border-\[\#0071e3\] { border-color: #4f46e5; }
.border-\[\#0071e3\]\/40 { border-color: rgb(79 70 229 / .4); }
.bg-\[\#0071e3\]\/\[\.05\] { background-color: rgb(79 70 229 / .06); }
.bg-\[\#eef5fe\], .hover\:bg-\[\#eef5fe\]:hover { background-color: #eef2ff; }
.hover\:bg-\[\#0077ed\]:hover { background-color: #4338ca; }
.bg-\[rgba\(251\,251\,253\,0\.8\)\] { background-color: rgb(255 255 255 / .94); }
.bg-\[rgb\(251\,251\,253\)\] { background-color: #fff; }
/* El logo azul pasa al índigo del tema sin regenerar los PNG */
img[src*="roshym-logo-blue"] { filter: hue-rotate(32deg); }

/* Sobre animado de las invitaciones */
.env { position: relative; width: 100%; aspect-ratio: 7 / 5; perspective: 1400px; }
.env-back, .env-front, .env-flap, .env-liner { position: absolute; left: 0; width: 100%; }
.env-back { inset: 0; height: 100%; border-radius: 4px; box-shadow: 0 18px 40px -22px rgb(0 0 0 / .55); }
.env-front { inset: 0; height: 100%; z-index: 3; border-radius: 4px; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-flap { top: 0; height: 58%; z-index: 4; transform-origin: top; transition: transform .7s cubic-bezier(.4, 0, .2, 1), z-index 0s .35s; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: brightness(.96); }
.env-liner { top: 0; height: 58%; z-index: 1; opacity: 0; transition: opacity .3s .3s; }
.env-card { position: absolute; bottom: 4%; z-index: 2; transition: transform .95s cubic-bezier(.22, .8, .3, 1); }
.env.is-open .env-flap { transform: rotateX(180deg); z-index: 0; }
.env.is-open .env-liner { opacity: 1; }
.env.is-rise .env-card { transform: translateY(-62%); }
.env-seal { position: absolute; left: 50%; top: 54%; z-index: 5; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; color: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); transition: opacity .25s; }
.env.is-open .env-seal { opacity: 0; }
.invite-card-in { animation: inviteIn .6s ease-out both; }
@keyframes inviteIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .env-flap, .env-liner, .env-card, .env-seal { transition: none; }
  .invite-card-in { animation: none; }
}

/* ---------- Modo oscuro (25-nov-2026) ----------
 * Clase `dark` en <html> (src/lib/theme.ts). Se repuntan los tokens y se remapean las
 * clases de color fijas más usadas; los componentes no cambian. */
:root:root.dark {
  color-scheme: dark;
  --color-paper: #191828;
  --color-paper-2: #222136;
  --color-ink: #ecebf7;
  --color-ink-2: #c4c3d8;
  --color-ink-3: #9a99b3;
  --color-navy: #ecebf7;   /* titulares: claros sobre fondo oscuro */
  --color-navy-2: #d6d5ea;
  --color-gold: #7c74ff;
  --color-gold-2: #a5a0ff;
  --color-line: #2f2d47;
}
html.dark body { background: #12111f; }
html.dark .bg-white, html.dark .card, html.dark .input, html.dark .btn-ghost { background-color: #1b1a2e; }
html.dark .bg-white\/90, html.dark .bg-white\/95 { background-color: rgb(18 17 31 / .9); }
html.dark .bg-\[\#f6f6fb\] { background-color: #151426; }
html.dark .bg-navy, html.dark .bg-ink, html.dark .bg-black { background-color: #2a2850; }
html.dark .text-black { color: var(--color-ink); }
html.dark .border-black\/\[\.06\], html.dark .border-black\/5, html.dark .border-black\/10 { border-color: var(--color-line); }
html.dark .bg-\[\#eef2ff\], html.dark .bg-\[\#eef5fe\], html.dark .bg-\[\#eaf2fb\] { background-color: rgb(124 116 255 / .16); }
html.dark .bg-\[\#eef5ef\] { background-color: rgb(52 199 89 / .14); }
html.dark .bg-\[\#fbf4e6\], html.dark .bg-\[\#fbf8ef\] { background-color: rgb(255 159 10 / .14); }
html.dark .bg-\[\#fbf1f1\], html.dark .bg-\[\#fdeeee\], html.dark .bg-\[\#f6ecec\] { background-color: rgb(255 69 58 / .14); }
html.dark .border-\[\#c7d2fe\] { border-color: rgb(124 116 255 / .45); }
html.dark .border-\[\#ead6ae\], html.dark .border-\[\#e7c9c9\], html.dark .border-\[\#c7dccb\] { border-color: var(--color-line); }
html.dark .text-ok { color: #4ade80; }
html.dark .text-warn { color: #fbbf24; }
html.dark .text-bad { color: #f87171; }
html.dark .btn-primary, html.dark .btn-gold { color: #fff; }
html.dark .bg-gold { color: #fff; }
html.dark img[src*="roshym-logo-indigo"] { filter: brightness(1.35); }
/* Lo que se diseña para imprimir o mandar (invitaciones, tarjetas, entradas) mantiene su papel claro */
html.dark .keep-light, html.dark .keep-light .bg-white { background-color: #fff; color: #1c1b29; }
html.dark .eyebrow { color: var(--color-gold-2); }
