/* style.css - FINAL FIXED WIDTH */

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- WRAPPER PRINCIPAL (SOLUCIONADO: ANCHO 100%) --- */
.app-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;       /* Ocupa todo el ancho */
    max-width: none;   /* ELIMINA EL LÃMITE DE 550PX QUE CAUSABA EL FORMATO MOVIL */
    min-height: 100vh;
    flex: 1;
}

/* HEADER */
.app-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#logo { max-width: 130px; height: auto; }

/* CONTENEDOR CENTRAL */
#app-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* TARJETA BLANCA (AquÃ­ definimos el ancho "PC") */
.container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 90%;          /* En mÃ³viles usa 90% */
    max-width: 900px;    /* En PC se expande hasta 900px */
    margin: 0 auto;
    box-sizing: border-box;
}

/* FOOTER */
.app-footer {
    width: 100%;
    background-color: #e9ecef;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.app-footer p { color: #666; font-size: 12px; margin: 0; }

/* ESTILOS DE TEXTO */
h1 { color: #1c5d99; text-align: center; margin-bottom: 30px; }
p { text-align: center; margin-bottom: 20px; line-height: 1.6; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: bold; }

input[type="number"], input[type="text"], input[type="email"], select {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 16px;
}

button {
    width: 100%; padding: 15px; background-color: #28a745; color: white;
    border: none; border-radius: 6px; font-size: 18px; cursor: pointer; font-weight: bold; transition: background 0.3s;
}
button:hover { background-color: #218838; }
button:disabled { background-color: #ccc; cursor: not-allowed; }

/* CONSENTIMIENTO */
.consent-text {
    max-height: 300px; overflow-y: auto; background-color: #f9f9f9;
    border: 1px solid #ddd; border-radius: 4px; padding: 20px; margin-bottom: 20px; text-align: justify;
}
audio { width: 100%; margin-bottom: 20px; }

#consentimientoForm .form-group { display: flex; align-items: center; text-align: left; }
#consentimientoForm label { font-weight: normal; margin-left: 10px; cursor: pointer; padding: 10px 0; }
#consentimientoCheck { margin-top: 0; transform: scale(1.5); cursor: pointer; }

/* FAT FINGER */
.question-group { margin-bottom: 30px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #fff; }
.question-label { font-weight: bold; margin-bottom: 15px; display: block; font-size: 1.15em; }

.option-item {
    position: relative; border: 1px solid #ccc; border-radius: 8px;
    margin-bottom: 12px; background-color: white; transition: all 0.2s; cursor: pointer;
}
.option-item:hover { background-color: #e3f2fd; border-color: #1c5d99; }
.option-item input[type="radio"] { position: absolute; left: 15px; top: 50%; transform: translateY(-50%) scale(1.4); margin: 0; z-index: 1; cursor: pointer; }
.option-item label { display: block; width: 100%; padding: 18px 15px 18px 55px; margin: 0; font-weight: normal; cursor: pointer; font-size: 1.05em; box-sizing: border-box; }

.form-group-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 5px; }
.radio-option {
    position: relative; display: inline-flex; align-items: center;
    border: 1px solid #ccc; border-radius: 6px; background-color: #fff;
    cursor: pointer; transition: all 0.2s; min-width: 100px;
}
.radio-option:hover { background-color: #e3f2fd; border-color: #1c5d99; }
.radio-option input[type="radio"] { margin-left: 12px; transform: scale(1.3); cursor: pointer; }
.radio-option label { display: block; width: 100%; padding: 12px 15px 12px 5px; margin: 0; font-weight: normal; cursor: pointer; }

/* BLOQUEO ORIENTACIÃ“N */
#orientation-lock { display: none; }
@media screen and (orientation: portrait) {
    body.enforce-landscape #orientation-lock {
        display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background-color: #2c3e50; z-index: 999999;
        color: white; flex-direction: column; justify-content: center; align-items: center;
        text-align: center; padding: 20px;
    }
    body.enforce-landscape .app-wrapper { display: none !important; }
}
.rotate-icon { font-size: 4em; margin-bottom: 20px; animation: spin 2s infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 25% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }

/* RESTO */
.fullscreen-mode { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; background-color: black; z-index: 9999; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; }
.fullscreen-img-content { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
#videoOverlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 10000; }
#exitVideo { width: 100%; height: 100%; object-fit: cover; }
.sam-container { padding: 30px 10px; text-align: center; margin-bottom: 40px; border-bottom: 1px solid #eee; }
.sam-label { font-weight: bold; font-size: 1.3em; margin-bottom: 30px; display: block; color: #1c5d99; text-align: center; }
#samReminderContainer { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; padding: 20px; background: #f0f2f5; border-radius: 8px; border: 1px solid #ddd; }
.reminder-img { height: 120px; width: auto; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid #ccc; }
.slider-wrapper { position: relative; max-width: 900px; margin: 0 auto; width: 100%; }
.sam-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; background: #e0e0e0; outline: none; opacity: 0.9; border-radius: 6px; margin-bottom: 20px; }
.sam-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; background: #1c5d99; cursor: pointer; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.slider-labels { display: flex !important; justify-content: space-between !important; width: 100% !important; margin-top: 5px; font-size: 0.9em; font-weight: bold; color: #555; }
.lbl-left { flex: 1; text-align: left !important; }
.lbl-center { flex: 1; text-align: center !important; }
.lbl-right { flex: 1; text-align: right !important; }

.instrucciones-texto p { text-align: justify !important; text-justify: inter-word; }
.instrucciones-texto { font-size: 1.2em; line-height: 1.7; margin: 25px 0; }
.req-list li { margin-bottom: 18px; font-size: 1.15em; text-align: left; }
