:root {
    /* Paleta Armonizada Flow Balance - Bioluminiscencia Marina */
    --bg-color-dark: #040d1a;           /* Azul abisal profundo idéntico al logo */
    --bg-color-light: #071524;          /* Azul marino profundo intermedio */
    --surface-card: rgba(7, 21, 37, 0.75); /* Cristal marino profundo consistente */
    --surface-card-hover: rgba(10, 29, 51, 0.88);
    --primary-color: #00e5ff;           /* Cian bioluminiscente / neón del logo */
    --secondary-color: #38bdf8;         /* Celeste agua suave complementario */
    --accent-teal: #00f2fe;             /* Turquesa luminoso */
    --accent-indigo: #4facfe;           /* Azul fluido */
    --accent-emerald: #10b981;          /* Verde agua para estados de éxito/calma */
    --text-primary: #f0fbfb;            /* Blanco off-white suave con toque menta */
    --text-secondary: #7e9bb5;          /* Gris azulado marino suave y relajante */
    --text-muted: #536f88;              /* Atenuado terciario para notas éticas/pies */
    --glass-bg: rgba(6, 18, 33, 0.82);  /* Cristal marino profundo unificado */
    --glass-border: rgba(0, 229, 255, 0.14); /* Borde sutil cian bioluminiscente */
    --glass-border-hover: rgba(0, 229, 255, 0.35);
    
    /* Breathing circle colors - flujo acuático */
    --inhale-color: #00f2fe; /* Cian bioluminiscente */
    --hold-color: #38bdf8;   /* Celeste profundo */
    --exhale-color: #4facfe; /* Azul fluido */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 1.5rem 0.75rem;
}

/* Dynamic background */
.background-animation {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.07) 0%, rgba(4, 13, 26, 0) 55%),
                radial-gradient(circle at 80% 80%, rgba(79, 172, 254, 0.05) 0%, rgba(4, 13, 26, 0) 50%),
                radial-gradient(circle at 20% 90%, rgba(0, 242, 254, 0.04) 0%, rgba(4, 13, 26, 0) 45%);
    animation: slow-rotate 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

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

/* Glassmorphism Container */
.glass-container {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 229, 255, 0.04);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

/* Home / Landing Wide Container - Espacioso, moderno y no comprimido */
.glass-container.landing-home {
    max-width: 820px;
    padding: 2.25rem 2rem;
    text-align: left;
}

@media (max-width: 640px) {
    .glass-container.landing-home {
        padding: 1.5rem 1.1rem;
    }
}

/* Navbar de Marca Superior Unificada */
.flow-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.14);
}

.flow-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.flow-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
    display: block;
    flex-shrink: 0;
}

.flow-brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.flow-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-primary);
    line-height: 1.1;
}

.flow-brand-tag {
    font-size: 0.68rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Logo clásico en módulos */
.app-brand-logo {
    width: auto;
    max-width: 130px;
    max-height: 38px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 0.5rem;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.2);
    background: #040d1a;
    transition: transform 0.25s ease;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Breathing Section - Armonizada en tonos cian y teal (sin morado ni índigo discordante) */
.breathing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
}

.breathing-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.breathing-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, var(--inhale-color), rgba(0, 229, 255, 0.35));
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease-in-out;
    transform: scale(1);
}

.breathing-circle.inhale {
    transform: scale(2);
    background: radial-gradient(circle at top left, var(--inhale-color), rgba(0, 229, 255, 0.45));
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6);
}

.breathing-circle.hold {
    transform: scale(2);
    background: radial-gradient(circle at top left, var(--hold-color), rgba(56, 189, 248, 0.45));
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.6);
}

.breathing-circle.exhale {
    transform: scale(1);
    background: radial-gradient(circle at top left, var(--exhale-color), rgba(79, 172, 254, 0.35));
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.35);
}

#instruction-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    /* Prevent text from scaling excessively by reversing the scale or using a separate absolute element */
    position: absolute;
    z-index: 2;
}

.timer-text {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-height: 1.5rem;
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.warning-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
}

.primary-btn {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #040d1a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.45);
}

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

/* Toggles */
.settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    margin-top: 0.5rem;
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Nuevas clases para las cápsulas de taller */
.dashboard {
    max-width: 600px;
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.module-card {
    background: rgba(10, 27, 45, 0.65);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 14px;
    padding: 1.35rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.module-card:hover {
    background: rgba(14, 38, 64, 0.85);
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12);
}

.module-card h3 {
    font-size: 1.05rem;
    color: #00f2fe;
    font-weight: 600;
}

.module-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.info-card, .guidance-box {
    background: rgba(8, 22, 38, 0.65);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.info-card h3, .guidance-box h3 {
    color: #00f2fe;
    margin-bottom: 0.75rem;
}

.info-card p, .guidance-box p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-card ul {
    margin-left: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.info-card li {
    margin-bottom: 0.3rem;
}

.secondary-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.text-sm { font-size: 0.85rem !important; }

.fade-text {
    opacity: 0.9;
    font-style: italic;
    color: #e2e8f0;
}

/* Estado bloqueado para módulos */
.module-card.locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

.module-card.locked::after {
    content: '🔒 Bloqueado';
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Adaptabilidad para Teléfonos (Responsive) */
.actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

@media (max-width: 480px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .glass-container {
        padding: 1.5rem;
        gap: 1.5rem;
        width: 95%;
    }
    .actions {
        flex-direction: column;
    }
    .primary-btn, .secondary-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Reloj Analógico de Anclaje Atencional (Paso 0)
   ========================================================================== */
.analog-clock-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    background: var(--surface-card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin: 1.25rem 0;
}

.clock-canvas-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#clock-canvas {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.6);
    background: radial-gradient(circle at center, rgba(8, 24, 42, 0.95) 0%, rgba(4, 13, 26, 0.98) 100%);
}

.clock-timer-display {
    font-size: 2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.clock-instruction {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.clock-summary-card {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.clock-stats-row {
    display: flex;
    justify-content: space-around;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 229, 255, 0.12);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Módulo de Micro-Hábitos Diarios (habitos.html)
   ========================================================================== */
.weekday-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
}

.weekday-tab {
    flex: 1;
    min-width: 44px;
    padding: 0.6rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.weekday-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.weekday-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-indigo));
    color: #040d1a;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
}

.weekday-tab.is-today::after {
    content: '•';
    display: block;
    font-size: 1.2rem;
    line-height: 0.5;
    color: var(--primary-color);
    margin-top: 2px;
}
.weekday-tab.active.is-today::after {
    color: #040d1a;
}

.habit-card {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.habit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.habit-icon-badge {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.habit-title-box h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.science-pill {
    display: inline-block;
    background: rgba(0, 229, 255, 0.09);
    border: 1px solid rgba(0, 229, 255, 0.28);
    color: var(--primary-color);
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 0.25rem;
    letter-spacing: 0.3px;
}

.science-box {
    background: rgba(4, 13, 26, 0.75);
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.interactive-tool-box {
    background: rgba(0, 229, 255, 0.04);
    border: 1px dashed rgba(0, 229, 255, 0.22);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    text-align: center;
}

/* Suspiro Fisiológico Guiado */
.sigh-visualizer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.sigh-bubble {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #040d1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.sigh-bubble.inhale1 {
    transform: scale(1.35);
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
}

.sigh-bubble.inhale2 {
    transform: scale(1.6);
    box-shadow: 0 0 45px rgba(0, 242, 254, 0.8);
}

.sigh-bubble.exhale {
    transform: scale(0.9);
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.3);
}

/* Escalas psicométricas y formularios de check-in */
.evaluation-block {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.scale-options {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.scale-btn {
    flex: 1;
    padding: 0.5rem;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.scale-btn:hover {
    background: rgba(0, 229, 255, 0.16);
    border-color: rgba(0, 229, 255, 0.35);
}

.scale-btn.selected {
    background: var(--primary-color);
    color: #040d1a;
    font-weight: 700;
    border-color: var(--primary-color);
}

.text-input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(4, 13, 26, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    box-sizing: border-box;
}

.text-input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Barra de utilidades PWA y Exportación */
.utility-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 229, 255, 0.12);
}

.btn-small {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
}

.pwa-install-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(79, 172, 254, 0.08));
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: all 0.25s ease;
}

.pwa-install-card:hover {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.1);
}

.pwa-install-card p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Estilos para las 3 Preguntas Diarias EMA (m-Path integrado) */
.ema-container {
    background: var(--surface-card);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 16px;
    padding: 1.35rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.ema-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.ema-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ema-badge {
    font-size: 0.7rem;
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-color);
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    font-weight: 600;
}

.ema-question-block {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ema-question-block:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

.ema-question-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.scale-10-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.25rem;
    margin: 0.5rem 0 0.25rem;
}

.scale-10-btn {
    padding: 0.6rem 0;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
}

.scale-10-btn:hover {
    background: rgba(0, 229, 255, 0.18);
    border-color: rgba(0, 229, 255, 0.35);
}

.scale-10-btn.selected {
    background: var(--primary-color);
    color: #040d1a;
    font-weight: 700;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.scale-endpoints {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.choice-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.choice-chip-btn {
    padding: 0.55rem 0.4rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
}

.choice-chip-btn:hover {
    background: rgba(0, 229, 255, 0.16);
    border-color: rgba(0, 229, 255, 0.3);
}

.choice-chip-btn.selected {
    background: var(--primary-color);
    color: #040d1a;
    font-weight: 700;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   Flowbalance Auth / Onboarding Modal & Participant Telemetry Styles
   ========================================================================== */
.flow-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 13, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 1.25rem;
    animation: fadeIn 0.3s ease-out forwards;
}

.flow-modal-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.12);
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.flow-modal-card h2 {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.flow-modal-card p.flow-auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.flow-input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.flow-input-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.flow-input {
    width: 100%;
    background: rgba(7, 21, 37, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.25s ease;
}

.flow-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
    background: rgba(10, 29, 51, 1);
}

.flow-input::placeholder {
    color: var(--text-muted);
}

.flow-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.flow-select option {
    background-color: #071525;
    color: #f0fbfb;
    padding: 0.6rem;
}

.flow-auth-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    display: none;
    text-align: left;
}

.flow-auth-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-indigo));
    color: #040d1a;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 229, 255, 0.3);
}

.flow-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.45);
}

.participant-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.28);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    max-width: 320px;
}

.participant-pill-badge:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25);
}

.sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* ==========================================================================
   Página de Inicio / Home Landing Styles
   ========================================================================== */
.home-hero-card {
    background: linear-gradient(180deg, rgba(7, 24, 43, 0.8) 0%, rgba(5, 16, 30, 0.65) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--primary-color);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.home-hero-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.home-hero-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Quick Action Grid on Home */
.home-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 0.5rem 0;
}

@media (max-width: 520px) {
    .home-quick-actions {
        grid-template-columns: 1fr;
    }
}

.action-card {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.1rem;
    text-decoration: none;
    color: var(--text-primary);
    text-align: left;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action-card:hover {
    background: var(--surface-card-hover);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.15);
}

.action-card.featured {
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.12), rgba(79, 172, 254, 0.08));
    border-color: rgba(0, 229, 255, 0.35);
}

.action-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.action-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.action-card-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Timeline / 6-Week Workshop Journey */
.journey-section {
    text-align: left;
    margin-top: 0.5rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
}

.section-header-row h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-header-row span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.journey-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.journey-item {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.journey-item:hover {
    background: var(--surface-card-hover);
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateX(3px);
}

.journey-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.week-num-badge {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.journey-details h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.15rem 0;
}

.journey-details p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.journey-arrow {
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Institutional Footer */
.study-institutional-footer {
    border-top: 1px solid rgba(0, 229, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.study-institutional-footer strong {
    color: var(--text-secondary);
}

/* Pillars Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin: 1rem 0 1.75rem;
}

@media (max-width: 680px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-card {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-align: left;
    transition: all 0.25s ease;
}

.pillar-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.1);
}

.pillar-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.pillar-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.pillar-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}



