/* ===== Estilos Globales ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: linear-gradient(135deg, #0A192F, #1B2A49);
  color: #EAEAEA;
  line-height: 1.6;
  min-height: 100vh;
  background-attachment: fixed;
}

/* ===== Header ===== */
header {
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInDown 1s ease;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #21E6C1;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #EAEAEA;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #21E6C1;
  transition: width 0.3s;
}

nav a:hover {
  color: #21E6C1;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Main Sections ===== */
main {
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

h2, h3 {
  margin-bottom: 1rem;
  color: #FF6B35;
  font-weight: 700;
  letter-spacing: 0.5px;
}

section {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

/* ===== Formularios ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input {
  padding: 0.8rem;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s, background 0.3s;
}

input:focus {
  outline: none;
  border: 2px solid #21E6C1;
  background: rgba(255,255,255,0.15);
}

button {
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF6B35, #FF914D);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #21E6C1, #14B8A6);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(33, 230, 193, 0.7);
}

/* ===== Tablas ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 12px;
}

table th, table td {
  padding: 1rem;
  text-align: center;
}

table th {
  background: #FF6B35;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

table tr:nth-child(even) {
  background: rgba(255,255,255,0.08);
}

table tr:hover {
  background: rgba(33, 230, 193, 0.2);
  transition: background 0.3s;
}

/* ===== Listas ===== */
ul {
  list-style: none;
}

ul li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.6rem;
  padding: 0.8rem;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}

ul li:hover {
  transform: translateX(5px);
  background: #21E6C1;
  color: #0A192F;
  font-weight: 600;
}

/* ===== Animaciones ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

button[type="submit"] {
  animation: pulse 2.5s infinite;
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  main {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  nav {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

  section {
    padding: 1.2rem;
  }

  table th, table td {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  h2, h3 {
    font-size: 1.2rem;
  }

  button {
    font-size: 0.9rem;
  }

  input {
    font-size: 0.9rem;
  }
}

/* ===== Slider de Galería ===== */
.gallery {
  margin: 2rem 0;
  text-align: center;
}

.gallery h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #FF6B35;
}

.slider {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slides img {
  width: 100%;
  border-radius: 16px;
  flex-shrink: 0;
}

/* Botones de control */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: rgba(33, 230, 193, 0.7);
  color: #0A192F;
}

.prev { left: 15px; }
.next { right: 15px; }

/* Responsivo */
@media (max-width: 768px) {
  .gallery h2 {
    font-size: 1.4rem;
  }

  .prev, .next {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}
/* ===== Dashboard de Liga ===== */
.league-dashboard {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #0A192F, #112D4E);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.league-dashboard h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #21e6c1;
  text-shadow: 0 0 8px rgba(33, 230, 193, 0.6);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #162447;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  background: #1f4068;
}

/* Listado de marcadores */
.scoreboard ul {
  list-style: none;
  padding: 0;
}
.scoreboard li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.1rem;
}

/* Tablas */
.standings table,
.matches table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.standings th, .standings td,
.matches th, .matches td {
  padding: 0.6rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.standings th, .matches th {
  background: rgba(33, 230, 193, 0.15);
  color: #21e6c1;
  font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
  .league-dashboard h2 {
    font-size: 1.6rem;
  }
}
   /* ===== Hero con Parallax ===== */
    .hero {
      background: url('/images/5.jpg') no-repeat center center/cover;
      height: 70vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
      position: relative;
      background-attachment: fixed;
    }

    .hero::after {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 800px;
    }

    .hero h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
      color: #21E6C1;
      animation: fadeInDown 1.5s ease;
    }

    .hero p {
      font-size: 1.3rem;
      animation: fadeInUp 1.5s ease;
    }

    /* Noticias */
    .news {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .news-card {
      background: rgba(255,255,255,0.05);
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      transition: transform 0.3s, background 0.3s;
    }

    .news-card:hover {
      transform: translateY(-8px);
      background: rgba(33, 230, 193, 0.15);
    }

    .news-card img {
      width: 100%;
      border-radius: 10px;
      margin-bottom: 0.8rem;
    }

    /* Jugadores destacados */
    .players {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.5rem;
    }

    .player {
      width: 220px;
      background: rgba(255,255,255,0.05);
      border-radius: 12px;
      padding: 1rem;
      text-align: center;
      transition: transform 0.3s;
    }

    .player:hover {
      transform: scale(1.05);
    }

    .player img {
      width: 100%;
      border-radius: 50%;
      margin-bottom: 0.5rem;
    }

    /* Sponsors */
    .sponsors {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 2rem;
    }

    .sponsors img {
      width: 140px;
      filter: grayscale(100%);
      transition: filter 0.3s, transform 0.3s;
    }

    .sponsors img:hover {
      filter: grayscale(0%);
      transform: scale(1.1);
    }

    /* Footer moderno */
    footer {
      background: #0d1b2a;
      text-align: center;
      padding: 1.5rem;
      font-size: 0.9rem;
    }


    .panel-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 1rem;
  gap: 1rem;
}

section {
  background: #3a1010;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 100%;
}

form input, form select, form button {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form button {
  background: #FF6B35;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background: #ff8e61;
}