:root {
    --bg-dark: #f3f3f3; /* GRIS_SUAVE */
    --bg-dark-secondary: #ffffff; /* Tarjetas blancas */
    --text-main: #20184a; /* AZUL Gestal */
    --text-muted: #64748b;
    
    /* Brand Colors Gestal */
    --primary: #20184a; /* AZUL Gestal */
    --primary-hover: #29265d; /* VIOLETA Gestal */
    --secondary: #e2e8f0; /* Bordes claritos */
    --success: #efb322; /* AMARILLO Gestal */
    --success-hover: #ea6433; /* NARANJA Gestal */
    --accent: #ea6433; /* NARANJA Gestal */
    --alert: #ffcccc; /* ALERTA_CRITICA */
    
    /* Glassmorphism Light */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(203, 213, 225, 0.4);
    
    --font-main: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Background Mesh Estético Light */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(32, 24, 74, 0.08), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(239, 179, 34, 0.08), transparent 25%);
    filter: blur(60px);
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 3rem;
    text-align: center;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Steps System */
.step {
    width: 100%;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(32, 24, 74, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.progress-indicator {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.intro-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--secondary);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32, 24, 74, 0.2);
}

/* Radio Scale (1 to 5) */
.question-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.question-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.scale-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.scale-option {
    flex: 1;
    position: relative;
}

.scale-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.scale-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.2rem;
    background: var(--bg-dark-secondary);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    text-align: center;
}

.scale-label .num {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.scale-label .text {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.1;
}

.scale-option input[type="radio"]:checked + .scale-label {
    background: rgba(32, 24, 74, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.scale-option input[type="radio"]:checked + .scale-label .text {
    color: var(--primary);
}

.scale-option:hover .scale-label {
    background: rgba(0, 0, 0, 0.03);
}

/* Buttons */
.actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
    flex: 1;
}

.btn-success:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(234, 100, 51, 0.3);
}

/* Loading & Success States */
.loader {
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .glass-card { padding: 2rem 1.5rem; }
    .scale-container { flex-direction: column; }
    .scale-label { flex-direction: row; justify-content: flex-start; padding: 1rem; text-align: left;}
    .scale-label .num { margin-bottom: 0; margin-right: 1rem; width: 30px; }
}
