/* =========================================
   UI APP CUESTIONARIOS (DARK GLASSMORPHISM)
========================================= */
body {
    background: linear-gradient(-45deg, #050505, #3a0000, #050505, #1a0000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-main);
}

/* CONTENEDOR MODULAR */
.wizard-container {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255,255,255,0.05);
    width: 100%;
    max-width: 550px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    z-index: 2;
    margin-top: auto;
    margin-bottom: auto;
}

.header { text-align: center; margin-bottom: 25px; }
.header img { width: 100%; max-width: 320px; height: auto; margin-bottom: 30px; object-fit: contain; }
.header p { font-size: 11px; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

/* BARRA DE PROGRESO SEGMENTADA */
.progress-segments { display: flex; gap: 6px; margin-bottom: 30px; width: 100%; }
.segment { height: 4px; flex: 1; background: rgba(255,255,255,0.1); border-radius: 4px; transition: background 0.4s ease, box-shadow 0.4s ease; }
.segment.active { background: var(--brand-main); box-shadow: 0 0 10px var(--brand-main); }

/* PASOS */
.step { display: none; animation: fadeIn 0.4s ease forwards; opacity: 0; transform: translateY(10px); }
.step.active { display: block; }

.step-title { font-size: 18px; font-weight: 800; margin-bottom: 25px; color: var(--text-main); border-bottom: 1px solid var(--glass-border); padding-bottom: 12px; display: flex; align-items: center; gap: 10px; }

/* FORMULARIOS */
.form-group { margin-bottom: 20px; text-align: left; width: 100%; }
.form-group label { display: block; font-size: 11px; font-weight: 800; margin-bottom: 8px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.form-control { width: 100%; padding: 14px 15px; font-size: 14px; border: 1px solid var(--border-input); border-radius: 12px; background: var(--bg-input); color: var(--text-main); font-weight: 500; transition: all 0.2s; box-sizing: border-box; appearance: none; }
.form-control:focus { outline: none; border-color: var(--brand-main); background: rgba(0,0,0,0.8); box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1); }

/* --- HELIKON CUSTOM DROPDOWN (GLASSMORPHISM) --- */
.custom-select-wrapper { position: relative; width: 100%; user-select: none; }
.custom-select-trigger {
    width: 100%; padding: 14px 15px; font-size: 14px; font-weight: 600;
    border: 1px solid var(--border-input); border-radius: 12px;
    background: var(--bg-input); color: var(--text-main);
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: all 0.3s ease;
}
.custom-select-trigger:hover, .custom-select-wrapper.open .custom-select-trigger { border-color: var(--brand-main); background: rgba(0,0,0,0.8); box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1); }
.custom-select-trigger svg { width: 18px; height: 18px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: var(--text-light); flex-shrink: 0; }
.custom-select-wrapper.open .custom-select-trigger svg { transform: rotate(180deg); color: var(--brand-main); }

.custom-options {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-input); border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100; max-height: 240px; overflow-y: auto;
}
.custom-options::-webkit-scrollbar { width: 4px; }
.custom-options::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.custom-select-wrapper.open .custom-options { opacity: 1; visibility: visible; transform: translateY(0); }

.custom-option { padding: 14px 15px; font-size: 13px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: all 0.2s; border-bottom: 1px solid rgba(255,255,255,0.05); }
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: rgba(211, 47, 47, 0.15); color: #ffffff; padding-left: 20px; }
.custom-option.selected { background: #3a0000; color: #ffffff; font-weight: 800; border-left: 3px solid var(--brand-main); padding-left: 17px; }

textarea.form-control { resize: vertical; min-height: 100px; }

/* SELECCIÓN DE COACH */
.coach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-height: 300px; overflow-y: auto; padding-right: 5px; }
.coach-grid::-webkit-scrollbar { width: 4px; }
.coach-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.coach-grid::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 4px; }

.coach-card { background: var(--bg-input); border: 1px solid var(--border-input); border-radius: 16px; padding: 16px 10px; text-align: center; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; }
.coach-card * { pointer-events: none; }
.coach-card:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); }
.coach-card.selected { border-color: var(--brand-main); background: rgba(211, 47, 47, 0.15); box-shadow: inset 0 0 0 1px var(--brand-main), 0 4px 15px rgba(211,47,47,0.2); }
.coach-avatar { width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 50%; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-light); border: 1px solid rgba(255,255,255,0.1); }
.coach-name { font-size: 13px; font-weight: 700; color: var(--text-main); }
.coach-role { font-size: 10px; color: var(--text-light); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;}

/* ESTRELLAS Y CONTENEDOR DE PREGUNTAS */
.questions-container { max-height: 350px; overflow-y: auto; padding-right: 10px; }
.questions-container::-webkit-scrollbar { width: 4px; }
.questions-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.questions-container::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 4px; }

.rating-row { display: flex; flex-direction: column; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--glass-border); gap: 10px; }
.rating-row:last-child { border-bottom: none; }
.rating-label { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-main); }
.stars { display: flex; gap: 5px; flex-direction: row-reverse; }
.stars input { display: none; }
.stars label { cursor: pointer; width: 24px; height: 24px; color: #444; transition: color 0.2s; }
.stars label svg { width: 100%; height: 100%; fill: currentColor; pointer-events: none; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #fbbf24; filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4)); }

/* BOTONES */
.btn-container { display: flex; justify-content: space-between; margin-top: 35px; gap: 15px; }
.btn { padding: 16px 20px; font-size: 13px; font-weight: 800; border-radius: 12px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; border: none; transition: all 0.3s; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.btn-prev { background: rgba(255,255,255,0.05); color: var(--text-light); border: 1px solid var(--glass-border); }
.btn-prev:hover { background: rgba(255,255,255,0.1); color: white; transform: translateX(-2px); }
.btn-next { background: var(--brand-main); color: white; box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4); }
.btn-next:hover { transform: translateX(2px); box-shadow: 0 8px 25px rgba(211, 47, 47, 0.6); }

/* PANTALLA DE ÉXITO */
#success-message { text-align: center; display: none; padding: 40px 10px; animation: fadeIn 0.6s ease forwards; }
.success-icon { width: 80px; height: 80px; margin: 0 auto 20px; color: var(--brand-accent); }
.success-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#success-message h2 { color: var(--text-main); font-size: 24px; font-weight: 900; margin-bottom: 15px; }
#success-message p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* WATERMARK */
.helikon-watermark { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; margin-top: 35px; margin-bottom: 10px; opacity: 0.7; transition: all 0.3s ease; z-index: 2; }
.helikon-watermark:hover { opacity: 1; transform: translateY(-2px); }
.helikon-watermark img { width: 80px; height: auto; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); border: 1px solid rgba(255, 255, 255, 0.1); }
.helikon-watermark span { color: white; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); }

.svg-user { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 430px) {
    .wizard-container { padding: 30px 20px; border-radius: 20px; }
    body { padding: 15px 10px; }
    .coach-grid { grid-template-columns: 1fr; gap: 10px; }
    .btn-container { flex-direction: column-reverse; gap: 10px; }
    .btn { width: 100%; }
}