@font-face {
    font-family: 'Reckless Wide M';
    src: url('fonts/RECKLESSWIDEM-MEDIUM.TTF') format('truetype'); /* Nombre de archivo corregido */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Reckless Wide M';
    src: url('fonts/RECKLESSWIDEM-MEDIUMITALIC.TTF') format('truetype');
    font-weight: normal;
    font-style: italic;
}

body {
    font-family: 'Reckless Wide M', sans-serif; /* Tipografía principal */
    background-color: #0fd95d;
    color: #00422e;
    margin: 0;
    padding: 50px 30px; /* Reducido */
}
.container {
    max-width: 750px; /* Reducido */
    margin: 0 auto;
    background-color: #ffffff;
    padding: 25px 35px; /* Reducido */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 8px solid #0f4a30; /* Verde oscuro basado en el logo de UCSM */
}
h1 {
    color: #0f4a30;
    text-align: center;
    margin-bottom: 20px;
}
p.description {
    text-align: center;
    color: #555;
    margin-bottom: 35px;
    font-size: 1.1em;
}
.question-block {
    margin-bottom: 22px; /* Reducido */
    padding: 18px; /* Reducido */
    background-color: #f9faee; /* Actualizado */
    border: 1px solid #e0e0e0;
    border-left: 5px solid #0f4a30; /* Verde claro vibrante del fondo del banner */
    border-radius: 6px;
    transition: box-shadow 0.2s;
}
.question-block:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.question-text {
    font-style: italic; /* Italic aplicado */
    font-weight: normal; /* Ajustado para la fuente itálica */
    margin-bottom: 15px;
    font-size: 1em; /* Reducido */
    color: #00422e; /* Actualizado */
}
.options-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}
.option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 13px;
    border-radius: 2px;
    transition: background-color 0.2s;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    font-style: italic; /* Italic aplicado */
    font-size: 0.7em; /* Tamaño de fuente reducido */
}
.option-label:hover {
    background-color: #f0fdf4;
}
.option-label input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #0f4a30;
}
.submit-btn {
    display: flex;
    align-items: center;
    width: 50%;
    padding: 16px;
    background-color: #0f4a30;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 40px;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #0a3521;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0fd95d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.5s ease-out, visibility 2s ease-out; /* Aumentado para desvanecimiento más suave */
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.preloader-logo {
    width: 500px;
    height: 500px;
    animation: pulse 2.5s ease-in-out infinite; /* Animación de pulso */
}

.preloader-spinner {
    display: none; /* Ocultamos el spinner para un look más limpio */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Keyframes para la animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Media Queries para Diseño Responsive --- */

/* Para tablets grandes y desktops (1200px en adelante) */
@media (min-width: 1200px) {
    .container {
        max-width: 960px;
    }
    h1 {
        font-size: 2.5em;
    }
}

/* Para tablets en modo retrato (769px a 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 90%;
    }
    h1 {
        font-size: 2em;
    }
    p.description {
        font-size: 1em;
    }
    .question-text {
        font-size: 1.05em;
    }
    .preloader-logo {
        width: 180px;
        height: 180px;
    }
}

/* Para móviles (hasta 768px) */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    .container {
        padding: 20px 15px;
        border-top-width: 6px;
    }
    h1 {
        font-size: 1.8em;
    }
    p.description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .question-block {
        padding: 15px;
    }
    .question-text {
        font-size: 1em;
    }
    .submit-btn {
        padding: 14px;
        font-size: 1em;
    }
    .preloader-logo {
        width: 250px;
        height: 250px;
    }
}