/* ========================================================= */
/* --- FIX GLOBAL ANTI SCROLL (NO VISUAL) --- */
/* ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ========================================================= */
/* --- ESTILOS GENERALES --- */
/* ========================================================= */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f9;
  color: #333;
}

/* ========================================================= */
/* --- ENCABEZADO --- */
/* ========================================================= */

header {
  background-color: #1a2a47;
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.2em;
}

/* ========================================================= */
/* --- NAVEGACIÓN --- */
/* ========================================================= */

nav {
  background-color: #2b4162;
  padding: 10px 0;
  text-align: center;
}

.dropbtn {
  background-color: #4a6fa5;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.dropbtn:hover,
.dropbtn:focus {
  background-color: #3a5b8f;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 10;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.show {
  display: block;
}

/* ========================================================= */
/* --- CONTENEDOR PRINCIPAL --- */
/* ========================================================= */

.container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  margin: 25px auto;
  padding: 0 20px;
}

/* ========================================================= */
/* --- SIDEBAR --- */
/* ========================================================= */

.sidebar {
  width: 880px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-right: 25px;
  height: fit-content;
  max-width: 100%;
}

.sidebar h2 {
  color: #4a6fa5;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-top: 0;
}

.sidebar-section {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 3px solid #1a2a47;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.sidebar-section h3 {
  margin-top: 0;
  color: #1a2a47;
  font-size: 1.1em;
}

/* ========================================================= */
/* --- CONTENIDO PRINCIPAL --- */
/* ========================================================= */

.main-content {
  flex-grow: 1;
  min-width: 0;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 100%;
}

.main-content h2 {
  color: #1a2a47;
  margin-top: 0;
  margin-bottom: 20px;
}

/* ========================================================= */
/* --- ARTÍCULOS --- */
/* ========================================================= */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 100%;
}

.article-card {
  background-color: #eaf1f7;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card h3 {
  color: #2b4162;
  margin-top: 0;
}

.article-card a {
  display: inline-block;
  margin-top: 10px;
  color: #4a6fa5;
  font-weight: bold;
}

/* ========================================================= */
/* --- RANKING --- */
/* ========================================================= */

.ranking-section {
  padding: 25px 20px;
  background-color: #f0f3f6;
  border-radius: 8px;
  margin-top: 30px;
}

.ranking-section h2 {
  color: #1a2a47;
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 25px;
}

.ranking-grid {
  display: flex;
  gap: 20px;
  max-width: 100%;
}


.ranking-sport {
  flex: 1;
  min-width: 0;
  border: 1px solid #c0c6cc;
  border-radius: 6px;
  background-color: #ffffff;

  overflow-x: auto; 
}

.ranking-sport h3 {
  color: #4a6fa5;
  text-align: center;
  padding: 12px 0;
  margin: 0;
  background-color: #eaf1f7;
  min-width: 600px; 
  display: block;   
}

.ranking-table {
  width: 100%;
  min-width: 600px; 
  border-collapse: collapse;
}


.ranking-table th,
.ranking-table td {
  padding: 10px 5px;
  text-align: center;
  font-size: 0.85em;
}

.Tips h3{
  text-align: center;
}
.tres-columnas-Tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.col-Tips {
  background: #f2f2f2;
  padding: 15px;
  border-radius: 8px;
}
 /* --- SECCIÓN DE CONTACTO --- */
    .contact-footer {
      margin-top: 50px;
      background: var(--color-main);
      color: rgb(13, 13, 13);
      padding: 30px;
      border-radius: 15px;
      text-align: center;
      border-bottom: 5px solid var(--color-secondary);
    }

/* Tipografía moderna */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

.volver {
  display: block;               /* Para poder centrarlo */
  width: fit-content;           /* Ajusta al tamaño del texto */
  margin: 30px auto;            /* Centrado horizontal */
  padding: 12px 28px;

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);

  color: #000;                  /* Texto negro */
  font-family: 'Poppins', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;

  box-shadow:
    4px 4px 10px rgba(0,0,0,0.15),
    -4px -4px 10px rgba(255,255,255,0.6);

  transition: transform 0.2s, box-shadow 0.3s;
}

.volver:hover {
  transform: translateY(-3px);
  box-shadow:
    6px 6px 14px rgba(0,0,0,0.2),
    -6px -6px 14px rgba(255,255,255,0.7);
}

.volver:active {
  transform: translateY(0);
  box-shadow:
    3px 3px 8px rgba(0,0,0,0.15),
    -3px -3px 8px rgba(255,255,255,0.6);
}



/* ========================================================= */
/* --- MEDIA QUERIES --- */
/* ========================================================= */

@media (max-width: 900px) {
  .ranking-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }
  
  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    order: -1;
  }
  
  .main-content {
    width: 100%;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 1.8em;
  }
}
@media (max-width: 768px) {
  .tres-columnas-Tips {
    grid-template-columns: 1fr;
  }
}
