.quiz-container {
    max-width: 1100px;
    width: 95%;
    /* height: 100%; */
    min-height: 380px;
    margin: 2vh auto;
    padding: 28px 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 6px solid #0EA5E9; /* Borde azul para destacar */
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    display: none;
    text-align: left;
}

    /* Barra de Progreso - Estilo Arcade */
.progress-bar-container {
    width: 100%;
    height: 30px;
    border: 3px solid #38BDF8;
    margin-bottom: 40px;
    background: #FFFFFF;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #38BDF8;
    transition: width 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.progress-bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #000000;
    text-shadow: 2px 2px #FFFFFF;
}

/*  Mute Boton */
.btn-mute {
    background: rgba(255,255,255,0.06);
    border: 1px solid #38BDF8;
    color: #000000;
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.btn-mute[aria-pressed="true"] {
    background: #38BDF8;
    border-color: #38BDF8;
    box-shadow: 0 0 12px #38BDF8;
}

/* Header layout for question + mute control */
.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mute-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-mute:hover {
    transform: translate(-2px, -2px);
}

.btn-mute {
    align-self: center;
}

/* Contenedor de la Pregunta */

#quiz-content {
    text-align: left;
}

#quiz-content h2 {
    font-size: 1.3rem;
    font-family: 'Inter', sans-serif;
    color: #0EA5E9;
    margin-bottom: 15px;
    text-align: left;
}

#quiz-content h3 {
    text-align: left !important;
}

.small-text {
    color: #000000;
    font-family: 'Inter', sans-serif;
    padding: 10px 0px 30px;
    font-size: 1rem;
}

.small-text-final {
    color: #000000;
    font-family: 'Inter', sans-serif;
    padding: 10px 0px 10px;
    font-size: 1rem;
}

.small-text-share {
    color: #000;
    font-family: 'Inter', sans-serif;
    margin-top: 20px;
    padding: 40px 0px 10px;
    font-size: 1rem;
}

.small-text-reservetion {
    color: #000;
    font-family: 'Inter', sans-serif;
    padding: 70px 0px 30px;
    font-size: 1.1rem;
}


/* Opciones de Respuesta (Opción Múltiple/Escala) */

.answer-option {
    background: #FFFFFF;
    border: 2px solid #0EA5E9;
    padding: 15px 22px;
    margin-top: 15px;
    min-height: 36px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: #000000;
    transition: all 0.1s;
    text-align: center !important;
}

.answer-option:hover {
    border-color: #38BDF8;
    background: #F9FAFB;
}

.answer-option.selected {
    background: #0EA5E9;
    border-color: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    font-weight: bold;
}

.questions-quizz {
    color: #000000;
    font-family: 'Inter', sans-serif;
    text-align: center !important;
}

.answer-option span {
    text-align: center !important;
    line-height: normal;
} 

/* Estilo para el placeholder */

.text-input {
    width: 100%;
    height: 45px;
    padding: 12px 15px;
    margin: 15px 0 40px 0;

    box-sizing: border-box;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    
    color: #000000; 
    background-color: rgba(255, 255, 255, 0.7); 
    border: none;
    border-bottom: 2px solid #0EA5E9; 
    
    box-shadow: inset 0 0 5px rgba(14, 165, 233, 0.3); 
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none; 
    background-color: rgba(255, 255, 255, 0.8);
    
    border-bottom: 2px solid #38BDF8; 
    box-shadow: 
        inset 0 0 8px rgba(56, 189, 248, 0.6),
        0 4px 15px rgba(56, 189, 248, 0.2); 
}

.text-input::placeholder {
    color: rgba(153, 161, 175, 0.7);
    font-weight: normal;
}

/* 2. Estilo para el campo de selección de prefijo (el select id="countryCode") */
.text-input-select {
    width: 250px;
    height: 45px;
    padding: 12px 15px;
    margin: 0 0 15px;

    box-sizing: border-box;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
    
    color: #000000; 
    background-color: rgba(255, 255, 255, 0.7); 
    border: none;
    border-bottom: 2px solid #0EA5E9; 
    
    box-shadow: inset 0 0 5px rgba(14, 165, 233, 0.3); 
    transition: all 0.3s ease;
}
.text-input-select:focus {
    outline: none; 
    background-color: rgba(255, 255, 255, 0.8);
    
    border-bottom: 2px solid #38BDF8; 
    box-shadow: 
        inset 0 0 8px rgba(56, 189, 248, 0.6),
        0 4px 15px rgba(56, 189, 248, 0.2); 
}

/* 4. Estilo para el campo de número (el input id="phone") */
.phone-number-field {
    flex-grow: 1; 
}


/* ESTILO PARA EL BLOQUE DE INFORMACIÓN (info-block) */

.info-block {
    color: #99A1AF;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px; 
    
    border: 1px solid rgba(14, 165, 233, 0.6); 
    box-shadow: 
        0 0 15px rgba(14, 165, 233, 0.6), 
        inset 0 0 5px rgba(14, 165, 233, 0.6); 
}

.info-block h2 {
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.5); 
    padding: 10px 0 10px 50px;
}

.info-block p {
    color: #99A1AF; 
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 20px 20px 0 0;
    font-size: 0.9em;
}

/* Estilo para la lista de beneficios (ul) */
.info-block ul {
    color: #99A1AF;
    list-style: none; 
    padding-left: 0;
    margin: 15px 0 0 0;
}

/* Estilo para cada elemento de la lista (li) */
.info-block li {
    color: #99A1AF;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.8em;
} 

/* Botones de Navegación */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.quiz-navigation .btn, .quiz-navigation .btn-secondary {
    font-size: 0.65rem;
    padding: 15px 30px;
}

.btn-secondary {
    font-family: 'Inter', sans-serif;
    background: #E5E7EB; 
    border-color: #ffffff;

}

.container {
    display: none; 
}

.container.quiz-container {
    display: block;
}

/* Aseguramos que la animación de estrellas se vea */
.starfield {
    display: block; 
}

/* Efecto de transición simple */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ESTILO PARA EL FORMULARIO DE RESULTADOS */

.form-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-align: center;
}

.form-subtitle {
    color: #000000;
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.form-info {
    font-size: 0.8rem;
    padding: 0 40px 30px;
    text-align: center;
    color: #0EA5E9;
}

.data-form {
    display: flex;
    flex-direction: column;
    padding: 0 40px;
}

.data-form label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-align: left; 
}

/* Reutilizamos y ajustamos el estilo del input para el formulario */
.data-form .text-input {
    margin: 0 0 15px 0; 
    text-align: left !important;
}

/* Estilo para el botón final */
.final-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    border: 1px solid #999;
}

.final-btn {
    display: block;
    padding: 20px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    color: #ffffff;
    background: #0EA5E9;
    border: 1px solid #0EA5E9;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    text-transform: uppercase;
    text-align: center;
    margin: 52px auto;
    max-width: calc(100% - 40px);
}

.checkboxTerminos {
    display: flex;
    align-items: center; 
    gap: 2px;           
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem !important;
    color: #000;
    margin-bottom: 20px;
    cursor: pointer;
    line-height: 1;     
}

.checkbox {
    accent-color: #0EA5E9;
    width: 12px;       
    height: 10px;
    cursor: pointer;
}

/* ESTILO PARA LA PÁGINA DE RESULTADOS */

/* Contenedor Principal */
#results-content {
    background-color: #FFFFFF; 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.results-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Bloque de Puntaje y Nivel */
.score-display-block {
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    border: 2px solid #0EA5E9; 
    padding: 30px;
    background: #F9FAFB; 
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.score-label {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #0EA5E9;
    font-weight: bold;
    line-height: 1.3;
}

.score-value {
    color: #000;
    font-family: 'Inter', sans-serif; 
    text-shadow: 0 0 20px rgba(254, 154, 0, 0.3), 0 0 5px #FFFFFF;
    line-height: 1;
}

.level-text {
    font-size: 1.8rem;
    font-family: 'Inter', sans-serif;
    color: #000000;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #fff;
    font-weight: 700;
}

/* 1. Contenedor que alinea el prefijo y el número en la misma línea */
.phone-input-group {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

/* Recomendaciones */
.recommendations-block {
    margin-bottom: 40px;
    text-align: left;
}

.recommendations-block h3 {
    color: #0EA5E9;
    text-shadow: 0 0 5px rgba(14, 165, 233, 0.5);
}

.recommendations-list {
    list-style-type: none;
    padding-left: 0;
}

.recommendations-list li {
    background: #FFFFFF; 
    border-left: 5px solid #000;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #000000;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* CTA Final Dinámico */
.cta-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 80px;
}

.final-cta-btn {
    display: inline-block;
    padding: 20px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    color: #FFFFFF;
    background: #FE9A00;
    border: 1px solid #ce8210bd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    text-transform: uppercase;
    text-align: center;
}

.final-cta-btn:hover {
    background: #ce8210bd;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    transform: translate(-2px, -2px);
}

.cta-info {
    color: #000;
    margin-top: 25px;
}

/* Botones de Compartir (Social Share) */
.social-share {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed #99A1AF;
}

.social-share p {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.btn-share{
    background: transparent;
    border: 1px solid #0EA5E9;
    padding: 8px 15px;
    /* margin: 5px; */
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #0EA5E9;
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.3);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-share:hover {
    background: #0EA5E9;
    color: #fff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.btn-copy{
    background: transparent;
    border: 1px solid #0EA5E9;
    padding: 8px 15px;
    /* margin: 5px; */
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #0EA5E9;
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.3);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-copy:hover {
    background: #0EA5E9;
    color: #fff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

#copyMessagePlaceholder {
    visibility: hidden; 
    background-color: #0EA5E9;
    color: #0EA5E9;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    opacity: 0; 
    transition: opacity 0.3s, visibility 0.3s; 
    margin-left: 10px; 
    white-space: nowrap;
    font-family: 'Inter', sans-serif; 
}

#copyMessagePlaceholder.tooltip-visible {
    visibility: visible;
    opacity: 1;
}

.btn-copy {
    position: relative; 
}

/* Animación (Opcional) */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contenedor del desglose de áreas */
#resultsBreakdown {
    margin-top: 30px;
    text-align: left; 
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
}

/* Estilo para cada bloque de resultados (ej. Estrategia & Objetivo) */
.block-result {
    margin-bottom: 20px;
}

.block-result p {
    font-size: 1.1em;
    color: #000000; 
    margin-bottom: 8px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.block-result p strong {
    color: #0EA5E9; 
    text-shadow: 0 0 3px #0EA5E9;
}

/* Contenedor de la barra de progreso */
.progress-bar-area {
    width: 100%;
    background-color: #99A1AF; 
    border-radius: 5px;
    height: 25px; 
    overflow: hidden; 
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    margin-top: 5px;
}

/* Barra de relleno (el progreso en sí) */
.progress-bar-area div {
    height: 100%;
    background-color: #0EA5E9;
    border-radius: 4px; 
    transition: width 1s ease-out; 
}

/* Estilos para el puntaje total y nivel de madurez (si se muestran en esta sección) */
#scoreValue {
    color: #0EA5E9;
    text-shadow: 0 0 5px #0EA5E9;
    font-size: 2em;
    margin-top: 20px;
}

#maturityLevel {
    color: #000; 
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* Estilos para la lista de recomendaciones */
#recommendationsList {
    list-style: none; 
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

#recommendationsList li {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF; 
    border-left: 3px solid #000; 
    margin-bottom: 10px;
    padding: 10px 15px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #000000;
}

/* Footer - Asegurar visibilidad */
#footer-anchor {
    width: 100%;
    margin-top: 50px;
}

/* Responsive adjustments for the quiz UX */
@media (max-width: 1024px) {
    .quiz-container { padding: 26px; }
    .progress-bar-text { font-size: 0.68rem; }
}

@media (max-width: 768px) {
    .quiz-container { padding: 20px; width: 98%; }
    .answer-option { font-size: 0.9rem; padding: 10px; }
    .quiz-navigation {display: flex; flex-direction: row; gap: 12px; align-items: stretch;}
    .quiz-navigation .btn, .quiz-navigation .btn-secondary { width: 100%; }
    #quiz-content h3 { font-size: 1rem; }
    .progress-bar-text { font-size: 0.62rem; }
    /* center the start button that had inline margin on desktop */
    #quiz-intro #startQuizBtn { margin-left: 40% !important; margin-right: auto; display: block; max-width: 160px;}
    .info-block h2 { padding-left: 0px; font-size: 0.96rem; text-align: left !important; line-height: 1.2;}
}


@media (max-width: 480px) {
    .quiz-container { padding: 14px; border-width: 4px; min-height: 320px; }
    .answer-option { padding: 8px; font-size: 0.88rem; }
    .progress-bar-container { height: 28px; }
    .progress-bar-text { font-size: 0.6rem; white-space: normal; line-height: 1.1; }
    .question-header h2 { font-size: 0.9rem; }
    .btn { padding: 12px 14px; font-size: 0.75rem; }
}

/* iPhone-specific optimizations (375px-480px: SE, 11, 12, 13, 14, 14 Pro Max) */
@media (min-width: 375px) and (max-width: 480px) {
    .quiz-container {
        width: 96%;
        margin: 1.5vh auto;
        padding: 18px 14px;
        border-width: 4px;
    }

    /* Quiz intro and content */
    #quiz-intro h1 { font-size: 1.4rem; }
    #quiz-intro p { font-size: 0.95rem; }
    #quiz-intro .text-input { padding: 10px 12px; font-size: 0.9rem; }
    #quiz-intro .btn { padding: 12px 16px; font-size: 0.7rem; margin-left: 0 !important; }

    /* Quiz questions */
    #quiz-content h2 { font-size: 1.1rem; }
    #quiz-content h3 { font-size: 1rem; }
    .small-text { font-size: 0.95rem; padding: 8px 0 16px; }
    .answer-option { padding: 12px 16px; font-size: 0.9rem; margin-top: 12px; }

    /* Progress bar */
    .progress-bar-container { height: 28px; margin-bottom: 28px; }
    .progress-bar-text { font-size: 0.65rem; }

    /* Navigation buttons */
    .quiz-navigation { gap: 12px; }
    .quiz-navigation .btn, .quiz-navigation .btn-secondary { padding: 12px 16px; font-size: 0.7rem; }

    /* Results form */
    #results-form-content { padding: 12px 14px; }
    .form-title { font-size: 1.6rem; margin-bottom: 6px; }
    .form-subtitle { font-size: 0.8rem; margin: 16px 0; }
    .form-info { padding: 0 12px 16px; font-size: 0.8rem; }

    .data-form {
        padding: 0 10px;
    }

    .data-form label { margin-top: 10px; margin-bottom: 4px; font-size: 0.7rem; }
    .data-form .text-input { margin: 0 0 10px 0; padding: 10px 12px; font-size: 0.9rem; }
    .text-input-select { width: 100%; padding: 10px 12px; font-size: 0.85rem; margin: 0 0 10px 0; }

    .phone-input-group { gap: 8px; margin-bottom: 10px; }
    .phone-number-field { padding: 10px 12px; font-size: 0.9rem; }

    .final-btn { padding: 12px 16px; font-size: 0.75rem; margin-top: 12px; }
    .privacy-note { font-size: 0.65rem; margin-top: 10px; }

    /* Results content .............................................*/
    #results-content { padding: 12px 14px; }
    .results-title { font-size: 1.4rem; margin-bottom: 16px; line-height: 1.4;}

    .score-display-block {
        padding: 18px;
        margin-bottom: 16px;
        border-width: 2px;
    }

    .score-label { font-size: 0.9rem; margin-bottom: 8px; }
    .score-value { font-size: 3rem; margin-bottom: 10px; }
    .level-text { font-size: 1.5rem; margin-bottom: 10px; }

    .recommendations-block h3 { font-size: 0.95rem; margin-bottom: 10px; }
    .small-text-final { font-size: 0.8rem; }
    .recommendations-list li { padding: 10px 12px; margin-bottom: 8px; font-size: 0.9rem; }

    .block-result p { font-size: 0.95rem; margin-bottom: 8px; }

    .cta-section { margin-bottom: 16px; }
    /* ......................................................... */
    .final-cta-btn { padding: 12px 16px; font-size: 0.85rem; line-height: 1.4;}
    .cta-info { font-size: 0.8rem; margin-top: 10px; }

    .social-share { padding-top: 10px; }
    .social-share p { font-size: 0.8rem; margin-bottom: 8px; }
    .btn-share, .btn-copy { padding: 8px 12px; font-size: 0.65rem; margin: 4px; }
}

/* Very small screens (Galaxy S9+ 320x658 and similar narrow devices) */
@media (max-width: 360px) {
    /* Reduce quiz container padding and margins */
    .quiz-container {
        width: 97%;
        margin: 1vh auto;
        padding: 14px 10px;
        border-width: 3px;
        min-height: 320px;
    }

    /* Form and results container tight spacing */
    #results-form-content, #results-content {
        padding: 8px 12px;
    }

    /* Form titles and subtitles smaller */
    .form-title { font-size: 1.8rem; margin-bottom: 4px; }
    .form-subtitle { font-size: 0.75rem; margin: 12px 0; }
    .form-info { padding: 0 12px 12px; font-size: 0.75rem; }

    /* Form fields tight and narrow */
    .data-form {
        padding: 0 8px;
        display: flex;
        flex-direction: column;
    }

    .data-form label {
        margin-top: 8px;
        margin-bottom: 4px;
        font-size: 0.7rem;
    }

    .data-form .text-input {
        margin: 0 0 8px 0;
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    /* Select and phone input group */
    .text-input-select {
        width: 100%;
        height: auto;
        padding: 8px 10px;
        font-size: 0.8rem;
        margin: 0 0 8px 0;
    }

    .phone-input-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }

    .phone-number-field {
        height: 45px;
        width: 100%;
        flex-grow: 1;
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    /* Final button */
    .final-btn {
        padding: 10px 14px;
        font-size: 0.7rem;
        margin-top: 8px;
    }

    .privacy-note {
        font-size: 0.6rem;
        margin-top: 8px;
    }

    /* Results content tight */
    .results-title { font-size: 1.5rem; margin-bottom: 12px; }
    .score-display-block {
        padding: 16px;
        margin-bottom: 12px;
        border-width: 1px;
    }

    .score-label { font-size: 0.85rem; margin-bottom: 6px; }
    .score-value { font-size: 2.5rem; margin-bottom: 8px; }
    .level-text { font-size: 1.4rem; margin-bottom: 8px; }

    /* Recommendations */
    .recommendations-block h3 { font-size: 0.9rem; margin-bottom: 8px; }
    .small-text-final { font-size: 0.75rem; }
    .recommendations-list li {
        padding: 8px 10px;
        margin-bottom: 6px;
        font-size: 0.85rem;
    }

    /* Results breakdown */
    #resultsBreakdown {
        margin-top: 12px;
    }

    .block-result p {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    /* CTA section */
    .cta-section { margin-bottom: 12px; }
    .final-cta-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.8rem;
        display: block;
    }

    .cta-info { font-size: 0.75rem; margin-top: 8px; }

    /* Social share buttons */
    .social-share {
        padding-top: 8px;
    }

    .social-share p { font-size: 0.75rem; margin-bottom: 6px; }
    .btn-share, .btn-copy {
        padding: 6px 10px;
        font-size: 0.6rem;
        margin: 3px;
    }
}

/* Mobile-only adjustments: make layout tighter and buttons not full-width */
@media (max-width: 480px) {
    /* Distribute .step like .card: icon above, centered text */
    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .step .step-content {
        width: 100%;
    }
    .step .step-number { margin-bottom: 6px; }

    /* Section titles single-line and centered like cards */
    .section-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
        padding: 8px 12px;
        text-align: center;
    }

    /* Question counter should stay on one line */
    .question-header { align-items: center; gap: 8px; }
    .question-header h2 { 
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }
    .mute-container { flex: 0 0 auto; margin-left: 8px; }

    /* Buttons: add lateral space, keep centered and not full-width */
    .quiz-container .final-btn,
    .quiz-navigation .btn,
    #submitResultsBtn, 
    .btn-secondary {
        display: block;
        margin: auto;
        width: 50%;
        max-width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        line-height: 1.4;
    }

    #submitResultsBtn {
        width: 100%;
        margin-top: 30px;
        max-width: calc(100% - 40px);
        text-align: center;
        line-height: 1.4;
        font-size: 1rem;
    }

    /* Ensure the "Volver" button in the quiz navigation matches the same mobile styling */
    .quiz-navigation .btn-secondary {
        display: block;
        margin: auto;
        width: 50%;
        max-width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    /* Phone input + country code on one line */
    .phone-input-group {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .text-input-select {
        width: 100%;
        height: 45px;
        padding: 8px 10px;
        font-size: 0.8rem;
        margin: 0 0 10px 0;
    }

    .phone-number-field { flex: 1 1 auto; min-width: 0; }

    /* Slightly smaller answer padding on tiny screens */
    .answer-option { padding-left: 12px; padding-right: 12px; }

    /* Make progress counter smaller so "11/30" fits on one line */
    .progress-bar-text { font-size: 0.6rem; }

    /* Make final send button visually consistent with other buttons */
    .final-btn {
        background: #0EA5E9;
        color: #FFFFFF;
        border: 1px solid #FFFFFF;
        text-transform: uppercase;
        display: block;
        margin: 52px auto;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        max-width: calc(100% - 40px);
    }
}
/* Specific adjustment for very narrow 320x658 viewports:
   reduce question title font-size and center the mute button */
@media (max-width: 320px) and (max-height: 658px) {
    #quiz-content h2 {
        font-size: 1rem;
        line-height: 1.1;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure the question header aligns correctly and mute button is centered */
    .question-header {
        align-items: center;
        gap: 6px;
    }

    .mute-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 6px;
        flex: 0 0 auto;
    }

    .btn-mute {
        padding: 6px 8px;
        font-size: 0.75rem;
        align-self: center;
        transform: none;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');