/* Estilos específicos para dispositivos móviles */
/* Archivo: mobile-styles.css */

/* Estilos para tablets (max-width: 768px) */
@media (max-width: 768px) {

    .promo-card {
        max-width: 560px;
        margin: -40px 16px 16px 16px;
        padding: 20px;
        background: #F7F7F7;
        border: 2px solid var(--brand);
        border-radius: var(--radius-card);
        box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
        text-align: center;

        margin-top: 16px !important;
    }


    /* Título: 20px */
    .promo-card__title {
        margin: 0 0 16px;
        font-size: 20px;
        line-height: 1.35;
        font-weight: 700;
        color: #1b1b1b;
    }

    /* Párrafo: 16px */
    .promo-card__text {
        margin: 0 0 20px;
        font-size: 16px;
        line-height: 1.6;
        color: #3a3a3a;
    }

    /* Botón */
    .promo-card__cta {
        display: block;
        width: 100%;
        padding: 16px 18px;
        background: var(--btn);
        color: var(--brand);
        font-weight: 700;
        font-size: 16px;
        /* peso visual similar al ejemplo */
        text-decoration: none;
        border-radius: var(--radius-cta);
        box-shadow: 0 1px 0 rgba(0, 0, 0, .05) inset;
        transition: transform .05s ease, filter .15s ease;
        text-align: center;
    }

    .promo-card__cta:hover {
        filter: brightness(0.97);
    }

    .promo-card__cta:active {
        transform: translateY(1px);
    }

    /* Foco accesible */
    .promo-card__cta:focus {
        outline: 3px solid rgba(0, 83, 95, .35);
        outline-offset: 3px;
    }

    /* Sección amarilla */
    .bg-amarillo {
        padding: 8px !important;
        margin: 10px !important;
        margin-left: 27px !important;
    }

    /* Caja del texto principal */
    .texto-principal {
        padding: 6px !important;
        margin-bottom: 6px !important;
    }



    /* Estilos para FAQs en mobile */
    .acc-faqs {
        background-color: #00535F !important;
        padding: 20px !important;
        color: white !important;

        width: 100% !important;
    }


    /* Corrección del hero en mobile */
    section.hero1.hero {
        padding-top: 23px !important;
        margin-top: 0 !important;
        background-color: var(--amarillo-color) !important;
        background-image: url(../img/bg-amarillo.png) !important;
        background-size: cover !important;
        background-position: top center !important;
    }
}

@media (max-width: 390px) {
    .btn.btn-sin-fondo {
        padding: 0px 69px !important;
    }
}

@media (max-width: 430px) {
    .btn.btn-sin-fondo {
        padding: 0px 79px;
    }
}

/* Estilos para móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {

    /* Sección amarilla */
    .bg-amarillo {
        padding: 8px !important;
        margin: 10px !important;
        margin-left: 27px !important;
    }

    section.bg-amarillo.bg-amarillo-destok.banner {
        margin: auto;
        margin-top: 30px !important;
    }

    /* Caja del texto principal */
    .texto-principal {
        padding: 5px !important;
        margin-bottom: 5px !important;
    }

    /* Botón sin fondo */
    .btn.btn-sin-fondo {
        min-width: 200px !important;
        min-height: 40px !important;
        padding: 1px 79px !important;
        font-size: 16px !important;
        width: auto !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Estilos para FAQs en mobile pequeño */
    .acc-faqs {
        background-color: #00535F !important;
        padding: 15px !important;
        color: white !important;
        width: 100% !important;
    }

    .acc-faqs h2 {
        color: #EBE72A !important;
        font-size: 24px !important;
        margin-bottom: 32px !important;
        margin-top: 10px !important;
    }

    .faq-title {
        color: #EBE72A !important;
        font-size: 18px !important;
        line-height: 20px !important;
        margin: 0 0 35px 0 !important;
    }

    /* Detalles de FAQs */
    details summary {
        border-top: 1px solid white !important;
        padding: 0.7rem 18px 12px 0 !important;
    }

    details:last-child summary {
        border-bottom: 1px solid white !important;

    }

    details summary:after {
        content: url(../img/desplegar.svg) !important;
        top: 18% !important;
    }



    /* Corrección del hero en mobile pequeño */
    section.hero1.hero {
        padding-top: 33px !important;
        margin-top: 0 !important;
        background-color: var(--amarillo-color) !important;
        background-image: url(../img/bg-amarillo.png) !important;
        background-size: cover !important;
        background-position: top center !important;
    }
}

/* Estilos para móviles muy pequeños (max-width: 360px) */
@media (max-width: 360px) {

    /* Sección amarilla */
    .bg-amarillo {
        padding: 6px !important;
        margin: 8px !important;
        margin-left: 20px !important;
    }

    /* Caja del texto principal */
    .texto-principal {
        padding: 4px !important;
        margin-bottom: 4px !important;
    }

    /* Botón sin fondo */
    .btn.btn-sin-fondo {
        min-width: 180px !important;
        min-height: 35px !important;
        padding: 0px 74px !important;
        font-size: 14px !important;
    }

    /* Estilos para FAQs en mobile muy pequeño */
    .acc-faqs {
        background-color: #00535F !important;
        padding: 12px !important;
        color: white !important;
        margin: 8px !important;
        width: 100% !important;
    }

    .acc-faqs h2 {
        color: #EBE72A !important;
        font-size: 16px !important;
        margin-bottom: 23px !important;
    }

    .faq-title {
        color: #EBE72A !important;
        font-size: 16px !important;
        line-height: 18px !important;
        margin: 0 0 10px 0 !important;
    }

    /* Detalles de FAQs */
    details summary {
        border-top: 1px solid white !important;
        padding: 0.6rem 15px 10px 0 !important;
    }

    details:last-child summary {
        border-bottom: 1px solid white !important;

    }

    details summary:after {
        /* content: url(../img/flecha.png) !important; */
        top: 15% !important;
    }

    section.acc-faqs.acc-faqs {
        background-color: #00535F !important;
        padding: 12px !important;
        color: white !important;
    }

    /* Corrección del hero en mobile muy pequeño */
    section.hero1.hero {
        padding-top: 0 !important;
        margin-top: 0 !important;
        background-color: var(--amarillo-color) !important;
        background-image: url(../img/bg-amarillo.png) !important;
        background-size: cover !important;
        background-position: top center !important;
    }
}

/* Estilos específicos para desktop (min-width: 769px) */
@media (min-width: 769px) {

    /* Hero padding para desktop */
    section.hero1 {
        padding: 101px;
    }

    /* Sección de confirmación para desktop */
    .confirmacion-section {
        width: 540px;
    }

    /* Estilos para las cajitas en desktop */
    .como-obtener-descuento {
        padding: 60px 40px;
    }

    .como-obtener-descuento h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .cards-container {
        max-width: 1000px;
        gap: 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .card-item:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        /* max-width: 500px; */
    }

    .card-item {
        padding: 20px;
        border-radius: 18px;
    }

    .card-header {
        gap: 25px;
        margin-bottom: 0;
    }

    .card-number {
        width: 30px;
        height: 30px;
        font-size: 23px;
    }

    .card-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .card-description {
        font-size: 20px;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .card-link {
        font-size: 20px;
    }

    @media (max-width: 768px) {
        .promo-card {
            max-width: 90vw;
            width: 90%;
            margin: -20px auto 20px auto;
            padding: 40px 60px;
        }

        .card-index-promo {
            margin-top: -30px !important;
        }


    }

    .promo-card__title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-left: 20px;
    }

    .promo-card__text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .promo-card__cta {
        font-size: 20px;
        padding: 15px 30px;
        text-align: center;
    }

    button#btn-obtener-codigo {
        max-width: 311px;
        margin: auto;
    }

    section.bg-amarillo.bg-amarillo-destok.banner {
        max-width: 722px;
        margin: 30px auto !important;
        text-align: left !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left !important;
    }
}

/* Estilos para la sección "A tener en cuenta" en desktop */
@media (min-width: 769px) {
    .bg-grey {
        padding: 40px;
    }

    .bg-grey h2 {
        font-size: 28px;
        margin-bottom: 30px;
        text-align: center;
    }

    .tener-en-cuenta {
        display: flex;
        gap: 41px;
        max-width: 1287px;
        margin: 0 auto;
        justify-content: space-between;
    }

    .tener-en-cuenta .ul-bullet {
        flex: 1;

        padding-left: 20px;
    }

    .tener-en-cuenta .ul-bullet li {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 20px;
        text-align: justify;
        word-wrap: break-word;
    }

    .bg-grey>div:last-child {
        text-align: left;
        margin: 30px auto 0 auto;
        font-size: 14px;
        color: #666;
        max-width: 1200px;

    }
}

/* Estilos para móviles muy pequeños (max-width: 360px) */
@media (max-width: 380px) {

    /* Botón sin fondo para pantallas muy pequeñas */
    .btn.btn-sin-fondo {
        min-width: 180px;
        min-height: 35px;
        padding: 0px 57px !important;
    }

}

/* Estilos para desktop - Ignorar los <br> en las preguntas */
@media (min-width: 769px) {
    details summary {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    details:last-child summary {
        border-bottom: 1px solid white !important;

    }

    /* Alternativa: mostrar el texto completo en una línea */
    details summary br {
        display: none !important;
    }
}

/* Estilos para desktop - Sección amarilla cubre toda la pantalla */
@media (min-width: 769px) {
    .bg-amarillo-destok {

        width: 92% !important;
        margin-left: 54px !important;
        padding: 0px;

    }

    .texto-principal {
        max-width: 800px !important;
        margin-bottom: 0;
        text-align: left;
        padding: 32px;
    }

    .btn.btn-sin-fondo {
        display: block !important;
        margin: 0 auto !important;
    }

}

/* Overlay para selección de códigos QR */
.overlay-codigos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-codigos {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 30px 25px;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-top: auto;
    min-height: 356px;
    /* Altura mínima para acomodar el dropdown */
}

.cerrar-overlay {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.modal-codigos h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.select-cantidad {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.info-box {
    background-color: #70CED3;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.info-box p {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.btn-generar {
    width: 100%;
    background-color: #E7E8EA;
    color: #9E9E9E;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    height: 44px;
}

.btn-generar.active {
    background-color: #f5e340;
    color: #006070;
    cursor: pointer;
}

/* Media queries específicas para mobile - Overlay de códigos QR */
@media (max-width: 768px) {
    .overlay-codigos {
        padding: 0;
    }

    .modal-codigos {
        width: 100vw;
        max-width: 100vw;
        border-radius: 20px 20px 0 0;
        margin: 0;
        padding: 25px 20px;
    }

    .modal-codigos h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .select-cantidad {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 18px;
    }

    .info-box {
        padding: 12px;
        margin-bottom: 20px;
    }

    .info-box p {
        font-size: 16px;
    }

    .btn-generar {
        padding: 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-codigos {
        padding: 20px 15px;
    }

    .modal-codigos h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .select-cantidad {
        padding: 10px;
        font-size: 13px;
        margin-bottom: 15px;
    }

    .info-box {
        padding: 10px;
        margin-bottom: 18px;
    }

    .info-box p {
        font-size: 16px;
    }

    .btn-generar {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .modal-codigos {
        padding: 18px 12px;
    }

    .modal-codigos h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .select-cantidad {
        padding: 8px;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .info-box {
        padding: 8px;
        margin-bottom: 15px;
    }

    .info-box p {
        font-size: 16px;
    }

    .btn-generar {
        padding: 10px;
        font-size: 12px;
    }
}

/* Estilos para la selección personalizada */
.select-custom {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #ffffff;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.select-header:hover {
    border-color: #00535F;
    box-shadow: 0 2px 8px rgba(0, 83, 95, 0.1);
}

.select-placeholder {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.select-arrow {
    color: #00535F;
    font-size: 14px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.select-options {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 2px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: -2px;
    /* Para conectar con el header */
}

.select-options.open {
    max-height: 300px;
}

.select-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F0F0F0;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background-color: #F8F9FA;
}

.select-option.selected {
    background-color: #E3F2FD;
    border-left: 4px solid #00535F;
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #00535F;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.option-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* Media queries para la selección personalizada */
@media (max-width: 768px) {
    .select-header {
        padding: 12px 16px;
        min-height: 64px;
    }

    .select-placeholder {
        font-size: 15px;
    }

    .select-option {
        padding: 12px 16px;
    }

    .option-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
        margin-right: 12px;
    }

    .option-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .select-header {
        padding: 10px 14px;
        min-height: 64px;
    }

    .select-placeholder {
        font-size: 14px;
    }

    .select-option {
        padding: 10px 14px;
    }

    .option-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
        margin-right: 10px;
    }

    .option-text {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .select-header {
        padding: 8px 12px;
        min-height: 64px;
    }

    .select-placeholder {
        font-size: 13px;
    }

    .select-option {
        padding: 8px 12px;
    }

    .option-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin-right: 8px;
    }

    .option-text {
        font-size: 13px;
    }
}

/* Estilos para botones activos (cuando se abre el overlay) */
.btn.btn-sin-fondo.active,
.boton-fijo-inferior .btn.active {
    background-color: #EBE72A !important;
    transition: background-color 0.3s ease;
}

/* Estilos específicos para mobile - Botones activos */
@media (max-width: 768px) {

    .btn.btn-sin-fondo.active,
    .boton-fijo-inferior .btn.active {
        background-color: #EBE72A !important;
        box-shadow: 0 2px 8px rgba(235, 231, 42, 0.3);
    }
}

/* Estilos simples para el botón deshabilitado */
#btn-obtener-descuento[style*="opacity: 0.5"] {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* Transición suave para el cambio de color del botón */
#btn-obtener-descuento {
    transition: all 0.3s ease;
}

/* Estilo para el botón fijo inferior cuando esté habilitado */
.boton-fijo-inferior .btn[style*="background-color: #EBE72A"] {
    background-color: #EBE72A !important;
    color: #00535F !important;
    box-shadow: 0 2px 8px rgba(235, 231, 42, 0.3);
}

/* Estilo para el botón fijo inferior cuando esté deshabilitado */
.boton-fijo-inferior .btn[style*="opacity: 0.5"] {
    color: #757575 !important;
}

/* Estilo alternativo para el botón activo usando clase */
.boton-fijo-inferior .btn.active {
    background-color: #EBE72A !important;
    color: #00535F !important;
    box-shadow: 0 2px 8px rgba(235, 231, 42, 0.3);
}