@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');
*{
	padding: 0;
	margin: 0;
	font-family: "PT Sans", sans-serif;
	box-sizing: border-box;
}

body{
	min-height: 100vh;
	background-position: center;
	background-color: rgb(255, 255, 255);
	align-items: center;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.header.off {
    transform: translateY(-100%);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
    translate: .5s;
}

.header:hover::after {
    left: 100%;
}

.logo {
    width: 130px;
}

.navbar a {
    font-size: 1.15rem;
    color: rgb(1, 1, 1);
    text-decoration: none;
    font-weight: 700;
    margin-left: 2.5rem;
    position: relative;
    display: inline-block; /* Asegúrate de que los enlaces sean elementos en línea */
    transition: color .35s ease; /* Transición suave para el color */
}

.navbar a::before,
.navbar a::after {
    content: '';
    height: 7px; /* Aumentado el tamaño de los triángulos */
    width: 7px; /* Aumentado el tamaño de los triángulos */
    position: absolute;
    transition: all .35s ease;
    opacity: 0;
}

.navbar a::before {
    right: -8px; /* Separa más el triángulo del texto */
    top: -8px; /* Separa más el triángulo del texto */
    border-top: 3px solid #3BAA33; /* Cambiado el color del borde superior */
    border-right: 3px solid #3BAA33; /* Cambiado el color del borde derecho */
    transform: translate(-100%, 50%);
}

.navbar a::after {
    left: -8px; /* Separa más el triángulo del texto */
    bottom: -8px; /* Separa más el triángulo del texto */
    border-bottom: 3px solid #3BAA33; /* Cambiado el color del borde inferior */
    border-left: 3px solid #3BAA33; /* Cambiado el color del borde izquierdo */
    transform: translate(100%, -50%);
}

.navbar a:hover::before,
.navbar a:hover::after {
    transform: translate(0, 0);
    opacity: 1;
}

.navbar a:hover {
    color: #1877f2; /* Cambia el color del texto al pasar el mouse */
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: rgb(4, 4, 4);
    cursor: pointer;
    display: none;
}

.linea {
    width: 100%;
    height: 3px;
    position: absolute;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #3BAA33, #4954A3, #049BE2, #286522);
    background-size: 200% auto;
    animation: cambioColor 2.5s linear infinite;
    z-index: 99;
}

.contenedor-linea {
    position: relative;
}

.linea-footer {
    width: 100%;
    height: 3px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #3BAA33, #4954A3, #049BE2, #286522);
    background-size: 200% auto;
    animation: cambioColor 2.5s linear infinite;
    z-index: 99;
}

.bp {
    color: #f30c0c;
    text-decoration: none;
}

@keyframes cambioColor {
    0% {
        background-position: 0 0; /* Inicia desde el extremo izquierdo */
    }
    100% {
        background-position: 200% 0; /* Termina en el extremo derecho */
    }
}

/*BREAKPOINT*/
@media(max-width:992px) {
    .header {
        padding: 1.3rem 5%;
    }
}

@media(max-width:768px) {
    .icons {
        display: inline-flex;
    }
    
    #check:checked ~ .icons #menu-icon {
        display: none;
    }
    
    .icons #close-icon {
        display: none;
    }
    
    #check:checked ~ .icons #close-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.1);
        background-color: #fff;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        overflow: hidden;
        transition: .3s ease;
    }
    
    #check:checked ~ .navbar {
        height: 17.7rem;
    }
    
    .navbar a {
        display: block;
        font-size: 1.2rem;
        margin: 1.5rem 0;
        color: #000000;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: .3s ease;
    }
    
    #check:checked ~ .navbar a {
        transform: translateY(0);
        transition-delay: calc(.15s * var(--i));
        opacity: 1;
    }
    
    .navbar a::before,
    .navbar a::after {
        content: none;
    }
}


/*FOOTER*/
.pie-pagina{
    width: 100%;
    background-color: #ffffff;
	margin-top: auto;
}
.pie-pagina .grupo-1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap:50px;
    padding: 45px 0px;
}
.pie-pagina .grupo-1 .box-footer figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pie-pagina .grupo-1 .box-footer figure img{
    width: 200px;
}
.pie-pagina .grupo-1 .box-footer h2{
    color: #049BE2;
    margin-bottom: 25px;
    font-size: 25px;
    font-weight: 700;
}
.pie-pagina .grupo-1 .box-footer p{
    color: #3BAA33;

    margin-bottom: 10px;
    font-weight: 700;
}
.pie-pagina .grupo-1 .red-social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    color: #ffffff;
    margin-right: 10px;
    text-align: center;
    transition: all 300ms ease;
}
.pie-pagina .grupo-2{
    background:#dcdddc ;
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}
.pie-pagina .grupo-2 small{
    font-size: 15px;
	color: #020202;
}

.red-social a.instagram {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045); 
}

.red-social a.facebook {
    background: linear-gradient(45deg, #3b5998, #1877f2); 
}

.red-social a.tiktok {
    background-color: #000000; 
}

.red-social a.twitter {
    background-color: #1da1f2; 
}

.red-social a:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}


@media screen and (max-width:800px){
    .pie-pagina .grupo-1{
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-gap:30px;
        padding: 35px 0px;
    }
}

.titulos{
    font-weight: 700;
    font-size: 50px;
    color: #049BE2;
    text-align: center;
}
/*FOOTER*/
.curved-div {
    position: relative;
    background: #3BAA33;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
    margin-bottom: -1px; /* Esto puede ayudar a eliminar pequeños espacios */
}

.curved-div svg {
    display: block;
    width: 100%;
    height: auto;
}

.curved-div.upper {
    background: #ffffff;
    padding: 0;
    margin: 0;
}

.curved-div h1 {
    font-size: 4rem;
    margin-top: 0;
    font-weight: 700;
}

.curved-div p {
    font-size: 1.1rem;
    margin: 0 5rem 0rem 5rem;
    font-weight: 700;
}

.about, .about2, .about-reverse {
    background: url(../IMG/Cursos/Curso2.webp) no-repeat left;
    background-size: 40%;
    background-position: 13%;
    background-color: #fdfdfd;
    overflow: hidden;
    padding: 100px 0;
    position: relative;
}

.about2 {
    background-image: url(../IMG/Cursos/Curso3.webp);
}

.about-reverse {
    background: url(../IMG/Cursos/Curso1.webp) no-repeat right;
    background-size: 40%;
    background-position: 85%;
}

.inner-section, .inner-section-reverse {
    width: 60%;
    min-height: 325px;
    padding: 60px;
    box-shadow: 10px 10px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.inner-section {
    float: right;
    background-color: #3BAA33;
    border-radius: 46px 0 0 46px;
}

.inner-section-reverse {
    float: left;
    background-color: #1da1f2;
    border-radius: 0 46px 46px 0;
}

.inner-section h1, .inner-section-reverse h1 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.text {
    font-size: 16px;
    color: #ffffff;
    line-height: 28px;
    font-weight: 700;
    text-align: justify;
    margin-bottom: 20px;
}

.inner-section:hover,
.inner-section-reverse:hover,
.inner-section.hover,
.inner-section-reverse.hover {
    transform: scale(1.05);
}

@media screen and (max-width: 1200px) {
    .inner-section, .inner-section-reverse {
        padding: 40px;
    }
}

@media screen and (max-width: 1000px) {
    .about, .about2, .about-reverse {
        background-size: 100%;
        padding: 50px 10px;
    }
    .inner-section, .inner-section-reverse {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 894px) {
    .about, .about2, .about-reverse {
        background-size: 100% auto;
        background-position: center top;
        padding: 360px 0 30px; /* Aumentado el padding superior para bajar más el contenedor */
    }
    .inner-section, .inner-section-reverse {
        float: none;
        width: calc(100% - 40px);
        border-radius: 25px;
        margin: 0 auto 0; /* Eliminado el margen negativo arriba para bajar el contenedor */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.9); /* Fondo semi-transparente */
    }
    .inner-section {
        background-color: rgba(59, 170, 51, 0.9); /* Verde semi-transparente */
    }
    .inner-section-reverse {
        background-color: rgba(29, 161, 242, 0.9); /* Azul semi-transparente */
    }
    .text {
        font-size: 18px;
        line-height: 24px;
    }
}

@media screen and (max-width: 600px) {
    .about, .about2, .about-reverse {
        padding: 300px 0 20px; /* Aumentado el padding superior para pantallas más pequeñas */
    }
    .inner-section, .inner-section-reverse {
        width: calc(100% - 30px);
        padding: 25px;
        border-radius: 20px;
        margin: 0 auto 0; /* Ajustado el margen para pantallas más pequeñas */
    }
    .inner-section h1, .inner-section-reverse h1 {
        font-size: 24px;
    }
    .text {
        font-size: 17px;
        line-height: 24px;
    }
}

@media screen and (max-width: 1920px) {
    .text {
        font-size: 22px;
        line-height: 24px;
    }
}

@media screen and (max-width: 1920px) {
    .curved-div p {
        font-size: 22px;
    }
}

/*Cards*/
.card-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    margin-top: 20px; 
    flex-direction: row; 
}
.card {
    position: relative;
    width: 300px;
    height: 350px;
    margin: 20px;
    perspective: 1000px; /* Añadido para mejorar la perspectiva de rotación */
}

.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .5s;
}

.card .front {
    transform: rotateY(0deg);
    box-shadow: 0 5px 10px #000;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .front h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    font-weight: 700;
    color: #3BAA33;
    background: rgba(0,0,0,.8);
    text-align: center;
}

.card .back {
    transform: rotateY(180deg);
    background: #3BAA33;
    padding: 15px;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 5px 10px #000;
}


.card .back h3 {
    font-size: 30px;
    margin-top: 2px;
    font-weight: 700;
    color: #ffffff;
}

.card .back p {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 20px;
} 

.card:hover .front {
    transform: rotateY(180deg);
}

.card:hover .back {
    transform: rotateY(360deg);
}

.card.flip .front {
    transform: rotateY(180deg);
}

.card.flip .back {
    transform: rotateY(360deg);
}

@media screen and (min-width: 1601px) and (max-width: 1919px) {
    .card {
        width: calc(28% - 40px);
    }

    .card .back {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 30px;
    }

    .card .back h3 {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .card .back p {
        margin-top: 10px;
        font-size: x-large;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1600px) {
    .card {
        width: calc(28% - 40px);
    }

    .card .back {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
    }

    .card .back h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: large;
    }

    .card .back p {
        margin-top: 5px;
        font-size: 21px;
    }
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-70px); /* Aumentado para un efecto más notorio */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para los contenedores about */
.about, .about2, .about-reverse {
    animation: fadeInFromTop 1.5s ease-out forwards; /* Aumentado de 0.8s a 1.5s */
    opacity: 0;
}

.about {
    animation-delay: 0.2s;
}

.about2 {
    animation-delay: 0.6s;
}

.about-reverse {
    animation-delay: 1s;
}

/* Animación para las cards */
.card-container {
    animation: fadeInFromTop 1.5s ease-out forwards; /* Aumentado de 0.8s a 1.5s */
    animation-delay: 1.4s;
    opacity: 0;
}

.card {
    animation: fadeInFromTop 1.3s ease-out forwards; /* Aumentado de 1s a 1.5s */
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 1.5s; }
.card:nth-child(2) { animation-delay: 1.8s; }
.card:nth-child(3) { animation-delay: 2s; }
.card:nth-child(4) { animation-delay: 2.3s; }
.card:nth-child(5) { animation-delay: 2.5s; }
.card:nth-child(6) { animation-delay: 2.7s; }

::-webkit-scrollbar {
    display: none;
}

