/* ---------------------------------------------------------------------
   Sporting de Maderasa - Bar Juanjo
   Dirección visual: "marcador de campo municipal" — el mismo panel de luces
   que se ve un domingo por la mañana en el Enrique Moreno, en azul marino
   y blanco, con la tipografía condensada de los paneles de resultados y
   el gris del hormigón de las gradas como contrapunto.
   --------------------------------------------------------------------- */

:root {
  --navy-deep:   #071427;
  --navy:        #0B1F3D;
  --navy-mid:    #12305C;
  --blue:        #1E4FA8;
  --blue-bright: #3E7BFF;
  --ice:         #EEF3FB;
  --white:       #FFFFFF;
  --slate:       #56698C;
  --slate-light: #8AA0C6;
  --win:         #2FA65A;
  --draw:        #C7A93B;
  --loss:        #C24242;
  --line:        rgba(255,255,255,0.14);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  --radius: 10px;
  --wrap-w: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ice);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ---------- textura de líneas de campo (fondo global sutil) ---------- */
.pitch-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(11,31,61,0.028) 79px, rgba(11,31,61,0.028) 80px);
}

/* ---------------------------- HEADER ---------------------------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--blue-bright);
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.crest {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.brand-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 4px;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 4vw, 30px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}

.brand-sub {
  color: var(--slate-light);
  font-weight: 400;
}

.position-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--blue-bright);
  background: var(--navy-mid);
  flex-shrink: 0;
}

.position-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--white);
}

.position-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  margin-top: 2px;
}

/* ---------------------------- HERO / SCOREBOARD ---------------------------- */
.scoreboard-hero {
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(62,123,255,0.35), transparent 60%),
    var(--navy-deep);
  color: var(--white);
  padding: 44px 0 52px;
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin: 0 0 18px;
  text-align: center;
}

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  flex-wrap: wrap;
}

.sb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: clamp(120px, 26vw, 200px);
  text-align: center;
}

.sb-team-name {
  font-family: var(--font-display);
  font-size: clamp(13px, 2vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.sb-team.is-own .sb-team-name {
  color: var(--blue-bright);
}

.sb-score {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 22px;
}

.sb-score .dash {
  color: var(--slate-light);
  font-size: 0.5em;
}

.sb-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.hero-result-badge-wrap {
  text-align: center;
  margin-top: 16px;
}

.sb-empty {
  color: var(--slate-light);
  font-family: var(--font-body);
  text-align: center;
  width: 100%;
}

/* dashed pitch-style divider between sections */
.divider {
  height: 0;
  border-top: 2px dashed rgba(11,31,61,0.18);
  max-width: var(--wrap-w);
  margin: 0 auto;
}

/* ---------------------------- SECTIONS ---------------------------- */
.section {
  padding: 48px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 24px;
}

/* ---------------------------- STANDINGS TABLE ---------------------------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(11,31,61,0.1);
  background: var(--white);
  position: relative;
}

table.standings {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 14px;
}

table.standings thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 8px;
  text-align: center;
  position: sticky;
  top: 0;
}

table.standings thead th.col-team { text-align: left; padding-left: 16px; }
table.standings thead th.col-pos { width: 36px; }

table.standings tbody td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(11,31,61,0.07);
  font-family: var(--font-mono);
}

table.standings tbody td.cell-team {
  text-align: left;
  padding-left: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  white-space: nowrap;
}

table.standings tbody tr:last-child td { border-bottom: none; }

table.standings tbody tr.own-row {
  background: linear-gradient(90deg, rgba(30,79,168,0.09), rgba(30,79,168,0.03));
}

table.standings tbody tr.own-row td.cell-team {
  color: var(--blue);
}

table.standings tbody tr.own-row td.cell-team::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  margin-right: 8px;
  vertical-align: middle;
}

/* En pantallas estrechas, la posición y el equipo quedan fijas a la
   izquierda mientras el resto de columnas se desliza horizontalmente,
   con una sombra que avisa de que hay más contenido a la derecha. */
@media (max-width: 700px) {
  table.standings { min-width: 720px; }

  table.standings th.col-pos,
  table.standings td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 32px;
  }

  table.standings th.col-team,
  table.standings td.cell-team {
    position: sticky;
    left: 32px;
    z-index: 2;
    width: 128px;
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 4px 0 6px -4px rgba(11,31,61,0.25);
  }

  table.standings thead th.col-pos,
  table.standings thead th.col-team {
    background: var(--navy);
    z-index: 3;
  }

  table.standings tbody td:nth-child(1),
  table.standings tbody td.cell-team {
    background: var(--white);
  }

  table.standings tbody tr.own-row td:nth-child(1),
  table.standings tbody tr.own-row td.cell-team {
    background: #eef3fb;
  }

}

.cell-dg.positive { color: var(--win); font-weight: 600; }
.cell-dg.negative { color: var(--loss); font-weight: 600; }

.form-dots {
  display: inline-flex;
  gap: 3px;
  justify-content: center;
}

.form-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.form-dot.g { background: var(--win); }
.form-dot.e { background: var(--draw); }
.form-dot.p { background: var(--loss); }

/* ---------------------------- RESULTS GRID ---------------------------- */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card {
  background: var(--white);
  border: 1px solid rgba(11,31,61,0.1);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
}

.match-card.is-own {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 1px var(--blue-bright);
}

.match-team {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.2;
}

.match-team.home { text-align: right; }
.match-team.away { text-align: left; }

.match-card.is-own .match-team.home-own,
.match-card.is-own .match-team.away-own {
  color: var(--blue);
}

.match-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  justify-self: center;
}

.hero-meta-wrap {
  margin-top: 16px;
}

.match-card-row {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* ---------------------------- META CHIPS (hora / campo) ---------------------------- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row-center {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.meta-row-compact {
  margin-top: 6px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--ice);
  border: 1px solid rgba(11,31,61,0.1);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.meta-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--blue);
}

/* Dentro del marcador destacado (fondo oscuro), los chips se adaptan al tema */
.scoreboard-hero .meta-chip {
  background: rgba(255,255,255,0.08);
  border-color: var(--line);
  color: var(--white);
}

.scoreboard-hero .meta-icon {
  color: var(--blue-bright);
}

/* En las tarjetas de calendario, más compactas */
.calendar-item .meta-chip {
  font-size: 10px;
  padding: 3px 8px;
}

.calendar-item .meta-icon {
  width: 10px;
  height: 10px;
}

/* ---------------------------- SECTION HEADER + ROUND SELECT ---------------------------- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-header-row .section-title,
.section-header-row .section-sub {
  margin-bottom: 0;
}

.selectors-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.round-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.round-select-wrap select {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(11,31,61,0.18);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.round-select-wrap select:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 1px;
}

.results-empty {
  color: var(--slate);
  font-size: 14px;
  padding: 20px 0;
}

.match-card.is-pending {
  opacity: 0.6;
}

.match-score.is-pending {
  background: var(--ice);
  color: var(--slate);
  border: 1px dashed rgba(11,31,61,0.25);
}

/* ---------------------------- CALENDAR ---------------------------- */
.calendar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.calendar-item {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(11,31,61,0.1);
  border-left: 4px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-item.win { border-left-color: var(--win); }
.calendar-item.draw { border-left-color: var(--draw); }
.calendar-item.loss { border-left-color: var(--loss); }

.calendar-round {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
}

.calendar-venue {
  font-weight: 600;
}

.calendar-opponent {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
}

.calendar-item.win .calendar-score { color: var(--win); }
.calendar-item.draw .calendar-score { color: var(--draw); }
.calendar-item.loss .calendar-score { color: var(--loss); }

.calendar-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate-light);
}

/* ---------------------------- SCORERS ---------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

.scorer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: scorer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(11,31,61,0.1);
  background: var(--white);
}

.scorer-list li {
  counter-increment: scorer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(11,31,61,0.07);
}

.scorer-list li:last-child { border-bottom: none; }

.scorer-list li::before {
  content: counter(scorer);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  width: 20px;
  flex-shrink: 0;
  text-align: right;
}

.scorer-list li.is-own {
  background: linear-gradient(90deg, rgba(30,79,168,0.09), rgba(30,79,168,0.02));
}

.scorer-name {
  flex: 1;
  min-width: 0;
}

.scorer-player {
  font-weight: 600;
  font-size: 13.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorer-team {
  font-size: 11px;
  color: var(--slate);
  display: block;
}

.scorer-goals {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ---------------------------- FOOTER ---------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--slate-light);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  line-height: 1.5;
}

.crest-small {
  height: 28px;
  width: auto;
  opacity: 0.85;
  flex-shrink: 0;
}

#updated-at {
  display: block;
  font-family: var(--font-mono);
  color: var(--slate-light);
  opacity: 0.7;
  margin-top: 2px;
}

/* ---------------------------- FOCUS / A11Y ---------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------------------------- MOBILE TUNING ---------------------------- */
@media (max-width: 480px) {
  .header-inner {
    padding: 24px 16px;
    gap: 12px;
  }

  .crest { height: 40px; }

  .brand { gap: 12px; min-width: 0; }

  .brand-text { min-width: 0; }

  .brand-eyebrow {
    font-size: 9px;
    line-height: 1.4;
  }

  .brand-text h1 {
    font-size: 16px;
    line-height: 1.2;
  }

  .position-badge {
    width: 54px;
    height: 54px;
  }

  .position-number { font-size: 19px; }
  .position-label { font-size: 7px; }

  .wrap { padding: 0 16px; }

  .header-inner.wrap {
    padding: 26px 20px;
  }

  .section { padding: 34px 0; }

  .scoreboard-hero { padding: 32px 0 38px; }

  .sb-score {
    padding: 7px 12px;
    gap: 5px;
    font-size: 36px;
  }

  table.standings { font-size: 12.5px; }

  .section-header-row {
    align-items: flex-start;
  }

  .selectors-group {
    width: 100%;
    align-items: stretch;
  }

  .round-select-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .round-select-wrap select { flex: 1; max-width: 220px; }

  .match-card { padding: 12px 12px; }

  .match-card-row {
    grid-template-columns: 1fr 70px 1fr;
    gap: 8px;
  }

  .match-team {
    font-size: 12.5px;
    line-height: 1.15;
    hyphens: none;
  }

  .match-score {
    font-size: 17px;
    padding: 5px 4px;
  }

  .footer-inner { align-items: flex-start; }
}

/* ---------------------------- VER ACTA (botón) ---------------------------- */
.acta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.acta-btn:hover {
  background: var(--blue);
  color: var(--white);
}

.acta-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.calendar-item .acta-btn {
  font-size: 9.5px;
  padding: 3px 9px;
  margin-top: 8px;
}

/* ---------------------------- ACTA MODAL ---------------------------- */
.acta-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,20,39,0.72);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.acta-overlay.is-open {
  display: flex;
}

.acta-modal {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  padding: 32px 28px 28px;
  margin: auto;
}

.acta-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--ice);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}

.acta-close:hover { background: rgba(11,31,61,0.12); }

.acta-header {
  text-align: center;
  margin-bottom: 20px;
}

.acta-header-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.acta-header-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.acta-team-name {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  flex: 1;
}

.acta-team-name.home { text-align: right; }
.acta-team-name.away { text-align: left; }
.acta-team-name.is-own { color: var(--blue); }

.acta-header-score .score-box {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 14px;
  flex-shrink: 0;
}

.acta-referee {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
  margin-top: 10px;
}

.acta-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(11,31,61,0.08);
}

.acta-goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acta-goals-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(11,31,61,0.06);
}

.acta-goals-list li:last-child { border-bottom: none; }

.acta-goal-score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
  min-width: 42px;
}

.acta-goal-minute {
  font-family: var(--font-mono);
  color: var(--slate-light);
  font-size: 11.5px;
  min-width: 32px;
}

.acta-card-dot {
  display: inline-block;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
}

.acta-card-dot.yellow { background: #E4B429; }
.acta-card-dot.red { background: var(--loss); }

.acta-card-team {
  color: var(--slate-light);
  font-size: 11px;
}

.acta-lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 560px) {
  .acta-lineups { grid-template-columns: 1fr; }
  .acta-modal { padding: 28px 18px 22px; }
}

.acta-lineup-team {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.acta-lineup-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--slate-light);
  margin: 10px 0 4px;
}

.acta-player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
}

.acta-player-list li {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}

.acta-player-number {
  font-family: var(--font-mono);
  color: var(--blue);
  font-weight: 700;
  min-width: 20px;
  text-align: right;
}

.acta-empty {
  color: var(--slate-light);
  font-size: 12.5px;
  font-style: italic;
}

/* ---------------------------- BOTONES VER ACTA / VOTAR EN FILA ---------------------------- */
.acta-btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.acta-btn-alt {
  background: var(--blue);
  color: var(--white);
}

.acta-btn-alt:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* ---------------------------- CONVOCATORIA ---------------------------- */
.convocatoria-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.convocatoria-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(11,31,61,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.convocatoria-item.is-signed {
  border-color: var(--blue-bright);
}

/* ---------------------------- MODAL CLUB (PIN / VOTOS) ---------------------------- */
.club-modal {
  max-width: 420px;
}

.club-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 4px;
  text-align: center;
}

.club-modal-sub {
  font-size: 12.5px;
  color: var(--slate);
  text-align: center;
  margin: 0 0 16px;
}

.club-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(11,31,61,0.18);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
}

.club-pin-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(11,31,61,0.18);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.3em;
  text-align: center;
  margin-top: 10px;
}

.club-error {
  color: var(--loss);
  font-size: 12px;
  text-align: center;
  min-height: 16px;
  margin-top: 8px;
}

.club-submit {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  justify-content: center;
}

.vote-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.vote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(11,31,61,0.06);
  font-size: 13px;
}

.vote-item:last-child { border-bottom: none; }

.vote-input {
  width: 64px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(11,31,61,0.18);
  font-family: var(--font-mono);
  text-align: center;
  font-size: 14px;
}
