
:root {
    /* Colores */
    --color-principal: #008929;
    --color-secundario: #4CAF50;
    --color-danger: #f44336;
    --color-blanco: white;
    --color-fondo-modal: rgba(0, 0, 0, 0.6);
    --color-texto-negro: black;
    --color-texto-blanco: white;
    --border-color: #ccc;
    --color-sombra: rgba(0, 0, 0, 0.2);
    --color-sombra-fuerte: rgba(0, 0, 0, 0.6);
    --color-scrollbar-bg: rgba(0, 0, 0, 0.1);
    --color-scrollbar-thumb: var(--color-principal);

    /* Fuentes */
    --font-poppins: 'Poppins', sans-serif;
    --font: "Open Sans", sans-serif, Arial;
    --font-size: 1rem;
    --font-size-medium: 0.9375rem;
    --font-size-small: 0.875rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 2rem;
    --h4-font-size: 1.75rem;
    --h5-font-size: 1.5rem;
    --h6-font-size: 1.25rem;
    --pading-general: clamp(20px, 4vw, 50px);
    --pading-general2: clamp(40px, 10vw, 150px);

    --transition-duration: 0.2s;  /* Duración de la transición - etiqueta a animar - transition: all var(--transition-duration) var(--transition-ease); */
    --transition-ease: ease;      /* Función de aceleración - etiqueta a animar - transition: all var(--transition-duration) var(--transition-ease); */
    --transform-scale: 0.96
}

*{
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    font-size: var(--font-size);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: "Open Sans", sans-serif, Arial;

}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Seccion cartas de Cursos */

.hero {
    min-height: 100vh;
    width: 100%;
    display: grid;
    align-items: center;
    position: relative;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}
.search-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: clamp(250px, 30vw, 500px);
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 10px;
  }

  .search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    padding: 6px;
    border-radius: 20px;
    background-color: var(--container-color);
    color: var(--text-color);
  }

  .btn-search {
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

.btn-search .icon {
    font-size: var(--font-size);
    color: var(--text-color);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.hero .overplay {
    gap: 10px;
    display: grid;
    position: relative;
    text-align: center;
}

.hero .overplay h1 {
    font-family: var(--font-base);
    color: white;
    font-size: var(--h1-font-size);
    font-weight: 700;
}

.hero .overplay p {
    font-family: var(--font-poppins);
    color: var(--color-texto-blanco);
    font-size: var(--h5-font-size);
    margin: 0.2rem 0;
    line-height: 1.2;

    font-size: 180%;
    margin: 0.2rem 0;
    line-height: 1.2;
}

/* === Estilos del Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--color-fondo-modal);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: var(--color-blanco);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

.modal-botones button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    border-radius: 5px;
    cursor: pointer;
}

.modal-botones button:last-child {
    background-color: var(--color-danger);
}

/* Parte de Cursos */
.Webinars {
    min-height: 100vh;
    padding: 30px;
    align-items: center;
    display: grid;
    align-content: center;
}
.container-general{
  max-width: 1500px;
  margin: 0 auto;
  min-height: 100vh;
}
:root {
  --h2-font-size: 2.5rem;
  --font-size: 1rem;
}

.Info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.Info figure {
  flex: 1;
  margin: 0;
}

.Info figure img {
  width: 100%;
  height: auto;
  display: block;
}

.info-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-texto h1.ofertas {
  font-size: var(--h2-font-size);
  margin: 0 0 1rem 0;
}

.info-texto .text-p {
  font-size: var(--font-size);
  font-family: var(--font);
  margin: 0;
}
/* Contenedor principal */
.contenedor {
  width: 100%;
  background: var(--color-blanco);
  border-radius: 5px;
  box-shadow: 2px 2px 10px var(--color-sombra);
  margin-top: 5vh;
}

/* Navegación de pestañas (sin cambios) */
.pestanas {
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.pestana {
  max-width: 300px;        /* Limita el ancho */
  white-space: normal;     /* Permite saltos de línea */
  word-wrap: break-word;   /* Rompe palabras largas si es necesario */
  text-align: center;      /* Centra el texto */
  padding: 12px;
  font-size: 1rem;
  background: var(--color-blanco);
  border: none;
  cursor: pointer;
  flex: 0 0 auto;          /* Evita que se estiren demasiado en flex */
}


.pestana:hover,
.pestana.activa {
  background: var(--color-principal);
  color: var(--color-blanco);
}

/* Cursos */
.contenido {
  display: none;
  padding: 20px;
}

.contenido.activo {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 2rem;
  align-items: stretch;
}

/* Columna izquierda */
.contenido-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.title-cards {
  font-size: var(--h4-font-size);
  margin-bottom: 1rem;
  color: #232323;
}

.tx-inf {
  font-size: var(--h6-font-size);
  color: #444;
  margin-bottom: 2rem;
}

/* Botón de registro */
.register {
  text-decoration: none;
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--color-principal);
  background-color: var(--color-principal);
  margin: 0 auto;
  color: white;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  max-width: 100%;
}

.register:hover {
  background: white;
  color: var(--color-principal);
}

/* Columna derecha */
.img-curso {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ul-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ul-list li {
  display: flex;
  gap: 0.5rem;
  font-size: var(--font);
  align-items: center;
}

.ul-list li i {
  width: 2rem;
  color: var(--color-principal);
  font-size: 1.4rem;
}

/* Imagen */
.img-avi {
  width: 95%;
  margin-top: 10px;
  max-width: 95%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.img-avi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .contenido.activo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .img-curso {
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .ul-list {
    width: 48%;
  }

  .img-avi {
    margin: 0 auto;
    width: 48%;
    aspect-ratio: 16 / 9;
  }
}

/* 📱 Teléfonos */
@media (max-width: 768px) {
  .img-curso {
    flex-direction: column;
    gap: 1.5rem;
  }

  .ul-list,
  .img-avi {
    width: 100%;
  }

  .title-cards {
    margin-top: 20px;
  }

  .tx-inf {
    text-align: left;
    font-size: 1rem;
  }

}


/* ===================== RESPONSIVE ===================== */

/* 📱 Tablets: columna derecha se mueve abajo, pero con fila interna */
@media (max-width: 1024px) {
  .contenido.activo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .img-curso {
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .ul-list {
    width: 48%;
  }

  .img-avi {
    width: 48%;
    aspect-ratio: 16 / 9;
  }
}

/* 📱 Teléfonos */
@media (max-width: 768px) {
  .img-curso {
    flex-direction: column;
    gap: 1.5rem;
  }
  .img-avi{width: 100%;}
  .contenido.activo{padding: 0; }
  .contenedor{box-shadow: none;}

  .ul-list,
  .img-avi {
    width: 100%;
  }

  .title-cards {
    font-size: 1.5rem;
  }

  .tx-inf {
    font-size: 1rem;
  }

  .register {
    width: 100%;
    max-width: 300px;
  }
}


/* Seccion cartas Instructores */
.prof{
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrado vertical */
  align-items: center;     /* Centrado horizontal si quieres */
  min-height: 100vh;
  padding-left: var(--pading-general2);
  padding-right: var(--pading-general2);
}
.title-prof {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 0.5em;
}

.text-comen {
  font-size: var(--font-size);
  text-align: center;
  margin-bottom: 2em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mr-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  margin-bottom: 3rem;
}

.card-img {
  display: flex;
  flex-direction: row; /* EN FILA en pantallas grandes */
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.09);
  min-height: 180px;
  overflow: hidden;
}

.card-img.empty {
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}


.imagen-prof {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-prof img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
}

.info-inst {
  flex: 0 0 60%;
  overflow-wrap: break-word;
}

.info-inst ul li{list-style-type: disc;}
.info-inst ul li::marker{color: var(--color-principal);}


/* Responsive - Tablet */

/* ===== Media Query: Tablets y portátiles pequeños ===== */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero {
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
  }
  .hero .overplay {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero .overplay h1 {
    font-size: 2.8rem;
  }
  .hero .overplay p {font-size: 1.6rem;}
  .Webinars {
    height: auto;
    padding: var(--pading-general);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .Info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .ofertas {font-size: 2.2rem;}
  .text-p {
    font-size: 1.4rem;
  }

  .mr-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-left: var(--pading-general2);
    padding-right: var(--pading-general2);
  }

  .card-img {
  flex-direction: column !important; /* Cambia a columna */
  align-items: center;
  text-align: left;
}

.imagen-prof, .info-inst {
  width: 100%;
  flex: none;
}

.imagen-prof {
  justify-content: center;
  margin-bottom: 1rem;
}

}

 /* Responsivo de celulares -----------------------------------*/
@media (max-width: 767px) {
    :root {
    --font-size: 1.0625rem;

    --h1-font-size: 2rem;
    --h2-font-size: 2.1rem;
    --h3-font-size: 1.75rem;
    --h4-font-size: 1.5rem;
    --h5-font-size: 1.25rem;
    --h6-font-size: 1.1rem;
  }
  .hero {
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
  }

  .hero .overplay {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero .overplay h1 {font-size: 2rem;}

  .hero .overplay p {
    font-size: 1.6rem;
  }
  .Info {
    padding: var(--pading-general) 0 var(--pading-general) 0;
    gap: 0;
    flex-direction: column-reverse;
    text-align: center;
  }
  .Info figure {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
  }
  .info-texto{flex: 1.2;}
  .Info figure img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
  .Info > * {width: 100%;}
  .Webinars {
    height: auto;
    padding: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .Info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .ofertas {font-size: 2.2rem;}
  .text-p {font-size: 1.4rem;}


  .title-prof, .text-comen{padding: 18px;}
  .prof {
    display: grid;
    align-content: start;
  }
  .mr-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 18px;
  }
  .card-img {
  flex-direction: column !important; /* Cambia a columna */
  align-items: center;
  text-align: left;
}

.imagen-prof, .info-inst {
  width: 100%;
  flex: none;
}

.imagen-prof {
  justify-content: center;
  margin-bottom: 1rem;
}

}



@media (min-width: 1600px) {
  :root {
    --font-size: 1.09375rem;
    --font-size-medium: 1rem;
    --font-size-small: 0.9375rem;

    --h1-font-size: 3.2rem;
    --h2-font-size: 2.7rem;
    --h3-font-size: 2.2rem;
    --h4-font-size: 1.9rem;
    --h5-font-size: 1.6rem;
    --h6-font-size: 1.3rem;
  }
  .container-general{max-width: 1600px;}
}
