/* ==========================================================================
   ETB Calvià — sistema de diseño
   Identidad: pista de fútbol sala. Fondo casi negro (pista al anochecer bajo
   focos), líneas de pista en blanco tiza, acento cítrico (naranja de
   Mallorca) reservado para lo importante. La progresión de categorías
   (Prebenjamín → Senior) se codifica con la intensidad del acento: cuanto
   más clara la ficha, más joven la categoría.
   ========================================================================== */

:root {
  --ink: #0A0E16;
  --ink-2: #10151F;
  --panel: #131A26;
  --line: #232C3D;
  --white: #F4F6F9;
  --muted: #8B96A8;
  --accent: #FF6A3D;
  --accent-2: #FFC857;
  --good: #34D399;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --radius: 14px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background-image: url('../img/watermark-single.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .watermark {
    width: 80vw;
    height: 80vw;
  }
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.05;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* -------------------- Barra superior (franja de pista) -------------------- */

.court-line {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 40px,
    var(--accent-2) 40px 80px
  );
}

/* -------------------------------- Header --------------------------------- */

.site-header {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img { height: 52px; width: 52px; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.03em;
}

.brand__tag {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--accent);
}

/* --------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  padding: 72px 24px 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,106,61,0.16), transparent 60%),
    var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,246,249,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,246,249,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 72%);
  pointer-events: none;
}

.hero__content { position: relative; }

.hero__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--white);
}

.hero h1 span { color: var(--accent); }

.hero p.lead {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Header simple para páginas internas (sin grid de pista) */

.page-hero {
  padding: 56px 24px 34px;
  text-align: center;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.page-hero img { margin: 0 auto 14px; height: 64px; width: 64px; }

.page-hero .kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); }

.page-hero .sub { color: var(--muted); margin-top: 10px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 28px 0 4px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.back-link:hover { text-decoration: underline; }

/* ------------------------------ Secciones --------------------------------- */

section { padding: 64px 24px; }

.container + section { padding-top: 28px; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  color: var(--white);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
}

/* --------------------------- Grid de categorías ---------------------------- */

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}

.cat-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 30px 22px;
  min-height: 92px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.cat-card__name {
  font-size: 1.5rem;
  color: var(--white);
}

.cat-card__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: var(--accent);
}

.cat-card--disabled {
  cursor: default;
  opacity: 0.6;
}

.cat-card--disabled:hover { transform: none; border-color: var(--line); }
.cat-card--disabled .cat-card__bar { background: var(--line); }

/* ------------------------------ Roster grid -------------------------------- */

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 190px));
  justify-content: center;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.player-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.player-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.player-card__num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.player-card__body { padding: 14px 12px 18px; }

.player-card__name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
}

.player-card__pos {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-card__stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.player-card__stats strong { color: var(--white); }

.staff-card .player-card__pos { color: var(--accent); }

.staff-card .player-card__photo {
  aspect-ratio: 3 / 4;
}
.staff-card .player-card__photo img {
  object-fit: contain;
}

/* ------------------------------ Estado vacío ------------------------------- */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state strong { color: var(--white); display: block; margin-bottom: 6px; font-size: 1.1rem; }

.empty-state code {
  background: var(--ink-2);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--accent-2);
  font-size: 0.85rem;
}

/* ------------------------------- Partidos ---------------------------------- */

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
}

.matches-subhead {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 28px 0 12px;
}

.matches-subhead:first-child { margin-top: 0; }

.match-card {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}

.share-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.1rem;
}
.share-wa:hover { border-color: var(--good); }

.match-card__crest {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--ink-2);
}

.match-card__crest--empty {
  border: 1px dashed var(--line);
}

.match-card__vs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

.match-card__crest-inline {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--ink-2);
  vertical-align: middle;
  flex: none;
}

.match-card__crest-inline--empty {
  border: 1px dashed var(--line);
}

.match-card__date {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.match-card__date strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.match-card__info { min-width: 0; }

.match-card__rival {
  font-weight: 700;
  color: var(--white);
  font-size: 1.02rem;
}

.match-card__meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.match-card__scorers {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.match-card__result {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  padding: 6px 16px;
  border-radius: 8px;
  text-align: center;
  min-width: 64px;
}

.match-card__result.win { background: rgba(52,211,153,0.15); color: var(--good); }
.match-card__result.loss { background: rgba(255,106,61,0.15); color: var(--accent); }
.match-card__result.draw { background: rgba(139,150,168,0.15); color: var(--muted); }

.match-card__pending {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .match-card { grid-template-columns: 56px 1fr auto; }
  .match-card__result, .match-card__pending { grid-column: 1 / -1; justify-self: start; }
}

.standings-table {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.standings-table th, .standings-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--white);
}
.standings-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.standings-table td:nth-child(2), .standings-table th:nth-child(2) { text-align: left; }
.standings-table tr.us { background: rgba(255,106,61,0.08); }
.standings-table tr.us td:nth-child(2) { font-weight: 700; color: var(--accent); }
.standings-table tr:last-child td { border-bottom: none; }

/* --------------------------------- Otras ----------------------------------- */

.info-block {
  max-width: var(--container);
  margin: 0 auto 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  color: var(--muted);
}

.info-block a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.info-block a:hover { text-decoration: underline; }

/* Noticias */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
  gap: 22px;
  max-width: var(--container);
  margin: 0 auto;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.news-card:hover { transform: translateY(-4px); }

.news-card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--ink-2); }

.news-card__body { padding: 18px; }

.news-card__date { color: var(--accent-2); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.news-card__title { margin: 8px 0 6px; font-size: 1.15rem; color: var(--white); }

.news-card__excerpt { color: var(--muted); font-size: 0.92rem; }

.embed-wrap { margin-top: 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.embed-wrap iframe { width: 100%; border: 0; display: block; }
.embed-wrap--video { aspect-ratio: 16/9; }
.embed-wrap--video iframe { height: 100%; }
.embed-wrap--fixed iframe { height: var(--embed-h, 600px); }

/* Sponsors & redes */

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

.sponsors-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sponsors-grid a:hover { transform: translateY(-4px); border-color: var(--accent); }
.sponsors-grid img { max-height: 100%; max-width: 100%; object-fit: contain; }

.social-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  max-width: var(--container);
  margin: 0 auto;
}

.social-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 60px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-grid a:hover { transform: scale(1.08); border-color: var(--accent); }
.social-grid img { height: 28px; width: 28px; object-fit: contain; }

/* Clasificación / calendario */

.link-panel {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.link-panel p { color: var(--muted); margin-bottom: 14px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); background: var(--accent-2); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 11px 25px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

/* --------------------------------- Footer ---------------------------------- */

.site-footer {
  background: #05070C;
  border-top: 1px solid var(--line);
  padding: 56px 24px 34px;
  text-align: center;
}

.site-footer h2 { font-size: 1.5rem; margin-bottom: 18px; }

.site-footer p { color: var(--muted); margin-bottom: 6px; }

.site-footer strong { color: var(--white); }

.site-footer .map-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.site-footer .map-link:hover { text-decoration: underline; }

.site-footer .fine-print {
  margin-top: 34px;
  font-size: 0.8rem;
  color: #55607A;
}

.site-footer .fine-print a { color: var(--accent-2); text-decoration: underline; }

/* Página de privacidad */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}

.legal h2 { color: var(--accent-2); font-size: 1.25rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { margin-left: 22px; }
.legal strong { color: var(--white); }

/* --------------------------------- Responsive ------------------------------- */

@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  section { padding: 48px 18px; }
}

/* ------------------------- Accesibilidad y navegación ---------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.lang-switch a.active {
  background: var(--accent);
  color: var(--ink);
}
.lang-switch a:hover:not(.active) { color: var(--white); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 24px 18px;
    gap: 4px;
    z-index: 100;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .lang-switch { margin: 10px 0 0; padding: 14px 0 0; border-left: none; border-top: 1px solid var(--line); }
  .site-header { position: relative; }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------------------------- Migas de pan --------------------------------- */

.breadcrumbs {
  max-width: var(--container);
  margin: 18px auto 0;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-2); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--white); }

/* Botón de la tienda en el menú, destacado sobre el resto de enlaces */
.nav-shop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--ink) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-shop:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
@media (max-width: 780px) {
  .nav-shop { justify-content: center; margin: 6px 0 0; }
}

/* Etiqueta de tipo de partido (Liga / Copa / Torneo / Amistoso) */
.match-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.match-type--liga { background: rgba(90,114,201,0.18); color: #8FA3E8; }
.match-type--copa { background: rgba(242,201,76,0.18); color: var(--accent); }
.match-type--torneo { background: rgba(52,211,153,0.18); color: var(--good); }
.match-type--amistoso { background: rgba(139,150,168,0.18); color: var(--muted); }
.match-type--otro { background: rgba(232,84,74,0.18); color: var(--accent-2); }

/* ------------------------- Splash 30 aniversario ---------------------------- */

body.splash30-open { overflow: hidden; }

.splash30 {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(242,201,76,0.16), transparent 60%),
    rgba(5,7,12,0.96);
  animation: splash30-fade 0.35s ease;
}

.splash30--saliendo { opacity: 0; transition: opacity 0.3s ease; }

@keyframes splash30-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.splash30__card {
  position: relative;
  max-width: 440px;
  width: 100%;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 32px 36px;
  animation: splash30-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes splash30-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.splash30__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}
.splash30__close:hover { color: var(--white); border-color: var(--accent); }

.splash30__crest {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.splash30__big {
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(242,201,76,0.35);
}

.splash30__label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: -6px;
}

.splash30__years {
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.splash30__years span { color: var(--accent-2); margin: 0 4px; }

.splash30__tagline {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.splash30__actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .splash30__big { font-size: 4.2rem; }
  .splash30__card { padding: 40px 22px 28px; }
}

/* ========================================================================
   Animaciones al hacer scroll y micro-interacciones adicionales
   Añadido — el JS que activa .reveal--visible vive en assets/js/enhance.js
   ======================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-in de imágenes al cargar, evita el "salto" brusco de layout */
.img-fade {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.img-fade--loaded {
  opacity: 1;
}

/* Contador animado (usa <span data-counter="30">0</span>) */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* Zoom sutil en la imagen de las noticias al pasar el ratón */
.news-card__img {
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.05);
}

/* Los partidos también reaccionan al hover, como el resto de tarjetas */
.match-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.match-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Resalta la fila de la clasificación al pasar el ratón */
.standings-table tbody tr {
  transition: background 0.15s ease;
}

.standings-table tbody tr:hover {
  background: rgba(244, 246, 249, 0.03);
}

/* El botón de compartir por WhatsApp también tiene su propio pequeño "pop" */
.share-wa {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.share-wa:hover {
  transform: scale(1.08);
}
