/* Estilos comunes de las herramientas del área de alumnos (transcriptor, documentos, herramientas) */
:root {
  --bg: #070b18; --panel: #101a30; --blue: #168cff; --cyan: #41d9ff;
  --white: #f4f8ff; --muted: #9baac2; --border: rgba(151,190,255,.14);
  --gradient: linear-gradient(120deg, #168cff, #41d9ff);
  --green: #3ddc97; --amber: #ffc861; --red: #ff779b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--white); font-family: "DM Sans", sans-serif; line-height: 1.6; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 80% 0%, rgba(22,140,255,.12), transparent 40%), radial-gradient(ellipse at 0% 60%, rgba(65,217,255,.05), transparent 35%); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.03em; line-height: 1.15; }

/* ---------- Cabecera (igual que el resto del área de alumnos) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(7,11,24,.9); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-symbol { width: 38px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(22,140,255,.35)); }
.brand-name { display: block; height: 15px; width: auto; }
.brand-subtitle { display: block; margin-top: 5px; color: var(--muted); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; }
.brand > span:last-child { display: inline-flex; flex-direction: column; }
.brand-subtitle.fill { display: flex; justify-content: space-between; letter-spacing: 0; }
.brand-subtitle.fill i { font-style: normal; }
.top-links { display: flex; align-items: center; gap: 20px; font-size: .86rem; color: var(--muted); }
.top-links a:hover { color: var(--cyan); }
.top-links a.on { color: var(--white); }
.top-links { min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }  /* nunca se sale de la pantalla (16-11-2026) */
.top-links::-webkit-scrollbar { display: none; }
@media (max-width: 1180px) { .top-links { gap: 14px; font-size: .8rem; } }

.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font-size: .74rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 { margin-top: 14px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero p { margin-top: 14px; color: var(--muted); max-width: 700px; }
.privacy { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; max-width: 760px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(61,220,151,.3); background: rgba(61,220,151,.06); font-size: .86rem; color: #cfe9de; }
.privacy b { color: var(--green); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 30px; }
.card { border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(160deg, rgba(16,26,48,.92), rgba(9,15,29,.95)); padding: 24px 26px; }
.card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); color: #04101e; font-size: .8rem; font-weight: 800; font-family: "DM Sans", sans-serif; }
.card + .card { margin-top: 18px; }
.help { color: var(--muted); font-size: .84rem; margin-top: 6px; }

/* ---------- Entrada ---------- */
.drop { margin-top: 16px; display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 18px; border: 2px dashed rgba(65,217,255,.3); border-radius: 16px;
  background: rgba(65,217,255,.03); cursor: pointer; transition: .2s; }
.drop:hover, .drop.over { border-color: var(--cyan); background: rgba(65,217,255,.08); }
.drop .ico { font-size: 1.9rem; }
.drop b { font-size: .98rem; }
.drop span { color: var(--muted); font-size: .8rem; }
.file-info { margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.02); font-size: .86rem; display: none; }
.file-info.show { display: block; }
.file-info b { word-break: break-all; }
.file-info audio { width: 100%; margin-top: 8px; height: 36px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 14px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.rec { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rec-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: none; animation: blink 1s infinite; }
.recording .rec-dot { display: inline-block; }
@keyframes blink { 50% { opacity: .2; } }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #080f20; outline: none; }
select:focus { border-color: var(--blue); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button { padding: 8px 6px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.02); cursor: pointer; font-size: .82rem; line-height: 1.25; }
.seg button small { display: block; color: var(--muted); font-size: .7rem; }
.seg button.on { background: var(--gradient); color: #04101e; border-color: transparent; font-weight: 700; }
.seg button.on small { color: #06233f; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 17px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); font-weight: 600; font-size: .87rem; cursor: pointer; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.07); }
.btn-primary { background: var(--gradient); color: #04101e; border-color: transparent; font-weight: 700; box-shadow: 0 8px 24px rgba(22,140,255,.2); }
.btn-primary:hover { background: var(--gradient); filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.big { width: 100%; min-height: 50px; font-size: .98rem; margin-top: 18px; }
.btn.done { background: var(--green); color: #04201a; border-color: transparent; }

.status { margin-top: 16px; display: none; }
.status.show { display: block; }
.status-line { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.status-line b { color: var(--white); font-weight: 600; }
.bar { height: 8px; margin-top: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gradient); transition: width .3s; }
.bar.indet i { width: 35%; animation: slide 1.2s infinite ease-in-out; }
@keyframes slide { from { margin-left: -35%; } to { margin-left: 100%; } }
.live { margin-top: 10px; max-height: 90px; overflow: hidden; color: #8fa0bb; font-size: .82rem; font-style: italic; }
.warn { margin-top: 10px; color: var(--amber); font-size: .82rem; }
.err { margin-top: 10px; color: var(--red); font-size: .86rem; }

/* ---------- Resultado ---------- */
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.toggle button { border: 0; background: none; padding: 6px 12px; font-size: .8rem; cursor: pointer; color: var(--muted); }
.toggle button.on { background: rgba(65,217,255,.14); color: var(--white); }
textarea#salida { width: 100%; min-height: 300px; margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: #050b19; border: 1px solid rgba(255,255,255,.06);
  font-size: .9rem; line-height: 1.7; color: #d5deec; resize: vertical; outline: none; }
textarea#salida:focus { border-color: rgba(22,140,255,.5); }
.meta { margin-top: 8px; color: #73839c; font-size: .76rem; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.actions .btn { padding: 8px; font-size: .82rem; }
.next h3 { font-size: 1rem; margin-top: 4px; }
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.use { text-align: left; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.02); cursor: pointer; }
.use:hover { border-color: rgba(65,217,255,.45); }
.use.on { border-color: var(--cyan); background: rgba(65,217,255,.08); }
.use b { display: block; font-size: .88rem; }
.use span { color: var(--muted); font-size: .76rem; line-height: 1.4; display: block; }
.open-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.open-in .btn { min-height: 38px; padding: 7px 8px; font-size: .78rem; white-space: normal; }
.note { margin-top: 10px; color: #8796ae; font-size: .76rem; }
.empty-result { margin-top: 14px; padding: 40px 20px; text-align: center; color: #6f7f99; border: 1px dashed var(--border); border-radius: 12px; font-size: .88rem; }

.faq { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.015); }
.faq summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.faq p { margin-top: 8px; color: var(--muted); font-size: .85rem; }
.disclaimer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); color: #73839c; font-size: .74rem; }
.disclaimer a { text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; transition: .25s; pointer-events: none;
  padding: 11px 18px; border-radius: 12px; background: var(--green); color: #04201a; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Acceso ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 30%, rgba(22,140,255,.16), transparent 55%), var(--bg); }
.gate.show { display: grid; }
.gate form { width: min(100%, 420px); padding: 34px 30px; text-align: center; border: 1px solid rgba(65,217,255,.25); border-radius: 22px; background: #0c1529; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.gate .logo { width: 210px; margin: 0 auto; display: block; }
.gate p { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.gate input { width: 100%; margin-top: 18px; padding: 12px 14px; border-radius: 10px; text-align: center; border: 1px solid var(--border); background: #080f20; outline: none; color: var(--white); letter-spacing: .08em; }
.gate input:focus { border-color: var(--blue); }
.gate .btn { width: 100%; margin-top: 12px; min-height: 44px; }
.gate-error { color: var(--red); font-size: .82rem; margin-top: 10px; min-height: 1.2em; }

@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-links { min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 14px; font-size: .8rem; white-space: nowrap; }
  .topbar { padding: 10px 16px; }
  .brand > span:last-child { display: none; }
  .top-links a[href="index.html"] { display: none; }
  .wrap { width: calc(100% - 32px); padding-top: 30px; }
  .card { padding: 20px 16px; }
  .opts, .uses { grid-template-columns: 1fr; }
  .actions, .open-in { grid-template-columns: 1fr; }
}

/* ---------- Enlace de vuelta y página «Herramientas» ---------- */
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: .84rem; }
.back:hover { color: var(--cyan); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 30px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border); border-radius: 20px;
  background: linear-gradient(160deg, rgba(16,26,48,.92), rgba(9,15,29,.95)); transition: .2s; }
.tool:hover { border-color: rgba(65,217,255,.45); transform: translateY(-2px); }
.tool .t-ico { font-size: 2rem; }
.tool h2 { font-size: 1.3rem; }
.tool p { color: var(--muted); font-size: .9rem; }
.tool ul { list-style: none; display: grid; gap: 4px; font-size: .84rem; color: #c9d4e6; }
.tool ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.tool .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tool .tag { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); font-size: .72rem; }
.tool .tag.priv { color: var(--green); border-color: rgba(61,220,151,.35); }
.tool .go { color: var(--cyan); font-weight: 700; font-size: .9rem; }
