/*CSS COMUN A TODOS*/


:root {
  --gold: #bf9a33;
  --blue: #1064fc;
  --purple: #f35376;
  --red: #ff0434;
  --black: #000000;
  --dark: #0d0d0d;
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Cursor personalizado */
html, body {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, auto !important;
}

* {
  cursor: inherit !important;
}

html, body, div, section, header, footer, nav, img, p, span, ul, ol, li, strong, em, b, i, td, th, h1, h2, h3, h4, h5, h6 {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, auto;
}

a, button, input[type="submit"], input[type="button"],
.cta, .btn-hero, .clickable, .icon-link, .dropdown,
.equipos-filtros button, .news-card .read-more {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, pointer;
}

form input:not([type="submit"]):not([type="button"]),
form textarea {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, text;
}

.draggable {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, grab;
}

.draggable:active {
  cursor: url('img/cursor/cursor/volleyball-cursor.svg') 16 16, grabbing;
}

.loading-indicator, body.loading {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, wait;
}

.no-drop-zone {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, not-allowed;
}

.resizable-handle {
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, nwse-resize;
}

/* Fondo animado */
.background-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: -1;
  cursor: url('img/cursor/volleyball-cursor.svg') 16 16, auto;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.12) 0%, transparent 20%),
    radial-gradient(circle at 80% 40%, rgba(255, 217, 0, 0.055) 0%, transparent 15%),
    radial-gradient(circle at 50% 75%, rgba(255, 200, 100, 0.08) 0%, transparent 18%),
    radial-gradient(circle at 90% 10%, rgba(191, 154, 51, 0.1) 0%, transparent 22%),
    radial-gradient(circle at 90% 90%, rgba(255, 215, 0, 0.1) 0%, transparent 20%);
  animation: backgroundMove 30s ease-in-out infinite;
  transform: translateZ(0);
}

@keyframes backgroundMove {
  0% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(-1.5%, -1.5%);
  }

  100% {
    transform: translate(0px, 0px);
  }
}

body {
  background-color: var(--dark);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1 {
  font-family: 'Anton', sans-serif;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.5);
  font-size: 3rem;
}

/* ============================= */
/* 🔳 HEADER FLOTANTE (floating-header) */
/* ============================= */

.floating-header {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 0.5rem 1.5rem;
  z-index: 999;
  width: calc(100% - 2rem);
  max-height: 10%;
  max-width: 1300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeDown 0.6s ease-out;
}

/* 🧭 Distribución del header */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* 🔻 IZQUIERDA: Escudo + Nombre */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-left img {
  height: 40px;
}

.club-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  color: var(--white);
}

/* 🔲 CENTRO: Navegación */
.nav-center-pc {
  display: flex;
  gap: 1.5rem;
}

.nav-center-pc a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-center-pc a:hover {
  color: #fff;
}

/* ============================== */
/* MENÚ DESPLEGABLE CUSTOM */
/* ============================== */

.nav-center-pc {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
}

.dropdown-arrow {
  width: 14px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.98);
  border-radius: 8px;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 999;
}

.dropdown-menu a {
  color: var(--gold);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* 🔺 DERECHA: Redes sociales */
.nav-right {
  display: flex;
  gap: 1rem;
}

.icon-link img {
  width: 22px;
  transition: transform 0.2s ease;
}

.icon-link:hover img {
  transform: scale(1.1);
}

/* 🎞️ Animación de entrada */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/* ============================= */
/* 🌐 FOOTER ESTILIZADO           */
/* ============================= */

footer {
  padding: 3rem 2rem 1rem;
  background: #0d0d0d;
  color: #aaa;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 60px;
  width: 60px;
  filter: grayscale(1) brightness(1.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.footer-social img {
  width: 22px;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-social img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-copy {
  font-size: 0.8rem;
  color: #555;
}


/* ============================= */
/* 📱 RESPONSIVE - MULTIDISPOSITIVO */
/* ============================= */

/* Pantallas grandes (1025px en adelante) */
@media (min-width: 1025px) {
  .stats {
    justify-content: center;
    gap: 2.5rem;
  }

  .colab-logos {
    justify-content: space-evenly;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Tablets grandes y laptops pequeñas (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .stat-box {
    width: 180px;
    height: 150px;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .footer-links {
    gap: 2rem;
  }

  .colab-logos {
    gap: 4rem;
  }
}

/* Teléfonos grandes y tablets pequeñas (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-box {
    width: 45%;
    min-width: 160px;
    height: auto;
    margin-bottom: 1rem;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .colab-logos {
    gap: 3.5rem;
    flex-wrap: wrap;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

/* Teléfonos pequeños (≤ 480px) */
@media (max-width: 899px) {

  /* El disparador del menú: texto + flecha */
  .dropdown {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    color: var(--gold);
    font-weight: 700;
  }

  .dropdown-arrow {
    width: 16px;
    height: auto;
    transition: transform 0.3s ease;
  }

  /* Flecha rotada al abrir */
  .dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* El menú oculto por defecto */
  .dropdown-menu {
    min-width: 140px;
    /* Ancho mínimo ajustado */
    position: absolute;
    right: 0;
    /* Alineamos el menú a la derecha */
    top: calc(100% + 4px);
    /* Ajustamos la separación */
  }

  /* Cuando JS añade .show */
  .dropdown-menu.show {
    display: flex;
  }

  /* Enlaces dentro del menú */
  .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--gold);
    text-decoration: none;
    text-align: left;
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }

  .club-name {
    visibility: hidden;
    display: none;
  }

  .nav-center-pc {
    display: none;
    visibility: hidden;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn-hero {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }

  .stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .stat-box {
    width: 90%;
    height: auto;
    padding: 1rem;
  }

  .stat-box h3 {
    font-size: 3.5rem;
    transform: translateY(-30px);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .colab-texto h2 {
    font-size: 1.4rem;
  }

  .colab-texto p {
    font-size: 0.85rem;
    padding: 0 1rem;
  }

  .colab-logos {
    flex-direction: column;
    gap: 2rem;
  }

  .colab-logos img {
    height: 30px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .floating-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-content {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}


  .nav-center {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .nav-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {

  /* Contenedor del header */
  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Logo a la izquierda */
  .nav-left {
    flex: 0;
  }

  /* Oculta los iconos sociales */
  .nav-right {
    display: none !important;
    visibility: hidden;
  }

  /* El centro sólo muestra el toggle (dropdown) */
  .nav-center {
    flex: 0;
    position: relative;
  }
}

/* Mostrar menú completo en escritorio */
@media (min-width: 900px) {
  .dropdown {
    display: none;
  }

  .nav-center {
    gap: 1.5rem;
  }

  .nav-center a {
    display: inline;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
  }

  .nav-center a:hover {
    color: #fff;
  }
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}