/* Estilo general */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    box-sizing: border-box;
}

/* Título */
h1 {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

/* Preguntas y formulario */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: 500;
    cursor: pointer;
}

label span {
    display: block;
    margin-bottom: 3px;
}

/* Botones de radio */
.radio-group {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    padding: 8px;
    opacity: 1;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* Campos de texto */
input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Estilos para el contenedor de campos de contacto */
.user-contact {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.half-width {
    flex: 1;
}

/* Estilos para campos inválidos */
input:invalid {
    border-color: #ccc; /* Color normal del borde */
}

input:invalid:focus {
    border-color: #007bff; /* Color normal de focus */
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Quitar el color rojo del placeholder */
input:invalid::placeholder {
    color: #999; /* Color normal del placeholder */
}

/* Estilo para cuando el usuario intenta enviar el formulario con campos inválidos */
input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

input:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 2px rgba(220,53,69,0.25);
}

/* Estilo para el placeholder */
input::placeholder {
    color: #999;
    font-size: 0.95rem;
}

/* Botón de enviar */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Secciones dinámicas (preguntas) */
.questions {
    margin-top: 20px;
}

.hidden {
    display: none !important; /* Forzar que permanezca oculto */
    pointer-events: none; /* Deshabilitar interacciones */
}

/* Responsivo */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    label {
        font-size: 0.9rem;
    }

    .radio-group {
        flex-direction: column; /* Los botones de radio se colocan verticalmente en pantallas pequeñas */
    }

    .user-contact {
        flex-direction: column;
        gap: 0;
    }

    .half-width {
        width: 100%;
    }

    input[type="tel"],
    input[type="email"] {
        margin-bottom: 20px;
    }
}

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

    button {
        font-size: 0.9rem;
        padding: 8px;
    }
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
}

/* Agregar una nueva clase para campos deshabilitados */
.disabled-field {
    opacity: 0.5;
    pointer-events: none;
}

/* Estilos para los nuevos campos de formulario */
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Estilo para el aviso de privacidad */
.privacy-notice {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.privacy-notice a {
    color: #007bff;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Modificar los estilos de las preguntas */
.condition-questions {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.condition-questions.visible {
    display: block;
    opacity: 1;
}

/* Estilo para el botón deshabilitado */
.nav-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.radio-group-padecimiento {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.radio-group-padecimiento label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.radio-group-padecimiento input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    appearance: auto;
}

.radio-group-padecimiento label:hover {
    background-color: #f8f9fa;
}

.radio-group-padecimiento input[type="radio"]:checked + label {
    background-color: #e3f2fd;
    border-color: #007bff;
}

/* Estilo para cuando son inválidos */
.radio-group.invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Ajustar espaciado de preguntas */
.condition-questions {
    margin-top: 20px;
}

/* Estilos para el multistep form */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.step.completed {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

/* Estilos para los pasos del contenido */
.step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-content.active {
    display: block;
    opacity: 1;
}

/* Estilos para los selects */
select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Estilos para la navegación entre pasos */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.nav-button, .submit-button {
    flex: 1;
    padding: 12px 20px;
}

/* Animación para los pasos */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para la página de resultados */
.results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 20px;
    max-width: 800px;
    margin: 0 auto;
}

.results-title {
    color: #0066B3;
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 2rem;
    text-align: center;
}

.results-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info {
    margin-bottom: 2rem;
    text-align: center;
}

.user-info p {
    margin: 0.5rem 0;
    font-size: 18px;
}

.user-info span {
    color: #0066B3;
    font-weight: 600;
}

.risk-level {
    text-align: center;
    margin-bottom: 2rem;
}

.risk-percentage {
    font-size: 48px;
    font-weight: bold;
    color: #0066B3;
    margin: 1rem 0;
}

.risk-bar {
    background-color: #E6E6E6;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.risk-indicator {
    height: 100%;
    transition: width 1s ease-in-out;
}

.recommendation, .next-steps {
    margin-top: 2rem;
}

.recommendation h3, .next-steps h3 {
    color: #0066B3;
    margin-bottom: 1rem;
}

.btn-inicio {
    background-color: #00A3E0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.btn-inicio:hover {
    background-color: #0088c9;
}

/* Ajustes responsive */
@media (max-width: 480px) {
    .results-title {
        font-size: 24px;
    }

    .risk-percentage {
        font-size: 36px;
    }

    .results-card {
        padding: 1.5rem;
    }
}

/* Estilos para la página de bienvenida */
.welcome-page {
    background-color: #E4EDF0;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%;
}

.logo {
    width: 200px;
    height: auto;
}

.welcome-content {
    width: 100%;
    text-align: center;
}

.welcome-content h1 {
    color: #0066B3;
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 24px;
}

.welcome-description {
    color: #333333;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.priority-text {
    color: #0066B3;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 32px;
}

.start-button {
    background-color: #00A3E0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background-color 0.3s ease;
}

.start-button:hover {
    background-color: #0088c9;
}

.privacy-notice {
    color: #666666;
    font-size: 14px;
}

.privacy-notice a {
    color: #00A3E0;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .welcome-container {
        padding: 0 15px;
    }

    .logo {
        width: 150px;
    }

    .welcome-content h1 {
        font-size: 24px;
    }

    .welcome-description {
        font-size: 14px;
    }

    .priority-text {
        font-size: 16px;
    }

    .start-button {
        font-size: 16px;
    }
}

/* Estilos para el formulario */
.form-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.form-page .header {
    background-color: #005D85;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-page .header .logo {
    width: auto;
    height: 28px;
    object-fit: contain;
}

.blue-line {
    height: 4px;
    background-color: #00A3E0;
    width: 100%;
    position: fixed;
    top: 65px;
    left: 0;
    z-index: 999;
}

/* Contenido del formulario */
.form-container {
    padding-top: 85px;
    width: 100%;
    min-height: 100vh;
}

.form-title {
    margin: 1.5rem 20px;
}

/* Ajuste del grid de padecimientos */
.padecimientos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    justify-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
}

.padecimiento-option {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.padecimiento-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.padecimiento-option label::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.padecimiento-option label::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.padecimiento-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #00A3E0, #007bff);
    border-color: #00A3E0;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 163, 224, 0.3);
    transform: translateY(-5px);
}

.padecimiento-option input[type="radio"]:checked + label::before {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.padecimiento-option input[type="radio"]:checked + label::after {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.padecimiento-option label:hover {
    background: #e9ecef;
    border-color: #00A3E0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.padecimiento-option input[type="radio"]:checked + label:hover {
    background: linear-gradient(135deg, #0095cc, #0069d9);
    box-shadow: 0 12px 35px rgba(0, 163, 224, 0.4);
    transform: translateY(-7px);
}

.padecimiento-option input[type="radio"] {
    display: none;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 3px solid #dee2e6;
}

.padecimiento-option input[type="radio"]:checked + label .icon-circle {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.icon-circle img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.padecimiento-option input[type="radio"]:checked + label .icon-circle img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.padecimiento-option label span {
    font-weight: 600;
    font-size: 16px;
    color: #495057;
    transition: color 0.3s ease;
}

.padecimiento-option input[type="radio"]:checked + label span {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Animación de pulso para padecimientos seleccionados */
.padecimiento-option input[type="radio"]:checked + label {
    animation: pulse 2s infinite;
}

/* Títulos y contenido */
.form-title {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 2rem 20px;
    font-weight: 600;
}

/* Input de nombre */
input[type="text"] {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.icon-circle {
    width: 80px; /* Más pequeño en móvil */
    height: 80px;
    background-color: #F2F2F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.icon-circle img {
    width: 40px; /* Más pequeño en móvil */
    height: 40px;
}

.padecimiento-option label span {
    font-size: 0.9rem; /* Texto más pequeño en móvil */
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

/* Efectos de selección */
.padecimiento-option input[type="radio"]:checked + label {
    background-color: #E6F3FF;
    opacity: 0.9;
}

/* Botón siguiente */
.siguiente-btn {
    background-color: #00A3E0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px;
    width: calc(100% - 40px);
    margin: 2rem 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.siguiente-btn:hover {
    background-color: #0088c9;
}

/* Aviso de privacidad */
.privacy-notice {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 20px;
}

.privacy-notice a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Media queries */
@media (min-width: 768px) {
    .padecimientos-grid {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 3rem;
        padding: 2rem 20px;
    }

    .padecimiento-option {
        flex: 1;
        max-width: 200px;
    }

    .icon-circle {
        width: 100px; /* Más grande en desktop */
        height: 100px;
    }

    .icon-circle img {
        width: 50px; /* Más grande en desktop */
        height: 50px;
    }

    .padecimiento-option label span {
        font-size: 1rem; /* Texto más grande en desktop */
    }
}

/* Ajustes adicionales para móviles muy pequeños */
@media (max-width: 360px) {
    .padecimientos-grid {
        gap: 0.5rem;
        padding: 1rem;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
    }

    .icon-circle img {
        width: 35px;
        height: 35px;
    }

    .padecimiento-option label span {
        font-size: 0.8rem;
    }
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Media queries para el logo */
@media (min-width: 768px) {
    .form-page .header {
        padding: 15px 30px;
    }

    .form-page .header .logo {
        height: 35px;
    }
}

@media (min-width: 1024px) {
    .form-page .header .logo {
        height: 40px;
    }
}

/* Estilos para la pantalla 3 */
.step3-page {
    background-color: #E4EDF0;
}

.thanks-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 20px;
}

.thanks-title {
    color: #0066B3;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.thanks-description {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.doctor-image {
    width: 70%; /* Reducido al 70% del tamaño original */
    max-width: 210px; /* 70% de 300px */
    margin: 2rem auto;
}

.doctor-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.support-text {
    color: #00A3E0;
    font-size: 18px;
    margin-bottom: 2rem;
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.btn-anterior,
.btn-siguiente {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-anterior {
    background-color: #E6E6E6;
    color: #333;
}

.btn-siguiente {
    background-color: #00A3E0;
    color: white;
}

.btn-anterior:hover {
    background-color: #D9D9D9;
}

.btn-siguiente:hover {
    background-color: #0088c9;
}

/* Media queries para la pantalla 3 */
@media (min-width: 768px) {
    .thanks-title {
        font-size: 32px;
    }

    .doctor-image {
        max-width: 280px; /* 70% de 400px */
    }

    .navigation-buttons {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .thanks-title {
        font-size: 24px;
    }

    .thanks-description,
    .support-text {
        font-size: 14px;
    }

    .doctor-image {
        max-width: 250px;
    }
}

/* Estilos para las preguntas */
.question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 20px;
    max-width: 600px;
    margin: 0 auto;
}

.question-title {
    color: #0066B3;
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 3rem;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 3rem;
}

.option {
    position: relative;
}

.option input[type="radio"] {
    display: none;
}

.option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #F2F2F2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option label:hover {
    background-color: #E6F3FF;
}

.option input[type="radio"]:checked + label {
    background-color: #0066B3;
    color: white;
}

.option-text {
    font-size: 18px;
    font-weight: 500;
}

/* Ajustes responsive */
@media (max-width: 480px) {
    .question-title {
        font-size: 20px;
    }

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

/* Estilos para grupo de preguntas */
.questions-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 20px;
    max-width: 800px; /* Aumentado para mejor distribución */
    margin: 0 auto;
    width: 100%;
}

.question-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%; /* Asegura mismo ancho */
    box-sizing: border-box;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 1.5rem 0;
}

.option {
    width: 100%;
}

.option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #F2F2F2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Navegación */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .questions-group {
        padding: 1.5rem 15px;
        gap: 1.5rem;
    }

    .question-container {
        padding: 1.5rem;
    }
}

/* Estilos para la página de casi terminamos */
.almost-done-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 20px;
    max-width: 600px;
    margin: 0 auto;
}

.almost-done-title {
    color: #0066B3;
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.almost-done-description {
    color: #333;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.thumbs-image {
    width: 200px;
    margin: 2rem auto;
}

.thumbs-image img {
    width: 100%;
    height: auto;
}

.motivation-text {
    color: #00A3E0;
    font-size: 20px;
    font-weight: 500;
    margin: 2rem 0;
    line-height: 1.4;
}

/* Ajustes responsive */
@media (max-width: 480px) {
    .almost-done-title {
        font-size: 28px;
    }

    .almost-done-description {
        font-size: 16px;
    }

    .motivation-text {
        font-size: 18px;
    }

    .thumbs-image {
        width: 180px;
    }
}

/* Estilos para la página de registro */
.registro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 20px;
    max-width: 600px;
    margin: 0 auto;
}

.registro-title {
    color: #333;
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.registro-title .highlight {
    color: #0066B3;
    font-weight: 600;
}

.registro-subtitle {
    color: #333;
    font-size: 18px;
    margin-bottom: 2rem;
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn-enviar {
    background-color: #00A3E0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 15px;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #0088c9;
}

/* Estilos para los resultados */
.pre-results {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.book-title {
    font-weight: bold;
    color: #0066B3;
    margin: 1rem 0;
}

.btn-download {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.resultado-detallado {
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.resultado-detallado.riesgo-bajo {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}

.resultado-detallado.riesgo-urgente {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.resultado-detallado.alerta-maxima {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Estilos para el grid de preguntas */
.questions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.question-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
}

.question-card .form-group {
    margin-bottom: 0;
}

/* Estilos para la paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #0056b3;
}

.resultado-detallado h4 {
    font-size: 24px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.btn-agendar {
    background-color: #0066B3;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin: 2rem 0 1rem 0;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-agendar:hover {
    background-color: #004d8c;
    color: white;
    text-decoration: none;
}

.nota {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.4;
    padding: 0 1rem;
}

/* Estilos para botones deshabilitados */
.btn-siguiente:disabled {
    background-color: #ccc !important;
    opacity: 0.6;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.btn-siguiente:disabled:hover {
    background-color: #ccc !important;
    transform: none;
}

/* Animación suave para cambios de estado */
.btn-siguiente {
    transition: all 0.3s ease;
}

/* Feedback visual para opciones seleccionadas */
.option input[type="radio"]:checked + label {
    background-color: #0066B3;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 102, 179, 0.3);
}

/* Efecto hover mejorado */
.option label:hover {
    background-color: #E6F3FF;
    transform: scale(1.01);
}

/* Indicador visual de progreso - OCULTO */
.question-container {
    position: relative;
}

.question-container::before {
    display: none; /* Ocultar el icono gris */
}

.question-container.respondida::before {
    display: none; /* Ocultar el icono gris */
}

.form-container, .questions-group {
    max-width: 700px;
    margin: 40px auto;
    padding: 32px 24px;
}

/* Mejoras de responsividad para form.html */
@media (max-width: 768px) {
    .form-container {
        margin: 20px auto;
        padding: 20px 16px;
    }
    
    .padecimientos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .padecimiento-option {
        min-height: 80px;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .icon-circle img {
        width: 30px;
        height: 30px;
    }
    
    .padecimiento-option label span {
        font-size: 14px;
    }
    
    .form-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    select, input[type="text"] {
        font-size: 16px;
        padding: 12px;
    }
    
    .siguiente-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 10px auto;
        padding: 16px 12px;
    }
    
    .padecimientos-grid {
        gap: 12px;
    }
    
    .padecimiento-option {
        min-height: 70px;
    }
    
    .icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .icon-circle img {
        width: 24px;
        height: 24px;
    }
    
    .padecimiento-option label span {
        font-size: 13px;
    }
    
    .form-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    select, input[type="text"] {
        font-size: 14px;
        padding: 10px;
    }
    
    .siguiente-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .header .logo {
        height: 40px;
    }
    
    .blue-line {
        height: 3px;
    }
}

/* Animación de entrada para las preguntas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-container {
    animation: slideInUp 0.5s ease forwards;
}

.question-container:nth-child(1) { animation-delay: 0.1s; }
.question-container:nth-child(2) { animation-delay: 0.2s; }
.question-container:nth-child(3) { animation-delay: 0.3s; }
.question-container:nth-child(4) { animation-delay: 0.4s; }
.question-container:nth-child(5) { animation-delay: 0.5s; }
.question-container:nth-child(6) { animation-delay: 0.6s; }
.question-container:nth-child(7) { animation-delay: 0.7s; }
.question-container:nth-child(8) { animation-delay: 0.8s; }
.question-container:nth-child(9) { animation-delay: 0.9s; }
.question-container:nth-child(10) { animation-delay: 1.0s; }
.question-container:nth-child(11) { animation-delay: 1.1s; }
.question-container:nth-child(12) { animation-delay: 1.2s; }
