/* styles.css - Estilos con paleta corporativa Vectus */

* {
    box-sizing: border-box;
}

:root {
    /* Colores corporativos Vectus */
    --azul-principal: #2E4F8C;      /* Azul principal */
    --azul-claro: #5A9BD4;          /* Azul claro/celeste */
    --gris-corporativo: #7D7D7D;    /* Gris corporativo */
    --naranja-acento: #E89B3F;      /* Naranja como acento */
    --azul-hover: #1F3A6B;          /* Azul más oscuro para hover */
    --celeste-suave: #B8D4EA;       /* Celeste suave para backgrounds */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-principal) 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(46, 79, 140, 0.2);
    overflow: hidden;
}

h1 {
    background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-claro) 100%);
    color: white;
    text-align: center;
    margin: 0;
    padding: 40px 20px;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Formulario inicial */
form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--azul-principal);
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

input:focus,
select:focus {
    border-color: var(--azul-claro);
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 155, 212, 0.1);
    background: white;
}

.btn {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-principal) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 155, 212, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Información de empresa en encuesta */
.empresa-info {
    background: var(--celeste-suave);
    padding: 20px;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #e1e8ed;
    color: var(--azul-principal);
    font-size: 1rem;
    font-weight: 500;
}

/* Barra de progreso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--azul-claro), var(--naranja-acento));
    width: 0%;
    transition: width 0.5s ease;
}

/* Mensajes de error de validación */
.error-validation {
    background: #fee;
    border: 2px solid #fcc;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 40px;
    display: none;
}

/* Contenedor de preguntas */
.pregunta-container {
    padding: 30px 40px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.pregunta-container:hover {
    background: linear-gradient(to right, rgba(184, 212, 234, 0.1), rgba(255, 255, 255, 1));
}

.pregunta-container:last-of-type {
    border-bottom: none;
}

.pregunta-container.error {
    border-left: 4px solid #e74c3c;
    background: #fdf2f2;
}

.pregunta-numero {
    font-size: 0.9rem;
    color: var(--gris-corporativo);
    font-weight: 500;
    margin-bottom: 10px;
}

.pregunta-texto {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--azul-principal);
    margin-bottom: 20px;
    line-height: 1.5;
}

.opciones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opcion-radio {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.opcion-radio:hover {
    border-color: var(--azul-claro);
    background: rgba(184, 212, 234, 0.1);
    box-shadow: 0 2px 8px rgba(90, 155, 212, 0.1);
}

.opcion-radio input[type="radio"] {
    /* display: none; */
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gris-corporativo);
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.opcion-radio:hover .radio-custom {
    border-color: var(--azul-claro);
}

.opcion-radio input[type="radio"]:checked + .radio-custom {
    border-color: var(--azul-claro);
    background: var(--azul-claro);
}

.opcion-radio input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.opcion-radio input[type="radio"]:checked ~ .opcion-texto {
    color: var(--azul-principal);
    font-weight: 600;
}

.opcion-texto {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    color: #555;
}

/* Acciones del formulario */
.form-actions {
    padding: 40px;
    text-align: center;
    background: rgba(184, 212, 234, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--naranja-acento) 0%, #D68A2E 100%);
    font-size: 1.2rem;
    padding: 20px 50px;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(232, 155, 63, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D68A2E 0%, #C07A26 100%);
    box-shadow: 0 10px 25px rgba(232, 155, 63, 0.4);
}

.btn-primary:disabled {
    background: var(--gris-corporativo);
    cursor: not-allowed;
    box-shadow: none;
}

/* Página de error */
.error-container {
    padding: 40px;
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-message {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    color: #c53030;
}

/* Página de confirmación */
.confirmacion-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.icono-exito {
    font-size: 4rem;
    color: var(--naranja-acento);
    margin-bottom: 20px;
}

.resultado-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(90, 155, 212, 0.1);
    border-left: 6px solid var(--azul-claro);
}

.nivel-madurez {
    font-size: 2rem;
    font-weight: bold;
    margin: 15px 0;
}

.porcentaje {
    font-size: 3rem;
    font-weight: bold;
}

.mensaje-siguiente {
    background: rgba(184, 212, 234, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--azul-claro);
}

.btn-inicio {
    background: var(--azul-principal);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-inicio:hover {
    background: var(--azul-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 79, 140, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    h1 {
        font-size: 1.8rem;
        padding: 30px 20px;
    }

    form,
    .pregunta-container {
        padding: 20px;
    }

    .error-validation {
        margin: 20px;
    }

    .opciones {
        gap: 10px;
    }

    .opcion-radio {
        padding: 12px;
    }

    .pregunta-texto {
        font-size: 1rem;
    }

    .btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .opcion-radio {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-custom {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .empresa-info {
        font-size: 0.9rem;
        padding: 15px;
    }
}

/* Estilos adicionales para diferentes niveles de madurez */
.nivel-inicial {
    color: #e74c3c;
}

.nivel-basico {
    color: var(--naranja-acento);
}

.nivel-intermedio {
    color: var(--azul-claro);
}

.nivel-avanzado {
    color: var(--azul-principal);
}