    /* RESET & BOX-SIZING */
    *, *::before, *::after {
      box-sizing: border-box;
    }
    html, body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
    }

    body {
      font-family: Arial, sans-serif;
      background: #fff;
      color: #333;
    }

    
/* Header global */
header {
  width: 100%;
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  z-index: 100;
}
.logo img { display: block; }
.nav-menu { position: relative; }
.menu-btn {
  background: #e0e0e0;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}
.dropdown {
  display: none;
  position: absolute;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-top: 0.5rem;
}
.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
}


    /* SECTION certificaciones */
    #certificaciones {
      padding: 60px 20px;
      max-width: 1200px;
      margin: 0 auto;
    }
    #certificaciones h2 {
      text-align: center;
      margin-bottom: 40px;
      font-size: 2rem;
    }

    /* Estilos texto descriptivo certificaciones */
.descripcion-certificaciones {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  text-align: center;
  font-style: normal;
  font-weight: 400;
  padding: 0 15px;
  user-select: text;
}


    .video-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }
    .video-item {
      background: #f9f9f9;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
    }
    .video-item iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      border: none;
    }
    .video-item h3 {
      font-size: 1rem;
      margin: 12px;
      color: #222;
      flex-grow: 1;
    }


/* Footer global */
.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;
}

/* ==================== ESTILOS RESPONSIVE FINALES ==================== */

/* Responsive: logo y botón en la misma línea en móviles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo img {
    max-width: 180px;
    height: auto;
  }

  .nav-menu {
    width: 100%;
    position: relative;
    margin-top: 0.5rem;
  }

  .menu-btn {
    display: block;
    font-size: 1.8rem;
    background: #e0e0e0;
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: none;
    font-weight: bold;
  }

  .dropdown {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    background-color: #111;
    box-shadow: none;
    border-radius: 0;
    display: none;
  }

  .dropdown a {
    color: #fff;
    padding: 0.9rem 1rem;
    border-top: 1px solid #222;
  }

  .dropdown a:hover {
    background-color: #222;
  }

  .dropdown.show {
    display: block;
  }
}

/* Responsive sección certificaciones */
@media (max-width: 480px) {
  #certificaciones {
    padding: 40px 16px;
  }

  #certificaciones h2 {
    font-size: 1.5rem;
  }

  .video-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-item h3 {
    font-size: 0.95rem;
    margin: 10px;
    text-align: center;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  #certificaciones {
    padding: 50px 24px;
  }

  .video-gallery {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .video-item h3 {
    font-size: 1rem;
  }
}

/* Responsive footer */
@media (max-width: 600px) {
  .footer {
    height: auto;
    line-height: 1.6;
    padding: 20px 12px;
    text-align: center;
  }

  .footer p {
    font-size: 12px;
    line-height: 1.4;
  }
}
/* ==================== RESPONSIVE HEADER FIX ==================== */

@media (max-width: 768px) {
  header {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .logo {
    flex-shrink: 1;
  }

  .logo img {
    max-width: 170px;
    height: auto;
  }

  .nav-menu {
    flex-shrink: 0;
    position: relative;
  }

  .menu-btn {
    display: block;
    font-size: 1.8rem;
    background: #e0e0e0;
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: none;
    font-weight: bold;
  }

  .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: #111;
    border-radius: 6px;
    width: 180px;
    display: none;
    z-index: 999;
  }

  .dropdown a {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    border-top: 1px solid #222;
  }

  .dropdown a:hover {
    background-color: #222;
  }

  .dropdown.show {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    margin-left: 100px; /* Espacio entre logo y hamburguesa */
  }

  .menu-btn {
    margin-left: 0; /* Puedes ajustar esto si el botón en sí necesita espacio interno */
  }
}

@media (max-width: 480px) {
  .descripcion-certificaciones {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 12px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .descripcion-certificaciones {
    font-size: 1.05rem;
    margin-bottom: 35px;
    padding: 0 15px;
  }
}

@media (min-width: 769px) {
  .descripcion-certificaciones {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }
}
