html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: linear-gradient(-45deg, black 0%, black 48%, yellow 50%, black 52%, black 100%);
  background-size: 400% 400%;
  animation: animateGradient 6s linear infinite;
}

html1::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, black 0%, black 48%, yellow 50%, black 52%, black 100%);
  background-size: 400% 400%;
  animation: animateGradient 6s linear infinite;
  filter: blur(30px);
  z-index: -1;
}

/* Estilos de íconos personalizados con PNG */
.menu-container {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

.menu {
  display: flex;
  gap: 10px;
}

.menu span {
  display: inline-block;
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Asignación de imágenes específicas */
.home { background-image: url('./Iconos/home.png'); }
.cur { background-image: url('./Iconos/cursos.png'); }
.ben { background-image: url('./Iconos/beneficios.png'); }
.con { background-image: url('./Iconos/contacto.png'); }
.ser { background-image: url('./Iconos/servicios.png'); }
.soc { background-image: url('./Iconos/socio.png'); }
.gal { background-image: url('./Iconos/galeria.png'); }
.com { 
  display: inline-block;
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
  cursor: pointer;
  background-image: url('./Iconos/compra_libro.png'); 
}

.menu span:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px yellow;
}

/* 🔥 Menú hamburguesa ajustado */
.menu-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: yellow;
}

#menu-toggle {
  display: none;
}

.menu-container label {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: yellow;
}

@media (max-width: 600px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #222;
    padding: 10px;
    border-radius: 8px;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu-icon {
    display: inline-block;
  }

  .menu-container label {
    display: inline-block;
    padding: 10px;
  }
}

/* Fondo y estructura */
body {
  font-family: sans-serif;
  background-color: transparent;
  color: #fff;
  background-image: url('Imagenes/ArmyDriver.png'), url('Imagenes/logo.png'), url('Imagenes/fondo.png');
  background-size: 40vw, 20vw, contain;
  background-position:
    calc(100% - 40px) calc(0% + 40px),
    calc(0% + 40px) calc(100% - 40px),
    center center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  overflow: hidden;
}

@media (orientation: portrait) {
  body {
    background-size: 20vw, 20vw, 80vw auto;
  }
}

@media (orientation: landscape) {
  body {
    background-size: 20vw, 20vh, auto 80vh;
  }
}

/* Transiciones */
.fade {
  transition: opacity 1.5s ease, transform 1.5s ease;
  opacity: 1;
  transform: scale(1);
}

.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Bordes con efecto neón */
.border {
  position: fixed;
  z-index: 1;
  background: linear-gradient(to right, yellow, black);
  background-size: 200% 100%;
  animation: move 4s linear infinite;
}

.top { top: 0; left: 0; width: 100%; height: 8px; }
.bottom { bottom: 0; left: 0; width: 100%; height: 8px; transform: rotate(180deg); }
.right { top: 0; right: 0; width: 8px; height: 100%; background: linear-gradient(to bottom, yellow, black); }
.left { top: 0; left: 0; width: 8px; height: 100%; background: linear-gradient(to bottom, yellow, black); transform: rotate(180deg); }

@keyframes move {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes animateGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Menú lateral derecho */
.sidebar {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.sidebar .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar .icon-btn i {
  font-size: 20px;
  olor: white;
}

.sidebar .facebook i { color: #3b5998; }
.sidebar .twitter i { color: #1da1f2; }
.sidebar .instagram i { color: #e4405f; }
.sidebar .linkedin i { color: #0077b5; }
.sidebar .whatsapp i { color: #25d366; }
.sidebar .email i { color: #ffc107; }

.sidebar .icon-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px yellow;
  background-color: rgba(255,255,255,0.4);
}

/* Scroll personalizado */
.content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.5;
  position: absolute;
  top: 80px;
  left: 80px;
  right: 80px;
  bottom: 40px;
  overflow-y: auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  box-shadow: inset 0px 0px 20px #ff0;
  z-index: 10;
}

@media (max-width: 768px) {
  .content {
    top: 60px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

.content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 0, 0.6) transparent;
}

.content::-webkit-scrollbar {
  width: 12px;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 0, 0.6);
  border-radius: 10px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
  transition: background 0.3s ease;
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 0, 0.9);
  box-shadow: 0 0 12px rgba(255, 255, 0, 1);
}




.curso-titulo {
  font-size: 28px;
  color: yellow;
}

.curso-seccion {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.curso-seccion h3 {
  font-size: 22px;
  color: #ffc107;
}

.curso-seccion ul {
  list-style: none;
  padding: 0;
}

.curso-seccion li {
  font-size: 18px;
  padding: 6px 0;
}

.btn-inscripcion {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: yellow;
  color: black;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-inscripcion:hover {
  background: #ffcc00;
  box-shadow: 0 0 8px yellow;
}

.curso-galeria {
  margin-top: 30px;
}

.imagen-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.imagen-container img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
}
.curso-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 10px;
  box-shadow: inset 0px 0px 20px yellow;
}

.curso-titulo {
  font-size: 28px;
  color: yellow;
}

.curso-seccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

/* 🔄 Alternar posición de imágenes */
.curso-flex {
  display: flex;
  flex-direction: row;
}

.derecha .curso-imagen {
  order: 2;
}

.derecha .curso-texto {
  order: 1;
}

.izquierda .curso-imagen {
  order: 1;
}

.izquierda .curso-texto {
  order: 2;
}

.curso-texto {
  flex: 1;
  padding: 15px;
}

.curso-texto h3 {
  font-size: 22px;
  color: #ffc107;
}

.curso-texto ul {
  list-style: none;
  padding: 0;
}

.curso-texto li {
  font-size: 18px;
  padding: 6px 0;
}

.curso-imagen {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.curso-imagen img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
}

/* 🏗️ Responsividad para móviles */
@media (max-width: 768px) {
  .curso-flex {
    flex-direction: column;
    text-align: center;
  }

  .curso-imagen {
    order: -1;
    margin-bottom: 15px;
  }
}

  .beneficios-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  /* 📌 Texto ocupa la izquierda con desplazamiento automático */
  .beneficios-texto {
    flex: 1;
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 400px;
  }

  /* 📌 Slider ocupa la derecha con desplazamiento automático */
  .beneficios-slider {
    flex: 0 0 320px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  /* 🔄 Imágenes dentro del slider */
  .imagen-container img {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* 📌 Modal fixeado con imagen adaptada */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
  }

  .modal-contenido {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }

  .cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: #fff;
  }

  /* 📱 Responsivo: Slider debajo del texto en móviles */
  @media (max-width: 768px) {
    .beneficios-flex {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .beneficios-slider {
      width: 100%;
      height: auto;
      overflow-x: auto;
      flex-direction: row;
    }

    .imagen-container {
      flex-direction: row;
      justify-content: center;
    }



    .imagen-container img {
      max-width: 100px;
    }
  }

  .servicios-titulo {
    font-size: 28px;
    color: yellow;
    text-align: center;
    width: 100%;
  }

  .servicios-texto h3 {
    color: yellow;
    margin-top: 20px;
  }

  .servicios-img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin: 10px auto;
    box-shadow: 0 0 10px #ff0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* 📌 Modal fixeado con imagen adaptada */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
  }

  .modal-contenido {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }

  .cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: #fff;
  }

  /* 📱 Responsivo: Ajusta el tamaño de texto e imágenes */
  @media (max-width: 768px) {
    .servicios-texto {
      font-size: 16px;
      max-height: auto;
    }

    .servicios-texto img {
      max-width: 100%;
    }
  }



    .contacto-titulo {
    font-size: 28px;
    color: yellow;
    text-align: center;
  }

  .contacto-texto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .contacto-texto label {
    font-size: 16px;
  }

  .contacto-texto input,
  .contacto-texto textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
  }

  .contacto-texto button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: yellow;
    color: black;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .contacto-texto button:hover {
    transform: scale(1.1);
  }

  .contacto-info p {
    margin-top: 15px;
  }

  /* 📱 Responsivo */
  @media (max-width: 768px) {
    .contacto-container {
      width: 90%;
    }
  }

        .gallery-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            border: 2px solid #ff0;
            box-shadow: 0 0 20px #ff0;
            border-radius: 20px;
            justify-content: center; /* Center items horizontally */
        }

        .gallery-grid img.thumbnail {
            width: 150px;
            height: 150px;
            border: 5px solid transparent;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(255, 255, 0, 0.5), 0 0 15px rgba(255, 255, 0, 0.2);
            cursor: pointer;
            transition: transform 0.2s ease, filter 0.2s ease;
            object-fit: cover; /* Ensure thumbnails maintain aspect ratio */
        }

        .gallery-grid img.thumbnail:hover {
            transform: scale(1.05);
            filter: brightness(1.2);
        }

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw; /* Full browser window width */
            height: 100vh; /* Full browser window height */
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
        }

        .modal-image {
            max-width: 100vw; /* Scale to viewport width */
            max-height: 100vh; /* Scale to viewport height */
            object-fit: contain; /* Maintain aspect ratio without cropping */
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
            display: block;
            margin: auto; /* Center image in modal */
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Center precisely */
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 30px;
            color: #ff0;
            cursor: pointer;
            text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
            z-index: 1001; /* Ensure close button is above image */
        }

        /* Responsive adjustments for thumbnails */
        @media (max-width: 768px) {
            .gallery-grid img.thumbnail {
                width: 120px;
                height: 120px;
            }
        }

        @media (max-width: 480px) {
            .gallery-grid img.thumbnail {
                width: 80px;
                height: 80px;
            }
        }

      .carousel-container {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        ax-width: 1200px;
        margin: 0px auto;
        overflow: hidden;
        position: relative;
        perspective: 1000px;
        border:2px solid #ff0;
        box-shadow: 0 0 20px #ff0;
        border-radius: 20px;
        z-index: 100;
      }

    .carousel {
        display: flex;
        width: calc(220px * 29 * 2); /* 200px + 10px margin por lado */
        animation: slide 75.4s linear infinite;
    }

    .carousel img {
        width: 200px;
        height: 200px;
        border-radius: 25px;
        transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
        margin: 0 10px;
        border: 5px solid transparent;
        background: linear-gradient(45deg, #FFC107, #4CAF50, #2196F3, #F44336) border-box;
        background-size: 400%;
        animation: gradientBorder 8s linear infinite;
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5), 0 0 20px rgba(255, 193, 7, 0.2);
    }

    /* Efecto hover opcional */
    .carousel img:hover {
        filter: brightness(1.2);
        transform: scale(1.05) !important; /* Prioriza sobre jQuery */
    }

    @keyframes gradientBorder {
        0% {
            background-position: 0% 50%;
        }
        100% {
            background-position: 400% 50%;
        }
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .carousel img {
            width: 150px;
            height: 150px;
            margin: 0 7.5px;
        }
        .carousel {
            width: calc(165px * 29 * 2); /* 150px + 7.5px margin por lado */
        }
    }

    @media (max-width: 480px) {
        .carousel img {
            width: 100px;
            height: 100px;
            margin: 0 5px;
        }
        .carousel {
            width: calc(110px * 29 * 2); /* 100px + 5px margin por lado */
        }
    }

    .galeria-imagenes-vertical {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 20px 0;
    }

    .galeria-imagenes-vertical img {
        width: 100%;
        max-width: 600px;
        height: 60px;
        object-fit: cover; /* recorte preciso para mantener estética */
        border-radius: 6px;
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
    }
    @media (max-width: 768px) {
        .galeria-imagenes-vertical img {
            max-width: 90%;
            height: 40px;
        }
    }
    @media (max-width: 480px) {
        .galeria-imagenes-vertical img {
            max-width: 95%;
            height: 20px;
        }
    }

    empresa table{
      background-color: rgba(0,0,0,0.4);
      margin-top: 15px;
      border-radius: 20px; 
      margin-left: 0.5%; 
      padding: 10px; 
      box-shadow: inset 0px 0px 10px #ff0;
    }