﻿/* Estilos específicos para responder encuestas - TODAS VISIBLES */

body {
    background-color: #F4F4F4 !important;
    min-height: 100vh;
}




.survey-header {
    background: white;
    border-radius: 12px;
    padding: 2rem 2rem 2rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #1C2A59;
    margin-bottom: 2rem;
    margin-left: 0.5rem;
}

.survey-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1C2A59;
    font-size: 1.8rem;
    padding-left: 0.5rem;
}

.survey-version {
    color: #0072BB;
    font-weight: 500;
    font-size: 1rem;
    padding-left: 0.5rem;
}

.survey-info {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #0072BB;
    margin-left: 0.5rem;
}

/* ========================================== */
/* CONTADOR STICKY - FIXED/STICKY EN LA PARTE SUPERIOR */
/* ========================================== */
.progress-sticky-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
    border-radius:5px;
}

.progress-container {
    background: white;
    border-radius: 10px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.progress-percentage {
    background: linear-gradient(135deg, #1C2A59, #0072BB);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 10px;
}

.progress {
    height: 10px;
    background-color: #f1f3f5;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-survey {
    background: linear-gradient(90deg, #1C2A59, #0072BB, #13c2c2);
    border-radius: 5px;
    transition: width 0.5s ease;
    height: 100%;
}

/* Tarjetas de preguntas - TODAS VISIBLES */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 2rem 2rem 3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    /*margin-left: 0.5rem;*/
}

    .question-card:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f5;
    padding-left: 0.5rem;
}

.question-number {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.number-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1C2A59, #0072BB);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.required-badge {
    background: #ffebee;
    color: #d32f2f;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #ffcdd2;
    margin-right: 0.5rem;
}

.question-text {
    color: #1C2A59;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1.2rem;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* Opciones de radio */
.radio-options {
    display: block;
    margin-left: 1rem;
}

.radio-option {
    display: block;
    align-items: flex-start;
    padding: 0.75rem 0;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    width: 100%;
}

    .radio-option:hover {
        background-color: #f8f9fa;
    }

    .radio-option .form-check-input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.radio-circle {
    width: 1.3em;
    height: 1.3em;
    min-width: 1.3em;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 0.15rem;
    transition: all 0.2s ease;
    position: relative;
}

.radio-option .form-check-input:checked + .radio-label .radio-circle {
    background-color: #0072BB;
    border-color: #0072BB;
    box-shadow: 0 0 0 4px rgba(0, 114, 187, 0.2);
}

    .radio-option .form-check-input:checked + .radio-label .radio-circle::after {
        content: '';
        position: absolute;
        width: 0.6em;
        height: 0.6em;
        background: white;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.radio-text {
    line-height: 1.5;
    color: #495057;
    font-size: 1.05rem;
    padding-top: 0.1rem;
}

/* Opciones de checkbox */
.checkbox-options {
    display: block;
    margin-left: 1rem;
}

.checkbox-option {
    display: block;
    align-items: flex-start;
    padding: 0.75rem 0;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    width: 100%;
}

    .checkbox-option:hover {
        background-color: #f8f9fa;
    }

    .checkbox-option .form-check-input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.checkbox-square {
    width: 1.3em;
    height: 1.3em;
    min-width: 1.3em;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 0.15rem;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-option .form-check-input:checked + .checkbox-label .checkbox-square {
    background-color: #0072BB;
    border-color: #0072BB;
}

    .checkbox-option .form-check-input:checked + .checkbox-label .checkbox-square::after {
        content: '✓';
        position: absolute;
        color: white;
        font-size: 0.8em;
        font-weight: bold;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.checkbox-text {
    line-height: 1.5;
    color: #495057;
    font-size: 1.05rem;
    padding-top: 0.1rem;
}

/* Campo "Otro" */
.other-option {
    margin-left: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    width: calc(100% - 2.5rem);
}

.other-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

    .other-input:focus {
        border-color: #0072BB;
        box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
    }

/* Textarea */
.textarea-answer {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: calc(100% - 2rem);
    margin-left: 1rem;
}

    .textArea-answer:focus {
        border-color: #0072BB;
        box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
    }

.char-counter {
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-right: 1rem;
}

/* Info de selecciones máximas */
.max-selections-info {
    background: #e8f4fd;
    border-left: 4px solid #0072BB;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
    color: #0056b3;
    font-size: 0.95rem;
    margin-left: 1rem;
    width: calc(100% - 1rem);
}

/* Mensajes de error */
.validation-message {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #ffebee;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
    margin-left: 1rem;
    width: calc(100% - 1rem);
}

/* Acciones finales */
.survey-actions {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2.5rem 2.5rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #13c2c2;
    margin-top: 3rem;
    margin-left: 0.5rem;
}

.btn-cancel {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 0.5rem;
}

    .btn-cancel:hover {
        background: #e9ecef;
        color: #212529;
        border-color: #ced4da;
    }

.btn-save-draft {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #bbdefb;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 0.5rem;
}

    .btn-save-draft:hover {
        background: #bbdefb;
        color: #1565c0;
        border-color: #90caf9;
    }

.btn-submit-survey {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

    .btn-submit-survey:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    }

    .btn-submit-survey:disabled {
        background: #6c757d;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }


/* Responsive */
@media (max-width: 768px) {
    .progress-sticky-container {
        max-width: 95%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .progress-container {
        padding: 1.25rem 1.5rem;
        max-width: 100%;
        border-radius: 10px;
    }

    .progress-text {
        font-size: 1rem;
        flex-wrap: wrap;
        margin-bottom: 10px;
        padding-left: 0.25rem;
    }

    .progress {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .progress-sticky-container {
        max-width: 95%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .progress-container {
        padding: 1.25rem 1.5rem;
        max-width: 100%;
        border-radius: 10px;
    }
}
/* Para versión móvil */
@media (max-width: 768px) {
    .progress-sticky-container {
        max-width: 95%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .progress-container {
        padding: 1.25rem 1.5rem;
        max-width: 100%;
        border-radius: 10px;
    }

    .progress-text {
        font-size: 1rem;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
}

/* Si tienes un navbar fijo */
@media (min-width: 992px) {
    .progress-sticky-container {
        top: 70px;
    }
}

@media (max-width: 768px) {
    .progress-sticky-container {
        max-width: 95%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .progress-container {
        max-width: 95%;
        padding: 0 0.5rem;
    }
}



/* Responsive */
@media (max-width: 768px) {
    .survey-header {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
        margin-left: 0.25rem;
    }

    .question-card {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
        margin-left: 0.25rem;
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-left: 0.25rem;
    }

    /* Sticky container en móviles */
    .progress-sticky-container {
        padding: 10px 0;
        margin-bottom: 1.5rem;
    }

    .progress-container {
        padding: 0 1rem;
    }

    .progress-text {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .progress-percentage {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .survey-actions {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
        margin-left: 0.25rem;
    }

        .survey-actions .d-flex {
            flex-direction: column;
            gap: 1rem;
        }

            .survey-actions .d-flex > * {
                width: 100%;
                text-align: center;
            }

    /* Ajustes para móviles */
    .radio-options,
    .checkbox-options {
        margin-left: 0.5rem;
    }

    .radio-option,
    .checkbox-option {
        margin-bottom: 10px;
    }

    .question-text {
        padding-left: 0.5rem;
        margin-left: 0.25rem;
    }

    .other-option {
        margin-left: 2rem;
        width: calc(100% - 2rem);
    }

    .textarea-answer {
        margin-left: 0.5rem;
        padding-left: 1rem;
        width: calc(100% - 1rem);
    }
}


/*********** TELEFONO - MODIFICADO ***********/

.contact-section .card {
    background-color: white !important; /* Fondo blanco como el resto */
}

.contact-section .contact-input {
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 1.3rem; /* Más grande */
    padding: 0.8rem; /* Más espacio interno */
    background-color: #f0f9ff; /* Azul pastel solo para el input */
    border: 2px solid #d0ebff; /* Borde azul claro */
    border-radius: 8px;
    transition: all 0.3s ease;
    
}

    .contact-section .contact-input:focus {
        background-color: #e7f5ff; /* Azul un poco más oscuro al enfocar */
        border-color: #339af0;
        box-shadow: 0 0 0 3px rgba(51, 154, 240, 0.1);
        outline: none;
    }

    .contact-section .contact-input::placeholder {
        color: #74c0fc; /* Color del placeholder azul claro */
        opacity: 0.7;
    }

/* Para mantener la centración */
.contact-section input[type="tel"] {
    margin: 0 auto;
    display: block;
    text-align: center;
    background-color: #F0F7FF;
    font-size: 1.2em;

}



/**************************/

/* Si tienes un navbar fijo, ajusta el top del sticky */
@media (min-width: 992px) {
    .progress-sticky-container {
        top: 50px; /* Ajusta según la altura de tu navbar */
    }
}
