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

@font-face {
    font-family: 'Avenir Next';
    src: url('assets/AvenirNext-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('assets/AvenirNext-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Avenir Next', Arial, sans-serif;
    line-height: 1.6;
}

.seccion-1,
.seccion-2,
.seccion-3 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seccion-1 {
    background-image: url('img/fondo-seccion-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 900px;
    position: relative;
}

.seccion-2 {
    background-color: #ffffff;
    min-height: 850px;
    margin: 40px 0px;
}

.seccion-3 {
    background-color: #F0EFF0;
    min-height: 880px;
    padding-top: 60px;
    padding-bottom: 60px;
}
.tex-3 {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 1.4rem;
    color: #247DE1;
    font-weight: 600;
}
.contenido {
    text-align: center;
    padding: 20px;
}

.contenido-principal {
    text-align: left;
    margin-left: 800px;
}

.titulo-principal {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 5.6rem;
    color: #013ca9;
    margin-bottom: -25px;
    line-height: 1.1;
    text-align: center;
}


.titulo-ahorro {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 5.6rem;
    color: #013ca9;
    /* margin-bottom: 20px; */
    line-height: 1.1;
    text-align: center;
}


.subtitulo {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: #247de1;
    line-height: 1.2;
    text-align: center;
    margin-top: -17px;
}

.contenido h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}



.contenido p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contenido-plan {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.titulo-plan {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 3rem;
    color: #013ca9;
    margin-bottom: 10px;
    line-height: 1.1;
    margin-top: 50px;
    margin-bottom: 0px;
}

.subtitulo-plan {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 3rem;
    color: #013ca9;
    margin-bottom: 50px;
    line-height: 1.1;
}

.descripcion-plan {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 28px;
    color: #247DE1;
    font-weight: 600;
    line-height: 38px;
    max-width: 1064px;
    margin: 0 auto 65px;
    width: 70%;
    text-align: center;
}
p.descripcion-plan {
    margin-bottom: 20px;
}

.descripcion-plan strong {
    color: #013CA9;
    font-weight: 700;
}

.imagen-premios {
    text-align: center;
    margin-top: 40px;
}

.imagen-premios img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin-bottom: 45px;
}

.botones-bases {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.btn-bases {
    width: 317px;
    height: 77.72px;
    padding: 15px 40px;
    background: #247DE1;
    border-radius: 25px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: inline-flex;
    text-decoration: none;
    color: white;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-bases:hover {
    background: #013CA9;
}

.titulo-formulario {
    text-align: center;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 2.2rem;
    line-height: 38px;
    margin-bottom: 30px;

    color: #247DE1;
}

.titulo-formulario strong {
    color: #013CA9;
    font-weight: 700;
}

.titulo-referidos {
    width: 700px;
    height: 36px;
    text-align: center;
    color: #183EA0;
    font-size: 48px;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: 900;
    line-height: 50.75px;
    margin: 0 auto 30px;
}

.formulario-referidos {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.form_2 {
    margin-bottom: 20px;
    width: calc(50% - 9px);
}

.form_2 input:not([type="range"]), .form_2 select, .form_2 textarea {
    width: 100%;
    height: 60px;
    background: #F1F1F1;
    border-radius: 20px;
    border: 1px #247DE1 solid;
    padding: 15px 20px;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    outline: none;
}

.form_2 input:focus,
.form_2 select:focus,
.form_2 textarea:focus {
    border:none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.form_2 input::placeholder,
.form_2 textarea::placeholder {
    color: #247DE1;
}

.form_2 select {
    cursor: pointer;
    padding-right: 80px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23247DE1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 25px) center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Estilos para select con placeholder vs con valor seleccionado */
.form_2 select.showing-placeholder {
    color: #247DE1 !important;
}

.form_2 select.has-value {
    color: #333 !important;
}

.form_2 select option:disabled {
    color: #247DE1 !important;
}

/* Estilos más específicos para asegurar que se apliquen */
select#moneda.showing-placeholder,
select#plazo.showing-placeholder {
    color: #247DE1 !important;
}

select#moneda.has-value,
select#plazo.has-value {
    color: #333 !important;
}

.form_2 select option {
    color: #333;
}

.form_2 textarea {
    height: 97px;
    resize: vertical;
    font-family: 'Avenir Next', Arial, sans-serif;
}

.form_2 select {
    cursor: pointer;
    padding-right: 80px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23247DE1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 25px) center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Estilos para la barra de volumen */
.barra-volumen {
    padding: 30px 30px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px #247DE1 solid;
}

.barra-volumen-titulo {
    text-align: center;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #247DE1;
    margin-bottom: 10px;
}

.barra-volumen-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.moneda-actual {
    color: #247DE1;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Avenir Next', Arial, sans-serif;
}

.valor-minimo {
    color: #247DE1;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Avenir Next', Arial, sans-serif;
}

.barra-volumen-slider {
    padding: 20px;

}

/* Barra de progreso que se llena */
.barra-progreso {
   display: none !important;
}

.progreso-fill {
    height: 100%;
    background: linear-gradient(90deg, #247DE1 0%, #013CA9 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    min-width: 0%;
    max-width: 100%;
    display: block;
    box-shadow: 0 1px 3px rgba(36, 125, 225, 0.3);
    /* Debug temporal - hacer más visible */
    border: 1px solid #ff0000;
}

.slider {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #247DE1 0%, #013CA9 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #247DE1 0%, #013CA9 100%);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(36, 125, 225, 0.4);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(36, 125, 225, 0.6);
}

.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #247DE1 0%, #013CA9 100%);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(36, 125, 225, 0.4);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(36, 125, 225, 0.6);
}

.valor-actual {
    text-align: center;


}

.valor-actual span {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #247DE1;
}

.valor-actual-input {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #247DE1;
    background: transparent;
    border: 2px solid #247DE1;
    border-radius: 10px;
    padding: 10px 15px;
    text-align: center;
    width: 150px;
    outline: none;
    transition: all 0.3s ease;
}

.valor-actual-input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.valor-actual-input:hover {
    border-color: #013CA9;
}

.form_full {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.btn__enviar_informacion {
    background: #247DE1;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: 'Avenir Next', Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 317px;
    height: 77.72px;
}

.btn__enviar_informacion:hover {
    background: #013CA9;
}

.btn-bases:hover {
    background: #013CA9;
}

/* Estilos del Footer */
.footer {
    width: 100%;
    
}

.footer-top {
    background-color: #1a213e;
    height: 20px;
    width: 100%;
}

.footer-bottom {
    background-color: #0f141f;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    text-align: center;
    color: white;
}

.footer-links {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 16px;
    color: white;

    font-weight: 500;
}

.footer-copyright {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 14px;
    color: white;
    margin: 0;
    font-weight: 400;
}

/* Estilos del Header */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-top {
    background-color: #1a213e;
    height: 35px;
    width: 100%;
}

.header-bottom {
    background-color: rgba(1, 32, 96, 0.8);
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}
.logo img {
    height: 67px;
    width: auto;
    margin-left: 200px;
}

/* Ajustar el contenido principal para evitar superposición con el header fijo */
.seccion-1 {
    margin-top: 115px;
}

/* Media Queries para Responsive Design */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .header-bottom {
        padding: 0 20px;
    }
    
    .logo img {
        height: 50px;
        margin-left: 100px;
    }
    
    .seccion-1 {
        margin-top: 100px;
        height: 700px;
    }
    
    .contenido-principal {
        margin-left: 400px;
    }
    
    .titulo-principal,
    .titulo-ahorro {
        font-size: 4rem;
    }
    
    .subtitulo {
        font-size: 1.8rem;
    }
    
    .seccion-2 {
        min-height: 700px;
        margin: 30px 0;
    }
    
    .titulo-plan {
        font-size: 2.5rem;
    }
    
    .subtitulo-plan {
        font-size: 2rem;
    }
    
    .descripcion-plan {
        font-size: 24px;
        line-height: 32px;
        max-width: 900px;
    }
    
    .imagen-premios img {
        max-height: 300px;
    }
    
    .btn-bases {
        width: 280px;
        height: 70px;
        font-size: 1.1rem;
        padding: 12px 30px;
        border-radius: 20px;
    }
    
    .formulario-referidos {
        max-width: 800px;
        gap: 15px;
    }
    
    .form_2 {
        width: calc(50% - 7.5px);
    }
    
    .titulo-referidos {
        width: 600px;
        font-size: 40px;
        line-height: 44px;
    }
    
    .barra-volumen {
        padding: 25px;
    }
    
    .barra-volumen-titulo {
        font-size: 1.3rem;
    }
    
    .valor-actual-input {
        width: 130px;
        font-size: 1.3rem;
    }
}

/* Mobile (hasta 767px) */
@media screen and (max-width: 767px) {
    .header-bottom {
        padding: 0 15px;
        height: 70px;
    }
    .titulo-principal {
        font-family: 'Avenir Next', Arial, sans-serif;
        font-weight: bold;
        font-size: 5.6rem;
        color: #013ca9;
        margin-bottom: -5px;
        line-height: 1.1;
        text-align: center;
    }
    
    .logo img {
        height: 45px;
        margin-left: 0;
    }
    
    .seccion-1 {
        margin-top: 90px;
        height: 650px;
        background-position: -215px 15px;
        background-color: #EAE8EA;
    }
    
    .contenido-principal {
        margin-left: 0;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 475px;
    }
    
    .titulo-principal,
    .titulo-ahorro {
        font-size: 2rem;
        text-align: center;
    }
    .titulo-ahorro{
        margin-bottom: 14px !important; 
    }
    .tex-3 {
        font-family: 'Avenir Next', Arial, sans-serif;
        font-size: 1.4rem;
        color: #247DE1;
        font-weight: 600;
        line-height: 1.5;
    }
    .subtitulo {
        font-size: 1rem;
        text-align: center;
    }
    
    .seccion-2 {
        min-height: 500px !important;
        margin: 0px 0;
    }
    .titulo-plan {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    
    .subtitulo-plan {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .descripcion-plan {
        font-size: 20px;
        line-height: 28px;
        max-width: 100%;
        padding: 0 20px;
        margin-bottom: 0px;
    }
    
    .imagen-premios img {
        max-height: 250px;
        margin-bottom: 30px;
    }
    
    .botones-bases {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        align-items: center;
    }
    
    .btn-bases {
        width: 280px;
        height: 60px;
        font-size: 1rem;
        padding: 12px 30px;
        border-radius: 20px;
    }
    
    .formulario-referidos {
        max-width: 100%;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .form_2 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .titulo-referidos {
        width: 100%;
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 20px;
    }
    
    .barra-volumen {
        padding: 20px;
    }
    
    .barra-volumen-titulo {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .barra-volumen-info {
        padding: 10px 15px;
    }
    
    .moneda-actual {
        font-size: 1.1rem;
    }
    
    .valor-minimo {
        font-size: 0.9rem;
    }
    
    .valor-actual-input {
        width: 120px;
        font-size: 1.2rem;
        padding: 8px 12px;
    }
    
    .btn__enviar_informacion {
        padding: 12px 30px;
        font-size: 16px;
        width: 280px;
        height: 60px;
    }
    
    .footer-top {
        height: 15px;
    }
    
    .footer-bottom {
        height: 60px;
        padding: 0 20px;
    }
    
    .footer-links {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

/* Estilos para el popup de éxito */
.popup-success {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-success h3 {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 2rem;
    color: #013CA9;
    margin-bottom: 20px;
    font-weight: bold;
}

.popup-success p {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 1.2rem;
    color: #247DE1;
    line-height: 1.6;
    margin-bottom: 0;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #013CA9;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.close-popup:hover {
    color: #247DE1;
    transform: scale(1.1);
}

/* Mobile pequeño (hasta 480px) */
@media screen and (max-width: 480px) {
    .titulo-principal,
    .titulo-ahorro {
        font-size: 2rem;
    }
    
    .subtitulo {
        font-size: 1rem;
    }
    
    .titulo-plan {
        font-size: 1.5rem;
    }
    
    .subtitulo-plan {
        font-size: 1.5rem;
    }
    
    .descripcion-plan {
        font-size: 18px;
        line-height: 24px;
    }
    
    .btn-bases {
        width: 260px;
        height: 55px;
        font-size: 0.9rem;
        padding: 10px 25px;
        border-radius: 18px;
    }
    
    .btn__enviar_informacion {
        width: 260px;
        height: 55px;
        padding: 10px 25px;
        font-size: 0.9rem;
        border-radius: 18px;
    }
    
    .titulo-referidos {
        font-size: 28px;
        line-height: 32px;
    }
    
    .form_2 input:not([type="range"]), 
    .form_2 select, 
    .form_2 textarea {
        height: 55px;
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .form_2 textarea {
        height: 80px;
    }
}
