:root {
  --azul: #0059a9;
  --azul-profundo: #003b73;
  --azul-claro: #4f9fe0;
  --amarillo: #ffcb0d;
  --amarillo-suave: #fff4c2;
  --texto: #1a2433;
  --texto-oscuro: #0a1f3d;
  --gris: #4a5463;
  --fondo: #f5f7fa;
  --borde: #e1e6ee;
  --borde-input: #b4bdc9;
  --blanco: #ffffff;
  --error: #8d1d1d;
  --error-fondo: #fde8e8;
  --sombra-login: 0 24px 60px rgba(0, 59, 115, 0.16);
  --contenedor: 1200px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--texto);
  background: var(--blanco);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--azul-profundo);
  outline-offset: 3px;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--azul);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.brand--dark {
  color: var(--texto-oscuro);
  font-size: 24px;
}

.brand__mark {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azul);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--azul);
  color: var(--blanco);
}

.btn--primary:hover {
  background: var(--azul-profundo);
}

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

.btn--dark:hover {
  background: var(--azul-profundo);
}

.btn--line {
  border: 2px solid var(--azul);
  background: var(--blanco);
  color: var(--azul);
}

.btn--line:hover {
  background: var(--amarillo-suave);
}

.btn--block {
  width: 100%;
}

/* Public site of the club (mockup Pub-Web). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.club-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--azul-profundo);
  text-decoration: none;
}

.club-brand img {
  display: block;
  width: 46px;
  height: auto;
}

.club-brand small {
  display: block;
  color: var(--gris);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.club-brand b {
  font-size: 18px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--texto);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: #edf1f6;
}

.site-nav a[aria-current='page'] {
  color: var(--azul);
  font-weight: 600;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--azul);
  border-radius: 999px;
  font:
    600 14px Poppins,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pill--primary {
  background: var(--azul);
  color: var(--blanco);
}

.pill--primary:hover {
  background: var(--azul-profundo);
  color: var(--blanco);
}

.pill--outline {
  background: var(--blanco);
  color: var(--azul);
}

.pill--outline:hover {
  background: var(--amarillo-suave);
}

.pill--accent {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--texto-oscuro);
}

.pill--ghost {
  background: transparent;
  border-color: var(--blanco);
  color: var(--blanco);
}

.club-hero {
  background: var(--azul-profundo);
  color: var(--blanco);
}

.club-hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 56px 0;
}

.club-hero__text {
  flex: 1 1 420px;
}

.club-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
}

.club-hero__lead {
  max-width: 520px;
  margin: 16px 0 24px;
  color: #cfe0f5;
  font-size: 17px;
}

.next-match {
  flex: 1 1 340px;
  padding: 24px;
  border-radius: 24px;
  background: var(--blanco);
  color: var(--texto);
}

.next-match__label {
  color: var(--azul);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.next-match__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}

.next-match__team {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.next-match__team img {
  display: block;
  width: 52px;
  height: auto;
  margin: 0 auto 8px;
}

.next-match__vs {
  color: var(--gris);
  font-weight: 800;
}

.crest {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #edf1f6;
  color: var(--azul-profundo);
  font-weight: 800;
}

.muted {
  color: var(--gris);
  font-size: 14px;
}

.results-strip {
  background: var(--amarillo);
}

.results-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--texto-oscuro);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.site-section {
  padding: 56px 0;
}

.site-section--alt {
  background: var(--fondo);
}

.page-head {
  padding: 40px 0 8px;
}

.page-head h1 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.page-head p {
  margin: 8px 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: 30px;
  font-weight: 800;
}

.section-head p {
  margin: 6px 0 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.site-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: var(--blanco);
}

.site-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  background: var(--azul-profundo);
}

.site-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-card__image--light {
  background: #dcebfa;
}

.site-card__image--light img {
  object-fit: contain;
}

.site-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.site-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

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

.site-card h3 a:hover {
  color: var(--azul);
}

.site-card--padded {
  padding: 20px;
}

.tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcebfa;
  color: #1f5a93;
  font-size: 12px;
  font-weight: 600;
}

.standing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.standing b {
  color: var(--azul);
  font-size: 36px;
  font-weight: 800;
}

.table-box {
  overflow-x: auto;
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: var(--blanco);
}

.table-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table-box th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--borde);
  color: var(--gris);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.table-box td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f6;
  white-space: nowrap;
}

.table-box tr:last-child td {
  border-bottom: 0;
}

.table-box .own td {
  background: var(--amarillo-suave);
  font-weight: 700;
}

.num {
  text-align: right;
}

.price {
  color: var(--azul-profundo);
  font-size: 20px;
  font-weight: 800;
}

.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--blanco);
  color: var(--gris);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.sponsor img {
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.contact-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-box {
  flex: 1 1 300px;
  padding: 24px;
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: var(--blanco);
}

.contact-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.contact-box p {
  margin: 0 0 8px;
}

.empty-note {
  padding: 24px;
  border: 1px dashed var(--borde-input);
  border-radius: 16px;
  background: var(--blanco);
  color: var(--gris);
  text-align: center;
}

.match-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--blanco);
}

.match-row strong {
  font-size: 16px;
}

.score {
  color: var(--azul-profundo);
  font-size: 20px;
  font-weight: 800;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.article h1 {
  margin: 12px 0 8px;
  color: var(--azul-profundo);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.article__lead {
  margin: 0 0 20px;
  color: var(--gris);
  font-size: 18px;
}

.article__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  background: var(--fondo);
  margin: 0 0 24px;
  border-radius: 20px;
}

.article__body p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
}

/* CF-56: fotos y videos de un álbum. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: #dcebfa;
}

.gallery-grid iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
}

.gallery-grid figcaption {
  margin-top: 6px;
  color: var(--gris);
  font-size: 14px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.breadcrumb {
  margin: 0;
  color: var(--gris);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--azul);
}

.site-footer {
  padding: 32px 0;
  background: var(--texto-oscuro);
  color: #cfe0f5;
  font-size: 14px;
}

.site-footer a {
  color: var(--blanco);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer__links a + a::before {
  content: '·';
  margin: 0 6px;
  color: #cfe0f5;
}

@media (max-width: 899px) {
  .site-header__bar {
    padding: 10px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .site-actions .pill--outline {
    display: none;
  }

  .site-section {
    padding: 40px 0;
  }

  .wrap {
    padding: 0 16px;
  }
}

/* Same focus as the admin forms: one 1px blue line over the input border. */
.login-card input:focus {
  border-color: var(--azul);
  outline: 1px solid var(--azul);
  outline-offset: -1px;
}

.login-footer {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  color: #cfe0f5;
  font-size: 13px;
  text-align: center;
}

.login-footer .legal-note,
.login-footer .dev-credit {
  margin: 0;
}

/* «Desarrollado por Fenantek»: small and quiet, as apps sign their footer. */
.dev-credit {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.dev-credit strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__credit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

/* Login: the form in the middle of a blue screen, with the crest above it and the yellow sash of the club behind. */
.login-page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(79, 159, 224, 0.35), transparent 40%),
    radial-gradient(circle at 90% 95%, rgba(255, 203, 13, 0.12), transparent 35%),
    linear-gradient(160deg, var(--azul) 0%, var(--azul-profundo) 75%);
}

.login-stripe {
  position: fixed;
  top: 58%;
  right: -10vw;
  left: -10vw;
  height: 16px;
  background: var(--amarillo);
  opacity: 0.9;
  transform: rotate(-8deg);
  pointer-events: none;
}

.login-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  padding: 32px 16px;
  box-sizing: border-box;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--blanco);
  text-align: center;
  text-decoration: none;
}

.login-brand img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.login-brand span {
  display: grid;
  line-height: 1.1;
}

.login-brand small {
  color: var(--amarillo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.login-brand b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.login-main .back-home {
  color: var(--blanco);
}

.login-card {
  position: relative;
  width: min(440px, 100%);
  max-width: 440px;
  min-width: 0;
  padding: 28px 20px;
  border: 1px solid var(--borde);
  border-top: 6px solid var(--amarillo);
  border-radius: 24px;
  background: var(--blanco);
  box-shadow: var(--sombra-login);
}

.password-field {
  position: relative;
}

.login-card .password-field input {
  padding-right: 52px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--gris);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-field__toggle:hover {
  color: var(--azul);
}

.password-field__toggle:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: -2px;
}

.password-field__slash {
  display: none;
}

.password-field__toggle[aria-pressed='true'] .password-field__slash {
  display: inline;
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--texto-oscuro);
  font-size: 28px;
  font-weight: 700;
}

.login-card > p,
.login-card__lead {
  margin: 0 0 24px;
  color: var(--gris);
}

.login-google__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--gris);
  font-size: 13px;
}

.login-google__or::before,
.login-google__or::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--borde);
}

.login-google__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-card__hint {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
  color: var(--gris);
  font-size: 14px;
  text-align: center;
}

.login-card [hidden] {
  display: none;
}

/* An app account (customer or courier) signed in to the panel: where to go instead. */
.app-only {
  outline: none;
}

.app-only__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--amarillo-suave);
  color: var(--azul-profundo);
}

.app-only__greeting {
  margin: 0 0 4px;
  color: var(--azul);
  font-weight: 600;
}

.app-only h1 {
  margin: 0 0 8px;
  color: var(--texto-oscuro);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.app-only .login-card__lead {
  margin-bottom: 12px;
}

.app-only__list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.app-only__list li {
  position: relative;
  padding-left: 26px;
  color: var(--texto);
}

.app-only__list li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 2.4px solid var(--azul);
  border-left: 2.4px solid var(--azul);
  transform: rotate(-45deg);
}

.app-only__actions {
  display: grid;
  gap: 12px;
}

.link-button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--azul-profundo);
  font:
    600 15px Poppins,
    sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 2px;
}

.login-card form {
  display: grid;
  gap: 16px;
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  color: var(--texto-oscuro);
  font-size: 14px;
  font-weight: 600;
}

.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--borde-input);
  border-radius: 12px;
  color: var(--texto);
  font:
    500 16px Poppins,
    sans-serif;
}

.field__row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.field__row a,
.back-home {
  color: var(--azul-profundo);
  font-weight: 600;
}

.field__row a,
.back-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.back-home {
  display: block;
  margin: 16px 0 0;
  text-align: center;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--error-fondo);
  color: var(--error);
  font-weight: 600;
}

.form-error[hidden] {
  display: none;
}

.form-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e3f4e8;
  color: var(--azul-profundo);
  font-weight: 600;
}

.form-notice[hidden] {
  display: none;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--gris);
  font-size: 13px;
}

#reset-view form + .link-button {
  display: block;
  margin: 12px auto 0;
}

@media (min-width: 640px) {
  .login-card {
    padding: 40px 36px;
  }
}

/* Legal pages: privacy, terms and account deletion. */
.legal {
  padding: 40px 0 56px;
  background: var(--blanco);
}

.legal__body {
  max-width: 760px;
  color: var(--texto);
  font-size: 16px;
  line-height: 1.6;
}

.legal__body h1 {
  margin: 0 0 8px;
  color: var(--texto-oscuro);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal__body h2 {
  margin: 32px 0 8px;
  color: var(--texto-oscuro);
  font-size: 20px;
  font-weight: 700;
}

.legal__body p,
.legal__body ul,
.legal__body ol {
  margin: 0 0 12px;
}

.legal__body li + li {
  margin-top: 6px;
}

.legal__body a {
  color: var(--azul);
  font-weight: 600;
}

.legal__updated {
  color: var(--gris);
  font-size: 14px;
}
