/* ═══════════════════════════════════════════════════════
   Estilos del Mapa. Copiados del quiz (quiz/public/index.html)
   para que la app se sienta la continuación de la mini lectura.
   ═══════════════════════════════════════════════════════ */
body{ font-family:'Inter',sans-serif; margin:0; background:#fff; color:#111827; }
:root{ --primary:#8800A3; --primary-hover:#700085; --light:#FEF5FF; }

.hide-scrollbar::-webkit-scrollbar{ display:none; }
.hide-scrollbar{ -ms-overflow-style:none; scrollbar-width:none; }

@keyframes fadeIn{ from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.fade-in{ animation:fadeIn .4s ease-out forwards; }

/* ── BOTONES DE OPCION ──────────────────────────────── */
.btn-option{ transition:all .2s cubic-bezier(.4,0,.2,1); }
.btn-option:hover{ transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.05); }
.btn-selected{ border-color:#8800A3!important; background-color:#FEF5FF!important; box-shadow:0 4px 12px rgba(136,0,163,.15); }
.btn-selected .label-text{ color:#8800A3!important; font-weight:600; }

/* ── BOTONES MULTI-SELECCION ────────────────────────── */
.btn-purple-fill{ background-color:#f9fafb; border:1px solid transparent; transition:all .2s ease; position:relative; overflow:hidden; }
.btn-purple-fill:hover{ background-color:#f3f4f6; transform:translateY(-1px); }
.btn-purple-fill.selected{ background-color:#8800A3!important; color:#fff!important; box-shadow:0 8px 16px -4px rgba(136,0,163,.3); border-color:#8800A3; }
.btn-purple-fill.selected .icon-container{ color:#fff!important; }
.check-circle{ width:24px; height:24px; background:#fff; border:2px solid #e5e7eb; transition:all .2s ease; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.btn-purple-fill.selected .check-circle{ border-color:#fff; background:#fff; }
.check-mark{ opacity:0; transform:scale(.5); transition:all .2s cubic-bezier(.175,.885,.32,1.275); color:#8800A3; width:14px; height:14px; }
.btn-purple-fill.selected .check-mark{ opacity:1; transform:scale(1); }

/* ── CTA ────────────────────────────────────────────── */
.btn-cta{ width:100%; padding:1rem; color:#fff; border-radius:.75rem; font-weight:700; font-size:1.125rem; background:#8800A3; box-shadow:0 10px 15px -3px rgba(0,0,0,.1); transition:all .2s; text-align:center; display:block; }
.btn-cta:hover{ background:#700085; transform:translateY(-1px); }
.btn-cta:disabled, .btn-cta.off{ opacity:.5; cursor:not-allowed; transform:none; }
.btn-soft{ display:inline-block; padding:.6rem 1rem; border-radius:.75rem; background:#FEF5FF; color:#8800A3; font-weight:600; font-size:.9rem; }

/* ── ANILLO DE PROGRESO ─────────────────────────────── */
.progress-ring__circle{ transition:stroke-dashoffset .6s; transform:rotate(-90deg); transform-origin:50% 50%; }
@keyframes pulse-purple{ 0%,100%{box-shadow:0 0 0 0 rgba(136,0,163,.4)} 50%{box-shadow:0 0 0 8px rgba(136,0,163,0)} }
.task-active{ opacity:1!important; background-color:#FEF5FF; transform:scale(1.02); }
.task-active .status-icon{ border-color:#8800A3; animation:pulse-purple 2s infinite; }
.task-completed{ opacity:1!important; }
.task-completed .status-icon{ background-color:#8800A3; border-color:#8800A3; color:#fff; }
.task-completed .status-icon::after{ content:'✓'; font-size:14px; font-weight:bold; }

/* ── ESCENA DEL ABANICO ─────────────────────────────── */
.tarot-scene{ height:280px; max-width:450px; width:100%; margin:10px auto 0; display:flex; justify-content:center; align-items:flex-start; overflow:visible; position:relative; perspective:1000px; }
.tarot-card-container{ width:80px; height:135px; position:absolute; top:40px; transform-origin:center 320px; transform:rotate(var(--rot)); transition:transform .3s cubic-bezier(.25,.8,.25,1), z-index 0s linear .1s; cursor:pointer; z-index:10; pointer-events:auto; }
.tarot-card-inner{ position:relative; width:100%; height:100%; text-align:center; transition:transform .8s; transform-style:preserve-3d; border-radius:6px; box-shadow:-2px 2px 5px rgba(0,0,0,.2); }
.tarot-front,.tarot-back{ position:absolute; width:100%; height:100%; -webkit-backface-visibility:hidden; backface-visibility:hidden; border-radius:6px; border:4px solid #f8f8f8; outline:1px solid #d1d5db; background-clip:padding-box; }
.tarot-front{ background:#2e0238; }
.tarot-front::after{ content:''; position:absolute; inset:0; opacity:.2; background-image:linear-gradient(135deg,#fff 25%,transparent 25%),linear-gradient(225deg,#fff 25%,transparent 25%),linear-gradient(45deg,#fff 25%,transparent 25%),linear-gradient(315deg,#fff 25%,transparent 25%); background-position:4px 0,4px 0,0 0,0 0; background-size:8px 8px; }
.tarot-back{ background-color:#fffcf5; color:#333; transform:rotateY(180deg); display:flex; flex-direction:column; padding:3px; overflow:hidden; }
.card-inner-border{ width:100%; height:100%; border:2px double #8800A3; border-radius:4px; display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:6px 2px; background-color:rgba(255,255,255,.5); }
.card-roman{ font-family:'Cinzel',serif; font-size:8px; color:#999; margin-bottom:2px; }
.card-main-symbol{ font-size:32px; line-height:1; margin:auto 0; filter:drop-shadow(0 2px 2px rgba(0,0,0,.1)); flex:0 1 auto; min-height:0; }
.card-info{ text-align:center; width:100%; padding-top:4px; border-top:1px solid rgba(136,0,163,.2); flex:0 0 auto; }
.card-title{ font-family:'Cinzel',serif; font-size:8px; font-weight:800; color:#4a0e5c; text-transform:uppercase; letter-spacing:.5px; line-height:1.12; overflow-wrap:anywhere; hyphens:auto; }
.card-keywords{ font-family:'Inter',sans-serif; font-size:6px; color:#666; font-style:italic; margin-top:1px; letter-spacing:.2px; line-height:1.15; overflow-wrap:anywhere; }
.card-title.t-md{ font-size:7px; letter-spacing:.2px; }
.card-title.t-sm{ font-size:6px; letter-spacing:0; }
.card-keywords.k-sm{ font-size:5.5px; letter-spacing:0; }
@media (hover:hover){
  .tarot-card-container:not(.clicked):hover{ z-index:100!important; transform:rotate(var(--rot)) translateY(-30px); transition:transform .2s ease-out, z-index 0s; }
  .tarot-card-container:not(.clicked):hover .tarot-card-inner{ box-shadow:0 10px 20px rgba(136,0,163,.3); }
}
.tarot-card-container.clicked{ z-index:999!important; }
.tarot-card-container.clicked .tarot-card-inner{ transform:rotateY(180deg); box-shadow:0 0 40px rgba(136,0,163,.6); }

/* ── CARTA ESTATICA ─────────────────────────────────── */
.static-card-display{ width:110px; height:190px; margin:0 auto; border-radius:6px; box-shadow:0 10px 25px rgba(136,0,163,.25); background-color:#fffcf5; position:relative; border:3px solid #f8f8f8; outline:1px solid #d1d5db; padding:3px; display:flex; flex-direction:column; }
.static-card-display .card-main-symbol{ font-size:48px; }
.static-card-display .card-title{ font-size:11px; }
.static-card-display .card-roman{ font-size:10px; }
.static-card-display .card-keywords{ font-size:8px; }
.static-card-display.sm{ width:64px; height:110px; padding:2px; border-width:2px; }
.static-card-display.sm .card-main-symbol{ font-size:26px; }
.static-card-display.sm .card-title{ font-size:6.5px; letter-spacing:0; }
.static-card-display.sm .card-roman{ font-size:7px; }
.static-card-display.sm .card-keywords{ display:none; }

/* ── GRILLA DE CARTAS BOCA ARRIBA (calibración) ─────── */
.card-pick{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 4px; border-radius:12px; border:2px solid transparent; background:transparent; cursor:pointer; transition:all .2s; }
.card-pick:hover{ background:#FEF5FF; }
.card-pick.picked{ border-color:#8800A3; background:#FEF5FF; }
.card-pick .static-card-display{ box-shadow:0 6px 14px rgba(136,0,163,.18); }
.card-pick .pick-name{ font-size:11px; font-weight:700; color:#4a0e5c; text-align:center; line-height:1.1; }

/* ── LECTURA ────────────────────────────────────────── */
.reading-text{ font-family:'Merriweather',serif; line-height:1.8; color:#333; }
.reading-text h3{ font-family:'Inter',sans-serif; }
.handwritten-signoff{ font-family:'Cinzel',serif; font-size:1.5rem; color:#8800A3; margin-top:.25rem; }
.titulo-cinzel{ font-family:'Cinzel',serif; }

/* ── TARJETAS DEL HOME ──────────────────────────────── */
.tarjeta{ display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:16px; background:#fff; border:2px solid #f3f4f6; transition:all .2s; text-decoration:none; color:inherit; }
.tarjeta:hover{ border-color:#e9d5ff; box-shadow:0 4px 12px rgba(136,0,163,.08); transform:translateY(-1px); }
.tarjeta.principal{ background:#FEF5FF; border-color:#e9d5ff; }
.tarjeta.bloqueada{ opacity:.6; }
.tarjeta.bloqueada:hover{ transform:none; box-shadow:none; }
.tarjeta .icono{ font-size:26px; width:40px; text-align:center; flex-shrink:0; }
.tarjeta .titulo{ font-weight:700; color:#111827; line-height:1.2; }
.tarjeta .sub{ font-size:12px; color:#6b7280; margin-top:2px; }
.tarjeta .check{ width:22px; height:22px; border-radius:50%; border:2px solid #e5e7eb; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:12px; color:#fff; }
.tarjeta .check.ok{ background:#8800A3; border-color:#8800A3; }
/* «Lo que ya es tuyo» arriba de la home (N2, 3/11/2026, lib/lo-tuyo.js): el botón de cada fila y el «Ver todo» */
.lo-tuyo-boton{ flex-shrink:0; padding:7px 12px; border-radius:999px; background:#8800A3; color:#fff; font-size:12px; font-weight:700; line-height:1.2; white-space:nowrap; }
.lo-tuyo-boton.suave{ background:#fff; color:#8800A3; border:1.5px solid #e9d5ff; }
.lo-tuyo-mas > summary{ cursor:pointer; list-style:none; text-align:center; font-size:13px; font-weight:700; color:#8800A3; padding:8px 0; }
.lo-tuyo-mas > summary::-webkit-details-marker{ display:none; }
.lo-tuyo-mas[open] > summary{ display:none; }
.candado{ background:#fff; border:2px dashed #e9d5ff; }
.candado .precio{ font-weight:800; color:#8800A3; white-space:nowrap; }

/* ── DESAFÍO: GRILLA DE 21 DÍAS ─────────────────────── */
.dia{ aspect-ratio:1; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-weight:800; font-size:1.05rem; border:2px solid #f3f4f6; color:#374151; text-decoration:none; }
.dia.abierto{ border-color:#8800A3; color:#8800A3; background:#FEF5FF; }
.dia.hecho{ background:#8800A3; border-color:#8800A3; color:#fff; }
.dia.cerrado{ color:#c4c4c8; background:#fafafa; }
.dia small{ font-size:9px; font-weight:600; opacity:.8; }

/* ── NAV INFERIOR ───────────────────────────────────── */
.nav-inf{ position:fixed; bottom:0; left:0; right:0; background:rgba(255,255,255,.96); backdrop-filter:blur(6px); border-top:1px solid #f3f4f6; z-index:40; }
/* sin el CDN de Tailwind (no cargó: señal mala, bloqueador) la barra se apilaba en vertical, tapaba un tercio de la pantalla
   y dejaba debajo los últimos botones ("Leer mi lectura", enviar las 3 preguntas). Quejas del 3 al 20/10/2026.
   Son los mismos valores que dan `flex mx-auto` y `pb-24`: con Tailwind no cambia nada */
.nav-inf > div{ display:flex; margin-left:auto; margin-right:auto; }
footer{ padding-bottom:6rem; }
.nav-inf a{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 0 12px; font-size:11px; font-weight:600; color:#9ca3af; text-decoration:none; }
.nav-inf a.on{ color:#8800A3; }
/* escribiendo en un formulario (public/app.js): la barra no tapa el campo ni el botón con el teclado abierto */
body.escribiendo .nav-inf{ display:none; }
.nav-inf a span.i{ font-size:20px; line-height:1; }

/* ── AUDIO ──────────────────────────────────────────── */
audio.player{ width:100%; accent-color:#8800A3; }

@media (min-width:640px){
  .tarot-card-container{ width:90px; height:155px; top:50px; transform-origin:center 400px; }
  .tarot-scene{ height:320px; max-width:600px; }
  .card-title{ font-size:9px; } .card-keywords{ font-size:7px; }
  .card-title.t-md{ font-size:8px; } .card-title.t-sm{ font-size:7px; }
  .card-keywords.k-sm{ font-size:6px; }
  .card-main-symbol{ font-size:40px; } .card-roman{ font-size:9px; }
  .static-card-display .card-main-symbol{ font-size:48px; }
  .static-card-display .card-title{ font-size:11px; }
  .static-card-display .card-keywords{ font-size:8px; }
}

/* ── vitrina de "Más de Mia" (home y /mas, 1/10/2026): una destacada y el resto en tarjetas chicas con precio ── */
.vitrina-destacada{ display:block; padding:18px 18px 16px; border-radius:22px; background:linear-gradient(160deg,#FEF5FF 0%,#ffffff 75%); border:2px solid #e9d5ff; box-shadow:0 8px 24px rgba(136,0,163,.10); text-decoration:none; color:inherit; transition:all .2s; }
.vitrina-destacada:hover{ transform:translateY(-1px); box-shadow:0 12px 28px rgba(136,0,163,.16); }
.vitrina-destacada .cuerpo{ display:flex; align-items:flex-start; gap:14px; margin-top:12px; }
.vitrina-destacada .emoji{ width:54px; height:54px; border-radius:16px; background:#fff; border:1px solid #f3e8ff; display:flex; align-items:center; justify-content:center; font-size:28px; flex-shrink:0; }
.vitrina-destacada .titulo{ font-weight:800; font-size:1.08rem; color:#4a0e5c; line-height:1.25; }
.vitrina-destacada .promesa{ font-size:14px; color:#4b5563; margin-top:6px; line-height:1.45; }
.vitrina-destacada .pie{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid #f3e8ff; }
.vitrina-destacada .precio{ font-weight:800; font-size:1.3rem; color:#8800A3; }
.vitrina-destacada .cada{ font-size:12px; color:#9ca3af; }
.vitrina-destacada .ver{ background:#8800A3; color:#fff; font-weight:700; font-size:.95rem; padding:.6rem 1.1rem; border-radius:.75rem; white-space:nowrap; box-shadow:0 6px 14px rgba(136,0,163,.22); }
.vitrina-item{ display:flex; align-items:center; gap:12px; padding:13px 14px; border-radius:18px; background:#fff; border:2px solid #f3f4f6; text-decoration:none; color:inherit; transition:all .2s; }
.vitrina-item:hover{ border-color:#e9d5ff; box-shadow:0 4px 12px rgba(136,0,163,.08); transform:translateY(-1px); }
.vitrina-item .emoji{ width:44px; height:44px; border-radius:14px; background:#FEF5FF; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.vitrina-item .titulo{ font-weight:700; color:#111827; line-height:1.25; font-size:.95rem; }
.vitrina-item .promesa{ font-size:12px; color:#6b7280; margin-top:3px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vitrina-item .lado{ text-align:right; flex-shrink:0; padding-left:4px; }
.vitrina-item .precio{ font-weight:800; color:#8800A3; white-space:nowrap; font-size:.95rem; }
.vitrina-item .cada{ font-size:10px; color:#9ca3af; white-space:nowrap; }
.vitrina-item.pronto{ opacity:.6; }
.vitrina-chip{ display:inline-block; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#8800A3; background:#fff; border:1px solid #e9d5ff; padding:3px 9px; border-radius:999px; }
.vitrina-chip.chica{ padding:1px 7px; margin-bottom:4px; font-size:9px; background:#FEF5FF; }

/* carta del día y "¿qué te quedó picando?" (6/10/2026): lo oculto con el atributo hidden no lo vuelve a mostrar una clase de Tailwind */
[hidden]{ display:none !important; }
.chip-senal{ display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:999px; border:2px solid #f3e8ff; background:#fff; font-size:14px; color:#374151; cursor:pointer; }
.chip-senal:has(input:checked){ border-color:#8800A3; background:#FEF5FF; }
.chip-senal input{ width:16px; height:16px; }
/* guardar una pieza en PDF (la Gran Lectura, 20/10/2026): al imprimir queda solo el texto */
@media print{ .nav-inf, .no-print, .btn-cta, .btn-soft, footer, form, [data-picando]{ display:none !important; } body{ background:#fff; } .reading-text{ font-size:12pt; } }

/* ── HEBREO (Israel, 19/11/2026): la primera lengua de derecha a izquierda de la app. views/layout.js pone <html lang="he" dir="rtl">
   (calibracion.html lo pone con su script) y carga Frank Ruhl Libre y Heebo solo en hebreo: Cinzel, Inter y Merriweather no tienen
   letras hebreas. Todas las reglas van bajo [lang="he"] o [dir="rtl"]: en los demás idiomas no cambia ni un píxel.
   Lo que ya se da vuelta solo con dir="rtl": el texto, los flex (íconos, botones, «Tu Mapa», la barra de abajo), las grillas, los bloques
   angostos (las barras de progreso crecen desde la derecha) y los ‹ › (se espejan). Lo que no, va acá: lo que dice left/right. ── */
:root[lang="he"] body, :root[lang="he"] button, :root[lang="he"] input, :root[lang="he"] textarea, :root[lang="he"] select{ font-family:'Heebo','Inter',system-ui,sans-serif; }
:root[lang="he"] .titulo-cinzel, :root[lang="he"] .handwritten-signoff, :root[lang="he"] .card-title, :root[lang="he"] .card-roman,
:root[lang="he"] .p-titulo, :root[lang="he"] .tarjeta.p-tarjeta .titulo, :root[lang="he"] .p-hero32 .t2, :root[lang="he"] .p-noche .n, :root[lang="he"] .p-ritual p.fin,
:root[lang="he"] .bf-t, :root[lang="he"] .nv-t, :root[lang="he"] .nv-titulo, :root[lang="he"] .nv-firma, :root[lang="he"] .nv-subtitulo, :root[lang="he"] .nv-ct{ font-family:'Frank Ruhl Libre','Cinzel',Georgia,serif; }
/* la lectura: serif como en el resto (Merriweather → Frank Ruhl Libre); sus subtítulos, como la app */
:root[lang="he"] .reading-text, :root[lang="he"] .nv-texto{ font-family:'Frank Ruhl Libre','Merriweather',Georgia,serif; }
:root[lang="he"] .reading-text h2{ font-family:'Frank Ruhl Libre','Merriweather',Georgia,serif !important; }
:root[lang="he"] .reading-text h3, :root[lang="he"] .card-keywords{ font-family:'Heebo','Inter',sans-serif; }
/* el hebreo no tiene mayúsculas: el espaciado de las versalitas latinas lo separaba de más */
:root[lang="he"] .card-title, :root[lang="he"] .uppercase, :root[lang="he"] .tracking-wide{ letter-spacing:0; }
/* lo que dice left/right (Tailwind y app.css) */
[dir="rtl"] .text-left{ text-align:right; }
[dir="rtl"] .text-right{ text-align:left; }
[dir="rtl"] .ml-1{ margin-left:0; margin-right:.25rem; }
[dir="rtl"] .pl-4{ padding-left:0; padding-right:1rem; }
[dir="rtl"] .pl-5{ padding-left:0; padding-right:1.25rem; }
[dir="rtl"] .border-l-4{ border-left-width:0; border-right-width:4px; }
[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]){ --tw-space-x-reverse:1; }
[dir="rtl"] .vitrina-item .lado{ text-align:left; padding-left:0; padding-right:4px; }
/* las flechas «volver» (SVG) apuntan a la derecha; las de «seguir» en texto las pone views/layout.js → flecha() */
[dir="rtl"] .flecha-rtl{ transform:scaleX(-1); }
/* el aviso de «este navegador no guarda tu sesión» (public/sesion.js, estilo en línea) */
[dir="rtl"] #aviso-sesion button{ margin-left:0 !important; margin-right:6px; }
/* pieles de temporada (public/pieles.css) */
[dir="rtl"] .p-bloque .p-ver, [dir="rtl"] .nv-regalo-linea .nv-vale{ margin-left:0; margin-right:auto; }
[dir="rtl"] .p-pz .nm{ padding-right:0; padding-left:20px; }
[dir="rtl"] .p-pz:has(input:checked)::after{ right:auto; left:10px; }
[dir="rtl"] .chip3x2{ margin-left:0; margin-right:6px; }
[dir="rtl"] .nv-card .nv-mono{ right:auto; left:18px; }
[dir="rtl"] .nv-legal{ text-align:right; }
/* la barra de las 12 puertas de Navidad se posiciona con left:% en línea: queda de izquierda a derecha, con sus textos en hebreo */
[dir="rtl"] .nv-barra{ direction:ltr; }
[dir="rtl"] .nv-barra .nv-lb{ direction:rtl; }

/* ── CHINO (Taiwán y Hong Kong, 20/11/2026): chino tradicional, de izquierda a derecha. views/layout.js pone <html lang="zh-Hant">
   (calibracion.html lo pone con su script) y carga Noto Serif TC y Noto Sans TC solo en chino: Cinzel, Inter y Merriweather no tienen
   caracteres chinos. Todas las reglas van bajo [lang|="zh"] (zh y zh-Hant): en los demás idiomas no cambia ni un píxel. ── */
:root[lang|="zh"] body, :root[lang|="zh"] button, :root[lang|="zh"] input, :root[lang|="zh"] textarea, :root[lang|="zh"] select{ font-family:'Noto Sans TC','Inter',system-ui,sans-serif; }
:root[lang|="zh"] .titulo-cinzel, :root[lang|="zh"] .handwritten-signoff, :root[lang|="zh"] .card-title, :root[lang|="zh"] .card-roman,
:root[lang|="zh"] .p-titulo, :root[lang|="zh"] .tarjeta.p-tarjeta .titulo, :root[lang|="zh"] .p-hero32 .t2, :root[lang|="zh"] .p-noche .n, :root[lang|="zh"] .p-ritual p.fin,
:root[lang|="zh"] .bf-t, :root[lang|="zh"] .bf-tres .cara .r, :root[lang|="zh"] .bf-tres .cara .n, :root[lang|="zh"] .piel-black-friday .p-cuenta b,
:root[lang|="zh"] .nv-t, :root[lang|="zh"] .nv-titulo, :root[lang|="zh"] .nv-firma, :root[lang|="zh"] .nv-subtitulo, :root[lang|="zh"] .nv-ct, :root[lang|="zh"] .nv-cr,
:root[lang|="zh"] .nv-pu .r, :root[lang|="zh"] .nv-legal h2, :root[lang|="zh"] .nv-sobre .msg{ font-family:'Noto Serif TC','Cinzel',Georgia,serif; }
/* la lectura: serif como en el resto (Merriweather → Noto Serif TC); sus subtítulos, como la app */
:root[lang|="zh"] .reading-text, :root[lang|="zh"] .nv-texto{ font-family:'Noto Serif TC','Merriweather',Georgia,serif; }
:root[lang|="zh"] .reading-text h2{ font-family:'Noto Serif TC','Merriweather',Georgia,serif !important; }
:root[lang|="zh"] .reading-text h3, :root[lang|="zh"] .card-keywords{ font-family:'Noto Sans TC','Inter',sans-serif; }
/* lo que va en Cormorant Garamond (la voz de Mia en las pieles, los sobres de Navidad) y la letra de títulos de las pieles (public/pieles.css) */
:root[lang|="zh"] .bf-mia, :root[lang|="zh"] .nv-mia, :root[lang|="zh"] .nv-texto blockquote, :root[lang|="zh"] .nv-sobre .para, :root[lang|="zh"] .nv-sobre .de,
:root[lang|="zh"] .nv-fondo-iniciales, :root[lang|="zh"] .nv-fondo-frase{ font-family:'Noto Serif TC',Georgia,serif; }
:root[lang|="zh"] [class*="piel-"]{ --p-disp:'Noto Serif TC',Georgia,serif; --p-ds:normal; --bf-mia:'Noto Serif TC',Georgia,serif; }
/* el chino no tiene itálica: lo que en los otros idiomas va en cursiva va derecho (y el navegador no la inventa inclinando la letra);
   el énfasis de la lectura, con el color de la marca */
:root[lang|="zh"]{ font-synthesis:weight; }
:root[lang|="zh"] em, :root[lang|="zh"] i, :root[lang|="zh"] .italic, :root[lang|="zh"] .card-keywords, :root[lang|="zh"] .nv-ck, :root[lang|="zh"] .bf-mia, :root[lang|="zh"] .nv-mia,
:root[lang|="zh"] .nv-texto blockquote, :root[lang|="zh"] .nv-sobre .para, :root[lang|="zh"] .nv-sobre .de, :root[lang|="zh"] .nv-fondo-iniciales, :root[lang|="zh"] .nv-fondo-frase,
:root[lang|="zh"] body.piel .reading-text .bg-yellow-200{ font-style:normal; }
:root[lang|="zh"] .reading-text em, :root[lang|="zh"] .reading-text i{ color:#6D2480; }
/* las versalitas latinas (mayúsculas con espaciado) no aplican al chino: sin espaciado entre caracteres */
:root[lang|="zh"] .uppercase, :root[lang|="zh"] .tracking-wide, :root[lang|="zh"] .tracking-wider, :root[lang|="zh"] .tracking-widest, :root[lang|="zh"] .card-title,
:root[lang|="zh"] .card-keywords, :root[lang|="zh"] .vitrina-chip, :root[lang|="zh"] .p-sello, :root[lang|="zh"] .p-ceja, :root[lang|="zh"] .p-cuenta span, :root[lang|="zh"] .p-noche .d,
:root[lang|="zh"] .bf-ceja, :root[lang|="zh"] .bf-tres .cara .n, :root[lang|="zh"] .chip3x2, :root[lang|="zh"] .nv-ceja, :root[lang|="zh"] .nv-esc-t, :root[lang|="zh"] .nv-ct,
:root[lang|="zh"] .nv-pu .tag, :root[lang|="zh"] .nv-sobre .msg, :root[lang|="zh"] .nv-fondo-iniciales,
:root[lang|="zh"] body.nv-mapa main > div:first-child > p:first-child{ letter-spacing:0; }
/* los títulos grandes con interlineado de letra latina (1 a 1,15) apretaban los renglones de caracteres chinos */
:root[lang|="zh"] .p-titulo, :root[lang|="zh"] .p-hero32 .t2, :root[lang|="zh"] .p-noche .n, :root[lang|="zh"] .bf-t, :root[lang|="zh"] .nv-t, :root[lang|="zh"] .nv-titulo{ line-height:1.3; }
/* los saltos de línea: el chino corta entre cualquier par de caracteres, pero nunca antes de un signo de cierre (，。：」！？) ni después de uno
   de apertura (「); line-break:strict suma las reglas estrictas de CJK. word-break:normal deja enteros «NT$618», «HK$148» y «Mia» (no corta
   adentro de una palabra latina ni de un número: nada de break-all, que los partía); si algo no entra en el renglón, overflow-wrap lo corta */
:root[lang|="zh"] body{ line-break:strict; word-break:normal; overflow-wrap:break-word; }
:root[lang|="zh"] .break-all{ word-break:normal; }

/* ── JAPONÉS (Japón, 30/11/2026, test): de izquierda a derecha, como el chino. views/layout.js pone <html lang="ja"> (calibracion.html carga
   las letras con su script) y Noto Serif JP y Noto Sans JP solo en japonés: Cinzel, Inter y Merriweather no tienen kana ni kanji. Las mismas reglas
   que el chino (sin itálica, sin espaciado de versalitas, interlineado, line-break:strict para 。、」), bajo [lang="ja"]: en los demás idiomas no cambia nada. ── */
:root[lang="ja"] body, :root[lang="ja"] button, :root[lang="ja"] input, :root[lang="ja"] textarea, :root[lang="ja"] select{ font-family:'Noto Sans JP','Inter',system-ui,sans-serif; }
:root[lang="ja"] .titulo-cinzel, :root[lang="ja"] .handwritten-signoff, :root[lang="ja"] .card-title, :root[lang="ja"] .card-roman,
:root[lang="ja"] .p-titulo, :root[lang="ja"] .tarjeta.p-tarjeta .titulo, :root[lang="ja"] .p-hero32 .t2, :root[lang="ja"] .p-noche .n, :root[lang="ja"] .p-ritual p.fin,
:root[lang="ja"] .bf-t, :root[lang="ja"] .bf-tres .cara .r, :root[lang="ja"] .bf-tres .cara .n, :root[lang="ja"] .piel-black-friday .p-cuenta b,
:root[lang="ja"] .nv-t, :root[lang="ja"] .nv-titulo, :root[lang="ja"] .nv-firma, :root[lang="ja"] .nv-subtitulo, :root[lang="ja"] .nv-ct, :root[lang="ja"] .nv-cr,
:root[lang="ja"] .nv-pu .r, :root[lang="ja"] .nv-legal h2, :root[lang="ja"] .nv-sobre .msg{ font-family:'Noto Serif JP','Cinzel',Georgia,serif; }
/* la lectura: serif como en el resto (Merriweather → Noto Serif JP); sus subtítulos, como la app */
:root[lang="ja"] .reading-text, :root[lang="ja"] .nv-texto{ font-family:'Noto Serif JP','Merriweather',Georgia,serif; }
:root[lang="ja"] .reading-text h2{ font-family:'Noto Serif JP','Merriweather',Georgia,serif !important; }
:root[lang="ja"] .reading-text h3, :root[lang="ja"] .card-keywords{ font-family:'Noto Sans JP','Inter',sans-serif; }
/* lo que va en Cormorant Garamond (la voz de Mia en las pieles, los sobres de Navidad) y la letra de títulos de las pieles (public/pieles.css) */
:root[lang="ja"] .bf-mia, :root[lang="ja"] .nv-mia, :root[lang="ja"] .nv-texto blockquote, :root[lang="ja"] .nv-sobre .para, :root[lang="ja"] .nv-sobre .de,
:root[lang="ja"] .nv-fondo-iniciales, :root[lang="ja"] .nv-fondo-frase{ font-family:'Noto Serif JP',Georgia,serif; }
:root[lang="ja"] [class*="piel-"]{ --p-disp:'Noto Serif JP',Georgia,serif; --p-ds:normal; --bf-mia:'Noto Serif JP',Georgia,serif; }
/* el japonés, como el chino, no tiene itálica: lo que en los otros idiomas va en cursiva va derecho (y el navegador no la inventa inclinando la letra);
   el énfasis de la lectura, con el color de la marca */
:root[lang="ja"]{ font-synthesis:weight; }
:root[lang="ja"] em, :root[lang="ja"] i, :root[lang="ja"] .italic, :root[lang="ja"] .card-keywords, :root[lang="ja"] .nv-ck, :root[lang="ja"] .bf-mia, :root[lang="ja"] .nv-mia,
:root[lang="ja"] .nv-texto blockquote, :root[lang="ja"] .nv-sobre .para, :root[lang="ja"] .nv-sobre .de, :root[lang="ja"] .nv-fondo-iniciales, :root[lang="ja"] .nv-fondo-frase,
:root[lang="ja"] body.piel .reading-text .bg-yellow-200{ font-style:normal; }
:root[lang="ja"] .reading-text em, :root[lang="ja"] .reading-text i{ color:#6D2480; }
/* las versalitas latinas (mayúsculas con espaciado) no aplican al japonés: sin espaciado entre caracteres */
:root[lang="ja"] .uppercase, :root[lang="ja"] .tracking-wide, :root[lang="ja"] .tracking-wider, :root[lang="ja"] .tracking-widest, :root[lang="ja"] .card-title,
:root[lang="ja"] .card-keywords, :root[lang="ja"] .vitrina-chip, :root[lang="ja"] .p-sello, :root[lang="ja"] .p-ceja, :root[lang="ja"] .p-cuenta span, :root[lang="ja"] .p-noche .d,
:root[lang="ja"] .bf-ceja, :root[lang="ja"] .bf-tres .cara .n, :root[lang="ja"] .chip3x2, :root[lang="ja"] .nv-ceja, :root[lang="ja"] .nv-esc-t, :root[lang="ja"] .nv-ct,
:root[lang="ja"] .nv-pu .tag, :root[lang="ja"] .nv-sobre .msg, :root[lang="ja"] .nv-fondo-iniciales,
:root[lang="ja"] body.nv-mapa main > div:first-child > p:first-child{ letter-spacing:0; }
/* los títulos grandes con interlineado de letra latina (1 a 1,15) apretaban los renglones de kana y kanji */
:root[lang="ja"] .p-titulo, :root[lang="ja"] .p-hero32 .t2, :root[lang="ja"] .p-noche .n, :root[lang="ja"] .bf-t, :root[lang="ja"] .nv-t, :root[lang="ja"] .nv-titulo{ line-height:1.3; }
/* los saltos de línea: el japonés corta entre cualquier par de caracteres, pero nunca antes de un signo de cierre (、。：」』！？) ni después de uno
   de apertura (「『); line-break:strict suma las reglas estrictas de CJK. word-break:normal deja enteros «2,980円» y «Mia» (no corta
   adentro de una palabra latina ni de un número: nada de break-all, que los partía); si algo no entra en el renglón, overflow-wrap lo corta */
:root[lang="ja"] body{ line-break:strict; word-break:normal; overflow-wrap:break-word; }
:root[lang="ja"] .break-all{ word-break:normal; }

/* ── GEORGIANO Y ARMENIO (Georgia y Armenia, 21/11/2026): de izquierda a derecha, con sus alfabetos. views/layout.js pone <html lang="ka"> o
   <html lang="hy"> (calibracion.html carga las letras con su script) y Noto Serif/Sans Georgian o Noto Serif/Sans Armenian solo en su idioma:
   Cinzel, Inter y Merriweather no tienen esas letras. Todas las reglas van bajo [lang="ka"] / [lang="hy"]: en los demás idiomas no cambia nada. ── */
:root[lang="ka"] body, :root[lang="ka"] button, :root[lang="ka"] input, :root[lang="ka"] textarea, :root[lang="ka"] select{ font-family:'Noto Sans Georgian','Inter',system-ui,sans-serif; }
:root[lang="hy"] body, :root[lang="hy"] button, :root[lang="hy"] input, :root[lang="hy"] textarea, :root[lang="hy"] select{ font-family:'Noto Sans Armenian','Inter',system-ui,sans-serif; }
:root[lang="ka"] .titulo-cinzel, :root[lang="ka"] .handwritten-signoff, :root[lang="ka"] .card-title, :root[lang="ka"] .card-roman,
:root[lang="ka"] .p-titulo, :root[lang="ka"] .tarjeta.p-tarjeta .titulo, :root[lang="ka"] .p-hero32 .t2, :root[lang="ka"] .p-noche .n, :root[lang="ka"] .p-ritual p.fin,
:root[lang="ka"] .bf-t, :root[lang="ka"] .bf-tres .cara .r, :root[lang="ka"] .bf-tres .cara .n, :root[lang="ka"] .piel-black-friday .p-cuenta b,
:root[lang="ka"] .nv-t, :root[lang="ka"] .nv-titulo, :root[lang="ka"] .nv-firma, :root[lang="ka"] .nv-subtitulo, :root[lang="ka"] .nv-ct, :root[lang="ka"] .nv-cr,
:root[lang="ka"] .nv-pu .r, :root[lang="ka"] .nv-legal h2, :root[lang="ka"] .nv-sobre .msg,
:root[lang="ka"] .reading-text, :root[lang="ka"] .nv-texto, :root[lang="ka"] .reading-text h2,
:root[lang="ka"] .bf-mia, :root[lang="ka"] .nv-mia, :root[lang="ka"] .nv-texto blockquote, :root[lang="ka"] .nv-sobre .para, :root[lang="ka"] .nv-sobre .de,
:root[lang="ka"] .nv-fondo-iniciales, :root[lang="ka"] .nv-fondo-frase{ font-family:'Noto Serif Georgian','Merriweather',Georgia,serif !important; }
:root[lang="hy"] .titulo-cinzel, :root[lang="hy"] .handwritten-signoff, :root[lang="hy"] .card-title, :root[lang="hy"] .card-roman,
:root[lang="hy"] .p-titulo, :root[lang="hy"] .tarjeta.p-tarjeta .titulo, :root[lang="hy"] .p-hero32 .t2, :root[lang="hy"] .p-noche .n, :root[lang="hy"] .p-ritual p.fin,
:root[lang="hy"] .bf-t, :root[lang="hy"] .bf-tres .cara .r, :root[lang="hy"] .bf-tres .cara .n, :root[lang="hy"] .piel-black-friday .p-cuenta b,
:root[lang="hy"] .nv-t, :root[lang="hy"] .nv-titulo, :root[lang="hy"] .nv-firma, :root[lang="hy"] .nv-subtitulo, :root[lang="hy"] .nv-ct, :root[lang="hy"] .nv-cr,
:root[lang="hy"] .nv-pu .r, :root[lang="hy"] .nv-legal h2, :root[lang="hy"] .nv-sobre .msg,
:root[lang="hy"] .reading-text, :root[lang="hy"] .nv-texto, :root[lang="hy"] .reading-text h2,
:root[lang="hy"] .bf-mia, :root[lang="hy"] .nv-mia, :root[lang="hy"] .nv-texto blockquote, :root[lang="hy"] .nv-sobre .para, :root[lang="hy"] .nv-sobre .de,
:root[lang="hy"] .nv-fondo-iniciales, :root[lang="hy"] .nv-fondo-frase{ font-family:'Noto Serif Armenian','Merriweather',Georgia,serif !important; }
/* los subtítulos de la lectura, como la app */
:root[lang="ka"] .reading-text h3, :root[lang="ka"] .card-keywords{ font-family:'Noto Sans Georgian','Inter',sans-serif !important; }
:root[lang="hy"] .reading-text h3, :root[lang="hy"] .card-keywords{ font-family:'Noto Sans Armenian','Inter',sans-serif !important; }
/* la letra de títulos de las pieles (public/pieles.css) */
:root[lang="ka"] [class*="piel-"]{ --p-disp:'Noto Serif Georgian',Georgia,serif; --p-ds:normal; --bf-mia:'Noto Serif Georgian',Georgia,serif; }
:root[lang="hy"] [class*="piel-"]{ --p-disp:'Noto Serif Armenian',Georgia,serif; --p-ds:normal; --bf-mia:'Noto Serif Armenian',Georgia,serif; }
/* GEORGIANO: no tiene mayúsculas. text-transform:uppercase pasa el mkhedruli (ა) al mtavruli (Ა), que no es la escritura de todos los días:
   en georgiano nada se pasa a mayúsculas, y las versalitas latinas (mayúsculas con espaciado) quedan sin espaciado */
:root[lang="ka"] *, :root[lang="ka"] *::before, :root[lang="ka"] *::after{ text-transform:none !important; }
:root[lang="ka"] .uppercase, :root[lang="ka"] .tracking-wide, :root[lang="ka"] .tracking-wider, :root[lang="ka"] .tracking-widest, :root[lang="ka"] .card-title,
:root[lang="ka"] .card-keywords, :root[lang="ka"] .vitrina-chip, :root[lang="ka"] .p-sello, :root[lang="ka"] .p-ceja, :root[lang="ka"] .p-cuenta span, :root[lang="ka"] .p-noche .d,
:root[lang="ka"] .bf-ceja, :root[lang="ka"] .bf-tres .cara .n, :root[lang="ka"] .chip3x2, :root[lang="ka"] .nv-ceja, :root[lang="ka"] .nv-esc-t, :root[lang="ka"] .nv-ct,
:root[lang="ka"] .nv-pu .tag, :root[lang="ka"] .nv-sobre .msg, :root[lang="ka"] .nv-fondo-iniciales{ letter-spacing:0; }
/* GEORGIANO: tampoco tiene itálica (el navegador la inventaría inclinando la letra): lo que va en cursiva va derecho y el énfasis de la
   lectura, con el color de la marca */
:root[lang="ka"]{ font-synthesis:weight; }
:root[lang="ka"] em, :root[lang="ka"] i, :root[lang="ka"] .italic, :root[lang="ka"] .card-keywords, :root[lang="ka"] .nv-ck, :root[lang="ka"] .bf-mia, :root[lang="ka"] .nv-mia,
:root[lang="ka"] .nv-texto blockquote, :root[lang="ka"] .nv-sobre .para, :root[lang="ka"] .nv-sobre .de, :root[lang="ka"] .nv-fondo-iniciales, :root[lang="ka"] .nv-fondo-frase,
:root[lang="ka"] body.piel .reading-text .bg-yellow-200{ font-style:normal; }
:root[lang="ka"] .reading-text em, :root[lang="ka"] .reading-text i{ color:#6D2480; }
/* las palabras georgianas y armenias son largas: los títulos grandes con interlineado de letra latina (1 a 1,15) se pisaban al partir */
:root[lang="ka"] .p-titulo, :root[lang="ka"] .p-hero32 .t2, :root[lang="ka"] .p-noche .n, :root[lang="ka"] .bf-t, :root[lang="ka"] .nv-t, :root[lang="ka"] .nv-titulo,
:root[lang="hy"] .p-titulo, :root[lang="hy"] .p-hero32 .t2, :root[lang="hy"] .p-noche .n, :root[lang="hy"] .bf-t, :root[lang="hy"] .nv-t, :root[lang="hy"] .nv-titulo{ line-height:1.3; }
:root[lang="ka"] body, :root[lang="hy"] body{ overflow-wrap:break-word; }

/* ── TAILANDÉS (Tailandia, 24/11/2026): de izquierda a derecha, con su alfabeto. views/layout.js pone <html lang="th"> (calibracion.html carga las
   letras con su script) y Noto Serif Thai / Noto Sans Thai solo en tailandés: Cinzel, Inter y Merriweather no tienen letras tailandesas. Todas las
   reglas van bajo [lang="th"]: en los demás idiomas no cambia nada. ── */
:root[lang="th"] body, :root[lang="th"] button, :root[lang="th"] input, :root[lang="th"] textarea, :root[lang="th"] select{ font-family:'Noto Sans Thai','Inter',system-ui,sans-serif; }
:root[lang="th"] .titulo-cinzel, :root[lang="th"] .handwritten-signoff, :root[lang="th"] .card-title, :root[lang="th"] .card-roman,
:root[lang="th"] .p-titulo, :root[lang="th"] .tarjeta.p-tarjeta .titulo, :root[lang="th"] .p-hero32 .t2, :root[lang="th"] .p-noche .n, :root[lang="th"] .p-ritual p.fin,
:root[lang="th"] .bf-t, :root[lang="th"] .bf-tres .cara .r, :root[lang="th"] .bf-tres .cara .n, :root[lang="th"] .piel-black-friday .p-cuenta b,
:root[lang="th"] .nv-t, :root[lang="th"] .nv-titulo, :root[lang="th"] .nv-firma, :root[lang="th"] .nv-subtitulo, :root[lang="th"] .nv-ct, :root[lang="th"] .nv-cr,
:root[lang="th"] .nv-pu .r, :root[lang="th"] .nv-legal h2, :root[lang="th"] .nv-sobre .msg,
:root[lang="th"] .reading-text, :root[lang="th"] .nv-texto, :root[lang="th"] .reading-text h2,
:root[lang="th"] .bf-mia, :root[lang="th"] .nv-mia, :root[lang="th"] .nv-texto blockquote, :root[lang="th"] .nv-sobre .para, :root[lang="th"] .nv-sobre .de,
:root[lang="th"] .nv-fondo-iniciales, :root[lang="th"] .nv-fondo-frase{ font-family:'Noto Serif Thai','Merriweather',Georgia,serif !important; }
/* los subtítulos de la lectura, como la app */
:root[lang="th"] .reading-text h3, :root[lang="th"] .card-keywords{ font-family:'Noto Sans Thai','Inter',sans-serif !important; }
/* la letra de títulos de las pieles (public/pieles.css) */
:root[lang="th"] [class*="piel-"]{ --p-disp:'Noto Serif Thai',Georgia,serif; --p-ds:normal; --bf-mia:'Noto Serif Thai',Georgia,serif; }
/* SIN ESPACIADO ENTRE LETRAS: el tailandés apila vocales y tonos arriba y abajo de la consonante; con letter-spacing se separan de su letra y
   la palabra se lee rota. Tampoco hay mayúsculas: text-transform no se usa (las versalitas latinas quedan como están escritas) */
:root[lang="th"] *, :root[lang="th"] *::before, :root[lang="th"] *::after{ letter-spacing:0 !important; text-transform:none !important; }
/* SIN ITÁLICA FORZADA: Noto Sans/Serif Thai no tienen itálica (el navegador la inventaría inclinando la letra): lo que va en cursiva va derecho
   y el énfasis de la lectura, con el color de la marca */
:root[lang="th"]{ font-synthesis:weight; }
:root[lang="th"] em, :root[lang="th"] i, :root[lang="th"] .italic, :root[lang="th"] .card-keywords, :root[lang="th"] .nv-ck, :root[lang="th"] .bf-mia, :root[lang="th"] .nv-mia,
:root[lang="th"] .nv-texto blockquote, :root[lang="th"] .nv-sobre .para, :root[lang="th"] .nv-sobre .de, :root[lang="th"] .nv-fondo-iniciales, :root[lang="th"] .nv-fondo-frase,
:root[lang="th"] body.piel .reading-text .bg-yellow-200{ font-style:normal; }
:root[lang="th"] .reading-text em, :root[lang="th"] .reading-text i{ color:#6D2480; }
/* las marcas de arriba y de abajo (ั ิ ี ่ ้ ุ ู) piden más alto de renglón: con el interlineado de letra latina (1 a 1,15) los títulos de dos
   renglones se pisaban */
:root[lang="th"] .p-titulo, :root[lang="th"] .p-hero32 .t2, :root[lang="th"] .p-noche .n, :root[lang="th"] .bf-t, :root[lang="th"] .nv-t, :root[lang="th"] .nv-titulo,
:root[lang="th"] h1, :root[lang="th"] h2, :root[lang="th"] .leading-tight{ line-height:1.45; }
/* el tailandés no separa las palabras con espacios: el navegador corta los renglones por diccionario. Nada de break-all (corta adentro de una
   sílaba); overflow-wrap solo para una palabra latina o un link que no entra */
:root[lang="th"] body{ word-break:normal; overflow-wrap:break-word; line-break:normal; }
:root[lang="th"] .break-all{ word-break:normal; }
