:root {
  --ciruela: #6b2d5c;
  --ciruela-osc: #3b1a35;
  --perg: #efe2c6;
  --tinta: #2a1a22;
}
html, body { margin: 0; height: 100%; background: #1b1220; font-family: 'Segoe UI', system-ui, sans-serif; }
#overlay { position: fixed; inset: 0; pointer-events: none; z-index: 10; color: var(--perg); }
#overlay > * { pointer-events: auto; }
#hud {
  position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 8px 14px; border-radius: 12px; background: rgba(27, 18, 32, .72); backdrop-filter: blur(6px);
  pointer-events: none; font-size: calc(14px * var(--esc, 1));
}
#hud .marca { font-weight: 600; letter-spacing: .06em; font-size: calc(12px * var(--esc, 1)); opacity: .9; }
#hud .marca b { color: #e9b8dc; }
#hud .stats { font-weight: 700; color: #ffd98a; white-space: nowrap; }
#nav { position: absolute; top: var(--nav-top, 62px); left: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
#nav button {
  background: rgba(27, 18, 32, .78); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3);
  border-radius: 10px; padding: 8px 12px; font: inherit; font-size: calc(13px * var(--esc, 1)); cursor: pointer;
}
#nav button:hover, #nav button.on { background: var(--ciruela); border-color: #e9b8dc; }
#ayuda {
  position: absolute; left: 12px; bottom: 12px; max-width: min(520px, calc(100% - 140px)); font-size: calc(12px * var(--esc, 1)); opacity: .85;
  background: rgba(27, 18, 32, .6); padding: 6px 10px; border-radius: 8px; pointer-events: none;
}
#toast {
  position: absolute; left: 50%; top: 22%; transform: translate(-50%, -10px); opacity: 0; transition: .35s;
  background: var(--ciruela); color: #fff; padding: 14px 26px; border-radius: 14px; font-size: calc(22px * var(--esc, 1)); font-weight: 700;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); pointer-events: none; text-align: center;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- geolocalización ---------- */
#geo {
  position: absolute; right: 12px; top: var(--panel-top, 112px); width: min(420px, calc(100% - 24px)); max-height: calc(100% - var(--panel-top, 112px) - 18px); overflow: auto;
  background: rgba(27, 18, 32, .94); border: 1px solid rgba(233, 184, 220, .4); border-radius: 14px; padding: 12px; isolation: isolate;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
#geo[hidden], #llegada[hidden], #geo-sim-ctl[hidden] { display: none; }
#geo header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#geo button, #llegada button {
  background: rgba(60, 40, 70, .9); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: calc(13px * var(--esc, 1)); cursor: pointer;
}
#geo button:hover, #geo button.on, #llegada button:hover { background: var(--ciruela); border-color: #e9b8dc; }
.geo-modos { display: flex; gap: 8px; flex-wrap: wrap; }
#geo-estado { font-size: calc(12.5px * var(--esc, 1)); margin: 8px 0; opacity: .92; min-height: 2.6em; }
#geo-mapa { height: 260px; border-radius: 10px; background: #2a1d33; }
#geo-sim-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: calc(13px * var(--esc, 1)); }
#geo-sim-ctl select { font: inherit; padding: 6px; border-radius: 8px; max-width: 190px; }
.geo-ayuda { font-size: calc(11.5px * var(--esc, 1)); opacity: .75; }
#geo-lista { list-style: none; margin: 10px 0 0; padding: 0; font-size: calc(13px * var(--esc, 1)); }
#geo-lista li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid rgba(239, 226, 198, .12); }
#geo-lista li.dentro { color: #7fd39a; font-weight: 700; }
.geo-user { width: 18px; height: 18px; border-radius: 50%; background: #ffd98a; border: 3px solid #6b2d5c; box-shadow: 0 0 0 6px rgba(255, 217, 138, .3); }
.leaflet-container { font: inherit; }
#llegada {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); width: min(440px, calc(100% - 24px));
  background: var(--ciruela); border: 2px solid #ffd98a; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
#llegada-t { font-weight: 700; font-size: calc(18px * var(--esc, 1)); color: #fff; }
#llegada-d { font-size: calc(13px * var(--esc, 1)); margin: 4px 0 10px; opacity: .92; }
#llegada .acciones { display: flex; gap: 8px; flex-wrap: wrap; }
#llegada #llegada-ok { background: #ffd98a; color: #3b1a35; font-weight: 700; border-color: #ffd98a; }
@media (max-width: 640px) { #geo { top: var(--panel-top, 112px); right: 12px; left: 12px; width: auto; } #geo-mapa { height: 220px; } }
@media (max-width: 640px) { #hud .marca { font-size: calc(10px * var(--esc, 1)); } #ayuda { display: none; } }

/* ---------- accesibilidad ---------- */
#a11y {
  position: absolute; left: 12px; top: var(--panel-top, 112px); width: min(440px, calc(100% - 24px)); max-height: calc(100% - var(--panel-top, 112px) - 18px); overflow: auto;
  background: rgba(27, 18, 32, .95); border: 1px solid rgba(233, 184, 220, .4); border-radius: 14px; padding: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5); font-size: calc(14px * var(--esc, 1));
}
#a11y[hidden], #subs[hidden] { display: none; }
#a11y header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#a11y button, #a11y summary {
  background: rgba(60, 40, 70, .9); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px;
  padding: 8px 12px; font: inherit; cursor: pointer;
}
#a11y button:hover, #a11y button:focus-visible, #a11y summary:focus-visible { background: var(--ciruela); border-color: #e9b8dc; outline: 2px solid #ffd98a; }
#nav button:focus-visible { outline: 2px solid #ffd98a; }
#a11y fieldset { border: 1px solid rgba(239, 226, 198, .2); border-radius: 10px; margin: 0 0 10px; padding: 8px 10px; }
#a11y legend { color: #e9b8dc; font-weight: 700; padding: 0 6px; }
#a11y label { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
#a11y input[type=checkbox] { width: 20px; height: 20px; }
#a11y input[type=range] { flex: 1; }
#a11y .fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#a11y-estado { min-height: 1.3em; color: #ffd98a; margin: 4px 0 8px; }
#a11y-paradas { list-style: none; margin: 0; padding: 0; }
#a11y-paradas li { margin: 6px 0; }
#a11y-paradas summary { display: block; font-weight: 700; }
#a11y-paradas .cuerpo { padding: 8px 4px; line-height: 1.45; }
#a11y-paradas .cuerpo p { margin: 0 0 8px; }
#a11y-paradas .cuerpo .fila { margin-top: 6px; }
#subs {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); box-sizing: border-box;
  background: rgba(0, 0, 0, .82); color: #fff; padding: 10px 16px; border-radius: 10px; text-align: center;
  font-size: calc(18px * var(--esc, 1)); line-height: 1.3; max-height: 42%; overflow: hidden; pointer-events: none; z-index: 5;
}
.sin-mov *, .sin-mov *::before, .sin-mov *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 640px) { #a11y { left: 12px; right: 12px; width: auto; } }

#geo-base { margin-top: 6px; }
#geo-base[data-estado="mal"] { color: #ffb27a; opacity: 1; font-weight: 600; }

#aviso-estatico, #error-contenido { position: absolute; left: 12px; right: 12px; bottom: 56px; z-index: 40; padding: 10px 14px; border-radius: 10px;
  background: #7a4a12; color: #fff; font-size: calc(13px * var(--esc, 1)); line-height: 1.4; }
#error-contenido { top: 120px; bottom: auto; background: #7a2d3b; font-size: calc(16px * var(--esc, 1)); }
#aviso-estatico[hidden], #error-contenido[hidden] { display: none; }
#aviso-estatico code, #error-contenido code { background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 4px; }

#geo-mapa .leaflet-control-attribution, #geo-mapa .leaflet-control-attribution a { font-size: 11px; }

.geo-mapa-botones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
#geo .geo-mapa-botones button { padding: 5px 10px; font-size: calc(12.5px * var(--esc, 1)); }
#geo button:disabled { opacity: .45; cursor: default; }

/* ---------- historias ---------- */
#historias {
  position: absolute; left: 12px; top: var(--panel-top, 112px); width: min(520px, calc(100% - 24px)); max-height: calc(100% - var(--panel-top, 112px) - 18px); overflow: auto;
  background: rgba(27, 18, 32, .96); border: 1px solid rgba(233, 184, 220, .4); border-radius: 14px; padding: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  font-size: calc(14px * var(--esc, 1)); line-height: 1.5; z-index: 6;
}
#historias[hidden] { display: none; }
#historias header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#historias h2 { font-size: 1.05em; color: #e9b8dc; margin: 14px 0 6px; }
#historias button, #historias summary {
  background: rgba(60, 40, 70, .9); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px; padding: 7px 12px; font: inherit; cursor: pointer;
}
#historias button:hover, #historias button:focus-visible, #historias summary:focus-visible { background: var(--ciruela); border-color: #e9b8dc; outline: 2px solid #ffd98a; }
.lista-historias { list-style: none; margin: 0; padding: 0; }
.lista-historias li { margin: 6px 0; }
.lista-historias summary { display: block; font-weight: 700; }
.lista-historias .cuerpo { padding: 8px 4px 4px; }
.lista-historias .cuerpo p { margin: 0 0 10px; }
.lista-historias .vida { color: #ffd98a; font-size: .92em; margin: 0 0 6px; }
.lista-historias .acciones { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.lista-historias .fuentes { font-size: .9em; margin: 8px 0 0; padding-left: 1.2em; }
.lista-historias .fuentes a { color: #e9b8dc; }
.lista-historias .nota { color: #ffb27a; font-style: italic; }
.etiqueta-revision { display: inline-block; font-size: .72em; font-weight: 600; background: #7a4a12; color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.aviso-revision { background: rgba(122, 74, 18, .35); border: 1px solid #7a4a12; border-radius: 8px; padding: 8px 10px; margin: 0 0 6px; font-size: .92em; }
@media (max-width: 640px) { #historias { left: 12px; right: 12px; width: auto; } }

.geo-sub { font-size: calc(13px * var(--esc, 1)); color: #8fd3da; margin: 12px 0 2px; }
#geo-sitios { list-style: none; margin: 0; padding: 0; font-size: calc(13px * var(--esc, 1)); }
#geo-sitios li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid rgba(239, 226, 198, .12); }
#geo-sitios li.dentro { color: #7fd39a; font-weight: 700; }

/* ---------- cómo funcionan los puntos ---------- */
#puntos-ayuda {
  position: absolute; left: 12px; top: var(--panel-top, 112px); width: min(500px, calc(100% - 24px)); max-height: calc(100% - var(--panel-top, 112px) - 18px); overflow: auto;
  background: rgba(27, 18, 32, .96); border: 1px solid rgba(233, 184, 220, .4); border-radius: 14px; padding: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  font-size: calc(14px * var(--esc, 1)); line-height: 1.5; z-index: 6;
}
#puntos-ayuda[hidden] { display: none; }
#puntos-ayuda header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#puntos-ayuda h2 { font-size: 1.05em; color: #e9b8dc; margin: 14px 0 6px; }
#puntos-ayuda ul { margin: 0; padding-left: 1.2em; }
#puntos-ayuda li { margin: 4px 0; }
#puntos-ayuda button { background: rgba(60, 40, 70, .9); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px; padding: 7px 12px; font: inherit; cursor: pointer; }
#puntos-ayuda button:hover, #puntos-ayuda button:focus-visible { background: var(--ciruela); border-color: #e9b8dc; outline: 2px solid #ffd98a; }
.pt-total { font-size: 2.2em; font-weight: 700; color: #ffd98a; font-family: Georgia, serif; line-height: 1.1; }
.pt-sub { color: #d8c8d6; margin: 0 0 4px; }
.pt-barra { height: 10px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; margin: 6px 0 2px; }
.pt-barra > i { display: block; height: 100%; background: #7fd39a; }
.pt-rec { list-style: none; padding: 0; }
.pt-rec li { display: flex; gap: 8px; align-items: baseline; }
.pt-rec .ok { color: #7fd39a; font-weight: 700; }
.pt-aviso { background: rgba(122, 74, 18, .35); border: 1px solid #7a4a12; border-radius: 8px; padding: 8px 10px; font-size: .92em; margin-top: 10px; }
@media (max-width: 640px) { #puntos-ayuda { left: 12px; right: 12px; width: auto; } }

/* ---------- mapa a pantalla completa ---------- */
.fab-mapa {
  position: absolute; right: 12px; bottom: 74px; z-index: 7; background: var(--ciruela); color: #fff; border: 2px solid #e9b8dc; border-radius: 12px;
  padding: 9px 14px; font: inherit; font-size: calc(14px * var(--esc, 1)); font-weight: 700; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.5);
}
.fab-mapa[hidden] { display: none; }
.fab-mapa:hover, .fab-mapa:focus-visible { background: #8a3b76; outline: 2px solid #ffd98a; }
#mapa-completo { position: fixed; inset: 0; z-index: 60; background: #1b1220; color: var(--perg); display: flex; flex-direction: column; font-size: calc(15px * var(--esc, 1)); }
#mapa-completo[hidden] { display: none; }
#mapa-completo button { background: rgba(60, 40, 70, .95); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px; padding: 7px 12px; font: inherit; cursor: pointer; }
#mapa-completo button:hover, #mapa-completo button:focus-visible { background: var(--ciruela); border-color: #e9b8dc; outline: 2px solid #ffd98a; }
#mapa-completo button:disabled { opacity: .45; cursor: default; }
.mc-barra { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: #231a2a; border-bottom: 1px solid rgba(233, 184, 220, .3); }
.mc-acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 450px); }
.mc-mapa { position: relative; min-height: 0; background: #2a1d33; display: flex; flex-direction: column; }
.mc-mapa #geo-mapa { flex: 1; min-height: 0; height: auto; width: 100%; border-radius: 0; }
.mc-mapa #geo-base { position: absolute; left: 8px; bottom: 26px; right: 60px; z-index: 500; background: rgba(27, 18, 32, .8); padding: 2px 8px; border-radius: 6px; font-size: 12px; margin: 0; pointer-events: none; }
.mc-ficha { overflow: auto; padding: 14px 16px 24px; background: #241a2b; border-left: 1px solid rgba(233, 184, 220, .3); line-height: 1.5; }
.mc-nav { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid rgba(233, 184, 220, .3); background: #231a2a; }
.mc-nav #mc-pos { color: #ffd98a; font-weight: 700; white-space: nowrap; }
#mc-lista { display: flex; gap: 4px; list-style: none; margin: 0 0 0 6px; padding: 0 0 2px; overflow-x: auto; flex: 1; }
#mc-lista button { min-width: 34px; padding: 5px 8px; }
#mc-lista button[aria-current="true"] { background: var(--ciruela); border-color: #ffd98a; font-weight: 700; }
#mc-lista button.sitio { border-color: #1f6f78; }
#mc-lista button.hecho::after { content: " ✓"; color: #7fd39a; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.mc-ficha h2 { margin: 6px 0 8px; font-size: 1.45em; line-height: 1.2; font-family: Georgia, serif; }
.mc-ficha h2:focus { outline: none; }
.mc-ficha h3 { font-size: 1em; color: #e9b8dc; margin: 14px 0 6px; }
.mc-ficha .tag { display: inline-block; font-size: .82em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--ciruela); border-radius: 99px; padding: 2px 10px; }
.mc-ficha .tag.sitio { background: #1f6f78; }
.mc-ficha .tag.info { background: #7a4a12; }
.mc-ficha .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.mc-ficha .chip { background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 2px 10px; font-size: .88em; }
.mc-ficha .chip.ok { background: rgba(127, 211, 154, .2); color: #7fd39a; font-weight: 700; }
.mc-ficha .chip.rev { background: rgba(122, 74, 18, .5); }
.mc-ficha .resumen { font-size: 1.05em; }
.mc-ficha .nota { color: #ffb27a; font-style: italic; }
.mc-ficha .acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mc-ficha a.boton { display: inline-block; text-decoration: none; background: rgba(60, 40, 70, .95); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px; padding: 7px 12px; }
.mc-ficha details { margin: 8px 0; }
.mc-ficha summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.mc-ficha .fuentes { font-size: .9em; padding-left: 1.2em; }
.mc-ficha .fuentes a { color: #e9b8dc; }
.mc-ficha img.infografia { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: #fff; }
.mc-pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 'Segoe UI', sans-serif; color: #fff; background: #6b2d5c; border: 2px solid #ffd98a; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.mc-pin.sitio { background: #1f6f78; border-color: #8fd3da; }
.mc-pin.hecho { background: #2f7d4f; }
.mc-pin.sel { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(255, 217, 138, .5), 0 2px 8px rgba(0, 0, 0, .6); position: relative; z-index: 1000; }
@media (max-width: 760px) {
  .mc-cuerpo { grid-template-columns: 1fr; grid-template-rows: 40% 1fr; }
  .mc-ficha { border-left: 0; border-top: 1px solid rgba(233, 184, 220, .3); }
  .fab-mapa { bottom: 64px; }
}

body.mc-abierto .a-enter-vr, body.mc-abierto .a-enter-ar, body.mc-abierto .a-orientation-modal { display: none !important; }

.nota-ia { color: #ffd98a; font-size: .92em; }

/* ---------- libro de visitas y comentarios ---------- */
#nav button.nav-libro { background: linear-gradient(135deg, #f2c66d, #d99a3a); color: #2a1a22; border-color: #fff3d0; font-weight: 700; }
#nav button.nav-libro:hover, #nav button.nav-libro:focus-visible { background: linear-gradient(135deg, #ffd98a, #e6a845); outline: 2px solid #fff; outline-offset: 1px; }
.fl-n { background: #6b2d5c; color: #fff; border-radius: 99px; min-width: 20px; padding: 0 6px; font-size: .8em; font-weight: 700; text-align: center; display: inline-block; }
.fl-n[hidden] { display: none; }

/* reproductor del relato */
#reproductor { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); box-sizing: border-box; z-index: 6;
  background: rgba(27, 18, 32, .94); color: var(--perg); border: 1px solid rgba(239, 226, 198, .35); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
#reproductor[hidden] { display: none; }
#reproductor .rp-arriba { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; font-size: calc(14px * var(--esc, 1)); }
#reproductor .rp-estado { background: #6b2d5c; border-radius: 99px; padding: 1px 9px; font-size: .8em; white-space: nowrap; }
#reproductor .rp-fila { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#reproductor button { background: var(--ciruela); color: #fff; border: 1px solid #e9b8dc; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: calc(14px * var(--esc, 1)); cursor: pointer; min-height: 44px; }
#reproductor label { display: flex; gap: 6px; align-items: center; font-size: calc(13px * var(--esc, 1)); }
#reproductor select { font: inherit; min-height: 40px; border-radius: 8px; background: #fff; color: #2a1a22; }
#reproductor input[type=range] { width: 110px; min-height: 40px; }
#reproductor .rp-barra { height: 4px; background: rgba(255, 255, 255, .18); border-radius: 4px; margin-top: 8px; overflow: hidden; }
#reproductor .rp-barra i { display: block; height: 100%; width: 0; background: #ffd98a; }
body.hay-reproductor #subs { bottom: 175px; }
body.hay-reproductor #ayuda { display: none; }
@media (max-width: 640px) { #reproductor .rp-fila { gap: 6px; } #reproductor input[type=range] { width: 90px; } }
body.mc-abierto #reproductor { z-index: 65; }
body.cm-abierto #reproductor { display: none; }
.btn-comentarios { background: rgba(60, 40, 70, .95); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px; padding: 7px 12px; font: inherit; cursor: pointer; }
.btn-comentarios:hover, .btn-comentarios:focus-visible { background: var(--ciruela); border-color: #e9b8dc; outline: 2px solid #ffd98a; }
#comentarios { position: fixed; inset: 0; z-index: 70; background: rgba(10, 6, 14, .78); display: flex; align-items: flex-end; justify-content: center; padding: 0; font-size: calc(15px * var(--esc, 1)); color: var(--perg); }
#comentarios[hidden] { display: none; }
.cm-caja { width: min(600px, 100%); max-height: 94vh; overflow: auto; background: #241a2b; border: 1px solid rgba(233, 184, 220, .4); border-radius: 18px 18px 0 0; padding: 14px 16px 22px; box-shadow: 0 -10px 50px rgba(0,0,0,.6); }
@media (min-width: 700px) { #comentarios { align-items: center; padding: 18px; } .cm-caja { border-radius: 18px; } }
.cm-caja header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cm-caja h2 { margin: 0; font-size: 1.3em; font-family: Georgia, serif; line-height: 1.25; }
.cm-caja h3 { margin: 18px 0 6px; font-size: 1.05em; color: #e9b8dc; }
.cm-sub { color: #d8c8d6; margin: 6px 0 10px; }
.cm-aviso { background: rgba(122, 74, 18, .4); border: 1px solid #7a4a12; border-radius: 8px; padding: 8px 10px; }
.cm-caja button { background: rgba(60, 40, 70, .95); color: var(--perg); border: 1px solid rgba(239, 226, 198, .3); border-radius: 10px; padding: 7px 12px; font: inherit; cursor: pointer; }
.cm-caja button:hover, .cm-caja button:focus-visible { background: var(--ciruela); border-color: #e9b8dc; outline: 2px solid #ffd98a; }
.cm-caja button:disabled { opacity: .5; cursor: default; }
#cm-form label { display: block; font-weight: 600; margin: 10px 0 3px; }
#cm-form .req { color: #ffb27a; }
#cm-form input[type=text], #cm-form input[type=email], #cm-form input[type=tel], #cm-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #6d5a74; background: #1b1220; color: var(--perg); }
#cm-form textarea { resize: vertical; min-height: 92px; }
#cm-form input:focus-visible, #cm-form textarea:focus-visible { outline: 2px solid #ffd98a; }
.cm-fila { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.cm-contador { font-size: .85em; color: #bba9bb; } .cm-contador[data-excede="true"] { color: #ff8a8a; font-weight: 700; }
.cm-emoji { margin-top: 6px; padding: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #1b1220; max-height: 190px; overflow: auto; }
.cm-emoji[hidden] { display: none; }
.cm-emoji-grupo { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; } .cm-emoji-t { flex-basis: 100%; font-size: .78em; color: #bba9bb; }
.cm-caja .cm-emoji-b { background: transparent; border: 0; font-size: 1.5em; padding: 4px 6px; line-height: 1; border-radius: 8px; }
.cm-reglas { font-size: .85em; color: #bba9bb; margin: 6px 0; }
.cm-contacto { margin: 8px 0; } .cm-contacto summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
#cm-form .cm-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-top: 10px; } .cm-check input { margin-top: 4px; }
.cm-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-caja .cm-enviar { width: 100%; margin-top: 10px; padding: 11px; font-weight: 700; background: var(--ciruela); border-color: #e9b8dc; }
.cm-estado { min-height: 1.3em; margin: 8px 0 0; } .cm-estado[data-tipo="ok"] { color: #7fd39a; } .cm-estado[data-tipo="mal"] { color: #ffb27a; font-weight: 600; }
.cm-lista { list-style: none; margin: 0; padding: 0; } .cm-lista li { margin: 10px 0; }
.cm-item { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 9px 12px; }
.cm-item header { display: block; font-size: .9em; } .cm-item time { color: #bba9bb; margin-left: 4px; font-size: .9em; }
.cm-msg { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
/* los enlaces son TEXTO: sin subrayado, sin cursor de mano, y un toque selecciona todo para copiarlo */
.cm-url { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: rgba(255, 255, 255, .12); border-radius: 4px; padding: 0 3px; user-select: all; -webkit-user-select: all; cursor: text; text-decoration: none; word-break: break-all; }
body.cm-abierto .a-enter-vr, body.cm-abierto .a-enter-ar, body.cm-abierto .a-orientation-modal { display: none !important; }
