/* Variables de Color*/
:root {
    --primary-blue: rgba(36, 167, 221, 0.8);
    --secondary-blue: rgba(165, 222, 247, 0.8);
    --accent-yellow: rgba(252, 219, 49, 0.8);
    --text-color: rgba(0, 107, 181, 0.8);
    --white: #fff;
    --light-gray: rgba(244, 248, 248, 0.8);
}

@font-face {
    font-family: 'SharpSans';
    /* El nombre que usarás en tu CSS */
    src: url('/fonts/SharpSansDispNo2-Medium.woff2') format('woff2');
    /* La ruta al archivo */
}

html {
    scroll-behavior: smooth;
}

/* Base global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    /* Fondo blanco para el preloader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Asegura que esté por encima de todo */
}

.preloader-logo {
    width: 300px;
    /* Ajusta el tamaño de tu logo según sea necesario */
    height: auto;
    opacity: 0;
    /* Inicia invisible */
    transform: scale(0.5);
    /* Inicia pequeño */
    animation: generateLogo 2s forwards cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Animación más "gomosa" */
}

@keyframes generateLogo {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        /* Efecto de rebote */
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

body {

    font-family: 'SharpSans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}



h1 {
    text-align: center;
    padding: 20px 0;
    font-weight: bold;
    /*-webkit-text-stroke: 1px var(--white);*/
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);*/
}

h2,
h3 {
    text-align: center;
    padding: 20px 0;
    font-weight: 900;
    background-color: var(--white);
}

/* Botones y CTA */
.cta-button,
.cta-hero {
    padding: 10px 25px;
    border: none;
    border-radius: 0px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button,
.cta-hero {
    background-color: var(--accent-yellow);
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover,
.cta-hero:hover {
    background-color: var(--accent-yellow);
}

.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    /* Fijo en la parte superior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #0066b2;
    font-size: 1.2rem;
}

.logo i {
    margin-right: 8px;
    font-size: 1.5rem;
    color: #00b4d8;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: rgb(0, 107, 181);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-menu a:hover {
    color: rgb(36, 167, 221);
}

/* BOTÓN CTA del header */
.header-cta-button {
    background-color: rgb(252, 219, 49);
    color: rgb(0, 107, 181);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    margin-left: 20px;
    white-space: nowrap;
}

/* BOTÓN HAMBURGUESA (MÓVIL) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(0, 107, 181);
    z-index: 20;
}

/* 1. HEADER / BARRA DE NAVEGACIÓN 
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 19px;
    font-weight: bold;
}*/

/*.logo img {

    height: 40px;

}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
}

/* --- BOTÓN HAMBURGUESA (MÓVIL) --- 
.menu-toggle {
    display: none;
    
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #0066b2;
    z-index: 20;
     
}

.nav-menu {
    display: none;
}*/

/* 2. SECCIÓN PRINCIPAL / MARQUESINA (Carrusel) */
/*.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--secondary-blue);

}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}*/

/* Estilo para las imágenes del carrusel
.carousel-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    opacity: 0;
    transition: opacity 2s ease-in-out;

}

.slide-1 {
    opacity: 1;
    background-image: url('slide1.png');
}

.slide-2 {
    opacity: 1;
    background-image: url('slide2.png');
}

.slide-3 {
    opacity: 1;
    background-image: url('fam3.png');
}*/

/*.hero-content {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translateY(-50%);
    color: var(--text-color);
    padding: 20px;
    width: 40%;
    text-align: center;
    z-index: 10;
}

.hero-content p {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    -webkit-text-stroke: 1px var(--primary-blue);
    text-shadow: 2px 2px 4px rgb(255, 255, 255);
}


.hero-content p1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;

}*/

/* --- CONTENEDOR PRINCIPAL DEL CARRUSEL --- */
.dynamic-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: rgba(244, 248, 248, .5);
}

/* --- DIAPOSITIVAS (SLIDES) --- */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* --- CONTENIDO DINÁMICO --- */
.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 100%;
}

/* --- Estilos por Defecto del Contenido (SLIDE 1) --- */

.slide-1 .content-box {
    margin-left: auto;
    max-width: 450px;
    text-align: right;
    /* <-- JUSTIFICACIÓN A LA DERECHA */
}

.slide-1 .slide-title {
    color: white;
    background-color: unset;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.slide-1 .cta-card {
    /* ESTILO COMPACTO */
    background-color: rgba(0, 107, 181, 0.4);
    padding: 15px;
    /* REDUCCIÓN DE PADDING */
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    /* LÍMITE DE ANCHO */
    margin-left: auto;
    margin-right: 5%;
    /* Centra la caja CTA dentro de su padre a la derecha */
}

.slide-1 .cta-card p {
    color: white;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    /* TEXTO MÁS PEQUEÑO */
}

.slide-1 .cta-btn {
    display: block;
    background-color: rgb(252, 219, 49);
    color: rgb(0, 107, 181);
    padding: 8px 15px;
    /* BOTÓN MÁS PEQUEÑO */
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 1rem;
}

.slide-1 .cta-btn:hover {
    background-color: rgb(252, 219, 49);
    color: rgb(36, 167, 221);
}

/* --- MODIFICADORES ESPECÍFICOS DE SLIDE (SIN CAMBIOS) --- */

/* SLIDE 2: Diseño tipo prefaq.png */
.slide-2 .slide-content {
    align-items: center;
}

.slide-2 .content-box {
    background-color: #0066b2;
    color: white;
    padding: 60px 40px;
    border-radius: 8px;
    margin-left: 20%;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 40px;
    align-items: center;
}

.slide-2 .slide-title {
    color: white;
    font-size: 2rem;
    text-shadow: none;
    margin-bottom: 20px;
}

.slide-2 .content-text {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide-2 .content-text li {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.slide-2 .graphic-icon {
    color: #e74c3c;
    font-size: 6rem;
}


/* SLIDE 3: Diseño tipo calc1.jpg (Simulador simple) */
.slide-3 .slide-content {
    justify-content: flex-end;
    align-items: center;
}

.slide-3 .content-box {
    background-color: #0066b2;
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    margin: 0 0 0 50%;
    text-align: left;
}

.slide-3 .slide-title {
    font-size: 1.8rem;
    text-align: center;
    color: white;
    text-shadow: none;
    margin-bottom: 20px;
}

.input-display {
    background-color: white;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.plazo-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 10px;
}

.plazo-item {
    background-color: #1abc9c;
    padding: 8px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.plazo-item:nth-child(even) {
    background-color: #1abc9c;
}

.plazo-item:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.2);
}


/* --- NAVEGACIÓN --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    font-size: 1rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 100%;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* --- PUNTOS INDICADORES --- */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #00b4d8;
}

/* --- RESPONSIVE --- */


/* 3. SECCIÓN: ¿Qué es Mi Crédito Salud? */
.about-section {
    background-color: var(--white);
    padding: 30px 17%;
    color: var(--text-color);
    height: 600px;
}

.about-section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-content {
    width: auto;
    height: auto;
    margin: 0 auto;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
}

/* 4. SECCIÓN: Características y 5. Beneficios */
.features-section,
.benefits-section {
    padding: 30px 5%;
    height: 607px;
}

.requirements-section {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px 5%;
    height: 607px;
}

.features-section h3,
.benefits-section h3 {
    color: var(--text-color);
}

.features-grid {
    background-color: var(--white);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 20px auto;
}

.requirements-grid {
    background-color: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 20px auto;
}

.benefits-section {
    background-color: var(--primary-blue);

}

.benefits-section h3 {
    color: var(--secondary-blue);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 500px 500px;
    gap: 15px;
    max-width: 900px;
    margin: 20px auto;
}

.feature-item,
.benefit-item {
    background-color: var(--secondary-blue);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 600;

}

.requirement-item {
    background-color: var(--primary-blue);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--white);
    font-size: 20px;
    font-weight: 600;

}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    box-shadow: none;

}

.benefit-item p {
    font-size: 20px;
    font-weight: 600;
}


.icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--primary-blue);
    position: relative;
    flex-shrink: 0;
}

.benefit-item .icon {
    background-color: var(--secondary-blue);

}

.icon.heart-icon::before {
    content: '♥';
    font-size: 18px;
    color: var(--white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 6. SECCIÓN: Simula tu Préstamo (Calculadora) */
.simulator-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 320px;
    box-sizing: border-box;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 8px 12px;
    background-color: #f9fafb;
    position: relative;
}

.input-with-icon input[type="number"] {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0;
    background-color: transparent;
    color: #333;
}

.input-with-icon .currency {
    margin-left: 8px;
    color: #667085;
    font-weight: 500;
}

.edit-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    margin-left: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.edit-button:hover {
    background-color: #e0e0e0;
}

.results label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.term-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0fdf9;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #d1fae5;
}

.term-option:last-child {
    margin-bottom: 0;
}

.monthly-payment {
    font-size: 16px;
    font-weight: bold;
    color: #047857;
    /* Verde más oscuro */
}

.term-label {
    font-size: 14px;
    color: rgb(36, 167, 221);
    /* Verde aún más oscuro */
    background-color: #a7f3d0;
    /* Verde claro para el label del plazo */
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* --- CONTENEDOR PRINCIPAL CALCULADORA--- */

.sim-gral {
    background-image: url('pagaciru2.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px 0 20px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.sim-gral h1 {

    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: rgba(0, 107, 181, 0.8);
    padding: 10px 30px;
    display: inline-block;
    margin-top: -50px;
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
    gap: 0px;
    padding: 20px;
}

/* --- COLUMNA IZQUIERDA (IMAGEN) --- */
.image-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image-column img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* --- COLUMNA DERECHA (CALCULADORA) --- */
.calculator-column {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
}

.calculator-card {
    background-color: rgb(0, 107, 181);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.calc-inner {
    background-color: rgb(165, 222, 247);
    padding: 25px;
    border-radius: 4px;
}

.calc-inner h3 {
    background-color: rgb(165, 222, 247);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: rgb(0, 107, 181);
}

/* --- INPUTS --- */
label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.input-group {
    margin-bottom: 25px;
}

input[type="number"] {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    color: #888;
    font-family: 'SharpSans', sans-serif;
}

input[type="number"]::placeholder {
    color: #ccc;
}

/* --- RESULTADOS (FILAS) --- */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-row {
    background: white;
    border-radius: 50px;
    padding: 10px 10px 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.monthly-payment {
    font-weight: 600;
    font-size: 1.1rem;
    flex-grow: 1;
    padding-right: 15px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 65%;
    color: #333;
}

.term-badge {
    background-color: rgb(36, 167, 221);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.sim-btn {
    display: inline-block;
    background-color: rgba(252, 219, 49, 0.8);
    /* Azul corporativo */
    color: rgba(0, 107, 181, 0.8);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 900;
    /*border-radius: 50px;*/
    transition: background 0.3s ease;
    width: 40%;
    /* Botón ancho completo de la caja */
    text-align: center;
    box-sizing: border-box;
    margin-right: -19px;
    font-size: 20px;

}

.sim-btn:hover {
    background-color: rgb(36, 167, 221);
}

/* --- FOOTER LEGAL --- */
.legal-text {
    text-align: right;
    font-size: 0.7rem;
    color: rgb(0, 107, 181);
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    padding: 0 20px 40px 20px;
    line-height: 1.4;
}

.legal-text2 {
    text-align: center;
    font-size: 0.5rem;
    color: rgb(0, 107, 181);
    margin-top: 3px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    padding: 0 20px 0px 20px;
    line-height: 1.4;
}

.legal-links {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Ocultar flechas del input number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.promo-banner {
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    overflow: hidden;
    min-height: 400px;
    color: rgb(0, 107, 181);
}

.promo-content {
    display: flex;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 300px;
}

.image-wrapper img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
}

.text-wrapper {
    flex: 1.2;
    /* Un poco más ancho que la imagen */
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    font-size: 2rem;
    /* Texto grande */
    font-weight: 700;
    /* Negrita */
    margin-bottom: 15px;
    line-height: 1.2;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    /* Centra todo el contenido dentro del contenedor */
}

.faq-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.faq-item {
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Necesario para la animación */
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    outline: none;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.icon-plus {
    font-size: 1.5rem;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--secondary-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Estilos cuando está activo (abierto) */
.faq-item.active .icon-plus {
    transform: rotate(45deg);
    /* Gira el + para que parezca una X */
    color: rgba(165, 222, 247, 0.8);
    /* Cambia de color al abrir (opcional) */
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
}

.site-footer {
    background-color: rgb(85, 89, 90);
    background-image: url("../img/footer.jpg");
    background-size: cover;
    background-position: center;
    /* Un azul más oscuro que el banner para dar base */
    color: #ffffff;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-container img {
    max-width: 100%;
    height: auto;
    margin-top: 43px;
}

/* Columnas del footer */
.footer-col {
    flex: 1;
    min-width: 200px;
    /* Ancho mínimo antes de saltar línea */
}

.footer-col tit {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
    /* Azul cyan para resaltar títulos */
    font-weight: 700;
}

.footer-col p {
    line-height: 1.6;
    color: #d1d5db;
}

.whts {
    margin-top: -44px;
    margin-left: -38px;
    margin-right: 48px;
}

/* Listas de enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
    /* Pequeño movimiento al pasar el mouse */
}

/* Iconos de Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--text-color);
    border-radius: 50%;
    /* Círculos */
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

/* Colores específicos al pasar el mouse */
.social-link:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    /* Efecto de elevación */
}

/* --- BARRA DE COPYRIGHT --- */
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #8da2b5;
}

.mision-section {
    padding: 50px 20px;
    background-color: #ffffff;
    /* blanco como la imagen */
    font-family: 'SharpSans', sans-serif;
}

/* Contenedor principal */
.mision-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Texto */
.mision-texto {
    flex: 1 1 500px;
    text-align: center;
    color: rgb(0, 107, 181);
    /* azul similar */
}

.mision-texto h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0063c7;
    /* azul del título */
}

.mision-texto p {
    font-size: 18px;
    line-height: 1.6;
    color: rgb(0, 107, 181);
    margin-bottom: 18px;
}

/* Imagen */
.mision-imagen {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
}

.mision-imagen img {
    max-width: 316px;
    height: auto;
}

.credito-salud-section {
    background: #006eb8;
    /* azul parecido al original */
    padding: 50px 0;
    color: white;
    font-family: 'SharpSans', sans-serif;
}

/* Contenedor principal */
.cs-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Columnas */
.cs-column {
    /*width: 45%;*/
    min-width: 280px;
}

/* Títulos */
.cs-column h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Lista */
.cs-column ul {
    list-style: none;
    padding: 0;
}

.cs-column ul li {
    margin-bottom: -6px;
    padding-left: 71px;
    position: relative;
    line-height: 5.4;
}

/* Icono antes de cada item */
.cs-column ul li::before {
    content: url(../img/cora-112.svg);

    font-weight: bold;
    position: absolute;
    left: 0;
    top: 14px;
    color: #ffffff;
    font-size: 16px;
}

/* --- SECCIÓN ¿CÓMO FUNCIONA? --- */
.how-it-works-section {
    position: relative;
    background-image: url('../img/comofunc.jpg');
    /* Imagen de fondo del doctor */
    background-size: cover;
    background-position: center;
    padding: 80px 20px 0 20px;
    /* Espacio superior para el título principal */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    /* Asegura que nada se desborde */
}

/* Capa semitransparente y con desenfoque sobre la imagen de fondo */
.how-it-works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 50, 100, 0.6);
    /* Azul oscuro semitransparente */
    backdrop-filter: blur(5px);
    /* Efecto de desenfoque */
    -webkit-backdrop-filter: blur(5px);
    /* Soporte para Safari */
    z-index: 1;
}

/* Contenido del "Cómo funciona" */
.how-it-works-content {
    position: relative;
    z-index: 2;
    /* Para que esté sobre la capa de desenfoque */
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-it-works-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    /* Espacio debajo del título */
    background-color: rgba(0, 107, 181, 0.8);
    /* Fondo semitransparente para el título */
    padding: 10px 30px;
    border-radius: 5px;
    display: inline-block;
    /* Para que el fondo se ajuste al texto */
}

/* Contenedor de los pasos */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Dos columnas en escritorio */
    gap: 30px;
    width: 100%;
    margin-bottom: 60px;
    /* Espacio antes del banner de WhatsApp */
}

.step-item {
    background-color: rgba(255, 255, 255, 0.6);
    /* Fondo blanco semitransparente */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: center;
    position: relative;
}

/* Número del paso */
.step-number {
    position: absolute;
    top: -20px;
    /* Fuera del recuadro, arriba */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(36, 167, 221);
    /* Azul vibrante */
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 0px solid #ffffff;
    /* Borde blanco como en la imagen */
}

.step-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 15px;
    /* Espacio después del número */
    margin-bottom: 10px;
    color: rgba(0, 107, 181, 0.8);
    /* Azul para títulos de paso */
}

.step-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgb(85, 89, 90);
}

/* --- BANNER DE WHATSAPP --- */
.whatsapp-banner {
    position: relative;
    z-index: 2;
    /* También sobre la capa de desenfoque */
    background-color: rgb(36, 167, 221);
    /* Azul vibrante para el banner */
    color: white;
    padding: 20px 30px;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 10px 10px;
    /* Bordes inferiores redondeados */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-banner a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    white-space: nowrap;
    /* Evita que el número se rompa */
}

.whatsapp-banner a:hover {
    text-decoration: underline;
}

.whatsapp-banner a img {
    width: 10%;
    height: 10%;
    margin-bottom: -7px;
}

/* 1. Estilos del Fondo Oscuro (Modal) */
.modal {
    display: none;
    /* Oculta la modal por defecto */
    position: fixed;
    /* Posicionamiento fijo para cubrir toda la ventana */
    z-index: 1000;
    /* Asegura que esté por encima de todo el contenido */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Permite scroll si toda la ventana modal es muy grande */
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo semi-transparente y oscuro */
}

.modal h1 {
    color: rgb(0, 107, 181);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* 2. Estilos del Contenedor de Contenido (Caja Blanca) */
.modal-contenido {
    background-color: #fefefe;
    margin: 10% auto;
    /* 10% desde arriba y centrado horizontalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Ancho de la caja */
    max-width: 600px;
    /* Ancho máximo para que no sea demasiado grande en escritorios */
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* 3. Estilos del Área con Scroll */
.aviso-scroll {
    max-height: 400px;
    /* Altura máxima antes de que aparezca la barra de scroll */
    overflow-y: auto;
    /* Habilita el scroll vertical */
    padding-right: 15px;
    /* Pequeño padding para que el scroll no choque con el texto */
    border: 1px solid #eee;
    padding: 10px;
}

.aviso-scroll g {
    font-size: 10px;
    color: rgb(85, 89, 90);
}

.aviso-scroll p {
    color: rgb(85, 89, 90);
}

.aviso-scroll p {
    text-align: center;
}

/* 4. Estilos del Botón de Cerrar (la X) */
.cerrar-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Animación opcional para que aparezca desde arriba */
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}


/* 🔥 RESPONSIVE 🔥 */
@media (max-width: 900px) {
    .cs-column {
        width: 48%;
    }


}


/* Media Queries para diseño responsive en móviles */
@media (max-width: 768px) {

    /* .main-header {
        flex-direction: column;
        padding: 10px;
    } */
    /* Header */
    .main-header {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        /* Ajustar a la altura del header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 10;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
        font-size: 1rem;
        color: rgb(85, 89, 90);
    }

    .header-cta-button {
        margin: 10px auto;
        padding: 10px 20px;
        display: block;
        width: 80%;
        box-sizing: border-box;
    }

    h1 {
        text-align: center;
        padding: 3px 0;
        font-weight: bold;
        /*background-color: var(--white);*/
        /*-webkit-text-stroke: 1px var(--primary-blue);*/
        /*text-shadow: 2px 2px 4px rgb(255, 255, 255);*/
        font-size: 20px;
    }



    .about-content {
        font-size: 19px;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .requirements-item {
        border-radius: 8px;
        padding: 2px;
        display: flex;
        align-items: center;
        font-size: 15px;
        font-weight: 600;
    }

    .requirements-section {
        background-color: rgba(255, 255, 255, 0.8);
        padding: 30px 5%;
        height: 900px;
    }

    .feature-item,
    .benefit-item {
        background-color: var(--secondary-blue);
        border-radius: 8px;
        padding: 2px;
        display: flex;
        align-items: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        color: var(--primary-blue);
        font-size: 15px;
        font-weight: 600;
    }

    .sim-gral {
        background-image: none;
        background-size: cover;
        background-position: center;
        padding: 80px 20px 0 20px;
        color: #ffffff;
        text-align: center;
        overflow: hidden;
    }

    .simulator-container {
        flex-direction: column;
    }

    .doctor-image,
    .calculator-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .main-container {
        /*flex-direction: column;*/
        align-items: center;
        width: 110%;
    }

    .calculator-column {
        flex: 1;
        min-width: 388px;
        max-width: 500px;
    }

    .image-column {
        display: none;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
    }

    .image-wrapper {
        margin-bottom: 20px;
    }

    .benefits-list li {
        font-size: 1.5rem;
        /* Texto más pequeño en móvil */
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        /* Centrar iconos en móvil */
    }

    .mision-container {
        flex-direction: column;
        text-align: center;
    }

    .mision-imagen img {
        max-width: 290px;
    }

    .cs-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-column {
        width: 100%;
    }

    .cs-column h2 {
        font-size: 20px;
    }

    .cs-column ul li {
        font-size: 15px;
    }

    .how-it-works-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        gap: 50px;
        /* Más espacio entre pasos */
    }

    .step-item {
        padding: 40px 20px 20px 20px;
        /* Ajuste de padding por el número */
    }

    .step-number {
        top: -25px;
        /* Ajuste para el número en móvil */
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .whatsapp-banner {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .whatsapp-banner a img {
        width: 29%;
        /* height: 10%; */
        margin-bottom: -5px;
    }

    .legal-text {
        text-align: center;
    }

    .sim-btn {
        width: 57%;
    }


    .dynamic-carousel {
        height: 500px;
    }

    .slide-content {
        justify-content: center;
        padding: 0 15px;
    }

    .content-box,
    .slide-2 .content-box,
    .slide-3 .content-box {
        margin: 0 auto;
        text-align: center;
        max-width: 90%;
    }

    /* Asegurar la justificación del texto del título en móvil */
    .slide-1 .content-box {
        text-align: center;
    }

    .slide-2 .content-box {
        flex-direction: column;
    }

    .slide-2 .content-text li {
        font-size: 1rem;
    }

    /* 1. Contenedor de Contenido (.modal-contenido) */
    .modal-contenido {
        /* Fuerza a ocupar casi todo el ancho de la pantalla en móvil */
        width: 95%;
        max-width: 95%;

        /* Asegura que el margen superior sea menor para aprovechar el espacio */
        margin: 5% auto;
    }

    /* 2. Área de Scroll (.aviso-scroll) */
    .aviso-scroll {
        /* Reduce la altura máxima para que se vea más contenido en pantalla */
        max-height: 60vh;
        /* 60% de la altura visible de la pantalla (Viewport Height) */

        /* Asegura un buen espacio interno */
        padding: 10px;
    }

    /* 3. Títulos (opcional, para hacerlos más pequeños y manejables) */
    .modal-contenido h2 {
        font-size: 1.5em;
        /* Ajusta el tamaño del título */
    }

    /* 4. Párrafos (opcional) */
    .aviso-scroll p {
        font-size: 0.9em;
        /* Reduce el tamaño de la fuente para mejor lectura */
    }

    .whts {
        margin-top: -44px;
        margin-left: 27px;
        margin-right: 24px;
    }

}