/* Sección Herramientas (Fede 22/11/2026). Base: /ensenanzas/estilo.css (lectura en oscuro suave). */
.herr [hidden] { display: none !important; }
.herr .articulo { padding-bottom: 40px; }
.herr h1 { margin-bottom: 6px; }
.herr-intro { color: #9caeb9; margin: 0 0 8px; font-size: 17px; line-height: 1.6; }
.herr-grupo { font-size: 22px; color: #f1f5f7; margin: 36px 0 14px; }
.herr-lista { display: grid; gap: 12px; }
@media (min-width: 760px) { .herr-lista { grid-template-columns: 1fr 1fr; } }
.herr .tarjeta p { font-size: 15px; color: #9caeb9; line-height: 1.55; margin-top: 6px; }
.herr .tarjeta.test { border: 0; color: #fff; padding: 20px 20px 18px; background: var(--fondo, linear-gradient(135deg, #0f3d56, #127ea8)); }
.herr .tarjeta.test p { color: rgba(255,255,255,.86); }
.herr .tarjeta.test span { color: #fff; }
.herr .tarjeta.test small { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.herr .tarjeta .hecho { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #bfe9f7; }
.herr-racha { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px;
  background: #1b2a35; border: 1px solid #2a3d4a; color: #d6dfe5; }
.herr-racha b { font-size: 26px; color: #ffb35c; }
.herr-racha a { margin-left: auto; color: var(--celeste); font-weight: 600; font-size: 15px; white-space: nowrap; }
.herr-nota { font-size: 14px; color: #8aa0ad; line-height: 1.55; margin-top: 30px; }

/* Botones */
.btn { font: 600 17px Inter, system-ui, sans-serif; color: #fff; background: var(--azul); border: 0; border-radius: 999px;
  padding: 14px 24px; cursor: pointer; text-align: center; display: inline-block; }
.btn.sec { background: transparent; border: 1px solid #3c5566; font-size: 15px; padding: 11px 18px; }
.btn:disabled { opacity: .5; cursor: default; }
.fila-btn { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 6px; }

/* Test */
.test-caja { margin: 18px 0 10px; border-radius: 20px; padding: 26px 20px 22px; min-height: 420px;
  background: var(--fondo, linear-gradient(160deg, #10364c, #0f5f80)); color: #fff; position: relative; overflow: hidden; }
.test-caja .chico { color: rgba(255,255,255,.75); }
.test-portada { text-align: center; padding-top: 18px; }
.test-portada .icono { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.test-portada h2 { font-size: 26px; line-height: 1.25; margin: 6px 0 10px; color: #fff; }
.test-portada p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.55; margin: 0 auto 22px; max-width: 420px; }
.test-portada .btn { background: #fff; color: #0f3d56; padding: 15px 34px; font-size: 18px; }
.test-ultimo { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.8); }
.test-barra { height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; margin: 2px 0 18px; }
.test-barra i { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; transition: width .35s ease; }
.test-arriba { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.test-arriba button { background: none; border: 0; color: rgba(255,255,255,.85); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; padding: 4px 0; }
.test-pregunta { font-size: 22px; line-height: 1.35; font-weight: 700; margin: 0 0 18px; color: #fff; }
.test-opciones { display: grid; gap: 10px; }
.test-opciones button { text-align: left; font: 500 16px/1.4 Inter, system-ui, sans-serif; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 15px 16px;
  transition: background .15s, transform .15s, border-color .15s; }
.test-opciones button:hover { background: rgba(255,255,255,.18); }
.test-opciones button.elegida { background: #fff; color: #0f3d56; border-color: #fff; transform: scale(.985); }
.test-paso { animation: entrar .32s ease; }
@keyframes entrar { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.test-pensando { text-align: center; padding-top: 110px; font-size: 18px; color: rgba(255,255,255,.9); }
.test-pensando .anillo { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25);
  border-top-color: #fff; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.test-resultado { text-align: center; }
.test-resultado .icono { font-size: 60px; line-height: 1; margin: 6px 0 10px; }
.test-resultado h2 { font-family: "Fell", Georgia, serif; font-size: clamp(30px, 7vw, 40px); line-height: 1.15; margin: 4px 0 10px; color: #fff; font-weight: 400; }
.test-resultado .lema { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.9); max-width: 440px; margin: 0 auto 6px; font-style: italic; }
.test-detalle { text-align: left; margin-top: 22px; display: grid; gap: 12px; }
.test-detalle div { background: rgba(0,0,0,.18); border-radius: 14px; padding: 14px 16px; }
.test-detalle b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.test-detalle p { margin: 0; font-size: 16px; line-height: 1.55; color: #fff; }
.test-mezcla { text-align: left; margin-top: 18px; }
.test-mezcla p { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 8px; font-weight: 700; }
.test-mezcla .linea { display: grid; grid-template-columns: 1fr 44px; gap: 4px 10px; align-items: center; margin-bottom: 7px; font-size: 14px; }
.test-mezcla .linea i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.test-mezcla .linea i span { display: block; height: 100%; background: #fff; border-radius: 99px; }
.test-mezcla .linea em { font-style: normal; text-align: right; font-weight: 700; }
.test-compartir { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 4px; }
.test-compartir .btn { background: #fff; color: #0f3d56; font-size: 15px; padding: 12px 18px; }
.test-compartir .btn.sec { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.test-aviso { text-align: center; font-size: 14px; min-height: 20px; color: #bfe9f7; margin-top: 6px; }
.test-leer { margin-top: 26px; display: grid; gap: 10px; }
.test-leer h3, .herr h3 { font-size: 19px; color: #f1f5f7; margin: 0 0 4px; }

/* Mi escena */
.campo { display: grid; gap: 8px; margin: 0 0 22px; }
.campo label { font: 600 14px Inter, system-ui, sans-serif; color: #8fd6ef; letter-spacing: .04em; text-transform: uppercase; }
.campo textarea, .campo input[type=text] { font: 17px/1.5 Inter, system-ui, sans-serif; color: #eef3f6; background: #13222c; border: 1px solid #2a3d4a;
  border-radius: 14px; padding: 14px 16px; resize: vertical; width: 100%; box-sizing: border-box; }
.campo textarea:focus, .campo input:focus { outline: none; border-color: var(--azul); }
.campo small { color: #8aa0ad; font-size: 14px; line-height: 1.5; }
.ejemplos, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ejemplos button, .chips button { font: 600 14px Inter, system-ui, sans-serif; color: #d6dfe5; background: #1b2a35; border: 1px solid #2a3d4a;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.paso-caja { border: 1px solid #2a3d4a; background: #1b2a35; border-radius: 18px; padding: 20px 18px; margin: 18px 0; }
.paso-caja h2 { font-size: 21px; margin: 0 0 10px; color: #f1f5f7; display: flex; align-items: center; gap: 12px; }
.paso-caja h2 .n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--azul);
  color: #fff; font-size: 17px; font-weight: 700; }
.paso-caja p { color: #c4d0d8; }
.duraciones { display: flex; gap: 8px; justify-content: center; margin: 8px 0 4px; }
.estado-noche { text-align: center; font-size: 15px; color: #8fd6ef; min-height: 22px; margin: 8px 0 0; }
.manana { border-left: 3px solid #ffb35c; }

/* Pantalla de la noche */
.noche { position: fixed; inset: 0; z-index: 9999; background: #05090c; color: #c9d6de; display: none;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; transition: background 2s; }
.noche.abierta { display: flex; }
.noche .respiro { width: 150px; height: 150px; border-radius: 50%; border: 2px solid rgba(143,214,239,.5); margin-bottom: 34px;
  transform: scale(.6); transition: transform 4s ease-in-out, opacity 1s; background: radial-gradient(circle, rgba(18,126,168,.25), transparent 70%); }
.noche .texto { font-family: "Fell", Georgia, serif; font-size: clamp(22px, 5.5vw, 32px); line-height: 1.4; max-width: 560px; transition: opacity 1.5s; }
.noche .guia { font-size: 16px; color: #7f97a5; margin-top: 18px; min-height: 24px; transition: opacity 1.5s; }
.noche .salir { position: absolute; top: 18px; right: 18px; background: none; border: 1px solid #2a3d4a; color: #7f97a5; border-radius: 999px;
  padding: 8px 14px; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.noche .reloj { position: absolute; bottom: 22px; left: 0; right: 0; font-size: 13px; color: #3e515d; }

/* Mi racha */
.racha-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.racha-numeros div { background: #1b2a35; border: 1px solid #2a3d4a; border-radius: 14px; padding: 14px 8px; text-align: center; }
.racha-numeros b { display: block; font-size: 30px; line-height: 1.1; color: #fff; }
.racha-numeros div:first-child b { color: #ffb35c; }
.racha-numeros span { font-size: 13px; color: #8aa0ad; }
.calendario { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 4px; }
.calendario span { aspect-ratio: 1; border-radius: 8px; background: #1b2a35; display: grid; place-items: center; font-size: 12px; color: #5d7380; }
.calendario span.si { background: linear-gradient(135deg, #127ea8, #1aa3d6); color: #fff; font-weight: 700; }
.calendario span.hoy { outline: 2px solid #ffb35c; outline-offset: 1px; }
.insignias { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 10px; }
.insignia { text-align: center; background: #1b2a35; border: 1px solid #2a3d4a; border-radius: 14px; padding: 14px 8px; }
.insignia .i { font-size: 30px; line-height: 1; filter: grayscale(1); opacity: .35; }
.insignia b { display: block; font-size: 13px; margin-top: 6px; color: #8aa0ad; }
.insignia small { display: block; font-size: 12px; color: #5d7380; margin-top: 2px; }
.insignia.ganada { border-color: #ffb35c; background: #24313a; }
.insignia.ganada .i { filter: none; opacity: 1; }
.insignia.ganada b { color: #fff; }
.historial { display: grid; gap: 8px; margin-top: 10px; }
.historial div { background: #1b2a35; border-radius: 12px; padding: 10px 14px; font-size: 15px; color: #c4d0d8; }
.historial small { color: #8aa0ad; display: block; font-size: 12px; margin-bottom: 2px; }
.festejo { text-align: center; font-size: 16px; color: #ffb35c; min-height: 22px; margin-top: 8px; font-weight: 600; }

/* Íconos Lucide (Fede 22/11/2026) */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }
.herr .tarjeta b.con-ic { display: flex; align-items: center; gap: 10px; }
.herr .tarjeta b.con-ic .ic { width: 22px; height: 22px; color: var(--celeste, #8fd6ef); }
.herr .tarjeta.test small .ic { width: 14px; height: 14px; vertical-align: -2px; }
.herr-racha b .ic { width: 24px; height: 24px; vertical-align: -4px; }
