@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,700&family=Syne:wght@700;800&family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap");

/* ---------- marca AGC Partners: negro tinta + rojo eléctrico, con brillo ---------- */
:root {
  --ink: #0b0b0d;        /* negro tinta */
  --coal: #17171b;       /* negro carbón */
  --red: #ff2d3d;        /* rojo AGC eléctrico */
  --red-deep: #c8102e;
  --coral: #ff6a3d;      /* solo en degradados */
  --magenta: #ff2e7e;    /* solo en degradados */
  --hot: linear-gradient(135deg, var(--red) 0%, var(--coral) 55%, var(--magenta) 100%);
  --paper: #f6f5f3;
  --card: #ffffff;
  --text: #0b0b0d;
  --muted: #6c6c72;
  --line: #e6e3df;
  --on-dark: #f7f6f4;
  --on-dark-muted: #a7a7ae;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 11, 13, .05), 0 12px 32px rgba(11, 11, 13, .07);
  --glow: 0 10px 40px rgba(255, 45, 61, .35);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --display: "Syne", "Instrument Sans", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0f12;
    --card: #18181c;
    --text: #f7f6f4;
    --muted: #9d9da4;
    --line: #2a2a30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 14px; font-weight: 400; }

/* título de sección con la línea roja del logo */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.rule { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--hot); margin: 12px 0 0; }

/* ---------- barra superior ---------- */
.bar { background: var(--ink); color: var(--on-dark); position: relative; }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--hot); }
.is-recording .bar::after { animation: barpulse 1.4s ease-in-out infinite; }
@keyframes barpulse { 50% { opacity: .2; } }
.bar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.agc { font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.agc em { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.agc em, .red { color: var(--red); font-style: normal; }
.brand-sub { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid #3a3a40; padding-left: 14px; }
.brand-sub .partners { font-size: 10.5px; letter-spacing: .34em; color: var(--on-dark-muted); }
.brand-sub .prod { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--on-dark-muted); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14.5px; }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--on-dark); background: #26262b; }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--on-dark-muted); }
.who strong { color: var(--on-dark); font-weight: 600; }
.who a { color: var(--on-dark-muted); text-decoration: none; }
.who a:hover { color: var(--on-dark); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn.dark:hover { background: #2a2a30; }
.btn.red { background: var(--hot); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(255, 45, 61, .28); }
.btn.red:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger:hover { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .45; cursor: default; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- grabador (bloque negro con aurora roja) ---------- */
.recorder {
  margin-top: 28px; background: var(--ink); color: var(--on-dark); border-radius: 28px; padding: 40px 42px;
  display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: center; position: relative; overflow: hidden; isolation: isolate;
}
.aurora {
  position: absolute; inset: -40% -20% -40% 35%; z-index: -1; filter: blur(70px); opacity: .55; pointer-events: none;
  background:
    radial-gradient(40% 45% at 60% 45%, var(--red) 0%, transparent 70%),
    radial-gradient(35% 40% at 80% 70%, var(--magenta) 0%, transparent 70%),
    radial-gradient(30% 35% at 45% 75%, var(--coral) 0%, transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-6%, 4%) rotate(12deg); } }
.is-recording .aurora { opacity: .9; animation-duration: 4s; }
.recorder h1 { font-size: 56px; margin: 10px 0 12px; color: var(--on-dark); }
.recorder p.lead { color: var(--on-dark-muted); margin: 0 0 26px; max-width: 520px; font-size: 16px; }
.seg-modes { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 16px; }
.mode {
  border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; background: transparent; color: var(--on-dark-muted);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s;
}
.mode svg { width: 18px; height: 18px; }
.mode:hover { color: var(--on-dark); }
.mode[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }
.toggles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tog {
  display: inline-flex; align-items: center; gap: 9px; border-radius: 14px; padding: 11px 16px; cursor: pointer;
  font-weight: 600; font-size: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: var(--on-dark);
  transition: transform .12s, background .2s, border-color .2s, color .2s;
}
.tog svg { width: 20px; height: 20px; }
.tog:hover { transform: translateY(-1px); }
.tog:active { transform: scale(.97); }
.tog[aria-pressed="false"] { background: rgba(255, 45, 61, .12); border-color: var(--red); color: #ff7a84; }
.tog:disabled { opacity: .45; cursor: default; transform: none; }
.meter { display: inline-flex; gap: 3px; align-items: flex-end; height: 24px; --lvl: 0; margin-left: 4px; }
.meter i { width: 4px; border-radius: 2px; transition: background .08s; }
.meter i:nth-child(1) { height: 30%; background: color-mix(in srgb, var(--coral) calc(clamp(0, (var(--lvl) * 10 - 0), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(2) { height: 38%; background: color-mix(in srgb, var(--coral) calc(clamp(0, (var(--lvl) * 10 - 1), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(3) { height: 45%; background: color-mix(in srgb, var(--coral) calc(clamp(0, (var(--lvl) * 10 - 2), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(4) { height: 52%; background: color-mix(in srgb, var(--coral) calc(clamp(0, (var(--lvl) * 10 - 3), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(5) { height: 60%; background: color-mix(in srgb, var(--coral) calc(clamp(0, (var(--lvl) * 10 - 4), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(6) { height: 68%; background: color-mix(in srgb, var(--coral) calc(clamp(0, (var(--lvl) * 10 - 5), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(7) { height: 75%; background: color-mix(in srgb, var(--red) calc(clamp(0, (var(--lvl) * 10 - 6), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(8) { height: 82%; background: color-mix(in srgb, var(--red) calc(clamp(0, (var(--lvl) * 10 - 7), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(9) { height: 90%; background: color-mix(in srgb, var(--red) calc(clamp(0, (var(--lvl) * 10 - 8), 1) * 100%), rgba(255, 255, 255, .15)); }
.meter i:nth-child(10) { height: 98%; background: color-mix(in srgb, var(--red) calc(clamp(0, (var(--lvl) * 10 - 9), 1) * 100%), rgba(255, 255, 255, .15)); }
.go { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn.rec {
  background: var(--hot); border: 0; color: #fff; font-size: 18px; font-weight: 700; padding: 17px 32px 17px 24px; gap: 12px;
  box-shadow: var(--glow); position: relative;
}
.btn.rec::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--red); opacity: 0; animation: halo 2.4s ease-out infinite; pointer-events: none; }
@keyframes halo { 0% { opacity: .7; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.btn.rec .dot { width: 14px; height: 14px; background: #fff; }
.btn.rec:hover { filter: brightness(1.08); transform: translateY(-1px); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--on-dark-muted); cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
.hint { font-size: 13px; color: var(--on-dark-muted); margin: 16px 0 0; max-width: 560px; }
.hint strong { color: var(--on-dark); }
.settings { margin-top: 18px; color: var(--on-dark-muted); font-size: 14px; }
.settings summary { cursor: pointer; width: fit-content; padding: 4px 0; }
.settings summary:hover { color: var(--on-dark); }
.settings[open] summary { margin-bottom: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field input, .field select { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; min-width: 230px; color: var(--text); }
.recorder .field { color: var(--on-dark-muted); }
.recorder .field input, .recorder .field select { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--on-dark); }
.recorder .field select option { color: #000; }
.preview-wrap { justify-self: center; padding: 12px; border-radius: 50%; background: conic-gradient(from 210deg, var(--red), var(--magenta), var(--coral), var(--red)); box-shadow: var(--glow); }
.is-recording .preview-wrap { animation: ringglow 1.6s ease-in-out infinite; }
@keyframes ringglow { 50% { box-shadow: 0 0 70px rgba(255, 45, 61, .7); } }
.preview {
  width: 280px; height: 280px; border-radius: 50%; overflow: hidden; background: var(--coal);
  display: grid; place-items: center; color: var(--on-dark-muted); font-size: 13px; text-align: center; border: 6px solid var(--ink);
}
.preview.off div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 30px; }
.preview.off svg { width: 38px; height: 38px; color: var(--red); }
.preview strong { color: var(--on-dark); font-size: 15px; }
.preview small { display: block; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

/* resultado de la subida */
.done {
  display: none; padding: 16px 18px; margin-top: 20px; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--coal); border: 1px solid #34343a; border-radius: 14px; color: var(--on-dark);
}
.done.on { display: flex; }
.done input { flex: 1; min-width: 240px; border: 1px solid #34343a; background: var(--ink); color: var(--on-dark); border-radius: 10px; padding: 9px 12px; font-family: var(--mono); font-size: 13px; }
.done .btn { background: transparent; color: var(--on-dark); border-color: #4a4a52; }
.done .btn.dark { background: var(--red); border-color: var(--red); color: #fff; }
.progress { height: 4px; background: #34343a; border-radius: 99px; overflow: hidden; flex-basis: 100%; }
.progress div { height: 100%; width: 0; background: var(--red); transition: width .2s; }

/* barra mientras graba */
.recbar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  display: none; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  background: var(--ink); color: var(--on-dark); border-radius: 999px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); border: 1px solid #2c2c32;
}
.recbar.on { display: flex; }
.recbar .time { font-family: var(--mono); font-size: 15px; min-width: 54px; }
.recbar .live { color: var(--red); animation: blink 1.2s infinite; }
.recbar .btn { background: transparent; color: var(--on-dark); border-color: #3c3c43; }
.recbar .tog-s svg { width: 16px; height: 16px; }
.recbar .tog-s span { display: none; }
.recbar .tog-s[aria-pressed="false"] { border-color: var(--red); color: #ff7a84; }
.recbar .btn.stop { background: var(--hot); border: 0; color: #fff; }
@keyframes blink { 50% { opacity: .25; } }
.countdown {
  position: fixed; inset: 0; display: none; place-items: center; z-index: 30;
  background: rgba(14, 14, 16, .72); color: #fff; font: 700 180px/1 var(--serif);
}
.countdown.on { display: grid; }

/* ---------- biblioteca ---------- */
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 44px 0 18px; flex-wrap: wrap; }
.lib-head h2 { margin: 0; font-size: 30px; }
.lib-head input { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px; min-width: 240px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); margin-left: 6px; }
.tabs button { border: 0; background: transparent; padding: 5px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding-bottom: 70px; }
.card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 4px rgba(11, 11, 13, .06), 0 20px 40px rgba(255, 45, 61, .16); }
.card .thumb { overflow: hidden; }
.card .thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; border-radius: 50%; transform: translate(-50%, -50%) scale(.6);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l10 6-10 6z' fill='white'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow: var(--glow); opacity: 0; transition: opacity .2s, transform .2s;
}
.card:hover .thumb::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card .thumb { aspect-ratio: 16/9; background: var(--ink) center/cover no-repeat; display: block; position: relative; }
.card .badge { position: absolute; left: 10px; top: 10px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.card .len { position: absolute; right: 8px; bottom: 8px; background: rgba(14, 14, 16, .85); color: #fff; font: 500 12px var(--mono); padding: 2px 7px; border-radius: 6px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-weight: 600; text-decoration: none; line-height: 1.3; }
.card .title:hover { color: var(--red); }
.card .meta { color: var(--muted); font-size: 13px; }
.card .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.empty { color: var(--muted); padding: 56px 20px; text-align: center; grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- página del video ---------- */
.watch { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 0 70px; }
.watch video { width: 100%; border-radius: var(--radius); background: #000; display: block; aspect-ratio: 16/9; }
.watch h1 { font-size: 34px; margin: 22px 0 6px; }
.watch .meta { color: var(--muted); font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.summary { padding: 20px 22px; margin-top: 20px; border-left: 3px solid var(--red); }
.summary h3, .side h3 { margin: 0 0 8px; font-size: 18px; }
.summary ul { margin: 8px 0 0; padding-left: 18px; }
.side { padding: 18px 0 0; max-height: calc(100vh - 120px); display: flex; flex-direction: column; position: sticky; top: 16px; align-self: start; }
.side h3 { padding: 0 18px; }
.transcript { overflow: auto; padding: 0 8px 12px; }
.seg { display: flex; gap: 12px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.seg:hover { background: var(--paper); }
.seg.now { background: color-mix(in srgb, var(--red) 12%, transparent); }
.seg time { color: var(--red); font: 500 12px var(--mono); padding-top: 2px; }
.status { padding: 44px 20px; text-align: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- entrar / crear cuenta / unirse ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-brand {
  background: var(--ink); color: var(--on-dark); padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; isolation: isolate;
}
.auth-brand::before {
  content: ""; position: absolute; inset: 30% -30% -40% -10%; z-index: -1; filter: blur(80px); opacity: .55; pointer-events: none;
  background: radial-gradient(40% 40% at 40% 60%, var(--red), transparent 70%), radial-gradient(35% 35% at 70% 80%, var(--magenta), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.auth-brand .agc { font-size: 76px; }
.auth-brand .partners { display: block; font-size: 14px; letter-spacing: .5em; color: var(--on-dark-muted); margin-top: 12px; }
.auth-brand .rule { width: 72px; }
.auth-brand h2 { font-size: 44px; margin: 0 0 14px; max-width: 480px; color: var(--on-dark); }
.auth-brand p { color: var(--on-dark-muted); max-width: 440px; margin: 0; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.login { width: 100%; max-width: 380px; }
.login h1 { margin: 0 0 6px; font-size: 34px; }
.login > p { color: var(--muted); margin: 0 0 24px; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.login input { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.login input[readonly] { color: var(--muted); background: var(--paper); }
.login .btn { padding: 13px; font-size: 15px; margin-top: 6px; }
.login .alt { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.login .alt a { color: var(--text); font-weight: 600; }
.error { color: var(--red); font-size: 14px; font-weight: 500; }
.note { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); }

/* ---------- equipo ---------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-size: 42px; margin: 6px 0 0; }
.team-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 24px; align-items: start; }
.box { padding: 24px 26px; }
.box h2 { font-size: 24px; margin: 0 0 4px; }
.box > p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box .field input, .box .field select { min-width: 0; width: 100%; background: var(--paper); }
.roles { display: flex; gap: 8px; margin: 14px 0 18px; flex-wrap: wrap; }
.role { flex: 1; min-width: 160px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.role input { accent-color: var(--red); margin-top: 3px; }
.role strong { display: block; font-size: 14px; }
.role span { color: var(--muted); font-size: 12.5px; }
.role:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.invite-result { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--ink); color: var(--on-dark); }
.invite-result p { margin: 0 0 10px; font-size: 14px; }
.invite-result input { width: 100%; border: 1px solid #34343a; background: var(--coal); color: var(--on-dark); border-radius: 10px; padding: 10px 12px; font: 13px var(--mono); }
.share { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.share .btn { background: transparent; color: var(--on-dark); border-color: #4a4a52; }
.share .btn.red { background: var(--hot); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(255, 45, 61, .28); }
.switch { display: flex; flex-direction: column; gap: 10px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; gap: 10px; }
.opt input { accent-color: var(--red); margin-top: 3px; }
.opt strong { display: block; font-size: 14px; }
.opt span { color: var(--muted); font-size: 13px; }
.opt:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 40px 0 14px; }
.section-title h2 { font-size: 26px; margin: 0; }
.list { padding: 4px 0; margin-bottom: 18px; }
.person { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.person:last-child { border-bottom: 0; }
.person .avatar { flex: none; }
.person .avatar.pending { background: var(--paper); color: var(--muted); border: 1px dashed var(--muted); }
.person .info { flex: 1; min-width: 180px; }
.person .info strong { display: block; }
.person .info span { color: var(--muted); font-size: 13px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.pill.admin { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pill.wait { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.person .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.welcome { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--red) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }

.toast {
  position: fixed; font-weight: 600; top: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--on-dark);
  padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 40;
  border: 1px solid var(--red);
}
.toast.on { opacity: 1; }

/* ---------- ventana mini (la abre la extensión de Chrome) ---------- */
.mini .nav, .mini .who a, .mini .lib-head, .mini #grid, .mini .brand-sub .partners, .mini .welcome { display: none !important; }
.mini .bar-in { height: 54px; }
.mini .recorder { grid-template-columns: 1fr; margin: 14px 0; padding: 22px; border-radius: 22px; gap: 18px; }
.mini .recorder h1 { font-size: 30px; }
.mini .recorder p.lead, .mini .recorder h1 br { display: none; }
.mini .preview-wrap { order: -1; padding: 8px; }
.mini .preview { width: 150px; height: 150px; border-width: 4px; }
.mini .wrap { padding: 0 12px; }

@media (max-width: 880px) {
  .recorder { grid-template-columns: 1fr; padding: 28px 22px; }
  .recorder h1 { font-size: 40px; }
  .preview-wrap { order: -1; }
  .preview { width: 180px; height: 180px; }
  .watch, .team-grid { grid-template-columns: 1fr; }
  .side { position: static; max-height: 60vh; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 24px; gap: 28px; }
  .auth-brand .agc { font-size: 54px; }
  .auth-brand h2 { font-size: 30px; }
  .bar-in { gap: 14px; }
  .brand-sub, .who .name, .who #myPass { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- página de la extensión ---------- */
.ext-hero .btn.rec { text-decoration: none; margin-top: 4px; }
.ext-hero kbd, .steps kbd { border: 1px solid rgba(255, 255, 255, .3); border-radius: 5px; padding: 0 6px; font: 12px var(--mono); }
.ext-hero .preview img { margin-bottom: 6px; }
.steps { list-style: none; padding: 0; margin: 0 0 70px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: paso; }
.steps li { padding: 22px; display: flex; flex-direction: column; gap: 8px; counter-increment: paso; position: relative; }
.steps li::before {
  content: counter(paso); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hot); color: #fff; font: 800 16px var(--display); box-shadow: var(--glow);
}
.steps strong { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Tema oscuro con aurora para TODA la app (el estilo que le gustó a Diego).
   Va al final para que mande sobre lo anterior.
   ========================================================================== */
:root {
  --paper: #08080a;
  --card: #141418;
  --text: #f7f6f4;
  --muted: #a3a3ab;
  --line: #26262d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .45);
}
html { background: var(--paper); }
body { background: transparent; position: relative; isolation: isolate; min-height: 100vh; }
/* aurora fija detrás de toda la página */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; filter: blur(90px); opacity: .32;
  background:
    radial-gradient(30% 35% at 85% 20%, var(--red) 0%, transparent 70%),
    radial-gradient(28% 32% at 10% 85%, var(--magenta) 0%, transparent 70%),
    radial-gradient(25% 30% at 60% 95%, var(--coral) 0%, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.bar { background: rgba(8, 8, 10, .72); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.panel { background: color-mix(in srgb, var(--card) 88%, transparent); border-color: var(--line); backdrop-filter: blur(10px); }
.recorder { background: #0c0c0f; border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--text); }
.btn:hover { border-color: rgba(255, 255, 255, .45); }
.btn.dark { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn.dark:hover { background: #fff; }
.btn.danger:hover { border-color: var(--red); color: #ff7a84; }
.field input, .field select, .box .field input, .box .field select, .login input, .lib-head input {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: var(--text);
}
.field input:focus, .login input:focus, .lib-head input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(255, 45, 61, .18); }
.field select option { color: #000; }
.login input[readonly] { background: rgba(255, 255, 255, .03); color: var(--muted); }
.tabs { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.tabs button[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }
.card .title:hover { color: #ff7a84; }
.card:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 46px rgba(255, 45, 61, .22); border-color: rgba(255, 45, 61, .35); }
.empty { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .02); }
.seg:hover { background: rgba(255, 255, 255, .05); }
.seg.now { background: rgba(255, 45, 61, .16); }
.watch video { box-shadow: 0 20px 60px rgba(255, 45, 61, .18); border: 1px solid var(--line); }
.summary { border-left: 0; position: relative; }
.summary::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--hot); }
.auth-form { background: transparent; }
.login h1 { color: var(--text); }
.login .alt a { color: #ff7a84; }
.note { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.invite-result { background: #0c0c0f; border: 1px solid var(--line); }
.person .avatar.pending { background: transparent; }
.pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.pill.admin { background: var(--hot); color: #fff; border-color: transparent; }
.role, .opt { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); }
.welcome { background: rgba(255, 45, 61, .1); border-color: rgba(255, 45, 61, .35); }
.status { color: var(--muted); }
.spinner { border-color: rgba(255, 255, 255, .12); border-top-color: var(--red); }
.toast { background: var(--on-dark); color: var(--ink); }
.page-head h1, .section-title h2, .lib-head h2, .box h2, .watch h1 { color: var(--text); }
::selection { background: rgba(255, 45, 61, .45); color: #fff; }
