/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', sans-serif;
    font-weight: 400;
}

body {
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
}

/* Estilos del Encabezado */
header {
    background-color: #1a1a1a;
    padding: 10px 20px;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    color: transparent;
    width: 70px;
    height: 100%;
    background-image: url('../img/logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
}

header ul {
    list-style: none;
    display: flex;
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8em;
}

.button {
    padding: 7px 15px;
    background-color: #2c79f8;
    border-radius: 8px;
    color: #fff;
    transition: background 0.3s;
    text-decoration: none;
    width: max-content;
    margin: auto 0 auto auto;
}

.button:hover {
    background-color: #1f5fb3;
}

.header-space {
    height: 50px;
    width: 100%;
}

/* Sección de Inicio */
.hero {
    height: 100vh;
    position: relative;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #00000098;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 10vw;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5em;
    margin: 30px auto 20px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-buttons .button {
    padding: 10px 20px;
    background-color: #fff;
    color: #2c79f8;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.hero-buttons .button:hover {
    background-color: #e0e4f1;
}

/* Sección de Servicios */
.services {
    padding: 40px 20px;
    background-color: white;
    text-align: center;
}

h2 {
    font-size: 2em;
    font-weight: 700;
}

.services h2 {
    margin-bottom: 20px;
}

.services-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card {
    padding: 10px 30px 60px 30px;
    border-radius: 16px;
    width: 28%;
    column-gap: 25px;
    position: relative;
    border: 2px solid #2c79f8;
    text-decoration: none;
}

.service-card img {
    height: 230px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: none;
}

.service-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    margin: 20px 0 10px 0;
    text-align: center;
}

.service-card p {
    font-size: 1em;
    color: #333;
    text-align: left;
}

.service-card .icon-btn {
    color: #2c79f8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 1em;
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    padding: 20px;
    text-decoration: none;
}

.icon-btn i {
    font-size: 1.5em;
}

.service-card:hover {
    background: rgb(31, 95, 179);
    background: linear-gradient(90deg, rgba(31, 95, 179, 1) 0%, rgba(44, 121, 248, 1) 100%);
    color: white;
    border: 2px solid transparent;
}

.service-card:hover h3,
.service-card:hover span {
    color: white;
}

.service-card:hover p {
    color: #e3e3e3;
}

.button.secondary.pop {
    grid-column: 1/3;
    padding: 10px 20px;
    background-color: #2c79f8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
    width: max-content;
    height: max-content;
    text-decoration: none;
    margin: auto auto 30px auto;
}

.button.tertiary {
    padding: 10px 20px;
    background-color: #2c79f8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.evaluation-list,
.certification-list {
    list-style-type: disc;
    padding-left: 20px;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: left;
}

.evaluation-list li,
.certification-list li {
    font-size: 1em;
    color: #333;
    margin-bottom: 10px;
    list-style: disc;
    margin: 0 10px 0 30px;
}

.category {
    font-size: 1em;
    font-weight: 600;
    color: #2c79f8;
    list-style: none;
}

.fa-circle-plus {
    color: #1f5fb3;
    font-size: 1.2em;
}

.services-grid {
    display: flex;
    flex-direction: column;
    height: max-content;
    align-items: center;
    justify-content: center;
    width: 70%;
    margin: 60px auto;
    text-align: center;
}

.services-grid h3 {
    font-size: 2em;
    font-weight: 600;
    text-align: center;
    color: #2c79f8;
    margin-bottom: 10px;
}

.services-grid p {
    font-size: 1.25em;
    color: #333;
    margin-bottom: 20px;
}

.services-grid img {
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    height: auto;
    margin: 60px auto;
}

.pop-up {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1aac;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pop-up .content {
    background-color: white;
    border-radius: 16px;
    width: 60%;
    min-height: max-content;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.more .content .evaluation-list {
    grid-column: 1/3;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    color: #2c79f8;
    font-size: 1.2em;
    cursor: pointer;
}

.pop-up h3 {
    grid-column: 1/3;
    width: 100%;
    text-align: center;
    padding: 12px 0 10px 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #55555573;
    font-weight: 600;
    font-size: 1.2em;
}

#evaluaciones,
#certificaciones,
#more {
    display: none;
    /* Oculta el pop-up inicialmente */
    /* Agrega aquí otros estilos para el diseño del pop-up */
}

/* Sección de Beneficios */
.benefits {
    padding: 40px 10vw;
    background: rgb(31, 95, 179);
    background: linear-gradient(90deg, rgba(31, 95, 179, 1) 0%, rgba(44, 121, 248, 1) 100%);
    text-align: center;
    color: white;
}

.benefits h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.fact-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.fact {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.fact .big {
    font-size: 4em !important;
    font-weight: 600;
    margin: auto auto 0 auto;
    text-align: center;
}

.fact .small {
    font-size: 1em;
    font-weight: 300;
    margin: -10px auto auto auto;
    text-align: center;
}

.fact .big {
    font-size: 5em;
    font-weight: 600;
}

strong {
    font-weight: 600;
}

/* Sección de Contacto */
.contact {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.contact label {
    font-size: 1em;
    color: #333;
    align-self: flex-start;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact button {
    padding: 10px 20px;
    background-color: #2c79f8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.contact button:hover {
    background-color: #1f5fb3;
}

/* Pie de Página */
footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer a {
    color: #2c79f8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 2nd request */

/* Estilos para "Cómo Funciona" */
.how-it-works {
    padding: 40px 20px;
    background-color: #f0f4fc;
    text-align: center;
}

.how-it-works h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.how-it-works p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.how-it-works ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    max-width: 60%;
    margin: 0 auto;
}

.how-it-works li {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
    padding-left: 20px;
    position: relative;
}

.how-it-works li::before {
    content: "•";
    color: #2c79f8;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Estilos para "Precios y Paquetes" */
.pricing {
    text-align: center;
    padding: 40px 20px;
}

.pricing-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.pricing-card {
    padding: 15px 30px;
    border-radius: 16px;
    width: 28%;
    column-gap: 25px;
    position: relative;
    border: 2px solid #2c79f8;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pricing-card p {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c79f8;
    text-align: left;
}

.pricing-card .mid {
    font-weight: 300;
    font-size: .9em;
}

.pricing-card .icon-btn {
    color: #2c79f8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 1.1em;
    display: flex;
    text-decoration: none;
    margin: 0;
}

.icon-btn i {
    font-size: 1.5em;
}

.pricing-card:hover {
    background: rgb(31, 95, 179);
    background: linear-gradient(90deg, rgba(31, 95, 179, 1) 0%, rgba(44, 121, 248, 1) 100%);
    color: white;
    border: 2px solid transparent;
}

.pricing-card:hover h3,
.pricing-card:hover span {
    color: white;
}

.pricing-card:hover p {
    color: #e3e3e3;
}

/* 3rd request */

/* Sección "Nosotros" */
.about {
    padding: 40px 20px;
    background-color: #f0f4fc;
    text-align: center;
}

.about h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.about p {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 10px auto;
}

/* Sección de Contacto */
.contact {
    padding: 40px 20px;
    background-color: #ffffff;
    text-align: center;
}

.contact h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.contact p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.contact label {
    font-size: 1em;
    color: #333;
    align-self: flex-start;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.contact button {
    padding: 10px 20px;
    background-color: #2c79f8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.contact button:hover {
    background-color: #1f5fb3;
}

/* 4th request */

/* Sección de Validación de Resultados */
.validation {
    padding: 40px 20px;
    background-color: #f0f4fc;
    text-align: center;
    height: 100vh;
    position: relative;
}

.validation video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.validation-content {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #00000098;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 10vw;
    color: white;
    text-align: center;
}

.validation h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #e3e3e3;
}

.validation p {
    font-size: 1.1em;
    color: #e3e3e3;
    margin-bottom: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.validation form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.validation label {
    font-size: 1em;
    color: #e3e3e3;
    align-self: flex-start;
}

.validation input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
}

.validation button {
    padding: 10px 20px;
    background-color: #2c79f8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.validation button:hover {
    background-color: #1f5fb3;
}

/* Mensaje de Resultado */
#mensaje-resultado {
    font-size: 1.1em;
    color: #e63946;
    /* Color para mensaje de error */
    margin-top: 20px;
}

nav .button.mobile {
    display: none;
}

.wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 12px 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.wa i {
    font-size: 1.3em;
    margin-right: 10px;
}

@media (max-width: 781px) {
    body {
        font-size: 14px;
    }

    header nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        text-align: center;
    }

    nav .button {
        display: none;
    }

    nav .button.mobile {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }

    header .logo {
        font-size: 1.2em;
        grid-column: 1;
        grid-row: 1;
        margin: auto auto auto 0;
    }

    header ul {
        grid-column: 1/3;
        grid-row: 2;
        list-style: none;
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: 5vh 5vw 0 5vw;
    }

    .hero h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.7em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .fact-container {
        flex-direction: column;
    }

    .services-content {
        flex-direction: column;
        width: 80%;
        margin: auto;
    }

    .service-card {
        width: 100%;
        margin: auto;
    }

    .pricing-content {
        flex-direction: column;
        width: 80%;
        margin: 30px auto auto auto;
    }

    .pricing-card {
        width: 100%;
    }

    .pop-up .content {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        width: 90%;
    }
}