:root {
  --sabana: #061A33;
  --manto: #1C4C80;
  --oro: #C9A24B;
  --oro-suave: #F3E7C8;
  --marfil: #FFF9EE;
  --cielo: #A8C5DA;
  --grafito: #2E3136;
  --tenue: #6B6F76;
  --linea: #E7E0D2;
  --fondo: #F6F2EA;
  --blanco: #FFFFFF;
  --verde: #2F7D5B;
  --verde-suave: #E3F1EA;
  --ambar: #A86A12;
  --ambar-suave: #FBEFD9;
  --rojo: #B3412E;
  --radio: 20px;
  --sombra: 0 1px 2px rgba(6, 26, 51, .06), 0 8px 28px rgba(6, 26, 51, .08);
  --display: "Domine", Georgia, "Times New Roman", serif;
  --texto: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --barra: calc(84px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--grafito);
  font: 17px/1.55 var(--texto);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--manto); }
h1, h2, h3 { font-family: var(--display); color: var(--sabana); font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 8px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cargando { min-height: 100dvh; display: grid; place-items: center; }
.punto { width: 14px; height: 14px; border-radius: 50%; background: var(--oro); animation: latido 1s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(1.6); opacity: .4; } }

/* ---------- entrada ---------- */
.entrada {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(201, 162, 75, .28), transparent 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(28, 76, 128, .55), transparent 60%),
    var(--sabana);
  color: var(--marfil);
  padding: max(28px, env(safe-area-inset-top)) 16px 28px;
}
.entrada__logo { width: min(250px, 66vw); margin: 18px auto 0; }
.entrada__centro { display: grid; align-content: center; justify-items: center; gap: 22px; padding: 24px 0; }
.entrada__lema { margin: 0; text-align: center; font: 500 15px/1.4 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.tarjeta-entrada {
  width: min(440px, 100%);
  background: var(--marfil);
  color: var(--grafito);
  border-radius: 28px;
  padding: 30px 24px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.tarjeta-entrada h1 { margin: 0 0 6px; font-size: 27px; line-height: 1.2; }
.tarjeta-entrada p { margin: 0 0 20px; color: var(--tenue); }
.campo { display: grid; gap: 8px; margin-bottom: 16px; }
.campo label { font-weight: 600; font-size: 15px; color: var(--sabana); }
.campo input {
  width: 100%;
  font: 18px var(--texto);
  padding: 15px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--linea);
  background: var(--blanco);
  color: var(--sabana);
}
.campo input:focus { border-color: var(--manto); outline: none; box-shadow: 0 0 0 4px rgba(28, 76, 128, .14); }
.campo input.codigo { font: 600 30px var(--display); letter-spacing: .42em; text-align: center; padding: 14px 6px 14px calc(6px + .42em); }
.mensaje-error { margin: -4px 0 14px; color: var(--rojo); font-weight: 600; font-size: 15px; }
.enlaces { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 15px; }
.enlace { background: none; border: 0; padding: 6px 0; color: var(--manto); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.enlace:disabled { color: var(--tenue); text-decoration: none; cursor: default; }
.nota-pie { margin: 0; text-align: center; font-size: 14px; color: rgba(255, 249, 238, .65); }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 999px; border: 0; white-space: nowrap;
  font-weight: 700; font-size: 17px;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.boton:active { transform: scale(.97); }
.boton:disabled { opacity: .55; cursor: default; }
.boton--ancho { width: 100%; }
.boton--principal { background: var(--sabana); color: var(--marfil); box-shadow: 0 6px 18px rgba(6, 26, 51, .25); }
.boton--principal:hover { background: #0b2749; }
.boton--aprobar { background: var(--verde); color: #fff; box-shadow: 0 8px 20px rgba(47, 125, 91, .32); }
.boton--aprobar:hover { background: #276b4d; }
.boton--suave { background: var(--blanco); color: var(--sabana); border: 1.5px solid var(--linea); }
.boton--suave:hover { border-color: var(--sabana); }
.boton svg { width: 22px; height: 22px; flex: none; }

/* ---------- marco general ---------- */
.barra-superior {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(246, 242, 234, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(231, 224, 210, .7);
}
.barra-superior img { height: 34px; width: auto; }
.perfil { display: flex; align-items: center; gap: 10px; }
.inicial {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sabana); color: var(--oro);
  font: 600 17px var(--display);
  border: 0;
}
.menu { position: absolute; right: 16px; top: calc(62px + env(safe-area-inset-top)); background: var(--blanco); border-radius: 16px; box-shadow: var(--sombra); padding: 8px; min-width: 220px; }
.menu p { margin: 8px 12px 10px; font-size: 14px; color: var(--tenue); }
.menu button { width: 100%; text-align: left; background: none; border: 0; padding: 12px; border-radius: 10px; font-weight: 600; }
.menu button:hover { background: var(--fondo); }

.contenido { width: min(1080px, 100%); margin: 0 auto; padding: 22px 16px 48px; }
.saludo h1 { margin: 6px 0 6px; font-size: clamp(30px, 7vw, 42px); line-height: 1.12; }
.saludo p { margin: 0; color: var(--tenue); font-size: 18px; }
.saludo strong { color: var(--sabana); }

.pestanas {
  display: flex; gap: 6px; margin: 24px 0 20px; padding: 5px;
  background: #ECE6DA; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.pestanas::-webkit-scrollbar { display: none; }
.pestana {
  flex: 1 0 auto; border: 0; background: none; border-radius: 999px;
  padding: 10px 12px; font-weight: 600; font-size: 15.5px; color: var(--tenue); white-space: nowrap;
}
.pestana[aria-selected="true"] { background: var(--blanco); color: var(--sabana); box-shadow: 0 2px 8px rgba(6, 26, 51, .1); }
.pestana .cuenta { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 5px; border-radius: 999px; background: var(--fondo); font-size: 14px; }
.pestana[aria-selected="true"] .cuenta { background: var(--sabana); color: var(--marfil); }

/* ---------- tarjetas de piezas ---------- */
.rejilla { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tarjeta {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: var(--blanco); border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(6, 26, 51, .06), 0 16px 40px rgba(6, 26, 51, .12); }
.tarjeta__imagen { position: relative; aspect-ratio: 4 / 3; background: var(--sabana); overflow: hidden; }
.tarjeta__imagen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tarjeta__imagen--texto { display: grid; align-content: end; padding: 22px; background: linear-gradient(160deg, var(--manto), var(--sabana)); }
.tarjeta__imagen--texto .portada { font: 600 22px/1.25 var(--display); color: var(--marfil); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sello {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(6, 26, 51, .78); color: var(--marfil);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600;
}
.sello svg { width: 15px; height: 15px; }
.nuevo { position: absolute; right: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--oro); color: var(--sabana); font-size: 13px; font-weight: 700; }
.tarjeta__cuerpo { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.tarjeta__cuerpo h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14.5px; color: var(--tenue); }
.estado { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.estado--pendiente { background: var(--oro-suave); color: #7A5A12; }
.estado--aprobada { background: var(--verde-suave); color: var(--verde); }
.estado--cambios { background: var(--ambar-suave); color: var(--ambar); }

.vacio { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
.vacio .sol { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-suave); color: var(--verde); }
.vacio .sol svg { width: 36px; height: 36px; }
.vacio h2 { margin: 6px 0 0; font-size: 23px; }
.vacio p { margin: 0; color: var(--tenue); max-width: 34ch; }

/* ---------- detalle ---------- */
.detalle { width: min(860px, 100%); margin: 0 auto; padding: 14px 16px calc(var(--barra) + 32px); }
.volver { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px; background: var(--blanco); box-shadow: var(--sombra); font-weight: 600; color: var(--sabana); }
.volver svg { width: 20px; height: 20px; }
.detalle__cabeza { display: grid; gap: 10px; margin-bottom: 18px; }
.detalle__cabeza h1 { margin: 0; font-size: clamp(26px, 6vw, 36px); line-height: 1.18; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; }
.etiqueta { padding: 5px 12px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--linea); font-size: 14px; font-weight: 600; color: var(--sabana); }
.etiqueta--oro { background: var(--sabana); color: var(--oro); border-color: var(--sabana); }
.que-es { margin: 0; font-size: 18px; color: var(--grafito); }

.aviso-version { display: grid; gap: 8px; margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--marfil); border: 1px solid var(--oro-suave); }
.aviso-version strong { color: var(--sabana); }
.aviso-version p { margin: 0; }
.cita { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--blanco); color: var(--tenue); font-style: italic; }

.visor { position: relative; margin: 0 -16px 20px; }
.carrusel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carrusel::-webkit-scrollbar { display: none; }
.lamina {
  flex: 0 0 100%; scroll-snap-align: center;
  border-radius: var(--radio); overflow: hidden; background: var(--sabana);
  box-shadow: var(--sombra); border: 0; padding: 0;
}
.lamina img { width: 100%; height: auto; max-height: 78dvh; object-fit: contain; margin: 0 auto; background: var(--sabana); }
.lamina video { width: 100%; max-height: 78dvh; background: #000; }
.contador { position: absolute; right: 30px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 26, 51, .78); color: var(--marfil); font-size: 14px; font-weight: 700; pointer-events: none; }
.puntos { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.puntos button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #D6CDBB; transition: width .25s ease, background .25s ease; }
.puntos button[aria-current="true"] { width: 26px; background: var(--sabana); }
.flecha { display: none; position: absolute; top: 50%; transform: translateY(-70%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blanco); box-shadow: var(--sombra); color: var(--sabana); place-items: center; }
.flecha svg { width: 24px; height: 24px; }
.flecha--izq { left: 4px; }
.flecha--der { right: 4px; }
.flecha:disabled { opacity: 0; pointer-events: none; }

.bloque { margin: 0 0 18px; padding: 20px; border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra); }
.bloque h2 { margin: 0 0 10px; font: 700 13px var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--tenue); }
.texto-publicacion { margin: 0; white-space: pre-wrap; font-size: 17px; }
.articulo { font-size: 18px; line-height: 1.7; }
.articulo h1, .articulo h2, .articulo h3 { font: 600 1.35em/1.25 var(--display); text-transform: none; letter-spacing: -.01em; color: var(--sabana); margin: 1.4em 0 .5em; }
.articulo h1 { font-size: 1.7em; margin-top: .2em; }
.articulo h3 { font-size: 1.15em; }
.articulo img { border-radius: 14px; margin: 1em 0; }
.articulo blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--cielo); color: var(--tenue); }
.articulo ul, .articulo ol { padding-left: 1.3em; }

.historial { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.historial li { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--linea); }
.historial li:last-child { border-bottom: 0; padding-bottom: 0; }
.historial .cuando { font-size: 14px; color: var(--tenue); }
.historial p { margin: 0; }

.barra-acciones {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--linea);
  box-shadow: 0 -10px 30px rgba(6, 26, 51, .08);
}
.barra-acciones__dentro { width: min(860px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; }
.barra-acciones__estado { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.barra-acciones__estado p { margin: 0; font-weight: 600; color: var(--sabana); }

/* ---------- hoja de cambios ---------- */
.velo { position: fixed; inset: 0; z-index: 40; background: rgba(6, 26, 51, .45); animation: aparecer .2s ease; }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  width: min(620px, 100%); margin: 0 auto;
  max-height: 92dvh; overflow-y: auto;
  background: var(--blanco); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  animation: subir .28s cubic-bezier(.2, .9, .3, 1);
}
.hoja__asa { width: 44px; height: 5px; border-radius: 999px; background: var(--linea); margin: 4px auto 14px; }
.hoja h2 { margin: 0 0 6px; font-size: 24px; }
.hoja > p { margin: 0 0 16px; color: var(--tenue); }
.atajos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.atajo { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco); font-size: 15px; font-weight: 600; color: var(--sabana); }
.atajo[aria-pressed="true"] { background: var(--sabana); border-color: var(--sabana); color: var(--marfil); }
.sobre { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sobre label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--fondo); font-weight: 600; font-size: 15px; cursor: pointer; }
.sobre input { accent-color: var(--sabana); width: 18px; height: 18px; }
textarea {
  width: 100%; min-height: 140px; resize: vertical;
  font: 17px/1.5 var(--texto); color: var(--sabana);
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--linea); background: var(--blanco);
}
textarea:focus { outline: none; border-color: var(--manto); box-shadow: 0 0 0 4px rgba(28, 76, 128, .14); }
.hoja__botones { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 14px; }

/* ---------- confirmación ---------- */
.listo { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px; background: rgba(6, 26, 51, .55); animation: aparecer .2s ease; }
.listo__caja { width: min(420px, 100%); background: var(--blanco); border-radius: 28px; padding: 32px 24px 24px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: brotar .35s cubic-bezier(.2, 1.3, .4, 1); }
.listo__icono { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-suave); color: var(--verde); }
.listo__icono--cambios { background: var(--ambar-suave); color: var(--ambar); }
.listo__icono svg { width: 44px; height: 44px; }
.listo__icono path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: trazo .5s .15s ease forwards; }
.listo h2 { margin: 0 0 8px; font-size: 26px; }
.listo p { margin: 0 0 22px; color: var(--tenue); }
.listo__botones { display: grid; gap: 10px; }
.listo .enlace { justify-self: center; }

.lupa { position: fixed; inset: 0; z-index: 60; background: rgba(3, 12, 24, .96); display: grid; place-items: center; overflow: auto; touch-action: pinch-zoom; }
.lupa img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lupa button { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lupa button svg { width: 24px; height: 24px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--barra) + 14px); transform: translateX(-50%); z-index: 70; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 14px; background: var(--sabana); color: var(--marfil); font-weight: 600; box-shadow: var(--sombra); animation: aparecer .2s ease; }

@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes brotar { from { transform: scale(.85); opacity: 0; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }

@media (min-width: 760px) {
  .contenido { padding-top: 36px; }
  .visor { margin: 0 0 20px; }
  .carrusel { padding: 0; }
  .flecha { display: grid; left: -22px; }
  .flecha--der { left: auto; right: -22px; }
  .contador { right: 14px; }
  .lamina img { max-height: 74vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .listo__icono path { stroke-dashoffset: 0; }
}

.barra-acciones .boton { padding: 0 16px; }
@media (max-width: 360px) { .boton { font-size: 16px; } .boton svg { width: 19px; height: 19px; } }

/* ---------- galería a pantalla completa ---------- */
body.sin-scroll { overflow: hidden; }
.galeria { position: fixed; inset: 0; z-index: 60; background: #030C18; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); animation: aparecer .2s ease; }
.galeria__pista {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x pinch-zoom;
  min-height: 0;
}
.galeria__pista::-webkit-scrollbar { display: none; }
.galeria__lamina { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: calc(64px + env(safe-area-inset-top)) 10px 10px; min-height: 0; }
.galeria__lamina img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.galeria__arriba { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px; background: linear-gradient(rgba(3, 12, 24, .85), transparent); pointer-events: none; }
.galeria__contador { color: var(--marfil); font-weight: 700; font-size: 16px; }
.galeria__cerrar { pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.galeria__cerrar svg { width: 24px; height: 24px; }
.galeria__flecha { position: absolute; top: 45%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--sabana); display: none; place-items: center; box-shadow: var(--sombra); }
.galeria__flecha svg { width: 26px; height: 26px; }
.galeria__flecha--izq { left: 18px; }
.galeria__flecha--der { right: 18px; }
.galeria__flecha:disabled { opacity: 0; pointer-events: none; }
.galeria__abajo { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-radius: 22px 22px 0 0; }
@media (min-width: 760px) { .galeria__flecha { display: grid; } .galeria__lamina { padding: 70px 90px 14px; } }

/* encima de la galería */
.velo { z-index: 70; }
.hoja { z-index: 71; }
.listo { z-index: 90; }
.toast { z-index: 95; }

/* ---------- modo prueba ---------- */
.aviso-prueba { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #E8EEF5; color: var(--manto); font-size: 15.5px; }
.modo-prueba { padding: 5px 11px; border-radius: 999px; background: #E8EEF5; color: var(--manto); font-size: 13.5px; font-weight: 700; }

/* ---------- nota de voz ---------- */
.grabadora { margin-top: 12px; }
.boton--voz { width: 100%; background: var(--fondo); color: var(--sabana); border: 1.5px dashed #CDBF9F; }
.boton--voz:hover { border-color: var(--sabana); }
.grabando { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #FBE9E5; color: var(--rojo); font-weight: 700; }
.grabando span:nth-child(2) { flex: 1; }
.grabando__punto { width: 12px; height: 12px; border-radius: 50%; background: var(--rojo); animation: latido 1s ease-in-out infinite; }
.boton--detener { min-height: 44px; background: var(--rojo); color: #fff; }
.nota-grabada { display: grid; gap: 8px; justify-items: start; }
.nota-grabada audio, .historial audio { width: 100%; height: 44px; }
.barra-acciones .boton, .galeria__abajo .boton { padding: 0 12px; gap: 8px; min-width: 0; }
.galeria__abajo .boton { font-size: 16px; }
