/* Menu */
:root {
  --header-height: 3.5rem;

  --white-color: hsl(125, 95%, 47%);
  --black-color: hsl(0, 0%, 0%);

  --body-font: "Montserrat Alternates", sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: .938rem;

  --font-regular: 400;
  --font-medium: 500;

  --z-fixed: 100;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

/* Estilos para el header y navegación */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--black-color);
  z-index: var(--z-fixed);
}

/* Contenedor del nav */
.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 60px;
  width: auto;
  filter: brightness(1.4);
}

/* Red social */
.nav__social {
  display: flex;
  column-gap: 1rem;
}

.nav__social-link {
  color: var(--white-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.nav__social-link:hover {
  transform: translateY(-0.25rem);
}

@media (max-width: 480px) {
  .nav__container {
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;  /* limita el ancho máximo */
    margin: 0 auto;    /* centra horizontalmente */
    padding: 0 1rem;   /* padding lateral para no pegarse al borde */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav__logo {
    flex-shrink: 0;
  }

  .logo__img {
    height: 40px;
    width: auto;
    filter: brightness(1.2);
  }

  .nav__social {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .nav__social-link {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
  }

  .nav__social-link:hover {
    transform: translateY(-0.15rem);
  }
}



/* Pie de Pagina */
.pie__pagina {
  width: 100%;
  background-color: white;
  padding: 40px 0;
  color: #282828;
}

.pie__pagina .grupo-1 {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
}

.pie__pagina .grupo-1 .box {
  text-align: center;
}

.pie__pagina .grupo-1 .box figure {
  margin: 0;
  padding: 0;
}

.pie__pagina .grupo-1 .box figure img {
  width: 120px;
  height: auto;
}

.pie__pagina .grupo-1 .box h2 {
  color: #0b0e0b;
  font-size: 20px;
  margin-bottom: 15px;
}

.pie__pagina .grupo-1 .box p {
  color: #040504;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.pie__pagina .grupo-1 .red-social a {
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
  color: #0a0a0a;
  font-size: 20px;
  width: 40px;
  height: 50px;
}

.pie__pagina .grupo-2 {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #2eec076d;
  padding-top: 10px;
  font-size: 12px;
  color: #020202;
}

/* Responsive Pie */
@media (max-width: 768px) {
  .pie__pagina .grupo-1 {
    grid-template-columns: 1fr;
  }

  .pie__pagina .grupo-1 .box {
    margin-bottom: 30px;
  }
}


/* Section */

/* General */
body {
    font-family: "Poppins", sans-serif;
    background-color: #121212;
    color: rgb(7, 255, 28);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sección principal */
.seccion__info {
    background-color: #282828;
    padding: 60px 40px;
    border-radius: 16px;
    max-width: 1200px;
    margin: 50px auto;
    box-shadow: 0 0 25px rgba(7, 255, 28, 0.15);
    transition: box-shadow 0.3s ease;
}

.seccion__info:hover {
    box-shadow: 0 0 40px rgba(7, 255, 28, 0.35);
}

/* Título del curso */
.text__section {
    font-size: 3rem;
    text-align: center;
    color: rgb(7, 255, 28);
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(7, 255, 28, 0.5);
    font-weight: 700;
}

@media (max-width: 768px) {
  .text__section {
    font-size: 2.2rem;
    margin-bottom: 35px;
    text-shadow: 0 0 12px rgba(7, 255, 28, 0.45);
  }
}

@media (max-width: 480px) {
  .text__section {
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(7, 255, 28, 0.4);
  }
}


/* Contenedor de contenido */
.info__section {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Módulo */
.content_cur {
    background-color: #1f1f1f;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: inset 0 0 15px rgba(7, 255, 28, 0.15);
    transition: background-color 0.3s ease;
}

.content_cur:hover {
    background-color: #292929;
}

.content_cur h1 {
    font-size: 2rem;
    color: rgb(7, 255, 28);
    margin-bottom: 20px;
    font-weight: 700;
}

.content_cur p {
    font-size: 1.1rem;
    color: #c0c0c0;
    line-height: 1.6;
}

/* Contenedor de video e imagen */
.contenedor_vid {
    display: flex;
    justify-content: center;   /* Centra todo el contenido horizontalmente */
    align-items: center;       /* Centra verticalmente */
    gap: 40px;                 /* Espacio entre videos e imagen */
}

.contenedor_vid video {
    width: 420px;
    max-width: 100%;
    border-radius: 14px;
    border: 3px solid rgb(7, 255, 28);
    background-color: #000;
    box-shadow: 0 0 15px rgba(7, 255, 28, 0.3);
    transition: box-shadow 0.3s ease;
}

.contenedor_vid video:hover {
    box-shadow: 0 0 30px rgba(7, 255, 28, 0.6);
}

.imagen-centro {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: brightness(1.3);
    transition: filter 0.3s ease;
    /* Para centrar la imagen perfectamente */
    flex-shrink: 0;
}

.imagen-centro:hover {
    filter: brightness(1.6);
}

/* Responsivo modulo y video */
@media (max-width: 480px) {
  .info__section {
    gap: 25px; /* menos espacio vertical en móvil */
  }

  .content_cur {
    padding: 20px 15px; /* menos padding para no saturar */
    border-radius: 12px;
  }

  .content_cur h1 {
    font-size: 1.4rem; /* texto más pequeño */
    margin-bottom: 12px;
  }

  .content_cur p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .contenedor_vid {
    flex-direction: column; /* apilar verticalmente */
    gap: 20px; /* menos espacio entre video e imagen */
  }

  .contenedor_vid video {
    width: 90%; /* más ancho, pero no ocupa todo */
    max-width: 320px;
    border-radius: 10px;
  }

  .imagen-centro {
    width: 100px;
    filter: brightness(1.2);
  }
}






/* Sección de imágenes */
.sec__imagenes {
    padding: 60px 20px;
    background-color: #1a1a1a;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(7, 255, 28, 0.25);
}

.sec__imagenes h1 {
    color: rgb(7, 255, 28);
    font-size: 2.5rem;
    margin-bottom: 35px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(7, 255, 28, 0.6);
}


.carousel {
  max-width: 900px;
  height: 600px; /* o la altura que quieras para el carrusel */
  margin: 50px auto;
  overflow: hidden;
  border-radius: 12px;
      border: 3px solid rgb(7, 255, 28);

  background: #000;
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}


/* Botones */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7, 255, 28, 0.15);
    border: 2px solid rgb(7, 255, 28);
    color: rgb(7, 255, 28);
    font-size: 2rem;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: background 0.25s ease;
}

.carousel-btn:hover {
    background: rgba(7, 255, 28, 0.35);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicators span {
    width: 10px;
    height: 10px;
    background: rgba(7, 255, 28, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicators span.active {
    background: rgb(7, 255, 28);
}

/* Responsive */ 
@media (max-width: 768px) {
  .sec__imagenes {
    padding: 40px 15px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(7, 255, 28, 0.2);
  }

  .sec__imagenes h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(7, 255, 28, 0.5);
  }

  .carousel {
    max-width: 100%;
    height: 400px;
    margin: 30px auto;
    border-radius: 10px;
  }

  .carousel-slide img {
    max-height: 100%;
  }

  .carousel-btn {
    font-size: 1.6rem;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }

  .carousel-indicators {
    bottom: 8px;
    gap: 7px;
  }

  .carousel-indicators span {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .sec__imagenes {
    padding: 30px 10px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(7, 255, 28, 0.15);
  }

  .sec__imagenes h1 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .carousel {
    height: 300px;
    margin: 20px auto;
    border-radius: 8px;
  }

  .carousel-btn {
    font-size: 1.3rem;
    padding: 4px 8px;
    border-radius: 5px;
  }

  .carousel-indicators {
    bottom: 6px;
    gap: 5px;
  }

  .carousel-indicators span {
    width: 6px;
    height: 6px;
  }
}

