/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding: 0;
    margin: 0;
  }
  
  header {
    background: #4b6cb7;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative; /* Para posicionar el ícono del menú */
  }
  
  header img {
    width: 100px;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
  }

  img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
  }
  
  header h1 {
    margin: 10px 0;
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
    padding: 0 20px;
  }
  
  nav {
    background: #333;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    flex-wrap: wrap;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    margin: 5px 10px;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-align: center;
  }
  
  nav a:hover {
    background: #555;
  }
  
  .container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  h2 {
    color: #4b6cb7;
    margin-bottom: 20px;
  }
  
  .info-box {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .info-box p {
    margin: 10px 0;
  }

  .info-box ul, .info-box ol {
    margin: 10px 0;
    padding-left: 20px;
  }

  .info-box li {
    margin: 5px 0;
  }

  /* Estilos para tablas */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
  }
  
  table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
  }
  
  table th {
    background-color: #4b6cb7;
    color: white;
  }
  
  table tr:nth-child(even) {
    background-color: #f2f2f2;
  }

  table tr:hover {
    background-color: #ddd;
  }
  
  footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
  }

  footer p {
    margin: 5px 0;
  }

  footer a {
    color: #ccc;
    text-decoration: none;
  }

  footer a:hover {
    color: white;
  }
  
  /* WhatsApp Button */
  .whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0eb14a;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .whatsapp-button:hover {
    transform: scale(1.1);
  }
  
  .whatsapp-button img {
    width: 30px;
    height: 30px;
  }

  /* Ocultar el menú hamburguesa por defecto en escritorio */
  .hamburger-menu {
    display: none;
  }
  
  /* Responsive Design - Mobile Portrait */
  @media (max-width: 576px) {
    header {
      position: relative; /* Asegura que el header tenga posición relativa */
    }
    
    header h1 {
      font-size: 1.5rem;
    }
  
    header p {
      font-size: 0.9rem;
    }
  
    /* Navigation - CORREGIDO: ahora el menú se abre debajo del header */
    nav {
      display: none; /* Ocultar el menú por defecto */
      flex-direction: column;
      align-items: center;
      background: #333;
      position: absolute;
      top: 100%; /* Esto asegura que el menú aparezca justo debajo del header */
      left: 0;
      width: 100%;
      z-index: 999; /* Valor alto para asegurar que esté por encima de otros elementos */
      padding: 0;
    }
  
    nav.active {
      display: flex; /* Mostrar el menú cuando tenga la clase "active" */
    }
  
    nav a {
      margin: 0;
      padding: 12px 0;
      width: 100%;
      text-align: center;
      border-radius: 0;
      border-bottom: 1px solid #444;
    }
    
    nav a:last-child {
      border-bottom: none;
    }
  
    /* Hamburger Menu */
    .hamburger-menu {
      display: block;
      position: absolute;
      top: 20px;
      right: 20px;
      cursor: pointer;
      font-size: 2rem;
      color: white;
      z-index: 1001;
    }
  
    /* Container */
    .container {
      padding: 15px;
      margin: 10px;
    }

    /* Tabla responsive */
    table, table td, table th {
      font-size: 0.8rem;
    }

    .info-box {
      padding: 15px;
    }
  }
  
  /* Mobile Landscape */
  @media (min-width: 577px) and (max-width: 767px) {
    header {
      padding: 15px 0;
      position: relative;
    }
    
    header h1 {
      font-size: 1.6rem;
    }
    
    /* Navigation - CORREGIDO: mismo ajuste para landscape */
    nav {
      display: none;
      flex-direction: column;
      background: #333;
      position: absolute;
      top: 100%; /* Posiciona justo debajo del header */
      left: 0;
      width: 100%;
      z-index: 999;
      padding: 0;
    }
    
    nav.active {
      display: flex;
    }
    
    nav a {
      margin: 0;
      padding: 10px 0;
      width: 100%;
      text-align: center;
      border-radius: 0;
      border-bottom: 1px solid #444;
    }
    
    nav a:last-child {
      border-bottom: none;
    }
    
    /* Hamburger Menu */
    .hamburger-menu {
      display: block;
      position: absolute;
      top: 15px;
      right: 15px;
      cursor: pointer;
      font-size: 2rem;
      color: white;
      z-index: 1001;
    }
    
    table {
      font-size: 0.9rem;
    }
  }
  
  /* Tablet Portrait */
  @media (min-width: 768px) and (max-width: 991px) {
    nav {
      flex-wrap: wrap;
    }
    
    nav a {
      margin: 5px;
      font-size: 0.9rem;
    }
    
    .container {
      padding: 15px;
      margin: 15px;
    }
  }
  
  /* Tablet Landscape */
  @media (min-width: 992px) and (max-width: 1199px) {
    nav {
      flex-wrap: wrap;
    }
    
    .container {
      max-width: 90%;
    }
  }
  
  /* Desktop */
  @media (min-width: 1200px) {
    .container {
      max-width: 1140px;
    }
  }
  
  /* Orientación específica para dispositivos móviles */
  @media (max-width: 767px) and (orientation: landscape) {
    header {
      padding: 10px 0;
      position: relative;
    }
    
    header img {
      width: 60px;
    }
    
    header h1 {
      font-size: 1.3rem;
      margin: 5px 0;
    }
    
    header p {
      font-size: 0.8rem;
      padding: 0 10px;
    }
    
    nav {
      top: 100%; /* Asegura que el menú aparezca debajo del header en landscape */
    }
    
    nav a {
      padding: 8px 0;
    }
    
    .container {
      margin: 10px;
      padding: 10px;
    }
    
    .info-box {
      padding: 10px;
    }
  }