
* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  z-index: 1000;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
}

.logo img {
  width: 120px;
  max-width: 100%;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  text-shadow: 0px 4px 4px #282828;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #b2e73f;
}


.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  margin-left: 20px;
}

.nav-links a i {
    margin-right: 8px;
}


.boton-nav-sesion :hover{
    background-color: #fff;
    color: black;
}

/* header color ------------------*/

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu-link {
    text-decoration: none;
    color: black;
    font-weight: normal;
    transition: color 0.3s, font-weight 0.3s;
}

.menu-link:hover {
    color: rgb(162, 255, 0);
}

.menu-link.activo {
    color:  #ffef42;
    font-weight: bold;
    border-bottom: 2px solid yellow;
}


/* banersss  - carrusel ---------------------------------- */

 .carousel {
            position: relative;
            width: auto;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0,0,0,0.3);
        }

        .slides {
            display: flex;
            transition: transform 0.6s ease-in-out;
        }

        .slide {
            min-width: 100%;
            position: relative;
        }

        .slide img {
            width: 100%;
            display: block;
        }

        .text-content {
            position: absolute;
            top: 50%;
            left: 50%;
            color: white;
            text-align: center;
            opacity: 0;
        }

        .text-content h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            text-shadow: 0px 4px 4px #282828;
        }

        .text-content button {
            padding: 10px 20px;
            background-color: #229434;
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            margin-top: 10px;
            font-size: 18px;
        }

        /* Animaciones 5 segundos de los textos y botones*/
        .fadeDown { animation: fadeDown 5s forwards; }
        .fadeLeft { animation: fadeLeft 5s forwards; }
        .fadeUp { animation: fadeUp 5s forwards; }

        @keyframes fadeDown {
            from { transform: translate(-50%, -60%); opacity: 0; }
            to { transform: translate(-50%, -50%); opacity: 1; }
        }
        @keyframes fadeLeft {
            from { transform: translate(-60%, -50%); opacity: 0; }
            to { transform: translate(-50%, -50%); opacity: 1; }
        }
        @keyframes fadeUp {
            from { transform: translate(-50%, -40%); opacity: 0; }
            to { transform: translate(-50%, -50%); opacity: 1; }
        }

        .prev, .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0,0,0,0.1);
            color: white;
            border: none;
            font-size: 2rem;
            padding: 10px;
            cursor: pointer;
            border-radius: 10%;
        }

        .prev { left: 10px; }
        .next { right: 10px; }



        /* tres columnas --------------------*/
.colum3{
    height: 180px;
    background-image: url(imagenes/goldfondo.png);
     display: flex;
    justify-content: center;
    align-items: center;
}
.columnas3 {
  max-width: 1200px;
  
  display: grid;

  grid-template-columns: 1fr 1fr 1fr; /* Tres columnas de igual ancho */
  gap: 50px; /* Espacio entre columnas */
}

.item {
  color: #000000;
  padding: 20px;
  text-align: center;
}

.item-b{
    
    background-color: #111; 
    padding: 15px 40px;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

.item-b:hover{
    border: 2px solid white; 
    padding: 15px 40px; 
    border-radius: 25px;
    background-color: #292929;
}

/* informes ----------------------------------------*/

.informes{
      display: flex;
        justify-content: center;
background-image: url(imagenes/beneficios.png);
background-repeat: no-repeat;
background-size: cover;


    
}
#contenedor-informes {
border-width: 4px;
  border-style: solid;
  border-color: #ffef42;
    
     margin-top: 100px;
     margin-bottom: 100px;
    max-width: 1200px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#contenedor-informes > div {
  width: 50%;
}

#contenedor-informes img {
  width: 600px;
  height: 450px;
  margin-bottom: -7px;
}

 
.slide-informe {
    position: relative;
    display: inline-block;
}

.slide-informe img {
    display: block;
    max-width: 100%;
    height: auto;
}

.text-content-informes {
    position: absolute;
    top: 50%;
    height: 100%;

    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background-color: rgba(255,255,255,0.6); /* fondo opcional para mejor lectura */
    padding: 10px;
}

.text-content-informes h2 {
    margin: auto;
    margin-left: 70px;
    margin-right: 70px;
    font-size: 30px;
}

.text-content-informes P {
    margin-left: 70px;
    margin-right: 70px;
    text-align: justify;

}


.text-content-informes button {
      margin-left: 70px;
    margin-right: 70px;
    background-color: #74c8e2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
}
.text-content-informes button:hover{
     
    background-color: #e9fc7c;
    color: black;
    
}



.text-content-informes button i {
    margin-left: 5px;
}

/* diplomados --------------------------------------------*/

.diplomados{
    background-image: url(imagenes/bannergris.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 100px;
}

.diplomados h1{
    padding-top: 100px;
    text-align: center;
    font-size: 30px;
}
.diplomados p{
    text-align: center;
    font-style: oblique;
    color: gray;
}

.contenedor-columnas {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

.columna {
    text-align: center;
    width: 22%;
    position: relative;
}

.imagen-contenedor {
    position: relative;
    display: inline-block;
}

.imagen-contenedor img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 15%;
    border: 3px solid #e9fc7c;
    transition: opacity 0.3s ease;
}

.boton-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #74c8e2;
    color: white;
    border-radius: 50%;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.imagen-contenedor:hover .boton-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.columna h3 {
    margin: 10px 0 5px 0;
    font-size: 24px;
}

.columna p {
    font-style: normal;
    font-size: 0.9em;
}

/* habilidades -----------------------------*/

.carrusel-fondo {
    background-image: url('imagenes/Prueba-imagen-color-1.png'); /* FONDO */
    background-size: cover;
    background-position: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}







   .grid-container {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
      margin: 20px;
    }

    .grid-item {
        display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
      font-weight: bold;
      padding: 20px;
      font-size: 16px;
      border-radius: 6px;
      min-height: 180px;
      background: rgba(255,255,255,0.05);
      transition: transform 0.6s;
      perspective: 1000px;
      cursor: pointer;
    }

    /* Animación de giro */
    .grid-item:hover {
      animation: spin-horizontal 0.6s linear;
    }

    @keyframes spin-horizontal {
      0%   { transform: rotateY(0deg); }
      50%  { transform: rotateY(180deg); }
      100% { transform: rotateY(360deg); }
    }

    /* Colores de fondo */
    .text1 { background: #4a3f50; height: 220px; width: 350px; margin-top: 20px;}
    .text2 { background: #596c76; height: 220px; width: 350px; margin-top: 20px;}
    .text3 { background: #00a2e8; height: 220px; width: 350px; margin-top: 20px;}
    .text4 { background: #546d6a; height: 195px; margin-top: 20px;}
    .text5 { background: #6c4b34; height: 195px; margin-top: 20px;}

    /* Imágenes */
    .grid-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 4px;
    }

   

/* footer -------------------------*/


footer {
    background-image: url(imagenes/Prueba-imagen-FORMULARIO.png);
    color: rgb(255, 255, 255);
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1 1 250px;
    margin: 10px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #fff;
    display: inline-block;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.footer-item i {
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid #afafaf;
    margin-top: 30px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 30px auto 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: black;
}

.footer-bottom a{
    color: rgb(177, 177, 177);
    text-decoration: none;
}

.footer-bottom a:hover{
    color: #f0f0f0;

}

.social-buttons a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    margin-left: 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-buttons a:hover {
    color: #b2e73f;
}

/* boton hacia arriba --------------*/

#btn-scroll-top {

  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: none; /* Oculto por defecto */
  z-index: 1000;
  transition: background 0.3s, transform 0.3s;
  line-height: 20px;
  text-align: center;
  padding: 0;
}

#btn-scroll-top:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}




/* Responsivo */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 20px;
        background: #2b2e83;
        flex-direction: column;
        width: 150px;
        display: none;
        border-radius: 8px;
        padding: 10px;
        
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

       .columna {
        width: 45%;
    }

/*habilidades -----------*/
      .slide2 p {
        font-size: 1em;
    }

}

@media screen and (max-width: 480px) {
    .columna {
        width: 100%;
    }
}


 /* Responsivo desarrolla habilidades ------*/
    @media (max-width: 992px) {
      .grid-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .grid-container {
        grid-template-columns: 1fr;
      }}

    
      
  @media (max-width: 1620px) {


      /* Colores de fondo */
    .text1 { height: 180px; width: 300px; margin-top: 20px;}
    .text2 { height: 180px; width: 300px; margin-top: 20px;}
    .text3 { height: 180px; width: 300px; margin-top: 20px;}
    .text4 { height: 160px; margin-top: 20px;}
    .text5 { height: 160px; margin-top: 20px;}

    }


/* celular --------------------------------------------------------------------------*/
@media screen and (max-width: 460px) {
  

.logo img {
  width: 50px;
  max-width: 100%;
}

    /* banersss  - carrusel ---------------------------------- */
   
        .slide img {
            width: 100%;
             height: 230px;
        }
        .text-content h2 {
            margin-top: 30px;
            font-size: 14px;
        }

        .text-content button {
            
            font-size: 10px;
        }


       

        .prev { left: 5px; }
        .next { right: 5px; }


 /* tres columnas --------------------*/
.colum3{
    height: 420px;
}
.columnas3 {
  max-width: 320px;
  display:block;
  grid-template-columns: 1fr; /* Tres columnas de igual ancho */
}

.item {
  color: #000000;
  padding: 20px;
  text-align: center;
}


/* informes ----------------------------------------*/


#contenedor-informes {
    max-width: 300px;
    height: 850px;
  flex-direction:column;
}

#contenedor-informes img {
  width: 280px;
  height: auto;

}

.slide-informe img {
    display:none;
    
}

.text-content-informes {
 
    gap: 0px;

    padding: 0px;
}

.text-content-informes h2 {
   margin-top: 30px;
    font-size: 30px;
       color: #fff;
}

.text-content-informes P {
    margin-left: 10px;
    margin-right: 40px;
   color: #fff;

}

/* diplomados --------------------------------------------*/



.diplomados h1{
    max-width: 280px;
    margin: 0 auto;
    font-size: 20px;
}
.diplomados p{
    max-width: 280px;
    margin: 0 auto;
}

/* desarrolla habilidades y estudia a tu ritmo --------------------------------------------*/

.grid-container {
        max-width: 320px;
      }

.texto-habilidades p {
    max-width: 300px;
    margin: 0 auto;
}
.texto-habilidades h1 {
    max-width: 300px;
    margin: 0 auto;
}

}