/**
 * Estilos comunes para QU - We Are App
 * Variables CSS y estilos compartidos
 */

:root {
    --we-azul: #002e65;
    --we-verde: #b3f5cc;
    --we-naranja: #ff7f00;
    --we-amarillo: #ffce00;
    --we-blanco: #ffffff;
}

* {
    font-family: 'Poppins', sans-serif;
}

/* Estilos de fondo */
body.background-gradient {
    background: linear-gradient(135deg, var(--we-azul) 0%, #001a3d 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.background-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Header bar */
.header-bar {
    background: linear-gradient(135deg, var(--we-azul) 0%, #001a3d 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-bar .logo-container {
    background: white;
    border-radius: 12px;
    padding: 10px 20px;
    display: inline-block;
}

.header-bar h1 {
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0;
}

.header-bar .tagline {
    color: var(--we-verde);
    font-size: 0.85rem;
}

.user-info {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.user-info a {
    color: white;
    text-decoration: none;
}

/* Cards */
.portal-card,
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

.login-card {
    max-width: 450px;
}

.logo-container {
    background: white;
    border-radius: 16px;
    padding: 15px 25px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.portal-card .logo-container {
    margin-bottom: 30px;
}

/* Títulos */
h1 {
    color: var(--we-azul);
    font-weight: 700;
    margin-bottom: 15px;
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Formularios */
.form-control {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--we-naranja);
    box-shadow: 0 0 0 4px rgba(255, 127, 0, 0.15);
}

.form-label {
    text-align: left;
    display: block;
    font-weight: 600;
    color: var(--we-azul);
    margin-bottom: 8px;
}

.codigo-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 700;
}

/* Botones */
.btn-submit {
    background: linear-gradient(135deg, var(--we-naranja) 0%, #e66a00 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-weight: 600;
    color: white;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 127, 0, 0.4);
    color: white;
}

.btn-submit:disabled {
    opacity: 0.7;
    transform: none;
}

.btn-submit.large {
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    width: auto;
}

.btn-submit.large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 127, 0, 0.4);
}

/* Info cards */
.evaluacion-info,
.taller-info {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid var(--we-naranja);
}

.evaluado-header {
    background: var(--we-verde);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.evaluado-header h4 {
    color: var(--we-azul);
    margin: 0;
    font-weight: 700;
}

.evaluado-header .relacion {
    color: var(--we-azul);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Preguntas */
.pregunta-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.pregunta-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pregunta-numero {
    background: var(--we-azul);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 15px;
}

.pregunta-texto {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--we-azul);
}

.required-badge {
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

/* Opciones */
.opcion-radio,
.opcion-checkbox {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.opcion-radio:hover,
.opcion-checkbox:hover {
    background: rgba(255, 127, 0, 0.1);
    border-color: var(--we-naranja);
}

.opcion-radio.selected,
.opcion-checkbox.selected {
    background: rgba(255, 127, 0, 0.15);
    border-color: var(--we-naranja);
}

/* Ranking */
.ranking-item {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.ranking-item select {
    width: 60px;
    margin-right: 15px;
}

/* More or Less */
.more-less-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 8px;
}

.more-less-option .btn-group {
    margin-left: auto;
}

.more-less-option .btn-more.active {
    background: var(--we-verde);
    border-color: var(--we-verde);
    color: var(--we-azul);
}

.more-less-option .btn-less.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Otros componentes */
.registro-form {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.success-message {
    text-align: center;
    padding: 60px 30px;
}

.success-message i {
    font-size: 5rem;
    color: var(--we-verde);
    margin-bottom: 20px;
}

.info-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.tipo-badge {
    display: inline-block;
    background: var(--we-verde);
    color: var(--we-azul);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Pendientes (evaluaciones directas) */
.pendientes-list {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pendiente-item {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.pendiente-item:hover {
    background: rgba(255, 127, 0, 0.1);
    border-color: var(--we-naranja);
}

.pendiente-item.active {
    background: var(--we-azul);
    color: white;
    border-color: var(--we-azul);
}

/* Alertas */
.alert {
    text-align: left;
    border-radius: 12px;
}

.resend-link {
    color: var(--we-naranja);
    cursor: pointer;
    text-decoration: underline;
}

.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
}

/* Animaciones */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Utilidades adicionales */
.btn-more.active {
    background: var(--we-verde) !important;
    border-color: var(--we-verde) !important;
    color: var(--we-azul) !important;
}

.btn-less.active {
    background: #ffebee !important;
    border-color: #ffcdd2 !important;
    color: #c62828 !important;
}

/* Estilos para preguntas Likert */
.likert-dimension-header {
    background: linear-gradient(135deg, var(--we-azul) 0%, #001a3d 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.likert-dimension-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.likert-dimension-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.likert-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.likert-table thead {
    background: #f8f9fa;
}

.likert-table th {
    padding: 15px 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.likert-table th:first-child {
    text-align: left;
    padding-left: 20px;
    width: 50%;
}

.likert-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.likert-table td:first-child {
    text-align: left;
    padding-left: 20px;
    font-weight: 500;
}

.likert-table tbody tr:hover {
    background: #f8f9fa;
}

.likert-table tbody tr:last-child td {
    border-bottom: none;
}

.likert-radio {
    cursor: pointer;
    transform: scale(1.2);
}

.likert-afirmacion {
    font-size: 0.95rem;
    color: #333;
}

.likert-afirmacion-numero {
    color: var(--we-azul);
    font-weight: 600;
    margin-right: 8px;
}

