 /* Estilos base */
 @font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype'),
         url('fonts/Montserrat-Regular.woff2') format('woff2'),
         url('fonts/Montserrat-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #001945;
    color: white;
}

/* Header Styles */
.header-bar {
    background-color: #05102a;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.header-bar img {
    height: 40px;
}

/* Carousel Styles */
.carousel {
    margin-top: 60px;
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(270deg, #05102a, #1b4fc0);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: all;
}

.slider {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.slider-text {
    flex: 0 1 50%;
    padding-right: 40px;
}

.slider-text .logo {
    width: 350px;
    margin-bottom: 15px;
}

.slider-text .subtitle {
    font-size: min(1.5rem, 5vw);
    margin-bottom: -10px;
}

.slider-text .cta-text {
    font-size: min(1.8rem, 5vw);
    line-height: 1;
    margin-bottom: 20px;
    font-weight: bold;
}

.slider-image {
    flex: 0 1 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}

.slider-image img {
    border-radius: 14px;
    height: 90%;
    width: auto;
    object-fit: contain;
}

/* Botón CTA */
.cta-button {
    width: 350px;
    height: 60px;
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    background-color: #4781ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #3671e6;
}

/* Carousel dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* Promociones Section */
.promociones {
    padding: 40px 20px;
    background-color: white;
}

#encuestabtn {
    margin-top: 38px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    color: #05102a;
}

.promociones-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #05102a;
}

.promo-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    align-items: center;
}

.promo-image {
    flex: 0 0 auto;
    width: 400px;
}

.promo-image img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    display: block;
}

.promo-text {
    flex: 1;
    color: #05102a;
    padding-right: 20px;
}

.promo-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.promo-text p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer Styles */
.footer {
    background-color: #001332;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-divider {
    width: 8in;
    height: 1px;
    background: linear-gradient(to right, transparent, white, transparent);
    margin: 20px auto;
}

.app-download {
    margin: 30px 0;
}

.app-download h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.store-button img {
    height: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 30px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    text-align: left;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    text-align: left;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

/* Diseño de Seccion de encuesta */
.encuesta {
    padding: 40px 20px;
    background-color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.survey-card {
    background-color: #001945;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.survey-logo {
    margin-top: 10px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    width: 250px;
    display: block;
}

.question-container {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.question-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    visibility: hidden;
}

.question-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    visibility: visible;
}

.question-slide h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    margin-top: 20px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
}

.radio-label input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    display: inline-block;
}

.custom-radio:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #4781ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-label input[type="radio"]:checked + .custom-radio:before {
    transform: translate(-50%, -50%) scale(1);
}

.siguiente-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #4781ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.siguiente-btn:hover {
    background-color: #3671e6;
}

#loader {
    display: none;
    position: fixed;
    inset: 0;
    background-color: #001945;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-container, .loading-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo, .loading-logo {
    width: 60px;
    z-index: 2;
}

.loader-ring, .loading-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 8px solid transparent;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para el colapsado */
.step-content {
    transition: max-height 0.3s ease-out;
    max-height: 1000px;
    overflow: hidden;
}

.step-content.collapsed {
    max-height: 0;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.toggle-button {
    transition: transform 0.3s ease;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.step-header.collapsed .toggle-button {
    transform: rotate(-90deg);
}

.step-summary {
    display: none;
    margin-top: 5px;
    color: #666;
}

.step-header.collapsed .step-summary {
    display: block;
}

/* Estilos para los popups de bancos */
.bank-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.bank-popup-container {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
    text-align: center;
}

.bank-popup-logo {
    width: 200px;
    height: auto;
    margin: 20px auto;
}

.bank-popup-title {
    color: #001945;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.bank-popup-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.bank-popup-button {
    background-color: #4781ff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    transition: background-color 0.3s;
}

.bank-popup-button:hover {
    background-color: #3671e6;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Nueva sección de estilos para las actualizaciones */
.cart-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-weight: bold;
    font-size: 1.1em;
}

.free-price {
    color: #28a745;
    font-weight: bold;
    margin-left: 10px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    display: none;
}

.payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.masked-number {
    display: none;
    color: #666;
    font-size: 0.9em;
    margin-left: auto;
}

.payment-method-single {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #4781ff;
    border-radius: 8px;
    margin-bottom: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-single:hover {
    background: #f8f9fa;
    border-color: #3671e6;
}

.payment-method-single.card-added {
    justify-content: space-between;
}

.payment-method-single.card-added .masked-number {
    display: block;
}

.payment-method-single img {
    width: 40px;
    margin-right: 15px;
}

.payment-method-single span {
    font-size: 1.1rem;
    color: #001945;
}

/* Media Queries */
@media (min-width: 1440px) {
    .slider-image {
        flex: 0 1 50%;
    }

    .slider-image img {
        height: 95%;
    }

    .carousel {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 450px;
    }

    .slider {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .slider-text {
        padding-right: 0;
        max-width: 100%;
    }

    .slider-text .logo {
        margin: 0 auto 20px;
        width: 180px;
    }

    .slider-text .subtitle {
        font-size: min(1.3rem, 4.5vw);
        margin-bottom: 10px;
    }

    .slider-text .cta-text {
        font-size: min(1.5rem, 5vw);
        margin: 15px 0;
    }

    .slider-image img[src*="banner.webp"] {
        display: none;
    }
    
    .slider-image {
        display: none;
    }

    .promo-container {
        flex-direction: column;
        text-align: center;
    }

    .promo-image {
        width: 280px;
        margin: 0 auto;
    }

    .promo-text {
        padding-right: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4,
    .footer-section a {
        text-align: center;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .survey-card {
        padding: 20px;
        margin: -10px;
    }
    
    .question-slide h3 {
        font-size: 1.1rem;
    }
    
    .radio-label {
        font-size: 1rem;
    }

    .popup-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .payment-step {
        padding: 20px;
    }

    .form-input {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 400px;
    }

    .slider-text .logo {
        width: 300px;
        margin-top: -55px;
    }

    .slider-text .subtitle {
        font-size: min(1.2rem, 4vw);
    }

    .slider-text .cta-text {
        font-size: min(1.4rem, 4.5vw);
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1.4rem;
    }

    .footer-divider {
        width: 90%;
    }

    .bank-popup-container {
        width: 95%;
        padding: 15px;
    }

    .bank-popup-logo {
        width: 150px;
    }

    .bank-popup-title {
        font-size: 1.3rem;
    }

    .bank-popup-message {
        font-size: 1rem;
    }
}

/* Para dispositivos muy pequeños */
@media (max-width: 320px) {
    .quiz-container {
        padding: 8px;
    }

    .popup-content {
        padding: 12px;
    }

    .option-button {
        font-size: 0.8rem;
        padding: 8px;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .popup-overlay {
        align-items: flex-start;
        padding-top: 10px;
    }

    .popup-content {
        max-height: 90vh;
    }

    .question-title {
        font-size: 1.1rem;
    }

    .option-button {
        padding: 8px;
    }

    .return-button {
        top: 60px;
    }
}