/* Reset total y protección contra scroll o bordes invisibles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #f4f4f4;
  border: none;
  font-family: 'Arial', sans-serif;
}

    
/* HEADER */
.site-header {
  background: #000;
  padding: 1rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.logo img { max-width: 200px; height: auto; }

/* Botón hamburguesa siempre visible */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  width: 2rem;
  height: 2rem;
  position: relative;
  margin-left: 1rem;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  position: absolute;
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { content: ''; top: -8px; }
.hamburger::after  { content: ''; top: 8px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Menú primario: hidden por defecto, mostrado con .nav-open */
.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 2.2rem;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-direction: column;
  z-index: 1001;
}
.primary-nav.nav-open {
  display: flex;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 5px;
}
.primary-nav a {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

    h1 {
      text-align: center;
      font-size: 2.5em;
      margin-bottom: 30px;
      color: #333;
    }

    .tabla-container {
      display: flex;
      justify-content: center;
      margin-bottom: 40px;
    }

    table {
      width: 90%;
      max-width: 900px;
      border-collapse: collapse;
      background-color: #fff;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-radius: 12px;
      overflow: hidden;
    }

    th, td {
      padding: 15px;
      text-align: center;
      border-bottom: 1px solid #ddd;
    }

    th {
      background-color: #4a90e2;
      color: white;
    }

    /* Contenedores en grid */
    .contenedores {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .seccion {
      border-radius: 12px;
      padding: 25px;
      color: white;
      box-shadow: 0 3px 8px rgba(0,0,0,0.1);
      transition: transform 0.2s;
    }

    .seccion:hover {
      transform: scale(1.02);
    }

    .sabado { background-color: #f39c12; }
    .domingo { background-color: #16a085; }
    .tips { background-color: #8e44ad; }
    .fuentes { background-color: #c0392b; }

    .seccion ul {
      margin-top: 10px;
      padding-left: 20px;
    }

    .seccion a {
      color: #fff;
      text-decoration: underline;
    }

    .footer {
  background-color: rgba(12, 12, 12, 0.9);
  height: 80px;
  line-height: 80px;
  text-align: center;
  width: 100%;
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 300;
}

.footer p a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

  /* ========== Responsive MÓVIL PEQUEÑO (≤ 480px) ========== */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .tabla-container {
    margin-bottom: 20px;
  }
  table {
    width: 100%;
  }
  th, td {
    padding: 8px;
    font-size: 0.8em;
  }
  .contenedores {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .seccion {
    padding: 20px;
    font-size: 0.9em;
  }
}

/* ========== Responsive MÓVIL / PHABLET (481px – 767px) ========== */
@media (min-width: 481px) and (max-width: 767px) {

  h1 {
    font-size: 2em;
    margin-bottom: 25px;
  }
  table {
    width: 100%;
  }
  th, td {
    padding: 10px;
    font-size: 0.9em;
  }
  .contenedores {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .seccion {
    padding: 22px;
    font-size: 1em;
  }
}

/* ========== Responsive TABLET / MINI-LAPTOP (768px – 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {

  h1 {
    font-size: 2.2em;
    margin-bottom: 30px;
  }
  table {
    width: 100%;
    min-width: auto;
  }
  th, td {
    padding: 12px;
    font-size: 1em;
  }
  .contenedores {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .seccion {
    padding: 25px;
    font-size: 1.05em;
  }
}

/* ========== Responsive LAPTOP (1024px – 1439px) ========== */
@media (min-width: 1024px) and (max-width: 1439px) {

  h1 {
    font-size: 2.4em;
    margin-bottom: 35px;
  }
  table {
    width: 90%;
    max-width: 1000px;
  }
  th, td {
    padding: 14px;
    font-size: 1.05em;
  }
  .contenedores {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .seccion {
    padding: 28px;
    font-size: 1.1em;
  }
}

/* ========== Responsive PANTALLA GRANDE (≥ 1440px) ========== */
@media (min-width: 1440px) {

  h1 {
    font-size: 2.6em;
    margin-bottom: 40px;
  }
  table {
    width: 80%;
    max-width: 1200px;
  }
  th, td {
    padding: 16px;
    font-size: 1.1em;
  }
  .contenedores {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .seccion {
    padding: 30px;
    font-size: 1.15em;
  }
}


/* ─── Footer Responsive ─── */
@media (max-width: 768px) {
  .footer {
    height: auto;
    line-height: 1.5;
    padding: 1rem;
  }

  .footer p {
    font-size: 12px;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .footer p {
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
  }
}