/* ===== Global ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 2rem;
  background-color: #f4f4f4;
  color: #333;
}

a {
  transition: 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* ===== Header ===== */
header {
  background-color: #6c9a7d; /* verde salvia */
  color: #fff;
  padding: 1rem 2rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-img {
  height: 60px;
  width: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

/* ===== Navbar ===== */
nav {
  background-color: #c08a2e; /* dorado */
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  position: relative;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0 1rem;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
}

.language-switcher {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
}

.language-switcher a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ===== Container & Content ===== */
.container {
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  padding: 2rem 0;
}

.content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4 {
  color: #555;
}

/* ===== Ligas - Grilla ===== */
.leagues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dos columnas */
  gap: 2rem;
  margin-top: 2rem;
}

.leagues-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.league-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.league-icon {
  font-size: 1.5rem;
}

.league-card {
  background-color: #fff3e6;
  border-left: 4px solid #f7b55d;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.league-card strong {
  display: block;
  margin-bottom: 5px;
  color: #c08a2e;
}

.league-card p {
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.league-card a {
  display: inline-block;
  margin-top: 10px;
  color: #6c9a7d;
  font-weight: bold;
  text-decoration: none;
}

.league-card a:hover {
  text-decoration: underline;
}

/* ===== Noticias ===== */
.news-item {
  background-color: #fffdf9; /* beige muy suave */
  border: 1px solid #e0d6c8;
  border-left: 6px solid #c08a2e; /* dorado */
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #6c6c6c;
}

.news-category {
  font-weight: bold;
  color: #6c9a7d; /* verde salvia */
  background-color: #eef4f0;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.news-date {
  font-style: italic;
  color: #888;
}

.news-item h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #444;
}

.news-item p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #333;
}

.news-source {
  font-size: 0.9rem;
  color: #6c9a7d;
}

.news-source a {
  color: #6c9a7d;
  font-weight: bold;
  text-decoration: none;
}

.news-source a:hover {
  text-decoration: underline;
}
/* ===== Eventos ===== */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-card {
  background-color: #fffdf9;
  border-left: 6px solid;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

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

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.event-header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.event-icon {
  font-size: 1.4rem;
}

.event-details {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Variantes de color por tipo de evento */
.event-card.international {
  border-left-color: #6c9a7d;
}

.event-card.international h4,
.event-card.international .event-details strong {
  color: #6c9a7d;
}

.event-card.national {
  border-left-color: #c08a2e;
}

.event-card.national h4,
.event-card.national .event-details strong {
  color: #c08a2e;
}

/* ===== Profiles ===== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.profile-card {
  background-color: #fffdf9;
  border: 1px solid #e0d6c8;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.profile-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.profile-card h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.2rem;
  color: #444;
}

.profile-card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.profile-card a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #c08a2e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.profile-card a:hover {
  background-color: #6c9a7d;
}

/* ===== Footer ===== */
footer {
  background-color: #6c9a7d;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  border-top: 2px solid #c08a2e;
  margin-top: 40px;
}

/* ===== Responsive General ===== */
@media (max-width: 900px) {
  .leagues-grid {
    grid-template-columns: 1fr; /* una columna en pantallas chicas */
  }

  .logo-img {
    height: 50px;
  }

  .logo-text {
    font-size: 1.5rem;
  }
}

/* ===== Responsive Tablet (601px a 900px) ===== */
@media (min-width: 601px) and (max-width: 900px) {
  nav {
    padding: 0.4rem 0;
  }

  nav a {
    padding: 0 0.8rem;
    font-size: 0.95rem;
  }

  .logo-img {
    height: 65px;
    position: static;
    transform: none;
    margin: 0 auto;
    display: block;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .logo-text {
    font-size: 1.6rem;
    margin-top: 0.5rem;
    text-align: center;
  }

  .profile-card img {
    width: 100px;
    height: 100px;
  }

  .calendar-container {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

/* ===== Responsive Mobile (≤600px) ===== */
@media (max-width: 600px) {
  /* Header: logo arriba, luego navbar */
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  .header-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Logo más grande y centrado */
  .logo-img {
    height: 70px;
    margin: 0 auto;
    display: block;
    position: static;
    transform: none;
  }

  /* Nombre de la página debajo del logo */
  .logo-text {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Navbar en columna, un enlace por línea */
  nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.3rem 0;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 0.6rem 0;
    margin-bottom: 0.3rem;
  }

  /* Idioma en la misma línea (más chico que nav) */
  .language-switcher {
    position: static;
    margin: 0.5rem auto 0 auto;
    display: inline-flex;
    gap: 0.5rem;
  }
  .language-switcher a {
    color: #fff; /* blanco */
  }

  /* Foto de perfil más chica */
  .profile-card img {
    width: 90px;
    height: 90px;
  }

  /* Botones de perfiles más grandes y cómodos */
  .profile-card a {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    padding: 0.8rem 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* ===== Calendario: solo cambios para achicar espacio debajo ===== */
  .calendar-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    margin: 0 auto 10px; /* margen inferior reducido */
    height: auto;        /* evita que el contenedor reserve espacio extra */
  }

  .calendar-container table {
    width: 100%;         /* tabla ocupa todo el contenedor */
    font-size: 0.8rem;   /* reduce el tamaño del contenido */
  }

  .calendar-container th,
  .calendar-container td {
    padding: 4px 6px;    /* achica celdas para que todo quede más compacto */
  }

  .calendar-container thead th {
    font-size: 0.85rem;  /* encabezados más pequeños */
  }
}
/* ===== Responsive Mobile (≤600px) ===== */
@media (max-width: 600px) {
  /* Header: logo arriba, luego navbar */
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  .header-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Logo más grande y centrado */
  .logo-img {
    height: 70px;
    margin: 0 auto;
    display: block;
    position: static;
    transform: none;
  }

  /* Nombre de la página debajo del logo */
  .logo-text {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Navbar en columna, un enlace por línea */
  nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.3rem 0;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 0.6rem 0;
    margin-bottom: 0.3rem;
  }

  /* Idioma en la misma línea (más chico que nav) */
  .language-switcher {
    position: static;
    margin: 0.5rem auto 0 auto;
    display: inline-flex;
    gap: 0.5rem;
  }
  .language-switcher a {
    color: #fff; /* blanco */
  }

  /* Foto de perfil más chica */
  .profile-card img {
    width: 90px;
    height: 90px;
  }

  /* Botones de perfiles más grandes y cómodos */
  .profile-card a {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    padding: 0.8rem 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* ===== Calendario: solo cambios para achicar espacio debajo ===== */
  .calendar-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    margin: 0 auto 10px; /* margen inferior reducido */
    height: auto;        /* evita que el contenedor reserve espacio extra */
  }

  .calendar-container table {
    width: 100%;         /* tabla ocupa todo el contenedor */
    font-size: 0.8rem;   /* reduce el tamaño del contenido */
  }

  .calendar-container th,
  .calendar-container td {
    padding: 4px 6px;    /* achica celdas para que todo quede más compacto */
  }

  .calendar-container thead th {
    font-size: 0.85rem;  /* encabezados más pequeños */
  }
}
