/* =====================================================================
   ACADEMIA LUDUS · estilos
   Tema: negro y azul (el azul de Ludus).
   Tipografías propias: Cinzel (títulos, letra de inscripción),
   Barlow (texto) y Barlow Condensed (etiquetas y botones).
   Formas: ángulos rectos, esquinas marcadas, greca, escudo (hoplón) y lambda.
   ===================================================================== */

@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 900; font-style: normal; font-display: swap; src: url("/assets/fonts/cinzel-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #06080d;
  --panel: #0d1119;
  --panel-2: #131926;
  --line: #1f2636;
  --line-strong: #2a3550;
  --input-border: #6b7690;      /* borde de campos: contraste suficiente sobre negro */
  --accent: #064dff;            /* el azul de Ludus */
  --accent-dim: #3d77ff;
  --red: #064dff;               /* azul de botones y rellenos */
  --bronze: #9dbaff;
  --text: #eef2fb;
  --muted: #9aa3b5;
  --danger: #ff8a7a;
  --warn: #9dbaff;
  --radius: 0;
  --gutter: 16px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cinzel", "Times New Roman", serif;
  --label: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img, video, iframe { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #4d82ff; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; color: var(--text); text-decoration: none; }
.brand::before { content: ""; width: 1.1em; height: 1.3em; background: url("/assets/img/casco.png") center / contain no-repeat; }
.brand span { color: var(--accent); }

/* ---------- Greca (la línea decorativa bajo la cabecera y en el acceso) ---------- */
.livewire { height: 14px; background: url("/assets/img/meander.svg") repeat-x left center; opacity: .8; }

/* ---------- Pantallas de acceso ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); }
.auth-card { width: 100%; max-width: 26rem; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-card .livewire { width: 6rem; margin: 0 auto 26px; }
.auth-card h1 { font-size: clamp(1.5rem, 6vw, 1.9rem); font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.auth-card .lead { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: .95rem; color: var(--muted); }
.auth-card.center { text-align: center; }
.auth-card.center .livewire { margin-bottom: 24px; }

/* ---------- Inicio: el escudo y la tablilla de acceso ---------- */
.home { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: radial-gradient(120% 80% at 0% 0%, #0a1330 0%, var(--bg) 55%); }
.home-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px var(--gutter) 24px; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(6, 77, 255, .07) 38px 40px); pointer-events: none; }
.hoplon { position: relative; width: min(42vw, 11rem); height: auto; margin-bottom: 8px; }
.home-title { position: relative; font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; line-height: 1.05; }
.home-title span { display: block; color: var(--accent); }
.wordmark { display: block; width: min(78vw, 25rem); height: auto; margin: 14px auto 0; }
.livewire.home-rule { position: relative; width: min(20rem, 70%); height: 1px; margin: 22px auto 20px; opacity: 1; background: linear-gradient(90deg, transparent, var(--bronze) 30%, var(--bronze) 70%, transparent); }
.livewire.home-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: var(--bronze); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 5px var(--bg); }
.home-brand { position: relative; font-family: var(--label); font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze); font-size: .85rem; margin-bottom: 10px; }
.home-text { position: relative; max-width: 28rem; color: var(--text); font-size: 1.15rem; line-height: 1.6; }
.home-creed { position: relative; font-family: var(--label); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--bronze); font-size: .82rem; }
.home-side { display: grid; place-items: center; padding: 20px var(--gutter) 48px; }
.tablet { position: relative; width: 100%; max-width: 26rem; background: var(--panel); border: 1px solid #1f3a8a; border-top: 4px solid var(--red); padding: 26px 22px 24px; }
.tablet h2 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.tablet .lead { color: var(--muted); margin-bottom: 22px; }
@media (min-width: 900px) {
  .home { grid-template-columns: 1.15fr .85fr; }
  .home-hero { padding: 56px 40px; }
  .hoplon { width: min(18vw, 14rem); }
  .home-side { padding: 56px 40px; background: linear-gradient(90deg, rgba(6, 8, 13, 0), rgba(6, 8, 13, .55)); border-left: 1px solid var(--line); }
}

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--label); font-size: .86rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  border-radius: 0;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem; /* evita el zoom automático en iPhone */
}
.input::placeholder { color: #6f7890; }
.input:hover { border-color: var(--accent-dim); }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(6, 77, 255, .2); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); margin: -4px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--label); font-size: 1.02rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 4px 4px 0 var(--line-strong); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--input-border); }
.btn-ghost:hover { background: rgba(6, 77, 255, .14); border-color: var(--accent); color: #fff; box-shadow: none; }
.btn-small { width: auto; min-height: 38px; padding: 7px 14px; font-size: .9rem; letter-spacing: .14em; }

.msg { border-left: 4px solid; padding: 12px 14px; font-size: .98rem; margin-bottom: 16px; background: var(--panel); }
.msg-error { color: #ffd6d0; background: rgba(255, 107, 94, .12); border-color: var(--danger); }
.msg-ok { color: #dbe6ff; background: rgba(157, 186, 255, .1); border-color: var(--bronze); }
.msg-info { color: var(--text); background: var(--panel); border-color: var(--line-strong); }

/* ---------- Estructura de la app ---------- */
.topbar { border-bottom: 1px solid var(--line); background: rgba(6, 8, 13, .94); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.topbar-inner { max-width: 62rem; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-user { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--muted); min-width: 0; }
.topbar-user .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9rem; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 30px var(--gutter) 64px; }
.page-title { font-size: clamp(1.6rem, 5.5vw, 2.3rem); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.page-sub { color: var(--muted); margin-bottom: 28px; }
.eyebrow { font-family: var(--label); font-size: .86rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* ---------- Edición (página de una formación) ---------- */
.edition { position: relative; border: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); background: var(--panel); padding: 22px var(--gutter); margin-bottom: 28px; }
.edition-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.edition-head h2 { font-size: 1.35rem; font-weight: 900; text-transform: uppercase; }
.edition-meta { color: var(--muted); font-size: .95rem; }

/* Progreso en tramos, como una formación de lanzas */
.progress { height: 10px; background: repeating-linear-gradient(90deg, #1a2336 0 6px, transparent 6px 9px); overflow: hidden; margin: 14px 0 6px; }
.progress > i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 9px); }
.progress-label { font-family: var(--label); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.next { margin: 18px 0 6px; padding: 16px; border: 1px solid var(--line-strong); border-left: 4px solid var(--bronze); background: var(--panel-2); display: flex; flex-direction: column; gap: 12px; }
.next h3 { font-size: 1.05rem; font-weight: 700; }
.next p:not(.eyebrow) { color: var(--muted); font-size: .95rem; }

/* ---------- Calendario de semanas ---------- */
.weeks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 40px; }
.week { display: block; padding: 0; }
.week-num { display: flex; align-items: baseline; gap: 14px; background: #0f1d44; border: 1px solid var(--line-strong); border-left: 4px solid var(--red); font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1.2; color: var(--accent); padding: 10px 20px; }
.week-num small { display: inline; font-family: var(--label); font-size: .95rem; letter-spacing: .22em; color: var(--text); font-weight: 700; margin: 0; text-transform: uppercase; }
.week.is-locked .week-num { background: var(--panel-2); border-left-color: var(--line-strong); color: #4a5570; }
.week.is-locked .week-num small { color: var(--muted); }
.week.is-current .week-num { color: var(--bronze); }
.week-date { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 12px 20px; font-size: .9rem; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-strong); border-top: 0; }
.week-tag { display: inline-block; font-family: var(--label); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--red); padding: 1px 9px; vertical-align: middle; }

.lessons { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-top: 0; }
.lesson-link, .lesson-locked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; font-size: 1.05rem; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.lessons li:last-child > * { border-bottom: 0; }
.lesson-link { color: var(--text); }
.lesson-link:hover { color: #fff; background: rgba(6, 77, 255, .12); }
.lesson-link .go { color: var(--accent); font-weight: 700; flex: none; }
.lesson-locked { color: #6f7890; }
.lesson-locked .lock { font-family: var(--label); font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; flex: none; }

/* ---------- Clase ---------- */
.back { display: inline-block; margin-bottom: 18px; font-family: var(--label); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); overflow: hidden; margin: 18px 0 24px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { max-width: 44rem; color: #d5dcec; white-space: pre-line; }
.section-title { font-family: var(--label); font-size: .92rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.resources { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 44rem; }
.resource { border: 1px solid var(--line); border-left: 4px solid var(--bronze); background: var(--panel-2); padding: 12px 14px; display: grid; gap: 10px; }
.resource-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-title { font-weight: 600; overflow-wrap: anywhere; }
.resource-kind { font-family: var(--label); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.resource audio { width: 100%; }

.empty { border: 1px dashed var(--line-strong); padding: 28px var(--gutter); color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--text); font-family: var(--display); font-size: 1.1rem; letter-spacing: .04em; margin-bottom: 6px; }

.loading { color: var(--muted); padding: 40px 0; text-align: center; font-family: var(--label); letter-spacing: .2em; text-transform: uppercase; }

.foot { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter) 40px; font-size: .95rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* ---------- Pantallas anchas ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .edition { padding: 28px; }
  .edition-head { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .next { flex-direction: row; align-items: center; justify-content: space-between; }
  .next .btn { width: auto; flex: none; }
  .week { grid-template-columns: 5rem 1fr; }
  .topbar-user .name { max-width: 18rem; }
  .btn { width: auto; }
  .auth-card .btn, .tablet .btn { width: 100%; }
}

/* ---------- Administración ---------- */
.toplink { font-size: .95rem; }
.muted { color: var(--muted); font-size: .95rem; }
.hint { color: var(--muted); font-size: .86rem; margin-top: 6px; }
textarea.input { resize: vertical; min-height: 6rem; line-height: 1.5; }
select.input { appearance: auto; }
.card { position: relative; border: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); background: var(--panel); padding: 20px var(--gutter); margin-bottom: 24px; }
.card-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.card-title { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.subform { border: 1px solid var(--line-strong); border-left: 4px solid var(--bronze); background: var(--panel-2); padding: 16px; margin: 12px 0; }
.list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.list-item { border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--panel-2); padding: 12px 14px; }
.list-row { display: flex; flex-direction: column; gap: 10px; }
.grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.badge { display: inline-block; font-family: var(--label); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 1px 8px; margin-left: 8px; color: var(--muted); vertical-align: middle; }
.badge-enrollment_open, .badge-running { color: #fff; background: var(--red); border-color: var(--red); }
.badge-draft, .badge-off { color: var(--bronze); border-color: var(--bronze); }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table.preview { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.preview th, table.preview td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.preview th { color: var(--muted); font-family: var(--label); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
table.preview tr.bad td { color: #ffd6d0; background: rgba(255, 107, 94, .12); }
.week-group { margin-top: 22px; }
.week-group > h3 { font-family: var(--label); font-size: .92rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
@media (min-width: 640px) {
  .card-head, .list-row { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-danger:hover { background: rgba(255, 138, 122, .12); color: #ffb9ae; border-color: var(--danger); box-shadow: none; }

/* ---------- Comentarios y chat ---------- */
.comments { display: grid; gap: 14px; margin-top: 18px; max-width: 44rem; }
.comment { border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--panel-2); padding: 14px; display: grid; gap: 8px; }
.comment.reply { background: var(--panel); }
.comment-meta { font-size: .95rem; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #d5dcec; }
.replies { display: grid; gap: 10px; margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.composer { display: grid; gap: 10px; max-width: 44rem; }
.composer .btn { justify-self: start; }
.reply-box { margin-top: 4px; }
.chat-log { border: 1px solid var(--line-strong); background: var(--panel); padding: 14px; height: min(60vh, 34rem); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.chat-msg { background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); padding: 10px 12px; max-width: 42rem; }
.chat-msg.mine { border-left-color: var(--bronze); align-self: flex-end; }
.chat-msg p { overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; max-width: 44rem; }
.chat-form textarea { flex: 1; }
.chat-form .btn { width: auto; }
.edition-links { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Mensajes directos ---------- */
.top-actions { margin: -10px 0 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge-unread { color: #1a1008; background: var(--bronze); border-color: var(--bronze); }
.conv-link { display: block; color: var(--text); text-decoration: none; }
.conv-link:hover { color: #fff; }
.conv-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.safety { margin-top: 26px; max-width: 44rem; }
.safety summary { cursor: pointer; color: var(--muted); font-size: .95rem; }
.evidence { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); padding: 12px; margin: 10px 0 14px; font: inherit; font-size: .95rem; color: #d5dcec; }

/* ---------- Mis formaciones: tarjetas con medallón de escudo ---------- */
.formaciones { display: grid; gap: 20px; grid-template-columns: 1fr; }
.fcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.fcard:hover { color: var(--text); border-color: var(--accent); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--line-strong); }
.fcard:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.emblem-box { display: flex; align-items: center; justify-content: center; height: 170px; color: var(--accent); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(6, 77, 255, .09) 14px 16px), radial-gradient(circle at 50% 50%, rgba(6, 77, 255, .3), transparent 62%), var(--panel-2); border-bottom: 1px solid var(--line-strong); }
.emblem-box .emblem { padding: 20px; border: 2px solid var(--bronze); border-radius: 50%; box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px var(--line-strong); background: var(--bg); width: 108px; height: 108px; box-sizing: border-box; }
.emblem-box.small { height: 56px; width: 56px; flex: none; border: 2px solid var(--bronze); border-radius: 50%; background: var(--bg); }
.emblem-box.small .emblem { padding: 0; border: 0; box-shadow: none; width: 30px; height: 30px; }
.fcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.fcard-title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; letter-spacing: .02em; }
.fcard-meta { color: var(--muted); font-size: .98rem; }
.fcard .progress { margin: 8px 0 4px; }
.fcard-go { color: var(--accent); font-family: var(--label); font-weight: 700; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }
.edition-title { display: flex; align-items: center; gap: 14px; }
.edition-h { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; line-height: 1.2; }
@media (min-width: 560px) { .formaciones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .formaciones { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fcard { transition: none; } .fcard:hover { transform: none; } }
.gold { color: var(--accent); }
.auth-foot.muted { margin-top: 10px; font-size: .9rem; }

/* ---------- Pestañas (estilo Skool, con nuestros colores) ---------- */
.tabs { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 13px 16px 11px; font-family: var(--label); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--red); }
.topbar { border-bottom: 1px solid var(--line); }

/* ---------- Calendario ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-month { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-family: var(--label); font-weight: 700; letter-spacing: .14em; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; min-height: 3.2rem; border: 1px solid var(--line); background: var(--panel-2); padding: 6px; color: var(--text); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }
.cal-cell.is-empty { background: transparent; border-color: transparent; }
.cal-num { font-size: .95rem; color: var(--muted); }
.cal-cell.is-today { border-color: var(--bronze); }
.cal-cell.is-today .cal-num { color: var(--bronze); font-weight: 700; }
.cal-cell.has-event { border-color: var(--red); background: rgba(6, 77, 255, .16); }
.cal-cell.has-event:hover { background: rgba(6, 77, 255, .3); color: #fff; }
.cal-cell.has-event .cal-num { color: var(--text); font-weight: 700; }
.cal-dot { align-self: flex-end; font-family: var(--label); font-size: .8rem; color: var(--accent); }
.cal-cell.has-event::after { content: ""; position: absolute; left: 6px; bottom: 7px; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.meetings { display: grid; gap: 12px; }
.meeting { display: grid; grid-template-columns: 4.5rem 1fr; gap: 14px; border: 1px solid var(--line); background: var(--panel); padding: 16px; scroll-margin-top: 90px; }
.meeting:target { border-color: var(--accent); }
.meeting-time { display: flex; flex-direction: column; gap: 2px; font-family: var(--label); }
.meeting-time strong { font-family: var(--display); font-size: 1.35rem; color: var(--accent); }
.meeting-time span { color: var(--muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.meeting-body { display: grid; gap: 6px; justify-items: start; }
.meeting-body h3 { font-size: 1.15rem; }
.meeting.is-over { opacity: .6; }
.meeting.is-over .meeting-time strong { color: var(--muted); }
@media (max-width: 560px) { .cal-cell { min-height: 2.8rem; padding: 4px; } }


/* Cabecera que se adapta a pantallas estrechas (admin con muchos enlaces) */
.topbar-inner { flex-wrap: wrap; }
@media (max-width: 560px) {
  .brand { letter-spacing: .12em; font-size: .74rem; }
  .topbar-user { gap: 8px; }
  .topbar-user .name { max-width: 6rem; }
}

.meeting-place { color: var(--bronze); }
.meeting-place strong { font-family: var(--label); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Perfil ---------- */
a.name { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
a.name:hover { color: var(--text); border-bottom-color: var(--accent); }
.profile-forms { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; max-width: 44rem; }
.profile-form { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; }
.profile-form .grow { min-width: 0; display: grid; gap: 2px; }
.profile-form strong { font-family: var(--display); font-size: 1.02rem; }
.profile-card { max-width: 32rem; }
.profile-form { text-decoration: none; color: inherit; }
.profile-form:hover { border-color: var(--accent); color: inherit; }
