
   /* ==============================
   RESET Y TIPOGRAFÍA
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f5f6fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ==============================
   HEADER
============================== */
.page-header {
  background: #1a252f; /* Dark background like Sportland */
  color: #fff;
}

.header-top-banner {
  background: #2a3d4f;
  padding: 10px 2rem;
  text-align: center;
  color: #fff;
}

.banner-content {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.banner-button {
  background: #28a745; /* Green button */
  color: #fff;
  padding: 5px 15px;
  border-radius: 4px;
  text-decoration: none;
}

.header-top-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 2rem;
  background: rgba(0, 0, 0, 0.1);
}

.language-select {
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
}

.shopping-cart-button {
  position: relative;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  margin: 0 10px;
}

.cart-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff3d00;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
}

.user-account-link {
  color: #fff;
  font-weight: 500;
}
/* ==============================
   Banner superior
============================== */
.header-top-banner {
  background-color: #0d223d; /* tono azul oscuro */
  color: white;
  padding: 6px 20px;
}

.banner-content {
  display: flex;
  justify-content: space-between; /* 🔹 texto a la izquierda, botón a la derecha */
  align-items: center;
  position: relative;
}

/* ==============================
   Botón de inicio de sesión
============================== */
.login-float-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #404040, #a0a0a0);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.login-float-btn i {
  font-size: 0.9rem;
}

.login-float-btn:hover {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    gap: 4px;
  }

  .login-float-btn {
    align-self: flex-end;
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}




/* HEADER PRINCIPAL */
.header-main-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #23354d;
}

.main-section-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo img.main-logo {
  height: 100px;
  transition: transform 0.3s;
}

.site-logo img.main-logo:hover {
  transform: scale(1.05);
}

.sponsor-logos img {
  height: 40px;
  margin: 0 10px;
  transition: transform 0.3s;
}

.sponsor-logos img:hover {
  transform: scale(1.1);
}



/* NAV */
.header-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #162447;
  padding: 0.5rem 2rem;
}

.main-navigation {
  display: flex;
  gap: 1.5rem;
}

.nav-item a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem;
  transition: all 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
  color: #28a745; /* Green hover color */
  border-bottom: 2px solid #28a745;
}

.social-media-links .social-link {
  color: #fff;
  margin: 0 5px;
  font-size: 1.2rem;
}

.social-media-links a {
  margin-left: 0.8rem;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.3s;
}

.social-media-links a:hover {
  transform: scale(1.2);
  color: #ff3d00;
}

/* ==============================
   HERO SLIDER
============================== */
.hero-slider {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-slide {
  min-width: 100%;
  height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.slider-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(22,36,71,0.5);
}

.slide-content {
  position: relative;
  color: #fff;
  margin-left: 5%;
  max-width: 40%;
}

.slide-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1s ease forwards;
}

.slide-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease forwards;
}

.slide-button {
  padding: 0.8rem 1.5rem;
  background: #ff3d00;
  border-radius: 50px;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.slide-button:hover {
  background: #ff6b3c;
  transform: translateY(-3px);
}

@keyframes fadeInDown {
  0% {opacity: 0; transform: translateY(-20px);}
  100% {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* SLIDER NAV */
.slider-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: 0 12px;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-nav-button:hover {
  background: rgba(0,0,0,0.6);
}

.slider-nav-button-prev {
  left: 10px;
}

.slider-nav-button-next {
  right: 10px;
}

.slider-pagination {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s;
}

.pagination-dot.active {
  background: #ff3d00;
}

/* ==============================
   DASHBOARD / NOTICIAS
============================== */
.dashboard-section {
  padding: 3rem 2rem;
  background: #f5f6fa;
}

.dashboard-main-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #162447;
}

.noticias-destacadas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;


}

.noticia-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.noticia-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.noticia-info {
  padding: 1rem;
}

.noticia-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #162447;
}

.noticia-info p {
  font-size: 0.9rem;
  color: #555;
}

/* BOTÓN REFRESCAR */
.data-refresh-button {
  display: block;
  margin: 1rem auto 2rem auto;
  padding: 0.8rem 2rem;
  background: #162447;
  color: #fff;
  font-weight: 500;
  border-radius: 50px;
  transition: background 0.3s, transform 0.3s;
}

.data-refresh-button:hover {
  background: #1e3c72;
  transform: translateY(-3px);
}

/* DATA DISPLAY AREA */
.data-display-area {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* ==============================
   FOOTER
============================== */
.page-footer {
  background: #162447;
  color: #fff;
  padding: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-about p,
.footer-contact-info p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-rights a {
  color: #ff3d00;
  font-weight: 500;
}

/* GALERÍA */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.2);
}
.header-news-carousel {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    gap: 2rem; /* separación entre noticias */
}

.news-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0; /* evita que se encoja */
}
/* Tabla estilo profesional de deportes */
.data-table.sports-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    margin-bottom: 1rem;
}

.data-table.sports-table thead {
    background-color: #111827;
    color: #ffffff;
    text-align: left;
}

.data-table.sports-table th,
.data-table.sports-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-table.sports-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}

.data-table.sports-table tbody tr:hover {
    background-color: rgba(59,130,246,0.1);
}

.data-table.sports-table .table-header {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* ======== Ajuste Responsive para móviles ======== */
@media (max-width: 768px) {
  /* Contenedor para scroll horizontal */
  .data-display-area {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Evita que la tabla se achique demasiado */
  .data-table.sports-table {
    min-width: 600px;
  }

  /* Texto más compacto */
  .data-table.sports-table th,
  .data-table.sports-table td {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}


/* ==============================
   MEDIA QUERIES RESPONSIVE
============================== */

/* 📱 Teléfonos (pantallas pequeñas < 576px) */
@media (max-width: 576px) {
  .site-logo img.main-logo {
    height: 60px;
  }

  .main-section-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .sponsor-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .search-bar {
    width: 100%;
    margin-top: 10px;
  }

  .slide-title {
    font-size: 1.8rem;
  }

  .slide-subtitle {
    font-size: 1rem;
  }

  .noticia-card img {
    height: 220px; /* más bajo en móvil */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* 📲 Tablets (entre 577px y 992px) */
@media (min-width: 577px) and (max-width: 992px) {
  .site-logo img.main-logo {
    height: 80px;
  }

  .main-section-content {
    flex-direction: column;
    gap: 1rem;
  }

  .slide-title {
    font-size: 2.2rem;
  }

  .slide-subtitle {
    font-size: 1.2rem;
  }

  .noticia-card img {
    height: 300px;
  }
}

/* 💻 Laptops y pantallas grandes (> 993px) */
@media (min-width: 993px) {
  .main-section-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .slide-title {
    font-size: 3rem;
  }

  .slide-subtitle {
    font-size: 1.5rem;
  }
}
