/* =========================================================
   PLUGIN DRABIKA: lectura + One more thing + panel
   ========================================================= */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.sin-scroll { overflow: hidden; }
body.con-reproductor { padding-bottom: 110px; }

/* ============ TAMAÑO DEL TEXTO ============ */
.articulo__cuerpo { font-size: calc(1.125rem * var(--escala-lectura, 1)); }
.articulo__cuerpo h2 { font-size: calc(clamp(1.5rem, 3vw, 1.9rem) * var(--escala-lectura, 1)); }
.articulo__cuerpo h3 { font-size: calc(1.3rem * var(--escala-lectura, 1)); }
.articulo__cuerpo .respuesta { font-size: calc(1.2rem * var(--escala-lectura, 1)); }
.articulo__cuerpo .dato, .articulo__cuerpo .ojo, .articulo__cuerpo .en-corto { font-size: calc(1.05rem * var(--escala-lectura, 1)); }

/* ============ BARRA DE HERRAMIENTAS ============ */
.herramientas { position: sticky; top: 80px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; padding: 8px; border-radius: 16px; background: rgba(20,20,24,.96); border: 1px solid var(--linea-fuerte); backdrop-filter: blur(12px); }
.herramientas[hidden] { display: none; }
.herramientas__grupo { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 12px; background: rgba(255,255,255,.04); }
.herramientas__tam { min-width: 48px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--suave); font-variant-numeric: tabular-nums; }
.herramienta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--texto); font: 700 .95rem/1 var(--cuerpo); cursor: pointer; }
.herramientas__grupo .herramienta span { font-size: .8em; margin-left: 1px; }
.herramienta:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.herramienta:disabled { opacity: .35; cursor: not-allowed; }
.herramienta--texto { border: 1px solid var(--linea); }
.herramienta--texto[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 16%, transparent); }
.herramienta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ============ RESALTADO AL ESCUCHAR ============ */
.con-reproductor .palabra { cursor: pointer; }
.bloque--activo { background: linear-gradient(90deg, color-mix(in srgb, var(--acento) 7%, transparent), transparent); border-radius: 8px; box-shadow: -14px 0 0 -8px var(--acento); }
.palabra--activa { background: var(--acento); color: #fff !important; border-radius: 5px; box-shadow: 0 0 0 3px var(--acento); }

/* ============ CONTROLES COMUNES ============ */
.control { display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--linea-fuerte); background: rgba(255,255,255,.04); color: var(--texto); cursor: pointer; }
.control:hover { border-color: rgba(255,255,255,.4); }
.control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.control--principal { width: 52px; height: 52px; background: var(--acento); border-color: var(--acento); box-shadow: 0 8px 26px -8px var(--acento); }
.control--principal svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.control--principal .i-pausa, .reproductor--sonando .control--principal .i-play, .rapida--corriendo .control--principal .i-play { display: none; }
.reproductor--sonando .control--principal .i-pausa, .rapida--corriendo .control--principal .i-pausa { display: block; }
input[type="range"] { width: 100%; accent-color: var(--acento); cursor: pointer; }

/* ============ REPRODUCTOR ============ */
.reproductor { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; width: min(920px, calc(100% - 24px)); padding: 12px 14px; border-radius: 22px; background: rgba(16,16,20,.94); border: 1px solid var(--linea-fuerte); backdrop-filter: blur(16px); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); }
.reproductor[hidden] { display: none; }
.reproductor__fila { display: flex; align-items: center; gap: 8px; }
.reproductor__progreso { flex: 1; min-width: 120px; padding: 0 6px; }
.reproductor__tiempos { display: flex; justify-content: space-between; font-size: .75rem; color: var(--tenue); font-variant-numeric: tabular-nums; }
.reproductor__opcion select { height: 40px; max-width: 150px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--linea-fuerte); background: var(--tarjeta); color: var(--texto); font: 600 .85rem var(--cuerpo); }
.reproductor__estado { margin: 12px 4px 2px; font-size: .85rem; color: #E6D5B0; }

@media (max-width: 760px) {
  .reproductor__fila { flex-wrap: wrap; justify-content: center; }
  .reproductor__progreso { order: -1; flex-basis: 100%; }
  .reproductor__opcion--voz select { max-width: 120px; }
  body.con-reproductor { padding-bottom: 170px; }
  .herramientas { top: 76px; }
  .herramienta--texto { padding: 0 10px; font-size: .88rem; }
  .herramientas { flex-wrap: nowrap; }
}
@media (max-width: 440px) {
  .herramienta__etiqueta { display: none; }
  .herramienta--texto { width: 44px; padding: 0; }
}

/* ============ LECTURA RÁPIDA ============ */
.rapida { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr auto; background: #000; color: #fff; }
.rapida[hidden] { display: none; }
.rapida__cerrar { position: absolute; top: 18px; right: 18px; }
.rapida__contexto { padding: 26px 80px 0 24px; min-height: 60px; font-size: .95rem; color: #8A8A94; max-width: 900px; margin: 0 auto; width: 100%; text-align: center; }
.rapida__escenario { position: relative; display: grid; place-items: center; align-content: center; gap: 18px; padding: 0 16px; }
.rapida__guia { display: block; width: 2px; height: 22px; background: var(--acento); opacity: .7; }
.rapida__palabra { display: grid; grid-template-columns: 1fr auto 1fr; width: 100%; max-width: 1100px; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 6.5rem); line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.rapida__izq { text-align: right; overflow: hidden; }
.rapida__foco { color: var(--acento); }
.rapida__der { text-align: left; overflow: hidden; }
.rapida__ayuda { color: #8A8A94; font-size: .95rem; text-align: center; }
.rapida__ayuda[hidden] { display: none; }
.rapida__ayuda kbd { font: 700 .8rem var(--cuerpo); padding: 2px 8px; border-radius: 6px; border: 1px solid #444; color: #ddd; }
.rapida__panel { display: grid; grid-template-columns: 1fr auto 260px; align-items: center; gap: 18px 28px; padding: 20px clamp(16px, 4vw, 40px) 28px; border-top: 1px solid #1c1c22; }
.rapida__datos { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8rem; color: #8A8A94; font-variant-numeric: tabular-nums; }
.rapida__controles { display: flex; align-items: center; gap: 10px; }
.rapida .control:not(.control--principal) { border-color: #333; background: #0d0d10; }
.rapida__velocidad { display: grid; gap: 6px; font-size: .82rem; color: #8A8A94; }
.rapida__velocidad strong { color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .rapida__panel { grid-template-columns: 1fr; justify-items: stretch; }
  .rapida__controles { justify-content: center; }
  .rapida__palabra { font-size: clamp(2.2rem, 12vw, 3.6rem); }
}

/* ============ ONE MORE THING ============ */
.omt { margin-top: clamp(48px, 7vw, 72px); }
.omt__caja { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: #0E0E11; border: 1px solid color-mix(in srgb, var(--acento) 40%, transparent); }
.omt__caja::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; z-index: -1; background: radial-gradient(50% 60% at 30% 50%, color-mix(in srgb, var(--acento-2) 35%, transparent), transparent 70%), radial-gradient(40% 60% at 75% 50%, color-mix(in srgb, var(--acento) 35%, transparent), transparent 70%); filter: blur(10px); }
.omt__antetitulo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.omt__antetitulo span { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; background: linear-gradient(90deg, #fff, var(--acento)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.omt__insignia { font-style: normal; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--suave); }
.omt__titulo { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.omt__desc { margin-top: 10px; color: var(--suave); font-size: 1.05rem; max-width: 58ch; }
.omt__cupos { margin-top: 14px; font-size: .95rem; color: var(--suave); }
.omt__cupos strong { color: #FDE047; }
.omt__abrir { margin-top: 24px; }
.omt__form { margin-top: 24px; display: grid; gap: 14px; }
.omt__form[hidden] { display: none; }
.omt__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.omt__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.omt__campo { display: grid; gap: 6px; }
.omt__campo--ancho { grid-column: 1 / -1; }
.omt__campo label { font-size: .88rem; font-weight: 600; }
.omt__campo label span { color: var(--tenue); font-weight: 500; }
.omt__campo input, .omt__campo select, .omt__campo textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--linea-fuerte); background: rgba(10,10,12,.8); color: var(--texto); font: 500 1rem var(--cuerpo); }
.omt__campo textarea { resize: vertical; }
.omt__campo input:focus, .omt__campo select:focus, .omt__campo textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); }
.omt__campo [aria-invalid="true"] { border-color: #F87171; }
.omt__error { color: #FCA5A5; font-size: .82rem; min-height: 0; }
.omt__error:empty { display: none; }
.omt__check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .88rem; color: var(--suave); cursor: pointer; }
.omt__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acento); }
.omt__check a { color: var(--acento); }
.omt__enviar { justify-self: start; margin-top: 6px; }
.omt__enviar:disabled { opacity: .6; cursor: wait; }
.omt__estado { font-size: .9rem; color: var(--suave); min-height: 1.2em; }
.omt__resultado { margin-top: 20px; display: grid; gap: 14px; justify-items: start; outline: none; }
.omt__resultado[hidden] { display: none; }
.omt__gracias { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #4ADE80; }
.omt__insight { width: 100%; padding: 22px; border-radius: 16px; background: var(--tarjeta); border: 1px solid var(--linea-fuerte); line-height: 1.75; }
.omt__insight > * + * { margin-top: 1em; }
.omt__insight h3 { font-size: 1.25rem; }
.omt__insight table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.omt__insight th, .omt__insight td { text-align: left; padding: 10px; border-bottom: 1px solid var(--linea); }
.omt__cupon { display: grid; gap: 4px; padding: 18px 26px; border-radius: 16px; border: 2px dashed var(--acento); background: color-mix(in srgb, var(--acento) 8%, transparent); }
.omt__cupon span { font-size: .8rem; color: var(--suave); }
.omt__cupon strong { font-family: var(--display); font-size: 2rem; letter-spacing: .06em; }
.omt__cupon small { color: var(--suave); }
@media (max-width: 640px) { .omt__campos { grid-template-columns: 1fr; } }

/* ============ PANEL ============ */
.panel { padding: 48px 0 96px; }
.panel h1 { font-size: clamp(2rem, 5vw, 3rem); }
.panel h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.panel__acceso { max-width: 420px; }
.panel__form { display: grid; gap: 10px; margin-top: 24px; }
.panel__form input { padding: 13px 14px; border-radius: 12px; border: 1px solid var(--linea-fuerte); background: var(--tarjeta); color: var(--texto); font: 500 1rem var(--cuerpo); }
.panel__alerta { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #F87171 12%, var(--tarjeta)); border: 1px solid color-mix(in srgb, #F87171 40%, transparent); color: #FECACA; }
.panel__cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.panel__acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.panel__cifras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.panel__cifras div { padding: 20px; border-radius: 16px; background: var(--tarjeta); border: 1px solid var(--linea); }
.panel__cifras strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.panel__cifras span { display: block; margin-top: 8px; color: var(--suave); font-size: .88rem; }
.panel__tabla { overflow-x: auto; border-radius: 16px; border: 1px solid var(--linea); }
.panel__tabla table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.panel__tabla th, .panel__tabla td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.panel__tabla th { color: var(--suave); font-weight: 600; background: var(--tarjeta); }
.panel__tabla td a { color: var(--texto); }
.panel__tenue { color: var(--tenue); }
@media (max-width: 900px) { .panel__cifras { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .palabra--activa, .bloque--activo { transition: none; }
}
