@font-face {
    font-family: "PP Neue Montreal";
    font-weight: 500;
    src: url(./fonts/PPNeueMontreal-Medium.woff2);
}

@font-face {
    font-family: "PP Neue Montreal";
    font-weight: 700;
    src: url(./fonts/PPNeueMontreal-Bold.woff2);
}

@font-face {
    font-family: "PP Neue Montreal";
    font-weight: 400;
    src: url(./fonts/PPNeueMontreal-Book.woff2);
}

* {
    box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 400
}

/*Estilos por defecto*/
body {
    padding: 0px;
    margin: 0px;
    font-family: "PP Neue Montreal";
    font-weight: 400;

    color: var(--black);

    --white: #ffffff;
    --green: #1EB45A;
    --black: #000000;
    --grey: #E9ECEF;
}

img {
    max-width: 100%;
}

section {
    &>.container {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin: auto;
        max-width: 1478px;
        padding: 50px 20px;

        @media(max-width: 768px) {
            padding: 20px;
        }

    }

    width: 100%;
}

/*Elementos globales*/
a.green-button {
    color: var(--white);
    background: var(--green);
    text-decoration: none;
    font-size: 25px;
    font-weight: 700;
    padding: 13px 35px;
    display: block;
    width: fit-content;

}

.span-inside-green {
    & span {
        color: var(--green);
        font-weight: 700;
    }
}

/* Header section*/
.header-bg1{
    background-size: cover;
    background-image: url(./img/header.jpg);
}


.header-bg2{
    background-size: cover;
    background-image: url(./img/v2/ciberext-info.jpg);
    background-position: 60% 0%;
    @media screen and (max-width: 767px) {
        background-position: 70% 0%;
    }
}

.header {
    & .container {
        padding: 75px 20px;

        @media (max-width: 768px) {
            padding: 30px 20px;
        }
    }


    & .logo {
        width: 100px;
        margin-bottom: 75px;
    }

    & .col {
        width: 50%;
        display: flex;
        flex-direction: column;

        @media (max-width: 768px) {
            width: 100%;
        }

        &:nth-child(2) {
            padding-left: 50px;
        }
    }

    & h1 {
        font-size: clamp(25px, 4vw, 55px);
        color: var(--white);

        & span {
            display: inline;
            position: relative;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 50%, var(--green) 50%)
        }
    }

    & .subtext {
        font-size: 22px;
        margin-top: 40px;
        margin-bottom: 30px;
        color: var(--white);
    }

    .subtext-nomargin{
        font-size: 22px;
        color: var(--white);
    }

    & .subtext-bold {
        font-weight: 700;
        font-size: 23px;
        margin-bottom: 40px;
        color: var(--white)
    }

    & .form {
        width: 100%;
        background: var(--grey);
        
        margin-bottom: -30vh;
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;

        & h3 {
            color: var(--green);
            font-size: 40px;
            text-align: center;
            max-width: 400px;
        }

        & p {
            font-size: 25px;
            text-align: center;
            max-width: 400px;
        }
    }
}

.curso {
    & .col {
        width: 45%;

        @media (max-width: 768px) {
            width: 100%;
        }
    }

    & h2 {
        display: inline;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 50%, var(--grey) 50%);
        font-size: 36px;

    }

    & p {
        margin-top: 40px;
        font-size: 18px;
    }

    & ul{
       font-size: 18px;
       & span{
            color: var(--green);
            font-weight: 700;
       } 
    }
}

.aprender {
    & .container{
        @media (max-width: 767px){
            flex-direction: column-reverse
        }
    }
}


.aprender,
.certificacion {
    & .col {
        width: 50%;
        padding: 0 50px;

        &:nth-child(2) {
            padding-left: 100px;
        }

        @media (max-width: 992px) {
            padding: 0px 20px;

            &:nth-child(2) {
                padding-left: 40px;
                margin-top: 20px;
            }
        }

        @media (max-width: 768px) {
            width: 100%;
            padding: 0px;

            &:nth-child(2) {
                padding-left: 0px;
            }
        }
    }

    & h2 {
        font-size: 25px;
        display: inline;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 50%, var(--grey) 50%);
    }

    & p,
    & ul {
        font-size: 18px;
        margin: 20px 0;
    }
}

.certificacion .container {
    padding: 65px 20;

}

.certificacion img {
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.22));
    display: block;
    margin: auto;
}

.inscribirse {
    background-color: #F2F3F5;

    & .container {
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        padding: 50px 20px 75px 20px;

        @media (max-width: 768px) {
            padding: 30px 20px;
            gap: 20px;
        }
    }

    & h2 {
        font-size: 36px;
    }

    & .cards-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        width: 100%;

        @media (max-width: 992px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }

        & .card {
            background: var(--white);
            padding: 20px;
            display: flex;
            flex-direction: column;


            & .card__image {
                width: 85px;
                height: 85px;
                object-fit: contain;

            }

            & .card__title {
                color: var(--green);
                font-weight: 700;
                font-size: 16px;
                margin-top: 30px;
                margin-bottom: 25px;
            }

            & .card__content {
                font-size: 16px;

            }
        }
    }
}

footer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
    align-items: center;
    padding: 80px 0 50px 0;
	
	.disclaimer {
		max-width: 1478px;
		text-align: center;
		font-style: italic;
		padding: 20px;
	}

    & a {
        text-decoration: none;
        color: var(--black);
        font-size: 20px;
    }

    @media (max-width: 992px) {
        gap: 40px;
    }

    @media (max-width: 768px) {
        flex-direction: column;
        gap: 20px;
    }
}

.subfooter .container {
    display: grid;
    place-content: center;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px;

    @media (max-width: 992px) {
        grid-template-columns: repeat(3, 1fr);
    }

    @media (max-width: 768px) {
        display: flex;
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 100px;

        & img {
            max-height: 50px;
            display: block;
            margin: auto;
        }
    }
}

/* formulario movil*/
@media(min-width: 769px) {
    .form-backdrop .close {
        display: none;
    }
}

@media (max-width:768px) {
    .form-toggle {
        position: fixed;
        z-index: 10;
        width: 100% !important;
        text-align: center;
        bottom: 0;
        left: 0;
        box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.4)
    }

    .form-backdrop {
        position: fixed;
        z-index: 20;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        padding: 40px !important;
        transition: .3s;

        &:not(.open) {
            opacity: 0;
            visibility: hidden;
        }

        & .form {
            height: 100%;
            overflow: auto;
        }

        & .close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--green);
            color: var(--white);
            border-radius: 40px;
            width: 40px;
            height: 40px;
            font-size: 40px;
            line-height: 1;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
    }
}

/*Form de ciberext*/

#form_general {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;

    & .checkbox-wrapper {
        padding: 0 10px;

        & a {
            color: var(--green)
        }
        
    }

    & .input-wrapper {
        width: 50%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        &.fw {
            width: 100%;
        }

        & label {
            font-weight: 500;
            font-size: 16px;
            margin-bottom: 5px;
        }

        & :is(input, select, textarea) {
            width: 100%;
            display: block;
            border: 1px solid rgb(222, 226, 230);
            border-radius: 6px;
            padding: 12px;
            background: rgb(255, 255, 255);

            &.error {
                outline: 1px solid red;
            }
        }

        & .button {
            border: 1px solid var(--black);
            border-radius: 50px;
            display: block;
            width: 100%;
            text-align: center;
            text-transform: uppercase;
            font-size: 25px;
            padding: 10px;
            color: var(--black);
            transition: .3s;
            cursor: pointer;
            
            &:hover {
                background: var(--black);
                color: #fff;
            }
        }
    }

    /* Ocultar el checkbox nativo */
    .checkbox-wrapper input[type="checkbox"] {
        display: none;
    }

    /* Estilo base para el wrapper */
    .checkbox-wrapper {
        margin-bottom: 1em;
    }

    /* Estilo del label */
    .checkbox-wrapper label {
        display: flex;
        align-items: center;
        gap: 0.5em;
        cursor: pointer;
    }

    /* Caja del checkbox personalizada */
    .custom-checkbox {
        width: 20px;
        height: 20px;
        border: 2px solid #ccc;
        border-radius: 3px;
        position: relative;
        display: inline-block;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    /* Estilo del tick oculto inicialmente */
    .custom-checkbox::after {
        content: '';
        position: absolute;
        top: 1px;
        left: 4px;
        width: 5px;
        height: 10px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    /* Estilos cuando está marcado */
    .checkbox-wrapper input[type="checkbox"]:checked+.custom-checkbox {
        background-color: rgb(30, 180, 90);
        border-color: rgb(30, 180, 90);
    }

    .checkbox-wrapper input[type="checkbox"]:checked+.custom-checkbox::after {
        opacity: 1;
    }

}

/*Estilos del popup*/

.mfp-wrap {
    position: fixed;
    z-index: 999;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    & .mfp-container {
        background: #fff;
        padding: 20px;
        position: relative;

        & h3 {
            display: block;
            margin: 0px auto 20px auto;
            font-size: 25px;
            text-align: center;
            text-transform: uppercase;
        }

        & .button {
            color: #fff;
            background: var(--green);
            padding: 5px 15px;
            text-decoration: none;
            display: block;
            width: fit-content;
            margin: auto;
            margin-top: 40px;
        }

        .mfp-close {
            position: absolute;
            top: 0;
            right: 0;
            transform: translate(-50%, -50%);
            background: var(--green);
            color: #fff;
            border-radius: 100px;
            border: none;
            font-size: 30px;
        }


        .mfp-preloader {
            display: none;
        }
    }
}