/* ==========================================================================
   PUBLICO.CSS — Se carga DESPUÉS de style.css en todas las páginas públicas.
   Contiene: ajustes del menú (más ítems + botón "Acceso asociados"),
   cabecera de página interna, Plantel, Cuerpo Técnico, Noticias,
   bloques nuevos del inicio y página provisional de acceso.
   Usa las mismas variables (--rojo, --amarillo-dorado, etc.) de style.css.
   ========================================================================== */

/* ==========================================================================
   1. MENÚ: más ítems + botón destacado
   ========================================================================== */
.nav-links {
  gap: 22px;
  align-items: center;
}

.nav-links a {
  font-size: 11.5px;
  letter-spacing: 1.2px;
}

.nav-links .nav-btn {
  background: var(--rojo);
  color: var(--blanco-puro);
  padding: 10px 18px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links .nav-btn:hover,
.nav-links .nav-btn.active {
  background: var(--amarillo-dorado);
  color: var(--gris-oscuro);
}

.nav-links .nav-btn::after {
  display: none;
}

/* Foco visible para quien navega con teclado */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amarillo-dorado);
  outline-offset: 3px;
}

/* Con 9 ítems el menú horizontal ya no cabe en pantallas medianas:
   la hamburguesa aparece desde 1100px (en style.css era 768px). */
@media (max-width: 1100px) {
  .nav-toggle-label { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px 20px; }
  .nav-links a::after { display: none; }

  .nav-links .nav-btn {
    clip-path: none;
    border-radius: 6px;
    margin: 8px 20px 18px;
    padding: 14px 20px;
  }

  .nav-toggle:checked ~ .nav-links { max-height: 640px; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================================
   1b. PORTADA DEL INICIO: una sola foto fija (reemplaza al carrusel)
   ========================================================================== */
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   2. CABECERA DE PÁGINA INTERNA (Plantel, Cuerpo Técnico, Noticias…)
   ========================================================================== */
.page-hero {
  position: relative;
  margin-top: -85px;
  padding: 175px 20px 80px;
  text-align: center;
  color: var(--blanco-puro);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(18, 18, 18, 0.95) 100%),
              url('../IMG/Escudo.PNG') no-repeat center center / contain;
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-top: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.page-hero p.lead {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   3. EQUIPO
   ========================================================================== */
.roster-section {
  padding: 60px 20px 100px;
  background: #ededed;
}

.roster-grid {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* la última fila queda centrada */
  gap: 22px;
}

.roster-grid .player-card {
  width: 220px;
  flex: 0 0 auto;
}

.roster-grid .empty-note { flex: 1 1 100%; }

.player-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gris-oscuro);
  border: 2px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.player-card:hover {
  transform: translateY(-6px);
  border-color: var(--rojo);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
}

.player-number { display: none; }

.player-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Cuando falta la foto se muestra el escudo, discreto */
img.sin-foto {
  object-fit: contain;
  opacity: 0.35;
}

.player-card img.sin-foto,
.teaser-coach img.sin-foto,
.coach-photo img.sin-foto {
  padding: 28% 22% 36%;
}

.member-card img.sin-foto {
  padding: 18px;
  background: #f3f3f3;
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.player-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--blanco-puro);
}

.player-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.player-info p {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amarillo-dorado);
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gris-textos);
  font-size: 15px;
}

/* ==========================================================================
   3b. EQUIPO: carrusel "Momentos de gloria"
   ========================================================================== */
.glory-section {
  padding: 80px 20px 90px;
  background: var(--gris-oscuro);
  color: var(--blanco-puro);
  text-align: center;
}

.glory-head { margin-bottom: 40px; }

.glory-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.glory-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: var(--amarillo-dorado);
}

.glory-carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.glory-decades {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.glory-chip {
  padding: 8px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  background: transparent;
  color: var(--blanco-puro);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.glory-chip:hover { border-color: var(--amarillo-dorado); color: var(--amarillo-dorado); }

.glory-chip[aria-pressed="true"] {
  background: var(--amarillo-dorado);
  border-color: var(--amarillo-dorado);
  color: var(--gris-oscuro);
}

.glory-track {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 8px 4px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.glory-track::-webkit-scrollbar { display: none; }

.glory-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  padding: 20px 12px 18px;
  background: #272727;
  color: var(--blanco-puro);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid var(--amarillo-dorado);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.glory-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--rojo);
}

.glory-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 14px;
}

.glory-card img.sin-foto { opacity: 0.25; padding: 20px; }

.glory-year {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--amarillo-dorado);
}

.glory-name {
  display: block;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.glory-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-62%);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--amarillo-dorado);
  color: var(--gris-oscuro);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: background 0.25s ease, opacity 0.25s ease;
}

.glory-nav:hover:not(:disabled) { background: var(--blanco-puro); }
.glory-nav:disabled { opacity: 0.3; cursor: default; }
.glory-prev { left: 6px; }
.glory-next { right: 6px; }

@media (max-width: 768px) {
  .glory-section { padding: 60px 14px 70px; }
  .glory-head h2 { font-size: 30px; }
  .glory-card { flex-basis: 150px; }
  .glory-card img { height: 115px; }
}

@media (prefers-reduced-motion: reduce) {
  .glory-track { scroll-behavior: auto; }
  .glory-card { transition: none; }
  .glory-card:hover { transform: none; }
}

/* ==========================================================================
   4. CUERPO TÉCNICO
   ========================================================================== */
.coach-section {
  padding: 90px 20px;
  background: var(--gris-oscuro);
  color: var(--blanco-puro);
}

.coach-feature {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 56px;
  align-items: center;
}

.coach-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 2px solid var(--amarillo-dorado);
  display: block;
}

.coach-info .role {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--amarillo-dorado);
  margin-bottom: 10px;
}

.coach-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.coach-info p.bio {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

/* Reutiliza .board-section / .board-grid / .member-card de style.css,
   pero con filas centradas para que el staff no quede alineado a la izquierda */
.staff-section .board-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.staff-section .member-card {
  flex: 0 1 calc((100% - 72px) / 4);
  min-width: 200px;
}

.staff-section .member-card p {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* ==========================================================================
   5. NOTICIAS (listado y tarjetas con fuente externa)
   ========================================================================== */
.news-page {
  padding: 70px 20px 100px;
  background: #ededed;
}

/* Las noticias vienen de otros medios: se muestra la fuente real
   en lugar del "Autor: Asociación C.S. Herediano" fijo de style.css */
.news-card--ext .news-info::after {
  content: "Fuente: " attr(data-fuente);
}

.news-card a.news-img-link {
  display: block;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--rojo);
}

.more-wrap {
  max-width: var(--max-width);
  margin: 45px auto 0;
  text-align: center;
}

.btn-dark,
.btn-gold {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-dark {
  background: var(--gris-oscuro);
  color: var(--blanco-puro);
}

.btn-dark:hover {
  background: var(--rojo);
  transform: scale(1.03);
}

.btn-gold {
  background: var(--amarillo-dorado);
  color: var(--gris-oscuro);
}

.btn-gold:hover {
  background: var(--blanco-puro);
  transform: scale(1.03);
}

/* ==========================================================================
   5b. INICIO: calendario mensual de partidos
   ========================================================================== */
.calendar-section {
  padding: 90px 20px;
  background: #ededed;
}

.calendar-section .section-title::before {
  content: "CALENDARIO";
  display: block;
  font-size: 38px;
  color: var(--gris-oscuro);
  -webkit-text-stroke: 0;
  margin-bottom: -4px;
}

.calendar-wrap {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.1fr;
  gap: 28px;
  align-items: start;
}

.cal-box {
  background: var(--blanco-puro);
  border-radius: 12px;
  border-top: 5px solid var(--amarillo-dorado);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gris-oscuro);
  text-align: center;
}

.cal-nav {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gris-oscuro);
  background: transparent;
  color: var(--gris-oscuro);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cal-nav:hover {
  background: var(--amarillo-dorado);
  border-color: var(--amarillo-dorado);
  color: var(--gris-oscuro);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-dow {
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--gris-textos);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-oscuro);
}

.cal-day.today {
  background: #fdf1cc;
  box-shadow: inset 0 0 0 2px var(--amarillo-dorado);
}

.cal-day.has-match {
  cursor: pointer;
  color: var(--blanco-puro);
  font-weight: 800;
}

.cal-day.local { background: var(--rojo); }
.cal-day.visitante { background: var(--amarillo-dorado); color: var(--gris-oscuro); }

.cal-day.has-match:hover {
  transform: scale(1.06);
}

.cal-day.is-selected {
  box-shadow: 0 0 0 2px var(--blanco-puro), 0 0 0 4px var(--amarillo-dorado);
}

.cal-day.visitante.is-selected {
  box-shadow: 0 0 0 2px var(--blanco-puro), 0 0 0 4px var(--rojo);
}

.cal-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: var(--gris-textos);
}

.cal-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.cal-legend .lg-local { background: var(--rojo); }
.cal-legend .lg-visitante { background: var(--amarillo-dorado); }
.cal-legend .lg-hoy { background: #fdf1cc; box-shadow: inset 0 0 0 2px var(--amarillo-dorado); }

.match-list {
  display: grid;
  gap: 14px;
}

.match-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--blanco-puro);
  border-radius: 12px;
  border-left: 4px solid var(--rojo);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease;
}

.match-card.visitante { border-left-color: var(--amarillo-dorado); }
.match-card.visitante .match-date strong { color: #b98a14; }

.match-card.is-selected {
  box-shadow: 0 0 0 2px var(--amarillo-dorado), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.match-card.visitante.is-selected {
  box-shadow: 0 0 0 2px var(--rojo), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.match-date {
  text-align: center;
  line-height: 1.1;
}

.match-date strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--rojo);
}

.match-date span {
  font-size: 11px;
  font-weight: 700;
  color: var(--gris-textos);
}

.match-main h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--gris-oscuro);
}

.match-main p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gris-textos);
}

.match-side {
  text-align: right;
}

.match-score {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gris-oscuro);
}

.match-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--rojo);
  color: var(--blanco-puro);
  font-size: 11px;
  font-weight: 700;
}

.match-card.visitante .match-tag { background: var(--amarillo-dorado); color: var(--gris-oscuro); }

/* ==========================================================================
   5c. NOTICIAS DEL CLUB: destacada, categorías, etiqueta y compartir
   ========================================================================== */
.news-filters {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-filters:empty { margin: 0; }

.news-chip {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border: 1.5px solid var(--gris-oscuro);
  border-radius: 30px;
  background: transparent;
  color: var(--gris-oscuro);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.news-chip:hover {
  background: var(--amarillo-dorado);
  border-color: var(--amarillo-dorado);
}

.news-chip[aria-pressed="true"] {
  background: var(--rojo);
  border-color: var(--rojo);
  color: var(--blanco-puro);
}

.news-featured {
  max-width: var(--max-width);
  margin: 0 auto 28px;
}

.news-featured:empty { margin: 0; }

.news-feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--gris-oscuro);
  color: var(--blanco-puro);
  border-radius: 12px;
  overflow: hidden;
  border-bottom: 5px solid var(--amarillo-dorado);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.news-feature-img {
  position: relative;
  display: block;
  min-height: 340px;
  background: #111;
}

.news-feature-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature-body {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.news-feature-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.news-feature-body h2 a {
  color: inherit;
  text-decoration: none;
}

.news-feature-body h2 a:hover { color: var(--amarillo-dorado); }

.news-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.news-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.news-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--amarillo-dorado);
  color: var(--gris-oscuro);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.news-card--ext { position: relative; }

.news-card .news-img-link { position: relative; display: block; }

.news-img-link .news-cat {
  position: absolute;
  left: 14px;
  top: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.news-card img.sin-foto,
.news-feature-img img.sin-foto {
  padding: 30px;
  background: #f3f3f3;
}

.news-feature-img img.sin-foto { background: #1b1b1b; }

.news-share {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: var(--gris-oscuro);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.news-share:hover {
  background: var(--amarillo-dorado);
  color: var(--gris-oscuro);
}

.news-share--lg {
  position: static;
  width: auto;
  height: auto;
  padding: 12px 20px;
  gap: 8px;
  border-radius: 30px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--blanco-puro);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.news-share--lg:hover { border-color: var(--amarillo-dorado); }

@media (max-width: 900px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-img { min-height: 240px; }
  .news-feature-body { padding: 26px 22px; }
  .news-feature-body h2 { font-size: 22px; }
}

/* ==========================================================================
   6. INICIO: bloque Plantel / Cuerpo técnico
   ========================================================================== */
.club-teaser {
  padding: 90px 20px;
  background: var(--gris-oscuro);
  color: var(--blanco-puro);
}

.club-teaser .section-title {
  -webkit-text-stroke: 1.5px var(--amarillo-dorado);
}

.teaser-grid {
  max-width: var(--max-width);
  margin: 0 auto 45px;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 32px;
  align-items: stretch;
}

.teaser-coach {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--amarillo-dorado);
  min-height: 420px;
  background: #111;
}

.teaser-coach img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teaser-coach::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.05) 60%);
  pointer-events: none;
}

.teaser-coach .teaser-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.teaser-caption h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.teaser-caption p {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amarillo-dorado);
}

.teaser-players {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.teaser-players .player-card {
  aspect-ratio: auto;
  min-height: 200px;
}

.teaser-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   7. INICIO: invitación a asociarse
   ========================================================================== */
.join-section {
  padding: 90px 20px;
  background: #ededed;
}

.join-inner {
  max-width: var(--max-width);
  margin: auto;
}

.join-inner .section-title {
  margin-bottom: 22px;
}

.join-inner .section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--amarillo-dorado);
}

.join-lead {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gris-textos);
  margin-bottom: 44px;
}

.join-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.join-point {
  background: var(--blanco-puro);
  border-radius: 12px;
  padding: 30px 26px;
  border-left: 4px solid var(--amarillo-dorado);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join-point:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
}

.join-point i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--gris-oscuro);
  color: var(--amarillo-dorado);
  font-size: 22px;
  transition: background 0.3s ease, color 0.3s ease;
}

.join-point:hover i {
  background: var(--amarillo-dorado);
  color: var(--gris-oscuro);
}

.join-point h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--gris-oscuro);
  margin-bottom: 8px;
}

.join-point p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gris-textos);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.join-actions .btn-dark {
  color: var(--amarillo-dorado);
}

.join-actions .btn-dark:hover {
  background: var(--amarillo-dorado);
  color: var(--gris-oscuro);
}

/* ==========================================================================
   8. BENEFICIOS (público): tarjeta del boletín de convenios
   ========================================================================== */
.convenios-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 40px;
  background: var(--blanco-puro);
  border-radius: 14px;
  border-top: 5px solid var(--amarillo-dorado);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.convenios-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 14px;
  background: var(--gris-oscuro);
  color: var(--amarillo-dorado);
  font-size: 28px;
}

.convenios-card h3 {
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--gris-oscuro);
}

.convenios-card p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gris-textos);
}

@media (max-width: 768px) {
  .convenios-card { padding: 34px 22px; }
  .convenios-card h3 { font-size: 21px; }
}

/* ==========================================================================
   8b. FORMULARIO DE GOOGLE (form.html)
   ========================================================================== */
.form-intro {
  margin: -14px auto 26px;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gris-textos);
}

.google-form-container iframe {
  border: 0;
  min-height: 700px;
  background: #fff;
}

.form-link-text {
  line-height: 2;
}

@media (max-width: 600px) {
  .google-form-container iframe { min-height: 840px; }
}

/* ==========================================================================
   9. ACCESO ASOCIADOS (página provisional)
   ========================================================================== */
.access-card {
  max-width: 520px;
}

.access-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gris-textos);
  margin-bottom: 26px;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .calendar-wrap { grid-template-columns: 1fr; }
  .coach-feature { grid-template-columns: 1fr; gap: 32px; }
  .coach-photo { max-width: 360px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-coach { min-height: 360px; }
}

@media (max-width: 768px) {
  .calendar-section .section-title::before { font-size: 28px; }
  .page-hero { padding: 150px 20px 60px; }
  .page-hero h1 { font-size: 32px; }
  .coach-info h2 { font-size: 32px; }
}

@media (max-width: 480px) {
  .cal-box { padding: 16px; }
  .cal-grid { gap: 4px; }
  .cal-day { font-size: 13px; }
  .match-card { grid-template-columns: 56px 1fr; gap: 14px; padding: 14px; }
  .match-side { grid-column: 2; text-align: left; }
  .match-date strong { font-size: 26px; }
  .roster-grid { gap: 14px; }
  .roster-grid .player-card { width: calc(50% - 7px); }
  .player-info { left: 12px; right: 12px; bottom: 12px; }
  .player-info h3 { font-size: 13px; }
  .teaser-players { gap: 14px; }
}

@media (max-width: 380px) {
  .calendar-section .section-title::before { font-size: 22px; }
  .page-hero h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .player-card,
  .join-point,
  .nav-links { transition: none; }
  .player-card:hover,
  .join-point:hover { transform: none; }
}
