    /* Reset y variables */
    *, *::before, *::after {
      box-sizing: border-box; margin: 0; padding: 0;
    }
    /* Asegurar que no haya scroll horizontal nunca */
    body, html {
        overflow-x: hidden;
    }
    :root {
      --primary-color: #3a82ee;
      --secondary-color: #029e99;
      --bg-color: #f9f9f9;
      --text-color: #333;
      --header-bg: #000;
      --footer-bg: rgba(12,12,12,0.9);
      --footer-text: #ccc;
    }
    body {
      font-family: Arial, sans-serif;
      background: var(--bg-color);
      color: var(--text-color);
      line-height: 1.5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Header */
    header {
      background: var(--header-bg);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1.5rem;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .logo img {
      width: 250px;
      height: auto;
    }
    .nav-menu {
      position: relative;
    }
    .menu-btn {
      font-size: 1.6rem;
      background: transparent;
      border: none;
      color: white;
      cursor: pointer;
      user-select: none;
    }
    .dropdown {
      display: none;
      position: absolute;
      right: 0;
      background: white;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      overflow: hidden;
      margin-top: 0.5rem;
      min-width: 160px;
    }
    .dropdown a {
      display: block;
      padding: 0.75rem 1rem;
      color: var(--text-color);
      text-decoration: none;
      font-weight: 600;
      transition: background-color 0.3s ease;
    }
    .dropdown a:hover {
      background: var(--primary-color);
      color: white;
    }

    /* Contenedor principal */
    main {
      flex: 1;
      max-width: 960px;
      margin: 2rem auto;
      padding: 0 1rem;
      width: 100%;
    }

    h1 {
      color: var(--primary-color);
      font-size: 2rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    /* Sección de videos */
    .videos-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .video-item {
      background: white;
      border-radius: 8px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.1);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .video-item iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      border: none;
    }
    .video-text {
      padding: 1rem;
    }
    .video-text h4 {
      margin-bottom: 0.4rem;
      color: var(--secondary-color);
    }
    .video-text p {
      font-size: 0.9rem;
      color: #555;
      margin-bottom: 0.6rem;
    }
    .video-text a {
      display: inline-block;
      text-decoration: none;
      color: white;
      background: var(--primary-color);
      padding: 0.5rem 1rem;
      border-radius: 4px;
      font-weight: 600;
      transition: background-color 0.3s ease;
    }
    .video-text a:hover {
      background: var(--secondary-color);
    }

    /* Footer */
    footer.footer {
      background-color: var(--footer-bg);
      height: 60px;
      line-height: 60px;
      text-align: center;
      color: var(--footer-text);
      font-size: 13px;
      font-weight: 300;
      margin-top: auto;
      user-select: none;
    }

    /* Responsive ajustes */
    @media (max-width: 480px) {
      .menu-btn {
        font-size: 1.8rem;
      }
      h1 {
        font-size: 1.6rem;
      }
    }

    /* Responsive ajustes ampliados y optimizados */

@media (max-width: 600px) {
  header {
    padding: 0.5rem 1rem;
  }
  .logo img {
    width: 180px;
  }
  .menu-btn {
    font-size: 2rem;
  }
  main {
    margin: 1.5rem 0.5rem;
    padding: 0;
  }
  h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  .videos-container {
    grid-template-columns: 1fr; /* Una columna en móviles pequeños */
    gap: 1rem;
  }
  .video-text {
    padding: 0.75rem;
  }
  .video-text p {
    font-size: 0.85rem;
  }
  .video-text a {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .logo img {
    width: 210px;
  }
  main {
    margin: 2rem 1rem;
  }
  .videos-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas tablets pequeños */
    gap: 1.25rem;
  }
  h1 {
    font-size: 1.7rem;
  }
  .video-text p {
    font-size: 0.9rem;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .logo img {
    width: 230px;
  }
  main {
    margin: 2.5rem auto;
  }
  .videos-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas tablets grandes y laptops pequeños */
  }
  h1 {
    font-size: 1.9rem;
  }
}

@media (min-width: 1201px) {
  .logo img {
    width: 250px;
  }
  main {
    margin: 3rem auto;
  }
  .videos-container {
    grid-template-columns: repeat(3, 1fr);
  }
  h1 {
    font-size: 2rem;
  }
}

/* Ajuste del menú desplegable para móviles */
@media (max-width: 768px) {
  .dropdown {
    position: fixed;
    top: 60px;
    right: 1rem;
    width: 180px;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 8px;
  }
}
