:root {
  --rojo: #a32f22;
  --rojo-oscuro: #832418;
  --blanco: #ffffff;
}

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

html, body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--rojo);
  color: var(--blanco);
}

/* Oculto visualmente, accesible para SEO y lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- HERO ---------- */
.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  /* La franja roja que prolonga la imagen en pantallas altas/estrechas */
  background: var(--rojo);
}

.hero__img {
  position: relative;
  line-height: 0;
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- RÓTULOS SUPERPUESTOS ---------- */
.hero__badge {
  position: absolute;
  top: clamp(0.85rem, 3vw, 2rem);
  z-index: 2;
}

/* Rótulo de texto: ESTADIO POLIDEPORTIVO JUMAYA */
.hero__badge--left {
  left: clamp(0.85rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  padding: clamp(0.4rem, 1vw, 0.7rem) clamp(0.9rem, 2vw, 1.6rem);
  border: 2px solid var(--blanco);
  border-radius: 10px;
  color: var(--blanco);
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
}

.hero__badge-top {
  font-size: clamp(0.6rem, 1.15vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero__badge-main {
  font-size: clamp(1rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Logo RFEF / Segunda Federación */
.hero__badge--right {
  right: clamp(0.85rem, 3vw, 2rem);
  width: auto;
  height: clamp(46px, 8vw, 110px);
}

/* ---------- BOTONES ---------- */
.hero__actions {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 1.25rem 3rem;
  background: var(--rojo);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 2px solid var(--blanco);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: transparent;
  color: var(--blanco);
}

.btn--secondary {
  background: transparent;
  color: var(--blanco);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--blanco);
  color: var(--rojo);
}

/* ---------- COPYRIGHT ---------- */
.copyright {
  flex-shrink: 0;
  background: var(--rojo-oscuro);
  color: var(--blanco);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
}

/* ---------- MÓVIL ---------- */
@media (max-width: 600px) {
  /* Sin los logos dentro de la foto podemos recortar más y
     centrar el escudo y el texto ocupando bien la pantalla. */
  .hero__photo {
    height: 70vh;
    min-height: 440px;
    max-height: 640px;
    object-fit: cover;
    object-position: center 42%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    padding: 1.75rem 1.5rem 2.5rem;
  }

  .btn {
    text-align: center;
  }
}
