html {
    scroll-behavior: smooth;
}


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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

header img {
    width: clamp(120px, 15vw, 180px);
    height: auto;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav ul li a {
    font-size: clamp(11px, 1.2vw, 13px);
    text-decoration: none;
    color: rgb(58, 58, 58);
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: rgb(46, 194, 216);
    background-color: rgba(46, 194, 216, 0.1);
}

/* Hero Section */
.herosection {
    text-align: start;
    background-color: rgb(243, 245, 255);
    background-image: url('../img/heroimgv1.avif');
    background-position: right top;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 90vh;
    padding: clamp(20px, 5vw, 100px) clamp(20px, 8vw, 170px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.herosection h3 {
    font-size: clamp(24px, 4vw, 35px);
    color: #2751A3;
    margin-bottom: 10px;
}

.obtenConsultas01 {
    font-size: clamp(28px, 5.5vw, 50px);
    color: #5778FA;
    font-weight: bold;
    display: block;
    margin: 10px 0 20px 0;
    text-decoration: none;
    line-height: 1.2;
}

.btnobtenPerfil01,
.btnobtenPerfil02 {
    font-weight: bold;
    font-size: clamp(14px, 1.5vw, 16px);
    text-decoration: none;
    text-align: center;
    padding: 15px 20px;
    background-color: #5778FA;
    color: white;
    max-width: 300px;
    margin: 20px 0;
    display: inline-block;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid #5778FA;
}

.btnobtenPerfil01:hover,
.btnobtenPerfil02:hover {
    background-color: transparent;
    color: #5778FA;
    transform: translateY(-2px);
}

.alertbtn,
.alertbtn02 {
    font-style: italic;
    color: rgb(67, 67, 67);
    font-size: clamp(12px, 1.3vw, 15px);
    max-width: 350px;
    margin: 10px 0 20px 0;
}

.alertbtn a,
.alertbtn02 a {
    color: rgb(67, 67, 67);
}

.texthero {
    max-width: 650px;
    font-size: clamp(16px, 2vw, 20px);
    margin: 20px 0 30px 0;
    line-height: 1.6;
}

.herosection img {
    width: min(300px, 80vw);
    height: auto;
    margin: 20px 0;
}

.texthero2 {
    max-width: 650px;
    font-size: clamp(12px, 1.4vw, 14px);
    margin: 20px 0;
    color: rgb(67, 67, 67);
    font-style: italic;
}

/* How It Works Section */
.conteinerTituloComofunciona {
    background-color: rgb(243, 245, 255);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 5%;
    gap: 20px;
}

.imgflecha {
    width: 20px;
    transform: rotate(-180deg);
    filter: brightness(0.85);
    transition: none;
    margin-top: -10px;
}



.conteinerTituloComofunciona h3 {
    color: #5778FA;
    font-size: clamp(20px, 3vw, 30px);
    margin-bottom: 15px;
}

.conteinerTituloComofunciona div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conteinerTituloComofunciona div img {
    width: clamp(25px, 3vw, 30px);
    height: auto;
    transition: transform 0.3s ease;
}

.conteinerTituloComofunciona div img:hover {
    transform: scale(1.1);
}

.conteinerComofunciona {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background-color: rgb(243, 245, 255);
    padding: 20px 5%;
}

.conteinerComofunciona div {
    min-height: 300px;
    background-color: #5778FA;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.conteinerComofunciona div:hover {
    transform: translateY(-5px);
}

.conteinerComofunciona .imgfunciona1 {
    background-image: url('../img/imgcf1.avif');
    background-size: cover;
    background-position: center;
}

.conteinerComofunciona .imgfunciona2 {
    background-image: url('../img/imgcf2.avif');
    background-size: cover;
    background-position: center;
}

.conteinerComofunciona div h4 {
    color: white;
    padding: 25px;
    font-size: clamp(16px, 2vw, 20px);
    margin-top: 35px;
    line-height: 1.4;
}

.conteinerComofunciona div p {
    color: white;
    padding: 0 25px 25px 25px;
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.5;
}

/* Create Profile Section */
.cntcreaperfil01 {
    min-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: clamp(20px, 5vw, 60px) 5%;
    text-align: center;
}

.cntcreaperfil01 .text01ctncp {
    font-size: clamp(16px, 2vw, 20px);
    color: rgb(58, 58, 58);
    margin: 10px 0;
}

.cntcreaperfil01 h5 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: bold;
    color: #5778FA;
    padding: 5px 0;
    margin: 0 0 20px 0;
    max-width: 800px;
}

/* Services Section */
.ctnservicioBeneficiosCostos {
    width: 100%;
    background-color: rgb(243, 245, 255);
    padding: clamp(20px, 5vw, 60px) 5%;
}

.ctnservicioBeneficiosCostos h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: lighter;
    color: rgb(100, 100, 100);
    text-align: center;
    padding: 20px 0 0 0;
    margin-bottom: 10px;
}

.ctnservicioBeneficiosCostos h3 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
    color: #5778FA;
    padding: 0 0 40px 0;
}

.ctniteminfoservicios {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 0 40px 0;
}

.ctniteminfoservicios div img {
    width: 40%;
    height: auto;
}

.ctniteminfoservicios div {
    min-height: 300px;
    background-color: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.ctniteminfoservicios div:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.ctnservicioBeneficiosCostos .txtcb01 {
    font-size: clamp(16px, 1.8vw, 18px);
    text-align: center;
    padding: 20px;
    color: rgb(0, 0, 0);
}

.ctnservicioBeneficiosCostos .txtcb01 a {
    color: #5778FA;
    text-decoration: none;
    font-weight: bold;
}

.ctnservicioBeneficiosCostos .txtcb02,
.ctnservicioBeneficiosCostos .txtcb03 {
    font-size: clamp(18px, 2.2vw, 22px);
    text-align: center;
    padding: 10px 20px;
    color: #5778FA;
    margin-bottom: 10px;
}

.ctnservicioBeneficiosCostos .txtcb02 {
    font-weight: bold;
}

.ctnservicioBeneficiosCostos .txtcb03 {
    font-weight: lighter;
}

.ctnservicioBeneficiosCostos .txtcb04 {
    font-size: clamp(18px, 2.2vw, 22px);
    text-align: center;
    padding: 20px;
    color: rgb(67, 67, 67);
    margin-bottom: 30px;
}

.btnobtenPerfil02 {
    font-size: clamp(16px, 1.8vw, 20px);
    margin: 20px auto;
    display: block;
}

.alertbtn02 {
    text-align: center;
    margin: 20px auto;
}

.ctnservicioBeneficiosCostos img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 20px auto;
    display: block;
}

/* Pre-Contact Section */
.pre-contacto {
    width: 100%;
    min-height: 30vh;
    background-image: url('../img/precontact.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #728df8b5;
    background-blend-mode: color-burn;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: clamp(20px, 5vw, 60px) 5%;
    text-align: center;
}

.pre-contacto h2 {
    font-size: clamp(20px, 3vw, 30px);
    color: rgb(209, 209, 209);
    margin-bottom: 10px;
}

.pre-contacto h1 {
    font-size: clamp(24px, 4vw, 40px);
    color: rgb(255, 255, 255);
    margin: 0;
}

/* Contact Section */
.contacto {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: clamp(20px, 5vw, 60px) 5%;
}

.contactodivform {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: clamp(20px, 4vw, 40px);
    border-radius: 10px;
    background-color: white;
}

.contactodivform .txtform1 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: bold;
    color: #545454;
    margin-bottom: 10px;
}

.contactodivform .txtform2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: bold;
    color: #5778FA;
    margin-bottom: 20px;
}

.contactodivform .txtform3 {
    font-size: clamp(16px, 1.8vw, 18px);
    color: #545454;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contactodivform form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contactodivform form input {
    padding: 15px 10px;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: clamp(14px, 1.5vw, 16px);
    transition: border-color 0.3s ease;
    background-color: transparent;
}

.contactodivform form input:focus {
    outline: none;
    border-bottom-color: #5778FA;
}

.contactodivform form input[type="submit"] {
    background-color: #5778FA;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: clamp(16px, 1.8vw, 18px);
    width: 150px;
    height: 50px;
    margin: 20px 0 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contactodivform form input[type="submit"]:hover {
    background-color: #4a67e5;
    transform: translateY(-2px);
}

.contactodivmail {
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #5778FA;
    padding: clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contactodivmail h1 {
    font-size: clamp(28px, 4vw, 36px);
    color: white;
    margin-bottom: 30px;
}

.titulocontacto {
    font-size: clamp(16px, 1.8vw, 18px);
    color: white;
    margin-bottom: 10px;
    font-weight: bold;
}

.detallecontacto {
    font-size: clamp(14px, 1.6vw, 16px);
    color: white;
    margin-bottom: 20px;
    word-break: break-word;
}

.contactodivmail img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 30px;
    align-self: center;
}

/* Footer */
footer {
    width: 100%;
    background-color: #5778FA;
    color: white;
    padding: clamp(20px, 5vw, 60px) 5%;
}

.cntfooter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.cntfooter div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cntfooter div img {
    width: 200px;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.cntfooter div a {
    color: white;
    text-decoration: none;
    font-size: clamp(13px, 1.4vw, 15px);
    transition: color 0.3s ease;
}

.cntfooter div a:hover {
    color: rgb(46, 194, 216);
}

.cntfooter div .tittlefooter {
    font-weight: bold;
    font-size: clamp(16px, 1.8vw, 18px);
    margin-bottom: 10px;
}

.cntfooter2 {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.cntfooter2 p {
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: bold;
}

.ctnminihero {
    width: 100%;
    background-image: url('../img/recomendacionespacientehero.avif');
    background-color: #5778fa86;
    background-blend-mode: multiply;
    backdrop-filter: blur(20px);
    color: white;
    padding: clamp(20px, 5vw, 60px) 5%;
    text-align: center;
}

.ctnminihero h1 {
    font-size: clamp(50px, 4vw, 36px);
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.agradecimientodiv {
    max-width: 40%;
    /* Limita el ancho para que no se extienda demasiado */
    margin: 0 auto;
    /* Centra el div horizontalmente */
    text-align: start;
    /* Centra el texto */
    background-color: #fff;
    /* Fondo blanco */
    padding: 40px 30px;
    /* Espaciado interno */
    border-radius: 10px;
    /* Bordes redondeados */

}

.contactoredirect {
    font-size: 12px;
    color: #5f5f5f;
    margin-bottom: 10px;
    font-style: italic;
}

.contactoredirect span {
    color: #5778FA;
    cursor: pointer;
    text-decoration: underline;
}

.agradecimientodiv h4 {
    font-size: 28px;
    color: #464646;
    margin-bottom: 10px;
    font-weight: bold;
}

.contactocita {
    font-size: 15px;
    color: #5f5f5f;
    margin-bottom: 10px;
}

.contactocita span {
    font-weight: bold;
}

.pasostitulo {
    font-size: 15px;
    color: #5f5f5f;
    margin-bottom: 10px;
    font-weight: bold;
}

.pasoscontacto {
    margin-bottom: 10px;
}

.pasoscontacto li {
    font-size: 15px;
    color: #5f5f5f;
    margin-bottom: 10px;
    list-style-type: none;
    counter-increment: number;
}

.pasoscontacto li:before {
    content: counter(number) ". ";
    color: #5f5f5f;
}

.agradecimientodiv img {
    margin-top: 15px;
    width: 40%;
}

.infocontacto {
    font-size: 13px;
    color: #5f5f5f;
}

.ctnminihero02 {
    width: 100%;
    background-color: #5778FA;
    color: white;
    padding: clamp(20px, 5vw, 60px) 5%;
    text-align: center;
}

.ctnminihero02 h1 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.ctnminihero02 p {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.conteinerpreguntasfrecuentes {
    max-width: 40%;
    /* Limita el ancho para que no se extienda demasiado */
    margin: 0 auto;
    /* Centra el div horizontalmente */
    text-align: start;
    /* Centra el texto */
    background-color: #fff;
    /* Fondo blanco */
    padding: 40px 30px;
    /* Espaciado interno */
    border-radius: 10px;

}

.conteinerpreguntasfrecuentes h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #5778FA;
    text-decoration: underline;
    margin-bottom: 30px;
}

.conteinerpreguntasfrecuentes h6 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #5778FA;
}

.conteinerpreguntasfrecuentes p {
    font-size: 15px;
    font-weight: lighter;
    margin-bottom: 10px;

}

.fondocontacto {
    background-color: #d4dcfa;
}

.containercontact {
    margin: 0 auto;
    max-width: 700px;
    padding: 40px;
    background-color: transparent;
}

.containercontact h1 {
    font-size: 36px;
    color: #4a6cf7;
    font-weight: bold;
    text-decoration: underline;
}

.containercontact p {
    color: #2e2e2e;
    margin: 5px 0 15px;
    font-weight: 500;
}

.containercontact label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

.group-radio {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center
}

.group-radio {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center
}

.group-radio label {
    margin-right: 10px;
    font-size: 15px;
    font-weight: normal;
}

.group-radio input[type="radio"] {
    margin-right: 10px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

.custom-file-upload {
    font-size: 16px;
    font-weight: bold;
    color: #4a6cf7;
    cursor: pointer;
}

input[type="file"] {
    display: block;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px auto;
    transition: background-color 0.3s ease;
    text-align: center;
}

input[type="file"]:hover {
    background-color: #3452e1;
}

input[type="submit"] {
    width: 100%;
    background-color: #4a6cf7;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #3452e1;
}

/* Contenedor principal */
.consulta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: #f4f6fc;
    padding: 20px;
}

/* Tarjeta */
.consulta-card {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 550px;
    width: 100%;
}

/* Título */
.consulta-title {
    font-size: 1.8rem;
    color: #3b57ff;
    margin-bottom: 15px;
}

/* Texto */
.consulta-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Email */
.consulta-email {
    font-size: 1.1rem;

    color: #333;
    margin-bottom: 20px;
}

/* Botón */
.btn-home {
    background: #3b57ff;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-home:hover {
    background: #2f47d8;
}



/* Responsive Breakpoints */

/* Extra Large Screens (4K, Large TVs) */
@media (min-width: 1920px) {

    header,
    .herosection,
    .conteinerTituloComofunciona,
    .conteinerComofunciona,
    .cntcreaperfil01,
    .ctnservicioBeneficiosCostos,
    .pre-contacto,
    .contacto,
    footer {
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
    }

    .herosection {
        background-size: 1000px;
        padding-left: 200px;
        padding-right: 200px;
    }
}

/* Large Desktop Screens */
@media (min-width: 1200px) {
    .contacto {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .contactodivform {
        justify-self: end;
        max-width: 500px;
    }

    .contactodivmail {
        justify-self: start;
        max-width: 500px;
    }

    .conteinerComofunciona {
        grid-template-columns: repeat(4, 1fr);
    }

    .ctniteminfoservicios {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Standard Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .herosection {
        background-size: 600px;
    }

    .conteinerComofunciona {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctniteminfoservicios {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .herosection {
        background-size: 400px;
        text-align: center;
        background-position: center top;
        padding-top: 300px;
    }

    .conteinerComofunciona {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctniteminfoservicios {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .herosection {
        background-size: 250px;
        background-position: center top;
        text-align: center;
        padding-top: 200px;
    }

    .conteinerTituloComofunciona {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 5px;
    }

    .herosection {
        background-image: none;
        text-align: center;
        padding: 40px 20px;
        min-height: auto;
    }

    .conteinerTituloComofunciona {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .conteinerComofunciona {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .ctniteminfoservicios {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contacto {
        padding: 20px;
    }

    .contactodivform,
    .contactodivmail {
        padding: 20px;
    }

    .contactodivform form input[type="submit"] {
        width: 100%;
        margin: 20px 0 0 0;
    }

    .cntfooter {
        grid-template-columns: 1fr;
        text-align: center;
    }   
    .cntfooter div img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    header nav {
        display: none;
    }

    .herosection {
        background-image: none;
    }

    .btnobtenPerfil01,
    .btnobtenPerfil02 {
        border: 2px solid #000;
        background: transparent;
        color: #000;
    }
}