* {
    margin: 0px;
    box-sizing: border-box;
}

main {
    position: relative;
    overflow: hidden;
    background-color:#1b1b1b;

}


.titulo {
  position:relative;
  overflow:hidden;
  padding: 70px; 
}

.titulo::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  
  background-image: url(images/banner.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  filter: blur(4px);
  z-index: -1; 
  transform: scale(1); 
}

nav ul{
    position: relative;
    width: 100%;
    height: 50px;
    background-color: #1b1b1b;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    border-radius: 0px;

    padding: 0;
    margin: 0;
    
}

nav li{
    flex: 1;
    height: 100%;
    z-index: 1;
}

nav a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
}

nav span{
    position: absolute;
    top: 0;
    left: 0;
    
    border-radius: 5px;
    width: 20%;
    height: 100%;
    background: linear-gradient(
        45deg,
        #B484BF,
        #9957A8
    );

    transition: .4s ease;
}

nav li:nth-child(1):hover ~ span{
    left: 0%;
}
nav li:nth-child(2):hover ~ span{
    left: 20%;
}
nav li:nth-child(3):hover ~ span{
    left: 40%;
}
nav li:nth-child(4):hover ~ span{
    left: 60%;
}
nav li:nth-child(5):hover ~ span{
    left: 80%;
}



.certi {
    color: white;
    font-size: 70px;
    letter-spacing: 10px;
    font-family: Arial, Helvetica, sans-serif;
    border-right: 5px solid;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    animation: 
        typing 5s,
        cursor .4s step-end infinite alternate;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 10);
}

@keyframes cursor {
    50% {border-color: transparent}
    
}

@keyframes typing {
    from {width: 0}
    
}

.subtitulo{
    color: white;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);

}



.container {
    position:relative;
}

.container .wrapper{
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 800px;

    box-shadow: 10px 10px 10px rgba(85, 54, 100, 0.355);
    margin: 5px ;
    overflow:hidden;

}

.container .wrappen-holder {
    display: grid;
    grid-template-columns: repeat(4,100%);
    height: 100%;
    animation: slider 30s ease-in-out infinite alternate;
}

.container #slider-img-1{
    background-image: url(images/noticia1.png);
    background-position: center;
    background-repeat:no-repeat;
    background-size: cover;
}

.container #slider-img-2{
    background-image: url(images/noticia2.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.container #slider-img-3{
    background-image: url(images/noticia3.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.container #slider-img-4{
    background-image: url(images/noticias4.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@keyframes slider{
    0% {transform: translateX(0%);}
    10% {transform: translateX(-100%);}
    20% {transform: translateX(-100%);}
    30% {transform: translateX(-200%);}
    40% {transform: translateX(-200%);}
    50% {transform: translateX(-200%);}
    60% {transform: translateX(-200%);}
    70% {transform: translateX(-300%);}
    80% {transform: translateX(-300%);}
    90% {transform: translateX(0%);}
    100% {transform: translateX(0%);}
}

.noticias h3{
    position:absolute;
    top: 10px;
    left: 10px;
    z-index: 100;

    background: rgba(100, 53, 156, 0.4);
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    
    color: white;
    font-size: 40px;
    font-family: arial;
    padding: 15px 20px;

    margin: 0;
}


h2{
    color: #ffffff;
    font-size: 55px;
    letter-spacing: 3px;
    font-family: 'Poppins', sans-serif;
    padding: 10px 15px;
    padding-top: 30px;
}

.inicio p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 27px;
    color: white;
    padding: 5px 35px;
    margin: 20px;
    line-height: 1.5;
    background: rgba(171, 169, 169, 0.07);
    border: 3px solid rgba(15, 15, 15, 0.15);
    border-radius: 10px;
    display: block;
    margin-bottom: 60px;
}

.cursos{
    border: 2px solid rgba(255, 255, 255, 0.269);
    background: linear-gradient(360deg, #1b1b1b, #3e3e3e4a) ;
    border-radius: 10px;
}

.tarjeta-aviso{
    background: rgba(85, 85, 85, 0.187);
    border: 1px solid rgba(157, 41, 157, 0.297);
    backdrop-filter: blur(40px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px;
}



.tarjeta-aviso p, .tarjeta-aviso strong, .tarjeta-aviso h4, .tarjeta-aviso h3 {
    color: #ffffff; 
}

h3 { 
    color: rgb(255, 255, 255);
    font-size: 25px;
    letter-spacing: 3px;
    font-family: 'Poppins', sans-serif;
    padding: 5px 30px;
}

h4 {
    color: rgb(255, 255, 255);
    font-size: 20px;
    letter-spacing: 3px;
    font-family: 'Poppins', sans-serif;
    padding: 5px 30px;
}

.catalogo{
    padding: 5px 60px;
    padding-bottom: 10px;
}
.imagen-curso{
    width: 100%;
    height: auto;
    border-radius: 15px;
}
.catalogo-cursos{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.curso{
    position: relative;
    width: 540px;
    min-height: 300px;
    padding: 20px;
    background: rgba(85, 85, 85, 0.187);
    border: 1px solid rgba(157, 41, 157, 0.297);
    backdrop-filter: blur(40px);
    border-radius: 15px;
    transition: all .3s ease;
    overflow: hidden;
}

.curso::before{
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: rgba(151, 59, 165, 0.59);
    filter: blur(100px);
    bottom: 20px;
    left: 200px;
}


.curso:hover{
    transform: translateY(-5px);
    box-shadow:
    0 0 20px rgb(157, 96, 207);
    border-color:
    rgba(252, 97, 143, 0.691);
}

.curso h4{
    color: rgba(255, 255, 255, 0.83);
    margin-bottom: 40px;
    font-size: 35px;
    letter-spacing: 3px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    padding-top: 5px;

}

.curso p{
    color: #ffffff;
    margin: 8px 0;
    padding: 20px 0px;
    font-size: 23px;
    letter-spacing: 3px;
    font-family: Arial, Helvetica, sans-serif;
}

button {
    
    font-size: 20px;
    color: #fafafa;
    text-transform: uppercase;
    padding: 20px 30px;
    border-radius: 10px;
    border: 2px solid #fafafa;
    background: #252525;
    box-shadow: 3px 3px #fafafa;
    cursor: pointer;
    margin-top: 60px;
    
  
}

button:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

.precios{
    padding: 30px 0px;
    background: linear-gradient(-180deg, #1b1b1b, #3e3e3e73) ;
}
.precio-titulo{
    background: rgba(94, 74, 120, 0.2);
    border-radius: 5px;
    border: .02px solid rgba(255, 255, 255, 0.096);
    display:initial;
    padding: 0px 50px;
    margin: 0px 50px;
}

.precios p{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 27px;
    color: white;
    padding: 5px 35px;
    margin: 20px;
    line-height: 1.5;
}


.formularioh2{
    padding-top: 100px;
}
.inscripcion-contenedor{
     display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.f1{
    position:relative;
    width: auto;
    min-height: 100%;
    padding: 20px;
    background: rgba(85, 85, 85, 0.187);
    border: 1px solid rgba(157, 41, 157, 0.297);
    backdrop-filter: blur(40px);
    border-radius: 15px;
    transition: all .3s ease;
    overflow: hidden;
    box-shadow: 10px 10px 10px rgba(64, 30, 81, 0.355);
    
}

.inscripcion p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 30px;
    color: white;
    padding: 0px 35px;

    padding-bottom: 30px;
    margin: 20px;
    line-height: 1.5;
    background: rgba(171, 169, 169, 0.07);
    border: 3px solid rgba(15, 15, 15, 0.386);
    border-radius: 30px;
    display: block;
    text-align: center;

}
legend {
    font-size: 30px;
    padding: 10px 11px;

    color: rgb(179, 179, 179);
    background:rgba(77, 25, 77, 0.147) ;
    font-family: monospace;
    border: solid 3px rgba(159, 80, 159, 0.454);
    border-radius: 20px;
    text-align: center;

}

fieldset {
    border: #1b1b1b;

}

label{
    padding: 0px 20px;
}


input {
  border: none;
  outline: none;
  border-radius: 60px;
  font-size: 22px ;
  padding: 10px 10px;
  background-color: #ccc;
  box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
  transition: 300ms ease-in-out;
  justify-content: center;
}

input:focus {
  background-color: white;
  transform: scale(1.10);
  box-shadow: 10px 10px 40px #883c9588,
             -10px -10px 30px #c883e868;
}

.select-option {
   position: relative;
   display: flex;
   width: 100%;
   height: 50px;
   line-height: 2px;
   background: #c8c8c81c;
   overflow: hidden;
   border-radius: 60px;

   color: rgb(250, 250, 250);
   text-align: center;
   justify-content: center;
   font-size: 22px;

}


.select-option::after {
   content: '\25BC';
   position: absolute;
   top: 0;
   right: 0;
   padding: 0 1em;
   background: #292929;
   cursor:pointer;
   pointer-events:none;
   transition:.25s all ease;
}

.subtitulo-comprobante {
    padding: 30px auto;
    padding-top: 20px;
}

.arrastre-zona{
    justify-content: center;
    text-align: center;
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    padding: 7% 0px;


    background-color: rgba(128, 128, 128, 0.126);
    border: solid 1px #6c2f8a8e;
    box-shadow: 0px 12px 10px rgba(75, 43, 92, 0.313);
    border-radius: 30px;

    width: 100%;
    height: auto;

}

.comprobante p {
    padding: 20px 30px;
}

option { 
    background-color: #252525df;
}

.butarc {
    justify-content: center;
    margin-left: 30px;
}



.contacto{
    background: linear-gradient(360deg, #45256016, #1b1b1b) ;
    border-radius: 10px;
    height: auto;
    border-bottom: 2px solid rgba(255, 255, 255, 0.292);
}


.contactoh2{
    padding-top: 100px;
}

.formulegend{
    
    text-align: left;
    line-height: 1.5;
    padding: 10px 40px;
}

.contactop {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 30px;
    color: white;
    padding: 0px 20px;

    padding-bottom: 30px;
    line-height: 2;
    display:inline-block

}


.contactofieldset{
    display: flex;
    justify-content:baseline;
    flex-wrap: wrap;

    
}


label {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 30px;
    color: white;
    padding: 20px 20px;
    padding-bottom: 30px;
    line-height: 1;
    display:inline-block;
}

.borde-contac{
    border: solid 3px rgba(154, 88, 168, 0.441);
    background: rgba(85, 85, 85, 0.187);
    padding: 20px 20px;
    border-radius: 50px;
    margin-top: 70px;
    margin-left: 2%;
    display: flex;

}

.coninput{
    margin-bottom: 100px;
}

textarea {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 30px;
    color: white;
    padding: auto auto;

    width: auto;
    height: auto;
    background: rgba(85, 85, 85, 0);
    border-radius: 30px;
}

.btncon{
    margin-left: 100px;
    margin-bottom: 50px;
}


.ubicacion h3 {
    background: rgba(94, 74, 120, 0.2);
    border-radius: 15px;
    border: .02px solid rgba(255, 255, 255, 0.096);
    display:initial;
    padding: 20px 50px;
    
}

.ubicacion{
    background: #45256016;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 30px;
    color: white;
    padding: 0px 20px;
    margin-top: 50px;
    padding-bottom: 30px;
    line-height: 2.5;

    border-bottom: solid 3px rgba(255, 255, 255, 0.127);
    border-radius:20px ;
    margin-bottom: 40px;

}

.mapa-img{
    height: 50%;
    width: 50%;
    border-radius: 20px;

}

.redes{
    background: linear-gradient(360deg, #45256057, #45256016);
    border-bottom: solid 3px rgba(255, 255, 255, 0.127);
    border-radius:3px ;
}

.redes h3 {
    background: rgba(94, 74, 120, 0.2);
    border-radius: 15px;
    border: .02px solid rgba(255, 255, 255, 0.096);
    display:initial;
    padding: 20px 50px;
    margin-left: 20px;


}

.redes li{
    flex: 1;
    height: 100%;
    margin-top: 40px;
    list-style: none;
}


.redes a{
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: white;
}

.ayuda {
    background: linear-gradient(360deg, #2c12418e, #45256057) ;
}

.ayuda p{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    color: white;
    line-height: 2.5;
}

.ayuda h3{
    margin-top: 40px;
}

footer {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    color: white;
    line-height: 2.5;
     background: linear-gradient(360deg, #571980d7, #1e102a) ;
}

@media (max-width: 768px) {
    .inicio p {
        font-size: 15px; 
        padding: 15px;
        margin: 15px 10px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .titulo { padding: 30px 15px; }
    .certi { font-size: 28px; letter-spacing: normal; animation: none; border-right: none; }
    .subtitulo { font-size: 16px; }
    h2 { font-size: 28px; padding: 10px; }
    h3, .noticias h3 { font-size: 18px; padding: 15px; margin: 10px; line-height: 1.4; }
    
    nav ul { flex-direction: column; height: auto; }
    nav li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    nav a { padding: 15px 0; font-size: 16px; }
    nav span { display: none; } /* Ocultar el slider dinámico en móvil */
    
    .catalogo { padding: 5px 15px; }
    .curso { width: 100%; min-height: auto; padding: 15px; }
    .curso h4 { font-size: 24px; margin-bottom: 15px; }
    .curso p { font-size: 16px; padding: 10px 0; }
    
    .inscripcion p, legend, label { font-size: 18px; padding: 10px; }
    .f1 { width: 100%; margin: 0 10px; }
    
    input, .select-option { font-size: 16px; width: 100%; padding: 12px; }
    textarea { font-size: 16px; width: 100%; }
    
    button { font-size: 16px; padding: 15px 25px; width: 100%; margin-top: 20px; }
    .arrastre-zona { font-size: 16px; padding: 20px 10px; }
    
    .borde-contac { flex-direction: column; margin-left: 0; padding: 15px; border-radius: 20px; }
    .btncon { margin-left: 0; margin-bottom: 20px; }
    .mapa-img { width: 100%; height: auto; }
    
    .precio-titulo, .ubicacion h3, .redes h3 { display: block; margin: 10px; padding: 10px; text-align: center; }
    .redes a { font-size: 18px; }
    footer { font-size: 14px; text-align: center; padding: 10px; }
}
