/* Fuente local */
@font-face {
  font-family: 'LigaFont';
  src: url('fonts/LigaFont-Regular.woff2') format('woff2'),
       url('fonts/LigaFont-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: 'LigaFont', Arial, sans-serif;
  background-color: #8B0000; /* rojo oscuro */
  color: #fff;
  line-height: 1.5;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #8B0000;
  border-bottom: 2px solid #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 50px;
}

header .menu {
  position: relative;
}

header .menu img {
  height: 35px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

header .menu img:hover {
  transform: scale(1.1);
}

header nav.dropdown {
  display: none;
  position: absolute;
  top: 45px;
  background-color: #8B0000;
  border: 1px solid #fff;
  padding: 10px;
  border-radius: 5px;
  animation: fadeIn 0.3s ease forwards;
}

header nav.dropdown ul {
  list-style: none;
}

header nav.dropdown ul li {
  margin: 5px 0;
  position: relative;
}

header nav.dropdown ul li ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #8B0000;
  padding: 5px;
  border: 1px solid #fff;
  border-radius: 5px;
}

header nav.dropdown ul li:hover ul {
  display: block;
}

/* Buscador Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.search-modal-content {
  background-color: #700000;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.search-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.search-modal input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-family: 'LigaFont', Arial, sans-serif;
  font-size: 16px;
  margin-bottom: 15px;
}

.search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

/* Noticias */
.news {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.news-item {
  background-color: #700000;
  border: 2px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid #fff;
}

.news-text {
  padding: 10px;
}

.news-text h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.news-text p {
  font-size: 14px;
}

/* Tabla de posiciones */
.standings {
  padding: 20px;
}

.standings h2 {
  text-align: center;
  margin-bottom: 20px;
}

.zone {
  margin-bottom: 20px;
  overflow-x: auto;
  animation: fadeIn 0.5s ease;
}

.zone table {
  width: 100%;
  border-collapse: collapse;
  background-color: #700000;
}

.zone th, .zone td {
  padding: 8px;
  text-align: center;
  border: 1px solid #fff;
}

.zone td img {
  width: 30px;
  vertical-align: middle;
  margin-right: 5px;
}

.zone tr.top {
  background-color: #FF4500; /* posiciones top */
}

.zone tr.middle {
  background-color: #FFA500; /* posiciones media */
}

.zone tr.bottom {
  background-color: #DC143C; /* posiciones descenso */
}

/* Carrusel de logos */
.carousel {
  overflow: hidden;
  padding: 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 2px solid #fff;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Botón de tickets */
.tickets {
  text-align: center;
  padding: 20px;
}

.tickets img {
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.tickets img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #8B0000;
  padding: 20px;
  text-align: center;
  border-top: 2px solid #fff;
}

footer .footer-line {
  border-top: 2px solid #fff;
  margin-bottom: 10px;
}

footer .sponsors, footer .socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

footer .sponsors img, footer .socials img {
  height: 50px;
  cursor: pointer;
}

/* Animaciones generales */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}