@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

:root {
    --text-h2: #00008B;

    /* Interbank */
    --primario-color-interbank: #2EA658;
    --secundario-color-interbank: #36BF66;
    --terciario-color-interbank: #A0D9B4;

    /* Paypal */
    --primario-color-paypal: #27418C;
    --secundario-color-paypal: #415AA6;
    --terciario-color-paypal: #0511F2;
    --cuarto-color-paypal: #439FD9;

    /* Proyecto */
    --primario-color-proyecto: #D4AF37;
    --secundario-color-proyecto: #FFFF00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Estilos de la introducción */
.c-centro-salud {
    width: 100%;
    padding-inline: 18rem;
    box-sizing: border-box !important;
}

/* h2 del contenedor de introducción */
.centro-salud h2 {
    margin-block: 1rem;
    text-align: center;
}

/* Contenedor de texto más iframe*/
.c-text-iframe {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Parrafor de contenedor de texto más iframe */
.c-text-iframe p {
    text-align: justify;
    line-height: 1.3rem;
}

.videos-text-proyecto {
    width: 100% !important;
}

/* Iframe de contenedor de texto más iframe */
.c-text-iframe iframe {
    width: 100%;
}

/* Contenedor del texto solo */
.c-text-alone {
    width: 100%;
    margin-top: 0.5rem;
}

.c-text-alone p {
    text-align: justify;
    line-height: 1.3rem;
    margin-block: 1.5rem;
}

/* PREGUNTAS FRECUENTES */

.c-carts-preguntas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.carts-preguntas {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.preguntas {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.pregunta {
    font-size: 1rem;
    font-weight: bold;
    width: 70%;
    text-align: center;
    justify-content: space-between;
    padding-inline: 2rem;
    box-sizing: border-box !important;
}

/* Estilo inicial del botón */
.btn-info {
    width: 30%;
    height: 100%;
    padding: 2.5rem;
    border: solid 2px var(--text-h2);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.5s ease, background-color 1.3s, border-radius 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    position: relative;
    opacity: 1;
    left: 0%;
    transform: translateX(0);
}

@keyframes moverIzquierda {
    0% {
        transform: translateX(300%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes moverDerecha {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(0%);
    }
}

.btn-info.movido {
    animation: moverIzquierda 0.5s forwards;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.btn-info.regresando {
    animation: moverDerecha 0.5s forwards;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.btn-info:hover {
    color: var(--text-h2);
}

.informacion li {
    margin-block: 1rem;
}

.informacion {
    animation: mostrarInformacion 1s forwards;
    max-height: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 1.5s ease;
    margin: auto;
}

.informacion.mostrar {
    max-height: max-content;
    max-width: 100%;
    opacity: 1;
    padding: 2rem;
    text-align: justify;
}

.img_proyectos_text {
    width: 100%;
    height: 100%;
}

/* ===== PLANTEAMIENTO DEL PROYECTO ===== */
.ppj-container {
    width: 100%;
    color: rgb(30, 30, 100);
    margin-block: 2rem;
}

.ppj-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2f3e5c;
    margin-block: 0.5rem;
}

.ppj-intro {
    margin-bottom: 30px;
    line-height: 1.6;
    color: black;
}

.ppj-intro strong {
    color: #2f3e5c;
}

.ppj-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 1rem;
}

.ppj-box {
    flex: 1 1 320px;
    background-color: #f9fbfd;
    border: 2px solid #233559;
    /* azul solo como borde */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(35, 53, 89, 0.1);
}

.ppj-heading {
    background-color: #233559;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-block: 0;
}

.ppj-text {
    margin-top: 10px;
    text-align: justify;
    line-height: 1.5;
}

.ppj-arrow {
    font-size: 2rem;
    font-weight: bold;
    color: #233559;
    /* solo aquí también, por coherencia visual */
    user-select: none;
}

.solo-movil {
    display: none;
}

/* MEDIA QUERIS */

@media screen and (max-width: 1800px) {
    .videos-text-proyecto {
        height: auto;
    }

    .img_proyectos_text {
        height: 300px;
        object-fit: cover;
    }
}

@media screen and (max-width: 1400px) {

    .c-centro-salud {
        padding-inline: 11rem;
    }

    .c-centro-salud {
        padding-inline: 8rem;
    }

    .c-centro-salud {
        padding-inline: 10rem;
    }

    .texto-extra {
        display: none;
    }

    .solo-movil {
        display: block;
    }
}

@media screen and (max-width: 1100px) {
    .c-centro-salud {
        padding-inline: 4rem;
    }
}

@media screen and (min-width: 769px) {

    .c-text-alone iframe {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .c-text-iframe {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .c-text-iframe {
        grid-template-columns: 100%;
    }

    .c-text-alone iframe {
        width: 100%;
        height: auto;
    }

    .c-text-alone {
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 468px) {
    .c-centro-salud {
        padding-inline: 2rem;
    }

    .pregunta {
        font-size: 14px;
        padding: 16px;
    }

    .btn-info {
        padding: 1rem;
        font-size: 15px;
    }
}