/**
 * ============================================================================
 * ESTILOS DE VANGUARDIA - SUPERA: SUPERAPRENDIZAJE, SUGESTOPEDIA & RESERVOPEDIA
 * Neo-Glassmorphism, Dark Mode Atmosférico, Visualizadores y Micro-Animaciones
 * ============================================================================
 */

:root, [data-theme="light"], [data-theme="softgrey"] {
    /* FONDO CLARO POR DEFECTO */
    --bg-page: #edf1f7;
    --bg-page-secondary: #e2e8f0;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f4f6fa;
    --bg-card: #ffffff;
    --border: #cbd5e1;
    --border-hover: #94a3b8;
    --border-focus: #4f46e5;

    /* BRANDING & ACCENTS CON MÁXIMO CONTRASTE */
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.22);
    --primary-light: #e0e7ff;
    --accent-violet: #7c3aed;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-pink: #db2777;
    --accent-cyan: #0891b2;

    /* TIPOGRAFÍA NÍTIDA DE ALTO CONTRASTE (WCAG AAA) */
    --text-main: #0f172a;        /* Slate 900: negro-azul profundo de máxima legibilidad */
    --text-muted: #334155;       /* Slate 700: gris oscuro muy legible, nunca lavado */
    --text-subtle: #475569;      /* Slate 600: para metadatos y etiquetas secundarias */
    --text-inverse: #ffffff;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 4px 25px rgba(79, 70, 229, 0.14);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-page: #0a0e17;
    --bg-page-secondary: #0f172a;
    --bg-surface: #131c2e;
    --bg-surface-elevated: #1e293b;
    --bg-card: rgba(19, 28, 46, 0.95);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);
    --border-focus: #38bdf8;

    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --primary-light: rgba(99, 102, 241, 0.2);
    --accent-violet: #a78bfa;
    --accent-emerald: #10b981;
    --accent-amber: #fbbf24;
    --accent-pink: #f472b6;
    --accent-cyan: #22d3ee;

    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    --text-inverse: #0f172a;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.2);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14.5px;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.08) 0px, transparent 45%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.07) 0px, transparent 45%),
        radial-gradient(at 50% 100%, rgba(5, 150, 105, 0.06) 0px, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

img, iframe, select, input, button {
    max-width: 100%;
}

/* ==========================================================================
   BARRA SUPERIOR (HEADER)
   ========================================================================== */
.header-bar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06) !important;
    padding: 8px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

[data-theme="dark"] .header-bar {
    background: rgba(10, 14, 23, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .header-bar {
    background: rgba(10, 14, 23, 0.94) !important;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #1e1b4b 0%, #4338ca 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .brand-name {
    background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 10.5px;
    color: var(--accent-emerald);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.nav-center-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    padding: 5px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back-metodo {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-back-metodo:hover {
    background: var(--primary);
    color: white;
}

.btn-offline-head {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #059669;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-offline-head:hover {
    background: #059669;
    color: white;
}

.btn-icon-head {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.btn-icon-head:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   BARRA FLOTANTE DE CONTROL NEUROACÚSTICO (ESTILO BRAIN.FM / JICKI)
   ========================================================================== */
.neuro-bar {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 18px auto 26px auto;
    padding: 16px 24px;
    max-width: 1200px;
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm), 0 6px 24px rgba(79, 70, 229, 0.06);
    position: relative;
    overflow: hidden;
}

.neuro-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--primary), var(--accent-violet));
}

.neuro-play-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-master-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
    border: none;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--primary-glow);
    transition: var(--transition);
}

.btn-master-play:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-master-play.playing {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
    animation: pulse-ring 2s infinite;
}

.btn-master-stop {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-master-stop:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-playing-now {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
    animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.neuro-meta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.neuro-meta-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-bpm {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.neuro-mode-selector {
    display: flex;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    gap: 4px;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-btn:hover {
    color: var(--text-main);
}

.mode-btn.active {
    background: var(--bg-surface-elevated);
    color: var(--primary);
    border: 1px solid var(--border-hover);
}

/* Canvas Visualizador de Ondas Cerebrales */
.wave-canvas-col {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    width: 100%;
}

#brainWaveCanvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

/* Guía de Respiración Rítmica 4-2-4 */
.breath-pacer-col {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-left: 1px solid var(--border);
}

.breath-orb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
    border: 2px solid var(--accent-emerald);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    transition: transform 1s ease-in-out;
}

.breath-orb.inhale {
    transform: scale(1.4);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.8);
    background: radial-gradient(circle, #34d399 0%, transparent 70%);
}

.breath-orb.hold {
    transform: scale(1.4);
    border-color: var(--accent-amber);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

.breath-orb.exhale {
    transform: scale(0.85);
    opacity: 0.6;
    border-color: var(--accent-cyan);
}

.breath-text-wrap {
    display: flex;
    flex-direction: column;
}

.breath-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 800;
}

.breath-state-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-emerald);
}

/* Controles de Mezcla (Sliders de Volumen) */
.neuro-sliders-col {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.slider-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 75px;
    height: 5px;
    border-radius: 5px;
    background: var(--bg-surface-elevated);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 6px var(--primary-glow);
}

/* ==========================================================================
   HERO BANNER DE SUPERAPRENDIZAJE
   ========================================================================== */
.hero-super {
    max-width: 1200px;
    margin: 0 auto 36px auto;
    padding: 36px 32px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-super::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 800;
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
}

.hero-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.8px;
}

.hero-main-title span {
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

.hero-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.feature-tag {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(99, 102, 241, 0.5);
}

.btn-hero-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Widget Card del Estado Mental */
.mind-status-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mind-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mind-status-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.mind-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mind-stat-box {
    background: var(--bg-surface-elevated);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mind-stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-emerald);
}

.mind-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   VISTAS Y PANELES PRINCIPALES (TABS)
   ========================================================================== */
.container-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CABECERA INTUITIVA DE CONTEXTO POR SECCIÓN (SOLO LO QUE SELECCIONAS)
   ========================================================================== */
.section-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.section-context-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent-violet));
}

.section-context-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-context-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.25));
}

.section-context-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 3px 0;
    letter-spacing: -0.3px;
}

.section-context-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.section-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   PANEL 1: LOS 5 MÓDULOS DE INMERSIÓN ACELERADA
   ========================================================================== */
.modules-selector-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.mod-chip {
    flex: 1;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mod-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.mod-chip.active {
    background: var(--bg-surface-elevated);
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.chip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chip-level {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.chip-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

/* Área de Contenido del Módulo Activo */
.module-active-content {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.module-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.mod-info-left h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.mod-info-left p {
    font-size: 14.5px;
    color: var(--text-muted);
}

/* Las 5 Fases de Lozanov dentro del Módulo */
.lozanov-stages-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stage-btn {
    background: var(--bg-page);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stage-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.stage-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Contenedor de Fase */
.stage-content-box {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
}

/* Chunks de Vocabulario Cards */
.chunks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.chunk-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.chunk-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.chunk-en {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-tts-mini {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-tts-mini:hover {
    background: var(--primary);
    color: white;
}

.chunk-phonetic {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-amber);
}

.chunk-es {
    font-size: 14px;
    color: var(--text-muted);
}

.chunk-mnemo {
    font-size: 12px;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Concierto Activo: Diálogo de 3 Voces */
.active-concert-player {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.concert-line-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.concert-line-card.active-reading {
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25);
}

.tone-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.tone-whisper { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.tone-normal { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.tone-dramatic { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }

.concert-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.line-en {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.line-es {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Concierto Pasivo: Modo Ojos Cerrados / Hipnosis Alfa */
.passive-concert-stage {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.passive-orb-big {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    border: 2px solid var(--accent-violet);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    animation: pulse-passive 4s infinite ease-in-out;
}

@keyframes pulse-passive {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 60px rgba(139, 92, 246, 0.8); }
}

.passive-script-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    max-width: 650px;
    min-height: 70px;
    line-height: 1.5;
    transition: opacity 0.5s ease;
}

/* ==========================================================================
   PANEL 2: LECTOR BILINGÜE INMERSIVO (BEELINGUAPP STYLE)
   ========================================================================== */
.beelinguapp-container {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.bee-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 14px;
}

.bee-story-select {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.bee-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bee-mode-pills {
    display: flex;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    padding: 3px;
    border-radius: var(--radius-sm);
}

.bee-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.bee-pill.active {
    background: var(--primary);
    color: white;
}

/* Grid Paralelo de Texto */
.dual-reader-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dual-reader-grid.single-en {
    grid-template-columns: 1fr;
}
.dual-reader-grid.single-en .col-es { display: none; }

.dual-reader-grid.single-es {
    grid-template-columns: 1fr;
}
.dual-reader-grid.single-es .col-en { display: none; }

.reader-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.column-header {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-subtle);
    margin-bottom: 4px;
}

.bee-paragraph {
    background: var(--bg-surface-elevated);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.7;
    cursor: pointer;
    transition: var(--transition);
}

.bee-paragraph:hover {
    border-color: var(--border-hover);
}

.bee-paragraph.highlight {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   PANEL 3: CANCIONES DE SUPERAPRENDIZAJE
   ========================================================================== */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 22px;
}

.song-super-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.song-super-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.song-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-super-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.song-stanzas-box {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stanza-item {
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.stanza-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stanza-en {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: pre-line;
    line-height: 1.6;
    margin-bottom: 6px;
}

.stanza-es {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: pre-line;
    line-height: 1.5;
}

/* ==========================================================================
   PANEL 4: LABORATORIO DE TEORÍA Y SUGESTOPEDIA
   ========================================================================== */
.theory-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.theory-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.theory-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theory-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   PANEL 5: GUÍA GRÁFICA & SUPERPLAN C1 INTERACTIVO
   ========================================================================== */
.plan-header-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.plan-header-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.plan-header-banner p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 750px;
}

/* Las 3 Fases del Roadmap C1 */
.phases-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.phase-card-wrapper {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.phase-card-wrapper:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.phase-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.phase-name-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.phase-name-text {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.phase-meta-pill {
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.week-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

.week-box:hover {
    border-color: var(--accent-violet);
    transform: translateY(-2px);
}

.week-box.selected-week-card {
    background: #090e1a !important; /* Más oscura */
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    transform: translateY(-2px);
    position: relative;
}

[data-theme="softgrey"] .week-box.selected-week-card,
body:not([data-theme="dark"]):not([data-theme="ocean"]) .week-box.selected-week-card {
    background: #cbd5e1 !important; /* Más oscura en tema claro/gris suave */
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 2px #4f46e5, 0 6px 18px rgba(0, 0, 0, 0.14) !important;
}

[data-theme="dark"] .week-box.selected-week-card,
[data-theme="ocean"] .week-box.selected-week-card {
    background: #060a12 !important; /* Más oscura en tema oscuro */
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 2px #818cf8, 0 8px 26px rgba(0, 0, 0, 0.7) !important;
}

.selected-week-tag-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 6px;
    width: fit-content;
}

.plan-selected-week-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(124, 58, 237, 0.08));
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.week-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-badge {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.week-time {
    font-size: 11px;
    color: var(--text-subtle);
}

.week-theme {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
}

.week-task {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

.week-outcome {
    font-size: 11.5px;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.08);
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Matriz Diaria (7 Días) */
.daily-schedule-section {
    margin-top: 36px;
    margin-bottom: 36px;
}

.daily-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.daily-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.daily-card:hover {
    border-color: var(--accent-amber);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.daily-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-day-name {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-amber);
}

.daily-duration {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface-elevated);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.daily-focus-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.daily-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-surface-elevated);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.daily-block-item {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    line-height: 1.4;
}

.block-time {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

.daily-outcome-box {
    font-size: 12px;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    padding: 8px 10px;
    border-radius: 6px;
}

/* Biblioteca de Video-Inmersión */
.videos-section {
    margin-top: 36px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.video-thumbnail-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.video-thumbnail-wrap:hover .video-thumbnail-img {
    opacity: 1;
    transform: scale(1.05);
}

.play-video-overlay-btn {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.9);
    border: none;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.play-video-overlay-btn:hover {
    transform: scale(1.15);
    background: var(--primary);
}

.video-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.video-cat-badge {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-violet);
}

.video-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
}

.video-card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

/* Modal de Video */
.video-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 99999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-backdrop.open {
    display: flex !important;
    animation: fadeIn 0.25s ease;
}

.video-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    display: flex;
    flex-direction: column;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.video-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.btn-close-modal:hover {
    color: #ef4444;
}

.video-frame-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-frame-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* ==========================================================================
   SECCIÓN FINAL: PLAN GRÁFICO DE APRENDIZAJE: PASO A PASO
   ========================================================================== */
.learning-plan-section {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    margin-top: 48px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.plan-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--border);
}

.plan-header-badge {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.plan-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-header-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 860px;
    line-height: 1.6;
}

/* 1. Protocolo Diario de 5 Pasos Visuales */
.daily-flow-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}

.flow-header {
    text-align: center;
    margin-bottom: 28px;
}

.flow-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent-violet));
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.flow-title {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.flow-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
}

.steps-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.flow-step-item {
    background: var(--bg-surface-elevated);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.flow-step-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.flow-step-item.highlight-step {
    border-color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.08);
}

.flow-step-badge {
    font-size: 10px;
    font-weight: 800;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.flow-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.flow-step-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.flow-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 2px 7px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 12px;
}

.flow-step-instruction {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.kbd-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.kbd-pill.red { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.25); }
.kbd-pill.indigo { background: rgba(79, 70, 229, 0.12); color: #3730a3; border: 1px solid rgba(79, 70, 229, 0.25); }
.kbd-pill.purple { background: rgba(124, 58, 237, 0.12); color: #5b21b6; border: 1px solid rgba(124, 58, 237, 0.25); }
.kbd-pill.green { background: rgba(5, 150, 105, 0.12); color: #065f46; border: 1px solid rgba(5, 150, 105, 0.25); }

.btn-flow-demo {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-flow-demo:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.flow-dual-audio-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.btn-flow-audio {
    width: 100%;
    background: var(--accent-violet);
    color: white;
    border: none;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-flow-audio:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-flow-song {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
}

/* 2. Selector Semanal de la Hoja de Ruta */
.plan-week-selector-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-top: 26px;
    box-shadow: var(--shadow-sm);
}

.week-selector-header {
    margin-bottom: 20px;
}

.plan-tabs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.plan-tab-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.plan-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.plan-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.plan-week-detail-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
}

/* 3. Checklist Diario */
.daily-checklist-container {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-top: 26px;
    box-shadow: var(--shadow-sm);
}

.checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-reset-checklist {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-checklist:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.checklist-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.check-item-label {
    background: var(--bg-surface-elevated);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.check-item-label:hover {
    border-color: var(--accent-emerald);
}

.check-item-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-emerald);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.check-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.check-item-text b {
    font-size: 13px;
    color: var(--text-main);
}

.check-item-text span {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

.checklist-status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.checklist-progress-bg {
    flex-grow: 1;
    height: 10px;
    background: var(--bg-surface-elevated);
    border-radius: 8px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-emerald), var(--primary));
    border-radius: 8px;
    transition: width 0.3s ease;
}

.checklist-status-text {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVILES Y PANTALLAS PEQUEÑAS)
   ========================================================================== */
@media (max-width: 992px) {
    .neuro-bar {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .wave-canvas-col {
        grid-column: span 2;
    }
    .hero-super {
        grid-template-columns: 1fr;
    }
    .theory-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Prevención general de desborde */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .container-view {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px 60px 10px !important;
        overflow-x: hidden;
    }

    .tab-pane {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    /* Barra Superior Compacta */
    .header-bar {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 8px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .brand-wrapper {
        max-width: calc(100% - 150px);
        overflow: hidden;
    }
    .brand-text-col {
        overflow: hidden;
    }
    .brand-name {
        font-size: 13.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-badge {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-icon {
        width: 28px;
        height: 28px;
        font-size: 15px;
        flex-shrink: 0;
    }
    .header-actions {
        gap: 4px;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    .btn-back-metodo, .btn-offline-head {
        padding: 5px 8px;
        font-size: 10.5px;
        white-space: nowrap;
    }
    .btn-icon-head {
        width: 28px;
        height: 28px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .nav-center-tabs {
        order: 3;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 3px;
        border-radius: 12px;
        box-sizing: border-box;
    }
    .nav-center-tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 11.5px;
    }

    /* Cabecera Descriptiva por Sección */
    .section-context-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .section-context-left {
        width: 100%;
        gap: 10px;
    }
    .section-context-title {
        font-size: 16px;
    }
    .section-context-subtitle {
        font-size: 12.5px;
        line-height: 1.4;
    }
    .section-context-badge {
        align-self: flex-start;
        font-size: 10.5px;
        padding: 4px 10px;
    }

    /* Barra Neuroacústica Compacta en Móvil */
    .neuro-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
        margin: 10px auto 16px auto;
        width: calc(100% - 16px);
        max-width: 100%;
        border-radius: var(--radius-md);
        box-sizing: border-box;
    }
    .neuro-play-col {
        width: 100%;
        justify-content: flex-start;
    }
    .btn-master-play {
        width: 44px;
        height: 44px;
        font-size: 18px;
        flex-shrink: 0;
    }
    .neuro-meta-title {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 220px;
    }
    .neuro-mode-selector {
        width: 100%;
        display: flex;
    }
    .mode-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 6px;
        font-size: 11px;
    }
    .wave-canvas-col {
        height: 36px;
    }
    .breath-pacer-col {
        border-left: none;
        padding: 0;
        justify-content: center;
    }
    .neuro-sliders-col {
        display: none;
    }

    /* LECTOR BILINGÜE: ADAPTACIÓN TOTAL SIN DESBORDE */
    .beelinguapp-container {
        padding: 14px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .bee-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    .bee-controls-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .bee-story-select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 13px;
        padding: 9px 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .bee-mode-pills {
        width: 100%;
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .bee-pill {
        flex: 1;
        text-align: center;
        padding: 7px 4px;
        font-size: 11.5px;
        white-space: nowrap;
    }
    #btnBeeDichotic {
        width: 100%;
        justify-content: center;
        padding: 9px 12px;
        font-size: 12px;
        box-sizing: border-box;
    }
    .dual-reader-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .reader-column {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .bee-paragraph {
        padding: 12px 14px;
        font-size: 13.5px;
        line-height: 1.55;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .para-actions-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Canciones 60 BPM en Móvil */
    .full-song-header-card {
        padding: 14px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .full-song-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 13px;
        padding: 8px 10px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    .full-song-verses-list {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .verse-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 10px;
    }

    /* El Super Curso en Móvil */
    .hero-super {
        padding: 18px 12px;
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hero-main-title {
        font-size: 20px;
        line-height: 1.25;
    }
    .hero-btn-row {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12.5px;
        box-sizing: border-box;
    }
    .mind-status-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 14px;
    }
    .mind-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .module-active-content {
        padding: 16px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .lozanov-stages-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 6px;
        box-sizing: border-box;
    }
    .lozanov-stages-nav::-webkit-scrollbar {
        display: none;
    }
    .stage-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
    }
    .stage-content-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Grids en Columna Única */
    .chunks-grid, .weeks-grid, .daily-cards-grid, .videos-grid, .steps-flow-grid, .checklist-items-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .learning-plan-section {
        padding: 20px 10px;
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .plan-header-title {
        font-size: 19px;
    }
    .plan-tabs-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 6px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .plan-tabs-row::-webkit-scrollbar {
        display: none;
    }
    .plan-tab-btn {
        flex-shrink: 0;
        padding: 7px 11px;
        font-size: 11.5px;
    }

    .check-item-label {
        padding: 12px;
        min-height: 48px;
    }
    .checklist-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .checklist-progress-bg {
        width: 100%;
    }

    /* Subnavegación Neuro-Lingüística en Móvil (Scroll táctil horizontal suave) */
    .wl-subnav,
    .wordletic-subnav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 4px 2px 10px 2px;
        margin-bottom: 18px;
    }
    .wl-subnav::-webkit-scrollbar,
    .wordletic-subnav::-webkit-scrollbar {
        display: none;
    }
    .wl-nav-btn,
    .wordletic-nav-btn {
        flex-shrink: 0;
        padding: 9px 15px;
        font-size: 12.5px;
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Grids en Móvil */
    .wl-stats-grid,
    .wordletic-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .wl-stat-box,
    .wordletic-stat-box {
        padding: 10px 12px;
    }
    .wl-stat-box .stat-val,
    .wordletic-stat-box .stat-val {
        font-size: 16px;
    }

    /* Subnavegación de Canciones en Móvil */
    .song-subnav-row {
        flex-direction: column;
        gap: 8px;
    }
    .song-subnav-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 13px;
        padding: 10px 12px;
    }

    /* Botones táctiles optimizados para pulgares */
    .ear-options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ear-opt-btn {
        padding: 14px 16px;
        min-height: 52px;
        touch-action: manipulation;
    }
    .chunk-pill-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
        touch-action: manipulation;
    }
    .flash-opt-btn {
        padding: 13px 14px;
        font-size: 13.5px;
        min-height: 48px;
        touch-action: manipulation;
    }
    .full-song-dropdown {
        max-width: 100%;
        font-size: 13.5px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 24px;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }
    .hypno-spoken-script {
        font-size: 16px;
        min-height: 60px;
        line-height: 1.45;
    }
    .hypno-controls-row {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .hypno-controls-row button {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }
    .full-song-header-card .btn-hero-primary,
    .full-song-header-card .btn-hero-secondary,
    .full-song-header-card .btn-hero-sleep {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}

/* ==========================================================================
   ESTILOS: REPRODUCTOR DE CANCIONES COMPLETAS & ESCUCHA DICÓTICA / BUCLE
   ========================================================================== */

/* Sub-navegación de Canciones */
.song-subnav-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.song-subnav-btn {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-subnav-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

/* Selector de Canción Completa */
.full-song-header-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.full-song-dropdown {
    width: 100%;
    max-width: 450px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-surface-elevated);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.full-song-dropdown:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Tarjeta de Estrofa en Canción Completa */
.full-song-verses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.full-song-verse-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: var(--transition);
    position: relative;
}

.full-song-verse-card.playing-now {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 2px var(--primary);
}

.verse-num-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.verse-english-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 6px;
}

.verse-spanish-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.verse-actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-verse-action {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-verse-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-verse-action.active-dichotic {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.btn-verse-action.active-loop {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Toast Flotante de Bucle Continuo Activo */
.floating-loop-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-surface-elevated);
    border: 2px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90vw;
}

@keyframes slideUpToast {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast-time-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ==========================================================================
   MODO SUEÑO HIPNOPÉDICO NOCTURNO & DICÓTICO
   ========================================================================== */
.btn-hero-sleep {
    background: linear-gradient(135deg, #312e81, #1e1b4b);
    color: #e0e7ff;
    border: 1px solid rgba(165, 180, 252, 0.4);
    box-shadow: 0 4px 14px rgba(49, 46, 129, 0.4);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.btn-hero-sleep:hover {
    background: linear-gradient(135deg, #3730a3, #2e1065);
    border-color: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    color: #ffffff;
}

.sleep-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(8, 12, 24, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 99999998 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sleep-modal-backdrop.open {
    display: flex !important;
    animation: fadeIn 0.25s ease;
}
.sleep-modal-card {
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-radius: 24px;
    max-width: 660px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.2);
    color: #f1f5f9;
}
.sleep-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.sleep-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sleep-moon-icon {
    font-size: 32px;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, rgba(15,23,42,0) 70%);
    padding: 6px;
    border-radius: 50%;
    animation: moonGlow 3s ease-in-out infinite alternate;
}
@keyframes moonGlow {
    from { transform: scale(1); filter: drop-shadow(0 0 4px #818cf8); }
    to { transform: scale(1.08); filter: drop-shadow(0 0 12px #c084fc); }
}
.sleep-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}
.sleep-modal-subtitle {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}
.sleep-science-box {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.sleep-science-heading {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sleep-science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.sleep-science-item {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.sleep-science-item .science-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #a5b4fc;
    display: block;
    margin-bottom: 4px;
}
.sleep-science-item p {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}
.sleep-config-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}
.sleep-config-group {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
}
.sleep-config-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}
.sleep-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sleep-pill-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sleep-pill-btn:hover {
    background: rgba(49, 46, 129, 0.5);
    border-color: #818cf8;
    color: #ffffff;
}
.sleep-pill-btn.active {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border-color: #a5b4fc;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}
.sleep-range-slider {
    width: 100%;
    accent-color: #6366f1;
    cursor: pointer;
    height: 6px;
    border-radius: 4px;
}
.sleep-active-notice {
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.6), rgba(30, 27, 75, 0.7));
    border: 1.5px solid #818cf8;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.sleep-pulsing-orb {
    width: 12px;
    height: 12px;
    background: #818cf8;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #818cf8;
    animation: orbPulse 1.8s infinite;
}
@keyframes orbPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}
.sleep-countdown-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #c7d2fe;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(165, 180, 252, 0.3);
    padding: 5px 12px;
    border-radius: 8px;
}
.sleep-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-sleep-start {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #ffffff;
    border: 1px solid #818cf8;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transition: all 0.2s ease;
}
.btn-sleep-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}
.btn-sleep-start.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #6ee7b7;
}
.btn-sleep-cancel {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-sleep-cancel:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}
.floating-sleep-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #0f172a;
    border: 1.5px solid #818cf8;
    border-radius: 30px;
    padding: 10px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90vw;
    cursor: pointer;
}
.floating-sleep-toast:hover {
    border-color: #c7d2fe;
    transform: translateY(-2px);
}
.floating-sleep-icon {
    font-size: 22px;
    animation: moonGlow 3s infinite alternate;
}
.floating-sleep-title {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.floating-sleep-sub {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* Selector de Velocidad & Calibración de Auriculares */
.speed-pill-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.speed-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.speed-pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-test-headphones {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-test-headphones:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Desglose de Coach Vocal & Gramática Plegable */
.coach-details-box {
    margin-top: 10px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.25s ease;
}
.coach-detail-item {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-main);
}
.coach-detail-item strong {
    color: var(--primary);
}

/* ==========================================================================
   GIMNASIO NEURO-LINGÜÍSTICO (HIPNOSIS ERICKSONIANA & REFLEJOS)
   ========================================================================== */
.wl-header-card,
.wordletic-header-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.06) 50%, rgba(5, 150, 105, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .wl-header-card,
[data-theme="dark"] .wordletic-header-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(46, 16, 101, 0.6) 50%, rgba(6, 78, 59, 0.5) 100%);
    border-color: rgba(165, 180, 252, 0.25);
}

.wl-user-row,
.wordletic-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
}

.wl-user-info,
.wordletic-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wl-avatar,
.wordletic-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.wl-user-badge,
.wordletic-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

[data-theme="dark"] .wl-user-badge,
[data-theme="dark"] .wordletic-user-badge {
    color: #34d399;
}

.wl-user-email,
.wordletic-user-email {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.wl-user-email span,
.wordletic-user-email span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wl-user-sub,
.wordletic-user-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.wl-level-selector,
.wordletic-level-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.wl-level-selector .level-lbl,
.wordletic-level-selector .level-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-pills {
    display: flex;
    gap: 4px;
}

.wl-level-pill,
.wordletic-level-pill {
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wl-level-pill:hover,
.wordletic-level-pill:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.wl-level-pill.active,
.wordletic-level-pill.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.wl-stats-grid,
.wordletic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.wl-stat-box,
.wordletic-stat-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wl-stat-box:hover,
.wordletic-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.wl-stat-box .stat-icon,
.wordletic-stat-box .stat-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.wl-stat-box .stat-val,
.wordletic-stat-box .stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.wl-stat-box .stat-lbl,
.wordletic-stat-box .stat-lbl {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 2px;
}

/* Subnavegación WL (Pills modernas) */
.wl-subnav,
.wordletic-subnav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 14px 2px;
    margin-bottom: 24px;
    scrollbar-width: thin;
}

.wl-nav-btn,
.wordletic-nav-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.wl-nav-btn:hover,
.wordletic-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
}

.wl-nav-btn.active,
.wordletic-nav-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff !important;
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* Área de Contenido */
.wl-card,
.wordletic-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* Módulo 1: Inducción Hipnótica Ericksoniana */
.hypno-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hypno-orb-wrap {
    width: 140px;
    height: 140px;
    margin: 20px 0 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hypno-ring-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.4);
    animation: rotateSlow 24s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hypno-center-orb {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #818cf8 0%, #4f46e5 60%, #312e81 100%);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hypno-center-orb.inhale {
    transform: scale(1.35);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.85);
}

.hypno-center-orb.exhale {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.hypno-step-badge {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    margin-bottom: 10px;
}

.hypno-spoken-script {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 80px;
    margin-bottom: 16px;
    max-width: 650px;
}

.hypno-controls-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Chunks Gym & Sentence Architecture */
.pattern-target-zone {
    min-height: 80px;
    background: var(--bg-surface-elevated);
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
    transition: all 0.2s ease;
}

.pattern-target-zone.completed {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.08);
}

.pattern-source-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.chunk-pill-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.chunk-pill-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
}

.chunk-pill-btn.in-target {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.chunk-pill-btn.error-shake {
    animation: shakeError 0.4s ease;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Ear Training Card */
.ear-challenge-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.ear-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.ear-opt-btn {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ear-opt-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.ear-opt-btn.correct {
    border-color: var(--accent-emerald) !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
}

[data-theme="dark"] .ear-opt-btn.correct {
    color: #34d399 !important;
}

.ear-opt-btn.wrong {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

/* Zero-Translation Flash Card */
.flash-situation-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.flash-timer-bar {
    width: 100%;
    height: 6px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 18px;
}

.flash-timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-amber), #ef4444);
    transition: width 0.1s linear;
}

.flash-options-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-opt-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: left;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-opt-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}

.flash-opt-btn.correct {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

[data-theme="dark"] .flash-opt-btn.correct {
    color: #34d399;
}

.flash-opt-btn.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Tabla Comparativa Wordletic */
.manifesto-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.manifesto-table th, .manifesto-table td {
    padding: 14px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
}

.manifesto-table th {
    background: var(--bg-surface-elevated);
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.manifesto-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   REGLAS MAESTRAS DE RESPONSIVIDAD MÓVIL (100% AJUSTADO A LA PANTALLA)
   ========================================================================== */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    *, *::before, *::after {
        box-sizing: border-box !important;
    }

    /* Contenedor principal */
    .container-view {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 10px 60px 10px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }

    .tab-pane {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Barra Superior Header */
    .header-bar {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 8px 10px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        overflow-x: hidden !important;
    }
    .brand-wrapper {
        max-width: 55% !important;
        overflow: hidden !important;
    }
    .brand-name {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .brand-badge {
        font-size: 8.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .header-actions {
        max-width: 45% !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }
    .btn-back-metodo, .btn-offline-head {
        padding: 5px 6px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }
    .btn-icon-head {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Tabs centrados con scroll horizontal táctil */
    .nav-center-tabs {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding: 3px !important;
        box-sizing: border-box !important;
    }
    .tab-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }

    /* Barra Neuroacústica */
    .neuro-bar {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        margin: 8px auto 14px auto !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    .neuro-meta-title {
        max-width: 180px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Cabecera descriptiva de cada sección */
    .section-context-bar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }
    .section-context-title {
        font-size: 15.5px !important;
    }
    .section-context-subtitle {
        font-size: 12px !important;
    }

    /* LECTOR BILINGÜE: CORRECCIÓN CRÍTICA DE DESBORDE */
    .beelinguapp-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .bee-header-bar {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }
    .bee-controls-row {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }
    .bee-story-select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 13px !important;
        padding: 9px 12px !important;
        box-sizing: border-box !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }
    .bee-mode-pills {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        box-sizing: border-box !important;
    }
    .bee-pill {
        flex: 1 !important;
        text-align: center !important;
        padding: 7px 4px !important;
        font-size: 11.5px !important;
    }
    #btnBeeDichotic {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }
    .dual-reader-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }
    .reader-column {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .bee-paragraph {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 14px !important;
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* CANCIONES 60 BPM */
    .full-song-header-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 10px !important;
        box-sizing: border-box !important;
    }
    .full-song-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }
    .full-song-verse-card, .verse-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 10px !important;
    }

    /* EL SUPER CURSO */
    .hero-super {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 12px !important;
        grid-template-columns: 1fr !important;
        box-sizing: border-box !important;
    }
    .hero-main-title {
        font-size: 20px !important;
    }
    .module-active-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
    }
    .stage-content-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* GIMNASIO NEURO-LINGÜÍSTICO */
    .wl-header-card, .wordletic-header-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
    }
    .wl-user-row, .wordletic-user-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .wl-card, .wordletic-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
    }
    .hypno-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
    }
    .hypno-spoken-script {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14.5px !important;
        box-sizing: border-box !important;
    }

    /* PLAN GRÁFICO & RUTA C1 */
    .plan-header-banner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 12px !important;
        box-sizing: border-box !important;
    }
    .phase-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }
    .learning-plan-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 10px !important;
        box-sizing: border-box !important;
    }
    .daily-flow-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
    }
    .flow-step-item {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }
    .daily-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }
    .theory-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }
}

/* ============================================================================
   HUD MONITOR BILATERAL DE OÍDOS (ESCUCHA DICÓTICA & CONSOLIDACIÓN NOCTURNA)
   ============================================================================ */
.bilateral-ear-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-radius: 16px;
    padding: 14px 18px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(99, 102, 241, 0.15);
}

.ear-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 0;
}

.ear-indicator.ear-left.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(79, 70, 229, 0.25));
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.45);
    transform: scale(1.02);
}

.ear-indicator.ear-right.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.25));
    border-color: #6ee7b7;
    box-shadow: 0 0 20px rgba(110, 231, 183, 0.45);
    transform: scale(1.02);
}

.ear-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    flex-shrink: 0;
}

.ear-icon {
    font-size: 15px;
    font-weight: 800;
    z-index: 2;
    color: #cbd5e1;
}

.ear-left.active .ear-icon {
    color: #c4b5fd;
}
.ear-right.active .ear-icon {
    color: #a7f3d0;
}

.ear-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.ear-left.active .ear-pulse-ring {
    border: 2px solid #a78bfa;
    animation: earRingPulse 1.4s infinite ease-out;
}

.ear-right.active .ear-pulse-ring {
    border: 2px solid #34d399;
    animation: earRingPulse 1.4s infinite ease-out;
}

@keyframes earRingPulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.75); opacity: 0; }
}

.ear-info {
    flex: 1;
    min-width: 0;
}

.ear-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.ear-left.active .ear-label {
    color: #c4b5fd;
}
.ear-right.active .ear-label {
    color: #6ee7b7;
}

.ear-lang {
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ear-wave {
    display: flex;
    gap: 3px;
    margin-top: 5px;
    height: 12px;
    align-items: flex-end;
}

.ear-indicator.ear-right .ear-wave {
    justify-content: flex-end;
}

.ear-wave span {
    width: 3px;
    height: 3px;
    background: rgba(148, 163, 184, 0.4);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.ear-left.active .ear-wave span {
    background: #a78bfa;
    animation: soundWaveActive 0.8s infinite ease-in-out alternate;
}
.ear-right.active .ear-wave span {
    background: #34d399;
    animation: soundWaveActive 0.8s infinite ease-in-out alternate;
}

.ear-wave span:nth-child(1) { animation-delay: 0.0s; }
.ear-wave span:nth-child(2) { animation-delay: 0.2s; }
.ear-wave span:nth-child(3) { animation-delay: 0.4s; }
.ear-wave span:nth-child(4) { animation-delay: 0.1s; }

@keyframes soundWaveActive {
    0% { height: 3px; }
    50% { height: 12px; }
    100% { height: 4px; }
}

.hud-center-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0 4px;
}

.hud-flow-arrow {
    font-size: 16px;
    color: #818cf8;
    animation: arrowNudge 1.6s infinite ease-in-out;
}

@keyframes arrowNudge {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(4px); opacity: 1; }
}

.hud-phase-badge {
    font-size: 10px;
    font-weight: 800;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(165, 180, 252, 0.3);
    color: #c7d2fe;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .bilateral-ear-hud {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }
    .ear-indicator {
        width: 100%;
        box-sizing: border-box;
    }
    .hud-center-divider {
        flex-direction: row;
        gap: 8px;
    }
    .hud-flow-arrow {
        transform: rotate(90deg);
        animation: none;
    }
}

/* ==========================================================================
   BOTÓN Y BANNER EXCLUSIVO: SUPERCURSO HIPNOPÉDICO TODA LA NOCHE
   ========================================================================== */
.btn-nav-hypno-allnight {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    color: #fef08a;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}

.btn-nav-hypno-allnight:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.55);
    border-color: #f59e0b;
    color: #ffffff;
}

.btn-hero-sleep-allnight {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4f46e5 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.6);
    color: #fef08a;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(30, 27, 75, 0.6), 0 0 12px rgba(251, 191, 36, 0.3);
    transition: all 0.25s ease;
}

.btn-hero-sleep-allnight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.6), 0 0 20px rgba(251, 191, 36, 0.6);
    border-color: #fbbf24;
    color: #ffffff;
}

.sleep-supercourse-quick-banner {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sleep-supercourse-quick-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 60%);
    pointer-events: none;
    animation: celestialRotate 18s linear infinite;
}

@keyframes celestialRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sleep-supercourse-quick-banner:hover {
    transform: translateY(-2px);
    border-color: #fbbf24 !important;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.45) !important;
}

.pulse-moon {
    display: inline-block;
    animation: moonGlowPulse 2.4s infinite ease-in-out;
}

@keyframes moonGlowPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.5)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.9)); }
}

/* Dropdown Noche */
.nav-noche-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-noche-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 12px;
    padding: 8px;
    min-width: 270px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(99,102,241,0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-noche-dropdown:hover .nav-noche-menu,
.nav-noche-dropdown:focus-within .nav-noche-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.noche-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
}

.noche-menu-item:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fef08a;
    transform: translateX(2px);
}

.noche-menu-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.noche-menu-title {
    font-weight: 800;
    color: #f8fafc;
}

.noche-menu-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

/* ==========================================================================
   HIPNOPEDIA NEURO-DICÓTICA: CICLO PRE-SUEÑO + TMR (ESTILOS OFICIALES)
   ========================================================================== */
.tmr-studio-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.tmr-hero-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 27, 75, 0.95) 50%, rgba(49, 16, 66, 0.95) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.tmr-hero-banner::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.tmr-phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tmr-phase-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tmr-phase-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.4);
}

.tmr-phase-card.active-phase {
    border-color: #fbbf24;
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.6), rgba(15, 23, 42, 0.9));
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.tmr-phase-num {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;
}

.tmr-phase-1 .tmr-phase-num {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.tmr-phase-2 .tmr-phase-num {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.tmr-phase-3 .tmr-phase-num {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.tmr-generator-box {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.tmr-hud-strip {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    color: #f1f5f9;
}

.tmr-anticipation-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 6px;
    position: relative;
}

.tmr-anticipation-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #fbbf24);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.tmr-pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding: 10px 4px;
    margin: 16px 0;
}

.tmr-pair-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tmr-pair-item:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.08);
}

.tmr-pair-item.playing-active {
    border-color: #fbbf24;
    background: rgba(245, 158, 11, 0.14);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.tmr-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.tmr-tool-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tmr-tool-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

/* ==========================================================================
   12. ESTILOS: INMERSIÓN RADICAL Y RESPUESTA FÍSICA (HIGH-IMPACT COMPRESSION 20D)
   Diseño de alta gama, sobrio, elegante y visualmente placentero
   ========================================================================== */
.imm-hero-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 60%, rgba(20, 25, 38, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.imm-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(234, 88, 12, 0.04) 50%, transparent 70%);
    pointer-events: none;
}

.imm-badge-fire {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(245, 158, 11, 0.12);
    color: #fef08a;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
}

.imm-bootcamp-hud {
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.imm-phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.imm-pillar-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.imm-pillar-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.imm-pillar-card.active-focus {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.04), var(--bg-surface));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.imm-pillar-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 10px;
}

.tag-fase1 { background: #e0f2fe !important; color: #0369a1 !important; border: 1.5px solid #7dd3fc !important; font-weight: 800; }
.tag-fase2 { background: #ffe4e6 !important; color: #be123c !important; border: 1.5px solid #f43f5e !important; font-weight: 800; }
.tag-fase3 { background: #d1fae5 !important; color: #047857 !important; border: 1.5px solid #34d399 !important; font-weight: 800; }

[data-theme="dark"] .tag-fase1 { background: rgba(56, 189, 248, 0.15) !important; color: #7dd3fc !important; border: 1px solid rgba(56, 189, 248, 0.4) !important; }
[data-theme="dark"] .tag-fase2 { background: rgba(244, 63, 94, 0.15) !important; color: #f43f5e !important; border: 1px solid rgba(244, 63, 94, 0.4) !important; }
[data-theme="dark"] .tag-fase3 { background: rgba(16, 185, 129, 0.15) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.4) !important; }

.imm-shadowing-studio {
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.imm-transcript-box {
    background: rgba(11, 15, 25, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
    padding: 22px;
    margin: 16px 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.imm-sync-line-en {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.imm-sync-line-es {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 12px;
}

.imm-phonetic-linking {
    display: inline-block;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fde047;
}

.imm-pillars-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.imm-pillar-box {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.imm-chunk-row {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.imm-chunk-row:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateX(2px);
}

.imm-btn-speak-chunk {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #fff;
}

.imm-btn-speak-chunk:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    transform: scale(1.08);
}

.imm-grid-20d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.imm-day-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.imm-day-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.8);
}

.imm-day-card.completed {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.85));
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}

.imm-day-num {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.imm-day-status {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.imm-day-card.completed .imm-day-status {
    color: #34d399;
}

.imm-subnav-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.imm-subnav-bar::-webkit-scrollbar {
    height: 4px;
}

.imm-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.imm-subnav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.imm-subnav-btn.active {
    color: #fef08a;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   13. ESTILOS: PORTAL PRINCIPAL DE INICIO (HOME HUB) & BARRA DE VOLVER
   Presentación moderna de los 5 métodos y navegación unificada
   ========================================================================== */
.home-hub-hero {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: 36px 32px 30px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-hub-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.home-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.home-hub-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.home-hub-title span {
    background: linear-gradient(135deg, #a5b4fc, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hub-subtitle {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 860px;
    margin: 0 0 20px 0;
}

.home-hub-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.home-stat-chip {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-stat-chip b {
    color: #38bdf8;
    font-weight: 800;
}

/* Grilla de Métodos */
.home-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}

/* Tarjeta individual de Método */
.home-method-card {
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.home-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* Variantes temáticas de borde y halo */
.card-musica:hover { border-color: rgba(129, 140, 248, 0.5); }
.card-supera:hover { border-color: rgba(168, 85, 247, 0.5); }
.card-wordletic:hover { border-color: rgba(52, 211, 153, 0.5); }
.card-tmr:hover { border-color: rgba(56, 189, 248, 0.5); }
.card-imm20d:hover { border-color: rgba(245, 158, 11, 0.5); }
.card-krashen:hover { border-color: rgba(6, 182, 212, 0.55); box-shadow: 0 16px 36px rgba(6, 182, 212, 0.15); }
.icon-krashen { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.35); }
.pill-krashen { background: rgba(6, 182, 212, 0.12); color: #a5f3fc; border: 1px solid rgba(6, 182, 212, 0.3); }
.btn-krashen { background: linear-gradient(135deg, #0891b2, #06b6d4); box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35); }
.card-core:hover { border-color: rgba(217, 70, 239, 0.55); box-shadow: 0 16px 36px rgba(217, 70, 239, 0.18); }
.icon-core { background: rgba(217, 70, 239, 0.15); border: 1px solid rgba(217, 70, 239, 0.35); }
.pill-core { background: rgba(217, 70, 239, 0.12); color: #f5d0fe; border: 1px solid rgba(217, 70, 239, 0.3); }
.btn-core { background: linear-gradient(135deg, #c026d3, #e11d48); box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35); }
.card-omega {
    border: 1.5px solid rgba(234, 179, 8, 0.45) !important;
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(17, 24, 39, 0.95) 100%) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(234, 179, 8, 0.12) !important;
}
.card-omega:hover {
    border-color: rgba(234, 179, 8, 0.8) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 32px rgba(234, 179, 8, 0.25) !important;
    transform: translateY(-5px) !important;
}
.icon-omega { background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(99, 102, 241, 0.25)); border: 1.5px solid rgba(234, 179, 8, 0.5); }
.pill-omega { background: rgba(234, 179, 8, 0.15); color: #fef08a; border: 1px solid rgba(234, 179, 8, 0.45); }
.btn-omega { background: linear-gradient(135deg, #d97706, #f59e0b 50%, #eab308); color: #000 !important; font-weight: 900 !important; box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45); }
.btn-omega:hover { filter: brightness(1.15); }

.home-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.home-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.icon-musica { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); }
.icon-supera { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-wordletic { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-tmr { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-imm20d { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }

.home-method-pill {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 999px;
}

/* Pills de alto contraste definidos abajo */

/* ==========================================================================
   TIPOGRAFÍA Y CONTRASTE DE ALTA FIDELIDAD (WCAG AAA) PARA TARJETAS DE MÉTODOS
   Garantiza máxima legibilidad en modo claro y modo oscuro
   ========================================================================== */

.home-method-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

/* Títulos con contraste nítido absoluto */
.home-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 5px 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Subtítulos temáticos de alto contraste */
.home-card-tagline {
    font-size: 13px;
    font-weight: 700;
    color: #334155; /* Slate 700 */
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card-musica .home-card-tagline { color: #3730a3 !important; }
.card-supera .home-card-tagline { color: #581c87 !important; }
.card-wordletic .home-card-tagline { color: #065f46 !important; }
.card-tmr .home-card-tagline { color: #0369a1 !important; }
.card-imm20d .home-card-tagline { color: #9a3412 !important; }
.card-krashen .home-card-tagline { color: #0e7490 !important; }
.card-core .home-card-tagline { color: #86198f !important; }

/* Párrafo descriptivo nítido */
.home-card-desc {
    font-size: 13.5px;
    font-weight: 400;
    color: #cbd5e1 !important;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.home-method-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
}

/* Badges con fondo visible y texto oscuro */
.feat-badge {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 3.5px 8.5px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
}

/* Pildoras Temáticas Superiores (Pills) en Modo Claro */
.pill-musica { background: #eef2ff !important; color: #312e81 !important; border: 1.5px solid #a5b4fc !important; font-weight: 800; }
.pill-supera { background: #faf5ff !important; color: #581c87 !important; border: 1.5px solid #d8b4fe !important; font-weight: 800; }
.pill-wordletic { background: #ecfdf5 !important; color: #064e3b !important; border: 1.5px solid #6ee7b7 !important; font-weight: 800; }
.pill-tmr { background: #f0f9ff !important; color: #075985 !important; border: 1.5px solid #7dd3fc !important; font-weight: 800; }
.pill-imm20d { background: #fff7ed !important; color: #7c2d12 !important; border: 1.5px solid #fdba74 !important; font-weight: 800; }
.pill-krashen { background: #ecfeff !important; color: #155e75 !important; border: 1.5px solid #67e8f9 !important; font-weight: 800; }
.pill-core { background: #fdf4ff !important; color: #701a75 !important; border: 1.5px solid #f0abfc !important; font-weight: 800; }
.pill-omega { background: #fef3c7 !important; color: #92400e !important; border: 1.5px solid #f59e0b !important; font-weight: 800; }

/* Botones Secundarios en Modo Claro: fondo blanco con texto oscuro nítido y alto contraste */
.btn-card-secondary {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-card-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #64748b !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-card-secondary.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

/* ==========================================================================
   ADAPTACIONES PARA MODO OSCURO (DATA-THEME="DARK")
   ========================================================================== */
[data-theme="dark"] .home-method-card {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .home-card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .home-card-desc {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .feat-badge {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .btn-card-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-card-secondary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-card-secondary.active {
    background: #3b82f6 !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
}

[data-theme="dark"] .pill-omega { background: rgba(234, 179, 8, 0.2) !important; color: #fde047 !important; border: 1px solid rgba(234, 179, 8, 0.45) !important; }

[data-theme="dark"] .card-musica .home-card-tagline { color: #a5b4fc !important; }
[data-theme="dark"] .card-supera .home-card-tagline { color: #d8b4fe !important; }
[data-theme="dark"] .card-wordletic .home-card-tagline { color: #6ee7b7 !important; }
[data-theme="dark"] .card-tmr .home-card-tagline { color: #7dd3fc !important; }
[data-theme="dark"] .card-imm20d .home-card-tagline { color: #fdba74 !important; }
[data-theme="dark"] .card-krashen .home-card-tagline { color: #67e8f9 !important; }
[data-theme="dark"] .card-core .home-card-tagline { color: #f0abfc !important; }

/* Excepciones de alto contraste para tarjetas oscuras (OMEGA y SYNAPSE) */
.card-omega .home-card-title,
.card-synapse .home-card-title {
    color: #ffffff !important;
}

.card-omega .home-card-desc,
.card-synapse .home-card-desc {
    color: #e2e8f0 !important;
}

.card-omega .feat-badge,
.card-synapse .feat-badge {
    background: rgba(15, 23, 42, 0.7) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-omega .btn-card-secondary,
.card-synapse .btn-card-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.home-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-card-primary {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    text-decoration: none;
}

.btn-card-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-musica { background: linear-gradient(135deg, #4f46e5, #6366f1); box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35); }
.btn-supera { background: linear-gradient(135deg, #7c3aed, #9333ea); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35); }
.btn-wordletic { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35); }
.btn-tmr { background: linear-gradient(135deg, #0284c7, #0ea5e9); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35); }
.btn-imm20d { background: linear-gradient(135deg, #ea580c, #f59e0b); box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35); }



/* Barra superior de retorno en cada método */
.method-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 20px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    color: #f1f5f9;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn-back-home:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateX(-2px);
}

.method-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.crumb-link {
    color: #94a3b8;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s ease;
}

.crumb-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.crumb-sep {
    color: #475569;
}

.crumb-active {
    color: #f8fafc;
    font-weight: 700;
}

/* ==========================================================================
   ADAPTACIONES MÓVILES (RESPONSIVE RETROFIT)
   ========================================================================== */
@media (max-width: 768px) {
    .imm-hero-banner {
        padding: 20px 16px;
    }
    .imm-phases-grid {
        grid-template-columns: 1fr;
    }
    .imm-bootcamp-hud {
        padding: 16px;
    }
    .imm-bootcamp-hud > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .imm-bootcamp-hud > div:first-child > div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        margin-top: 8px;
    }
    .imm-bootcamp-hud > div:first-child button {
        flex: 1;
        text-align: center;
    }
    .imm-bootcamp-hud .stage-nav-btn {
        width: 100%;
        min-width: 100% !important;
    }
    .imm-shadowing-studio {
        padding: 16px;
    }
    .imm-transcript-box {
        padding: 16px;
    }
    .imm-sync-line-en {
        font-size: 17px !important;
    }
    .imm-sync-line-es {
        font-size: 13px !important;
    }
    .imm-phonetic-linking {
        font-size: 11px !important;
        white-space: normal;
        word-break: break-word;
    }
    .imm-grid-20d {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }
    .imm-day-card {
        padding: 8px 4px !important;
    }
    .imm-day-num {
        font-size: 12.5px !important;
    }
    .imm-day-status {
        font-size: 8.5px !important;
    }
    .imm-pillars-deck {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .imm-chunk-row {
        padding: 8px 10px !important;
    }
    .imm-btn-speak-chunk {
        font-size: 17px !important;
        padding: 6px !important;
    }
    .imm-subnav-btn {
        padding: 7px 11px;
        font-size: 12px;
    }
    .home-hub-hero {
        padding: 24px 18px;
    }
    .home-methods-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-method-card {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .imm-hero-banner h1 {
        font-size: 19px !important;
    }
    .imm-badge-fire {
        font-size: 10px !important;
        padding: 3px 9px !important;
    }
    .imm-grid-20d {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .method-top-bar {
        padding: 8px 12px;
    }
    .btn-back-home {
        font-size: 11.5px;
        padding: 6px 10px;
    }
}


/* ==========================================================================
   14. ESTILOS: INPUT COMPRENSIBLE & PARETO 80/20 (KRASHEN-PARETO SUITE)
   Diseño de vanguardia Obsidian Cyan, interactividad multimedia y audio
   ========================================================================== */
.kp-hero-banner {
    background: linear-gradient(135deg, rgba(8, 51, 68, 0.85) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(6, 78, 59, 0.3) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kp-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, rgba(14, 165, 233, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.kp-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(6, 182, 212, 0.14);
    color: #a5f3fc;
    border: 1px solid rgba(6, 182, 212, 0.4);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
    margin-bottom: 12px;
}

.kp-subnav-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.kp-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.kp-subnav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.kp-subnav-btn.active {
    color: #cffafe;
    background: rgba(6, 182, 212, 0.16);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Consola Multimedia de Input Comprensible */
.kp-media-console {
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.kp-level-toggle-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.kp-level-btn {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.kp-level-btn:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(30, 41, 59, 0.8);
}

.kp-level-btn.active {
    border-color: rgba(6, 182, 212, 0.5);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.12), rgba(15, 23, 42, 0.9));
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
}

.kp-video-screen {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 440px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.kp-subs-overlay {
    position: absolute;
    bottom: 14px;
    left: 20px;
    right: 20px;
    background: rgba(11, 15, 25, 0.92);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.kp-subs-text {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.kp-subs-text span.highlight {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(6, 182, 212, 0.5);
}

/* Baraja Pareto 80/20 */
.kp-pareto-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.kp-verb-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
}

.kp-verb-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kp-verb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.kp-verb-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #38bdf8;
    margin: 0;
}

.kp-phrase-row {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 9px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.kp-phrase-row:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(6, 182, 212, 0.25);
    transform: translateX(2px);
}

.kp-btn-speak {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 8px;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.kp-btn-speak:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
    transform: scale(1.08);
}

/* Protocolo de 3 Frases (Self-Talk Studio) */
.kp-protocol-box {
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 12px;
    padding: 22px;
    margin-top: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kp-generated-sentence {
    background: rgba(15, 23, 42, 0.7);
    border-left: 3px solid #06b6d4;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .kp-hero-banner {
        padding: 20px 16px;
    }
    .kp-level-btn {
        min-width: 100%;
    }
    .kp-video-screen {
        max-height: 260px;
    }
    .kp-subs-overlay {
        bottom: 8px;
        left: 10px;
        right: 10px;
        padding: 8px 10px;
    }
    .kp-subs-text {
        font-size: 14px !important;
    }
    .kp-pareto-deck {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   15. ESTILOS: MÉTODO C.O.R.E. (COMPRESSIVE ORGANIC REPROGRAMMING & ECHO)
   Ingeniería Neuromuscular del Habla (INH) · 4 Fases de Alta Densidad
   ========================================================================== */
.core-hero-banner {
    background: linear-gradient(135deg, rgba(74, 4, 78, 0.85) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(88, 28, 135, 0.4) 100%);
    border: 1px solid rgba(217, 70, 239, 0.32);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.core-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.18) 0%, rgba(225, 29, 72, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.core-badge-dna {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(217, 70, 239, 0.14);
    color: #f5d0fe;
    border: 1px solid rgba(217, 70, 239, 0.4);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(217, 70, 239, 0.2);
    margin-bottom: 12px;
}

.core-subnav-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.core-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.core-subnav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.core-subnav-btn.active {
    color: #fdf4ff;
    background: rgba(217, 70, 239, 0.18);
    border-color: rgba(217, 70, 239, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Fase 1: Mapa de 500 Nodos */
.core-node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
}

.core-node-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.core-node-card:hover {
    border-color: rgba(217, 70, 239, 0.45);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.85);
}

.core-node-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.core-node-word {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
}

.core-node-action {
    font-size: 10.5px;
    color: #d8b4fe;
    font-weight: 600;
}

/* Fase 2: Shadowing Quirúrgico Bifásico */
.core-biphasic-console {
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.core-timer-hud {
    background: rgba(11, 15, 25, 0.92);
    border: 1px solid rgba(217, 70, 239, 0.28);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}

.core-hud-clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(34px, 5.5vw, 44px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 0 16px rgba(217, 70, 239, 0.3);
}

/* Fase 3: Monólogo de Interrupción */
.core-chain-box {
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 12px;
    padding: 22px;
    margin-top: 16px;
}

.core-chain-sentence {
    background: rgba(15, 23, 42, 0.7);
    border-left: 3px solid #d946ef;
    border-radius: 6px;
    padding: 14px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.45;
    margin: 12px 0;
}

/* Fase 4: Gatillo TMR Nocturno */
.core-tmr-night-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(46, 16, 101, 0.7));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #f1f5f9;
}

.core-tmr-night-box h3,
.core-tmr-night-box h4 {
    color: #ffffff !important;
}

.core-tmr-night-box p {
    color: #cbd5e1 !important;
}

.core-phrase-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.core-phrase-item:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(217, 70, 239, 0.3);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .core-hero-banner {
        padding: 20px 16px;
    }
    .core-node-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .core-chain-sentence {
        font-size: 15px !important;
    }
}


/* ==========================================================================
   16. ESTILOS: SISTEMA OMEGA-FLOW™ (EL MÉTODO DEFINITIVO DEEP-MIND / ANTIGRAVITY)
   Sincronización Neuro-Biomecánica 4D · Ultra Lujo Cyber Obsidian Gold
   ========================================================================== */
.omega-hero-banner {
    background: linear-gradient(135deg, rgba(20, 15, 45, 0.95) 0%, rgba(11, 15, 25, 0.98) 50%, rgba(30, 20, 10, 0.95) 100%);
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.omega-hero-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.omega-badge-crown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.2), rgba(99, 102, 241, 0.2));
    color: #fef08a;
    border: 1px solid rgba(234, 179, 8, 0.5);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(234, 179, 8, 0.2);
    margin-bottom: 14px;
}

.omega-subnav-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.omega-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.omega-subnav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.omega-subnav-btn.active {
    color: #fef08a;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(99, 102, 241, 0.2));
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.2);
}

/* Ilustración Neural de Alta Definición */
.omega-diagram-wrap {
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.omega-diagram-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) brightness(1.02);
}

.omega-diagram-caption {
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Juego Interactivo: Reflex Arena */
.reflex-arena-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.85));
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.reflex-hud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.reflex-timer-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin: 14px 0;
}

.reflex-timer-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
    border-radius: 999px;
    transition: width 0.1s linear;
}

.reflex-challenge-card {
    background: rgba(11, 15, 25, 0.92);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.reflex-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(234, 179, 8, 0.15);
    color: #fef08a;
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

/* Matriz Fractal 360 */
.fractal-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
}

.fractal-unit-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fractal-unit-card:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    background: #fffbeb;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}

.fractal-icon {
    font-size: 22px;
}

.fractal-keyword {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

.fractal-category {
    font-size: 10.5px;
    color: #b45309;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-theme="dark"] .fractal-unit-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

[data-theme="dark"] .fractal-unit-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.2);
}

[data-theme="dark"] .fractal-keyword {
    color: #ffffff;
}

[data-theme="dark"] .fractal-category {
    color: #fde047;
}

/* Activador Matutino Morning Spark */
.omega-morning-spark-box {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .omega-hero-banner {
        padding: 20px 16px;
    }
    .omega-diagram-img {
        max-height: 240px;
    }
    .reflex-arena-box {
        padding: 18px 14px;
    }
    .fractal-matrix-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}


.home-method-card { cursor: pointer; user-select: none; transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease; }
.home-method-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45); }
.home-method-card:active { transform: translateY(-2px) scale(0.995); }


/* ==========================================================================
   SECCIÓN 18: MÉTODO SYNAPSE-6X™ (CIRCUITO NEURO-TOTAL Y SINCRONIZACIÓN CEREBRAL)
   Arquitectura de Adquisición Biológica Completa (6 Estaciones Cerebrales)
   ========================================================================== */

/* Tarjeta Estelar en #home */
.card-synapse,
.card-omega {
    grid-column: auto !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}

.card-synapse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #06b6d4, #10b981, #f59e0b, #eab308);
}

.card-synapse:hover {
    border-color: #22d3ee !important;
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.4), 0 0 40px rgba(168, 85, 247, 0.25) !important;
    transform: translateY(-6px) scale(1.01) !important;
}

.icon-synapse {
    background: linear-gradient(135deg, #a855f7, #06b6d4) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.5) !important;
}

.pill-synapse {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #67e8f9 !important;
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
}

.btn-synapse {
    background: linear-gradient(135deg, #0891b2, #0284c7, #7c3aed) !important;
    color: #ffffff !important;
    border: 1px solid rgba(103, 232, 249, 0.6) !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4) !important;
    font-weight: 800 !important;
}

.btn-synapse:hover {
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.6) !important;
    transform: translateY(-2px);
}

/* Banner Hero SYNAPSE-6X */
.synapse-hero-banner {
    background: linear-gradient(145deg, #030712 0%, #0b1528 50%, #111827 100%);
    border: 1.5px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(6, 182, 212, 0.05);
}

.synapse-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
    pointer-events: none;
}

.synapse-tag-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    color: #67e8f9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.synapse-title {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.15;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.synapse-title span {
    background: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.synapse-lead {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 0 24px 0;
}

/* Soporte Universal para Secuencias de Fases / Pasos en Todos los Métodos */
.synapse-circuit-nav,
.method-circuit-nav {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    margin: 20px 0 24px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .synapse-circuit-nav,
    .method-circuit-nav {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
        scrollbar-width: thin !important;
    }
    .synapse-circuit-nav .circuit-node-btn,
    .method-circuit-nav .circuit-node-btn {
        flex: 0 0 210px !important;
        min-width: 210px !important;
    }
}

.synapse-station-pane,
.omega-section-panel,
.core-section-panel,
.imm-section-panel,
.kp-section-panel,
.tmr-phase-pane {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Grilla de Navegación de las 6 Estaciones del Circuito */
.synapse-circuit-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.circuit-node-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.circuit-node-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(30, 41, 59, 0.9);
}

.circuit-node-btn.active {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(8, 51, 68, 0.9)) !important;
    border-color: #22d3ee !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45) !important;
    outline: 2px solid rgba(34, 211, 238, 0.4) !important;
}

.circuit-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.circuit-node-num {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.circuit-node-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.circuit-node-target {
    font-size: 11px;
    color: #94a3b8;
}

/* Indicadores de Semana en el Circuito y Estaciones SYNAPSE */
.circuit-node-btn.primary-week-focus:not(.active) {
    border-color: rgba(168, 85, 247, 0.6) !important;
    position: relative;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25) !important;
}

.circuit-node-btn.active.primary-week-focus {
    border-color: #22d3ee !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45), 0 0 14px rgba(168, 85, 247, 0.35) !important;
    outline: 2px solid rgba(34, 211, 238, 0.5) !important;
}

.circuit-node-btn.primary-week-focus .circuit-node-num {
    background: linear-gradient(135deg, #9333ea, #a855f7) !important;
    color: #ffffff !important;
}

.circuit-week-focus-tag {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(147, 51, 234, 0.35);
    align-self: flex-start;
    margin-top: 2px;
}

/* Indicador de Foco Semanal en la Píldora de la Rutina Diaria del Coach */
.cfr-step-pill.cfr-step-week-focus {
    border-color: #a855f7 !important;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(192, 132, 252, 0.08)) !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3) !important;
}

.cfr-pill-focus-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #f3e8ff;
    background: linear-gradient(135deg, #7e22ce, #9333ea);
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.2px;
}

/* Resaltado del Paso Enfocado en la Guía Visual de 45 min */
.msp-timeline-item.msp-timeline-item-focus {
    border-left: 4px solid #a855f7 !important;
    background: rgba(147, 51, 234, 0.12) !important;
    border-radius: 8px;
    padding: 10px 14px !important;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.2) !important;
}

.msp-timeline-focus-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #c084fc;
    font-weight: 700;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.45);
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 1.4;
}

.synapse-week-sync-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75), rgba(15, 23, 42, 0.85));
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.25s ease;
}

.synapse-week-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 85, 247, 0.25);
    color: #e9d5ff;
    border: 1px solid rgba(192, 132, 252, 0.5);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.synapse-week-sync-focus {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.synapse-week-sync-focus strong {
    color: #38bdf8;
    font-weight: 700;
}

.synapse-week-sync-primary-badge {
    background: #059669;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-block;
}

[data-theme="dark"] .synapse-week-sync-banner {
    background: linear-gradient(135deg, rgba(20, 18, 50, 0.85), rgba(10, 15, 30, 0.95));
}


/* Paneles de las 6 Estaciones */
.synapse-station-pane {
    display: none;
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}

.synapse-station-pane.active {
    display: block;
}

/* Estación 1: Vagal Breath Sphere */
.vagal-trainer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(15, 23, 42, 0.6) 70%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 20px 0;
}

.vagal-sphere {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #a855f7 0%, #06b6d4 70%);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    text-align: center;
    margin: 24px 0;
    transition: transform 0.3s ease;
}

.vagal-sphere.breathing-in {
    animation: breatheIn 4s ease-in-out forwards;
}

.vagal-sphere.breathing-out {
    animation: breatheOut 6s ease-in-out forwards;
}

@keyframes breatheIn {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    100% { transform: scale(1.6); box-shadow: 0 0 70px rgba(6, 182, 212, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.8); }
}

@keyframes breatheOut {
    0% { transform: scale(1.6); box-shadow: 0 0 70px rgba(6, 182, 212, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
}

/* Estación 2: Laboratorio de Contraste Fonémico (Pares Mínimos) */
.minimal-pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.minimal-pair-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
}

.minimal-pair-card:hover {
    border-color: #22d3ee;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

.pair-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pair-word-box {
    background: rgba(30, 41, 59, 0.6);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pair-word-box.active {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
}

.pair-word-text {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.pair-word-ipa {
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    color: #38bdf8;
}

/* Estación 3: Fascículo Arqueado */
.arcuate-shadow-box {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 27, 75, 0.5));
    border: 1.5px solid rgba(234, 179, 8, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 20px 0;
}

.arcuate-wave-visual {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 16px 0;
}

.wave-bar {
    width: 4px;
    height: 12px;
    background: #eab308;
    border-radius: 2px;
    transition: height 0.15s ease;
}

.arcuate-active .wave-bar {
    animation: wavePulse 0.8s ease-in-out infinite alternate;
}

.arcuate-active .wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.arcuate-active .wave-bar:nth-child(3n) { animation-delay: 0.2s; }
.arcuate-active .wave-bar:nth-child(4n) { animation-delay: 0.3s; }

@keyframes wavePulse {
    0% { height: 8px; background: #eab308; }
    100% { height: 44px; background: #facc15; box-shadow: 0 0 10px #facc15; }
}

/* Estación 4: Gimnasio Miofuncional de Broca */
.mio-gym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.mio-gym-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.25s ease;
}

.mio-gym-card:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
}

/* Estación 5: Synapse Speed Matrix (Ganglios Basales) */
.speed-matrix-arena {
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.95) 70%);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin: 20px 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.speed-hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.speed-hud-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.speed-hud-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.speed-hud-val {
    font-size: 24px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: #10b981;
}

/* Estación 6: Consolidación Hipocampal Nocturna */
.hippocampus-tmr-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-xl);
    padding: 26px;
    margin: 20px 0;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}


/* ==========================================================================
   NAVEGACIÓN SUPERIOR FIJA: INICIO + SUBTEMAS DEL MÉTODO ACTIVO + GUARDAR
   ========================================================================== */
.nav-center-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(19, 28, 46, 0.85);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-center-tabs::-webkit-scrollbar {
    display: none;
}

.nav-subtopics-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.subtopic-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.subtopic-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.subtopic-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25));
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Reducción drástica del espacio muerto entre la barra superior y la siguiente sección */
.neuro-bar {
    margin: 10px auto 14px auto !important;
    padding: 12px 20px !important;
}

.home-hub-hero {
    margin: 10px auto 28px auto !important;
    padding: 16px 20px 16px 20px !important;
}

.container-view {
    padding-top: 0 !important;
}


/* ==========================================================================
   COMPONENTES PREMIUM: GUIA VISUAL Y PLAN DE ESTUDIO POR MÉTODO
   ========================================================================== */

.method-guide-plan-wrapper {
    max-width: 1240px;
    margin: 0 auto 36px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Tarjeta General de Guía Visual */
.method-visual-guide-card {
    background: linear-gradient(135deg, rgba(19, 28, 46, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.08);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.method-visual-guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #facc15);
}

.mvg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
}

.mvg-title-group h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mvg-title-group p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.mvg-badge {
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Nodos y Diagrama Visual */
.mvg-diagram-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    position: relative;
    margin-bottom: 20px;
}

.mvg-node {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 14px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mvg-node:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background: rgba(30, 41, 59, 0.95);
}

.mvg-node-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 800;
}

.mvg-node-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.mvg-node-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.mvg-node-target {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    align-self: flex-start;
}

/* Tarjeta General de Plan de Estudio */
.method-study-plan-card {
    background: linear-gradient(135deg, rgba(20, 24, 38, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(168, 85, 247, 0.28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(168, 85, 247, 0.08);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.method-study-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899, #f43f5e, #fb923c);
}

.msp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
}

.msp-title-group h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.msp-title-group p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.msp-badge {
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 9999px;
    color: #d8b4fe;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Cuadrícula de Plan de Estudio: Rutina Diaria + Fases */
.msp-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 22px;
}

@media (max-width: 900px) {
    .msp-layout {
        grid-template-columns: 1fr;
    }
}

.msp-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
}

.msp-box-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rutina por minutos */
.msp-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msp-timeline-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.msp-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.msp-time-badge {
    min-width: 68px;
    padding: 4px 8px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

.msp-step-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.msp-step-content p {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.35;
}

/* Fases semanales */
.msp-phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.msp-phase-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msp-phase-card.active {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.08);
}

.msp-phase-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msp-phase-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.msp-phase-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}


/* ==========================================================================
   ESTILOS DE FONDO CLARO (LIGHT THEME) PARA GUIA VISUAL Y PLAN DE ESTUDIO
   ========================================================================== */

:root, [data-theme="light"], [data-theme="softgrey"] {
    --card-surface: #ffffff;
    --card-border: #e2e8f0;
    --card-text-title: #0f172a;
    --card-text-desc: #334155;
    --card-box-bg: #f8fafc;
}

.method-visual-guide-card {
    background: #ffffff !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="dark"] .method-visual-guide-card {
    background: linear-gradient(135deg, rgba(19, 28, 46, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45) !important;
}

.mvg-title-group h2 {
    color: #0f172a !important;
}
[data-theme="dark"] .mvg-title-group h2 {
    color: #ffffff !important;
}

.mvg-title-group p {
    color: #475569 !important;
}
[data-theme="dark"] .mvg-title-group p {
    color: #94a3b8 !important;
}

.mvg-node {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
.mvg-node:hover {
    background: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.15) !important;
}
[data-theme="dark"] .mvg-node {
    background: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.mvg-node-name {
    color: #0f172a !important;
}
[data-theme="dark"] .mvg-node-name {
    color: #f8fafc !important;
}

.mvg-node-desc {
    color: #334155 !important;
}
[data-theme="dark"] .mvg-node-desc {
    color: #cbd5e1 !important;
}

.method-study-plan-card {
    background: #ffffff !important;
    border: 1.5px solid rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="dark"] .method-study-plan-card {
    background: linear-gradient(135deg, rgba(20, 24, 38, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45) !important;
}

.msp-title-group h2 {
    color: #0f172a !important;
}
[data-theme="dark"] .msp-title-group h2 {
    color: #ffffff !important;
}

.msp-title-group p {
    color: #475569 !important;
}
[data-theme="dark"] .msp-title-group p {
    color: #94a3b8 !important;
}

.msp-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
[data-theme="dark"] .msp-box {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.msp-box-title {
    color: #0f172a !important;
}
[data-theme="dark"] .msp-box-title {
    color: #f1f5f9 !important;
}

.msp-step-content h4 {
    color: #0f172a !important;
}
[data-theme="dark"] .msp-step-content h4 {
    color: #ffffff !important;
}

.msp-step-content p {
    color: #334155 !important;
}
[data-theme="dark"] .msp-step-content p {
    color: #cbd5e1 !important;
}

.msp-phase-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
[data-theme="dark"] .msp-phase-card {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.msp-phase-title {
    color: #0f172a !important;
}
[data-theme="dark"] .msp-phase-title {
    color: #f8fafc !important;
}

.msp-phase-desc {
    color: #475569 !important;
}
[data-theme="dark"] .msp-phase-desc {
    color: #94a3b8 !important;
}

/* Tarjetas del Menú en Supera (#home) */
.home-method-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
}
.home-method-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1) !important;
}
[data-theme="dark"] .home-method-card {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25) !important;
}
[data-theme="dark"] .home-method-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
}


/* ==========================================================================
   FICHA MAESTRA INICIAL: GUIA VISUAL & PLAN DE ESTUDIO DEL METODO
   ========================================================================== */

.fmm-hero-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.fmm-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981, #f59e0b);
}

.fmm-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 9999px;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.fmm-title {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.fmm-desc {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.55;
    margin: 0;
    max-width: 980px;
}

[data-theme="dark"] .fmm-hero-card {
    background: rgba(19, 28, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .fmm-title {
    color: #ffffff;
}

[data-theme="dark"] .fmm-desc {
    color: #cbd5e1;
}

[data-theme="dark"] .fmm-badge-tag {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}


/* ==========================================================================
   DISEÑO GRÁFICO LIMPIO Y LEGIBLE (ESTILO EXACTO INGLÉS CON MÚSICA)
   ========================================================================== */

/* Contenedor general */
.method-guide-plan-wrapper {
    max-width: 1240px;
    margin: 0 auto 36px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Barra de regreso al inicio */
.method-top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px 20px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin: 0 auto 24px auto !important;
    max-width: 1240px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .method-top-bar {
    background: #131b2e !important;
    border-color: #24304f !important;
}

.btn-back-home {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 16px !important;
    background: #e0e7ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 9999px !important;
    color: #4338ca !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn-back-home:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.method-breadcrumbs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

.crumb-root, .crumb-link {
    color: #4f46e5 !important;
    cursor: pointer !important;
    font-weight: 700 !important;
}

.crumb-sep {
    color: #94a3b8 !important;
}

.crumb-current {
    color: #0f172a !important;
    font-weight: 800 !important;
}

[data-theme="dark"] .crumb-current {
    color: #f1f5f9 !important;
}

/* Ficha Hero Inicial (Idéntica al Hero Banner de Canciones) */
.fmm-hero-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%) !important;
    color: #ffffff !important;
    padding: 38px 36px !important;
    border-radius: 18px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
}

.fmm-hero-card::after {
    content: "" !important;
    position: absolute !important;
    top: -40% !important;
    right: -15% !important;
    width: 380px !important;
    height: 380px !important;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.fmm-badge-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #e0e7ff !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
    backdrop-filter: blur(4px) !important;
}

.fmm-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.6px !important;
    line-height: 1.2 !important;
    margin: 0 0 12px 0 !important;
}

.fmm-desc {
    font-size: 15.5px !important;
    color: #cbd5e1 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 900px !important;
}

/* Fichas de Guía Visual y Plan de Estudio (Estilo card-pillar de Canciones) */
.method-visual-guide-card, .method-study-plan-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 28px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 24px !important;
    position: relative !important;
    overflow: hidden !important;
}

[data-theme="dark"] .method-visual-guide-card, 
[data-theme="dark"] .method-study-plan-card {
    background: #131b2e !important;
    border-color: #24304f !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.mvg-header, .msp-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    padding-bottom: 18px !important;
}

[data-theme="dark"] .mvg-header,
[data-theme="dark"] .msp-header {
    border-color: #24304f !important;
}

.mvg-title-group h2, .msp-title-group h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    letter-spacing: -0.4px !important;
}

[data-theme="dark"] .mvg-title-group h2,
[data-theme="dark"] .msp-title-group h2 {
    color: #f1f5f9 !important;
}

.mvg-title-group p, .msp-title-group p {
    font-size: 0.95rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

[data-theme="dark"] .mvg-title-group p,
[data-theme="dark"] .msp-title-group p {
    color: #94a3b8 !important;
}

.mvg-badge {
    padding: 5px 12px !important;
    background: rgba(6, 182, 212, 0.12) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    border-radius: 9999px !important;
    color: #0891b2 !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.msp-badge {
    padding: 5px 12px !important;
    background: rgba(79, 70, 229, 0.12) !important;
    border: 1px solid rgba(79, 70, 229, 0.3) !important;
    border-radius: 9999px !important;
    color: #4338ca !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

/* Nodos Visuales estilo card-pillar */
.mvg-diagram-flow {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.mvg-node {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 20px !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.mvg-node:hover {
    border-color: #4f46e5 !important;
    background: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12) !important;
}

[data-theme="dark"] .mvg-node {
    background: #1a243b !important;
    border-color: #24304f !important;
}

.mvg-node-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
}

.mvg-node-name {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

[data-theme="dark"] .mvg-node-name {
    color: #f1f5f9 !important;
}

.mvg-node-desc {
    font-size: 0.88rem !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

[data-theme="dark"] .mvg-node-desc {
    color: #94a3b8 !important;
}

.mvg-node-target {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #4338ca !important;
    background: #e0e7ff !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    align-self: flex-start !important;
}

[data-theme="dark"] .mvg-node-target {
    background: #1e1b4b !important;
    color: #a5b4fc !important;
}

/* Plan de Estudio (Rutina y Fases) */
.msp-layout {
    display: grid !important;
    grid-template-columns: 1fr 1.35fr !important;
    gap: 22px !important;
}

@media (max-width: 900px) {
    .msp-layout {
        grid-template-columns: 1fr !important;
    }
}

.msp-box {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 22px !important;
}

[data-theme="dark"] .msp-box {
    background: #1a243b !important;
    border-color: #24304f !important;
}

.msp-box-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

[data-theme="dark"] .msp-box-title {
    color: #f1f5f9 !important;
}

.msp-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.msp-timeline-item {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
    padding-bottom: 12px !important;
    border-bottom: 1px dashed #cbd5e1 !important;
}

[data-theme="dark"] .msp-timeline-item {
    border-color: #374151 !important;
}

.msp-timeline-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.msp-time-badge {
    min-width: 82px !important;
    padding: 5px 10px !important;
    background: #e0e7ff !important;
    border: 1px solid #c7d2fe !important;
    color: #4338ca !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

[data-theme="dark"] .msp-time-badge {
    background: #1e1b4b !important;
    border-color: #3730a3 !important;
    color: #a5b4fc !important;
}

.msp-step-content h4 {
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
}

[data-theme="dark"] .msp-step-content h4 {
    color: #f1f5f9 !important;
}

.msp-step-content p {
    font-size: 0.85rem !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

[data-theme="dark"] .msp-step-content p {
    color: #94a3b8 !important;
}

/* Fases Semanales */
.msp-phases-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
}

.msp-phase-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    user-select: none !important;
}

.msp-phase-card:hover {
    transform: translateY(-2px) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.14) !important;
}

[data-theme="dark"] .msp-phase-card {
    background: #131b2e !important;
    border-color: #24304f !important;
}

[data-theme="dark"] .msp-phase-card:hover {
    border-color: #818cf8 !important;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25) !important;
}

.msp-phase-card.active {
    border-color: #4f46e5 !important;
    background: #f5f3ff !important;
}

[data-theme="dark"] .msp-phase-card.active {
    background: #1e1b4b !important;
}

.msp-phase-tag {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #4f46e5 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.msp-phase-title {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

[data-theme="dark"] .msp-phase-title {
    color: #f1f5f9 !important;
}

.msp-phase-desc {
    font-size: 0.82rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

[data-theme="dark"] .msp-phase-desc {
    color: #94a3b8 !important;
}

/* ==========================================================================
   MEJORAS MAESTRAS DE CONTRASTE, LEGIBILIDAD Y DISENO LIMPIO (CANCIONES STYLE)
   ========================================================================== */

/* 1. Envoltorios de Guia Visual y Plan de Estudio: Bloques limpios y centrados */
.method-guide-plan-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto 32px auto !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* 2. Hero Card Principal en las Guias (Azul Real Indigo con Oro/Cian) */
.fmm-hero-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%) !important;
    color: #ffffff !important;
    padding: 36px 32px !important;
    border-radius: 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
}
.fmm-hero-card h1, .fmm-hero-card .fmm-title {
    color: #ffffff !important;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem) !important;
    font-weight: 900 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.5px !important;
}
.fmm-hero-card p, .fmm-hero-card .fmm-desc {
    color: #cbd5e1 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    max-width: 850px !important;
    margin: 0 !important;
}
.fmm-hero-card .fmm-badge-tag {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #fde047 !important;
    background: rgba(254, 240, 138, 0.15) !important;
    border: 1px solid rgba(254, 240, 138, 0.35) !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    margin-bottom: 14px !important;
}

/* 3. Tarjetas Blancas con Maxima Legibilidad y Contraste */
.station-card,
.synapse-station-pane,
.method-visual-guide-card,
.method-study-plan-card,
.stage-content-box,
.module-active-content,
[class*="fase-pane"],
[class*="pilar-pane"],
[class*="station-pane"],
.card-clean-white {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
}

/* 4. Tipografia de Alto Contraste en Todas las Secciones */
.tab-pane:not(#home) .station-card h1,
.tab-pane:not(#home) .station-card h2,
.tab-pane:not(#home) .station-card h3,
.tab-pane:not(#home) .station-card h4,
.tab-pane:not(#home) .synapse-station-pane h1,
.tab-pane:not(#home) .synapse-station-pane h2,
.tab-pane:not(#home) .synapse-station-pane h3,
.tab-pane:not(#home) .synapse-station-pane h4,
.tab-pane:not(#home) .method-visual-guide-card h1,
.tab-pane:not(#home) .method-visual-guide-card h2,
.tab-pane:not(#home) .method-visual-guide-card h3,
.tab-pane:not(#home) .method-visual-guide-card h4,
.tab-pane:not(#home) .method-study-plan-card h1,
.tab-pane:not(#home) .method-study-plan-card h2,
.tab-pane:not(#home) .method-study-plan-card h3,
.tab-pane:not(#home) .method-study-plan-card h4,
.tab-pane:not(#home) .module-active-content h1,
.tab-pane:not(#home) .module-active-content h2,
.tab-pane:not(#home) .module-active-content h3,
.tab-pane:not(#home) .module-active-content h4,
.tab-pane:not(#home) .stage-content-box h1,
.tab-pane:not(#home) .stage-content-box h2,
.tab-pane:not(#home) .stage-content-box h3,
.tab-pane:not(#home) .stage-content-box h4,
.tab-pane:not(#home):not(#user-progress) [class*="pane"] > div:first-child h2,
.tab-pane:not(#home):not(#user-progress) [class*="pane"] > div:first-child h3,
.tab-pane:not(#home):not(#user-progress) [class*="fase"] h3,
.tab-pane:not(#home):not(#user-progress) [class*="pilar"] h3,
.tab-pane:not(#home):not(#user-progress) [class*="station"] h2,
.tab-pane:not(#home):not(#user-progress) [class*="station"] h3 {
    color: #0f172a !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

/* Textos explicativos en Slate 700 */
.tab-pane:not(#home):not(#user-progress) .station-card p,
.tab-pane:not(#home):not(#user-progress) .synapse-station-pane p,
.tab-pane:not(#home):not(#user-progress) .stage-content-box p,
.tab-pane:not(#home):not(#user-progress) .module-active-content p,
.tab-pane:not(#home):not(#user-progress) [class*="pane"] p,
.tab-pane:not(#home):not(#user-progress) .section-context-subtitle,
.tab-pane:not(#home):not(#user-progress) .mvg-node-desc,
.tab-pane:not(#home):not(#user-progress) .msp-phase-desc {
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* 5. Inputs y Campos de Busqueda Claros y Elegantes */
.tab-pane input[type="text"],
.tab-pane input[type="search"],
.tab-pane textarea,
.tab-pane select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.tab-pane input[type="text"]::placeholder,
.tab-pane input[type="search"]::placeholder,
.tab-pane textarea::placeholder {
    color: #94a3b8 !important;
}
.tab-pane input[type="text"]:focus,
.tab-pane input[type="search"]:focus,
.tab-pane textarea:focus,
.tab-pane select:focus {
    border-color: #6366f1 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* 6. Botones de Paso (Paso A / Paso B en CORE, y Niveles en Krashen-Pareto) */
.stage-nav-btn,
.kp-level-btn {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04) !important;
}
.stage-nav-btn span,
.kp-level-btn span,
.kp-level-btn div:first-child {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}
.stage-nav-btn b,
.stage-nav-btn strong,
.kp-level-btn b,
.kp-level-btn strong,
.kp-level-btn div:nth-child(2) {
    color: #0f172a !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    display: block !important;
    margin-top: 4px !important;
}
.stage-nav-btn:hover,
.kp-level-btn:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}
.stage-nav-btn.active,
.kp-level-btn.active {
    background: #f0fdf4 !important;
    border-color: #22c55e !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12) !important;
}
.stage-nav-btn.active span,
.kp-level-btn.active span,
.kp-level-btn.active div:first-child {
    color: #15803d !important;
}
.stage-nav-btn.active b,
.stage-nav-btn.active strong,
.kp-level-btn.active b,
.kp-level-btn.active strong,
.kp-level-btn.active div:nth-child(2) {
    color: #0f172a !important;
}

/* 7. Botones de Fases Lozanov (Superaprendizaje) */
.stage-btn {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.stage-btn:hover {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
}
.stage-btn.active {
    background: #eef2ff !important;
    border-color: #6366f1 !important;
    color: #4338ca !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
}

/* 8. Tarjetas de Chunks Bimemoristicos */
.chunk-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 18px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.chunk-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}
.chunk-card .chunk-en span {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}
.chunk-card .chunk-es {
    color: #334155 !important;
    font-size: 13.5px !important;
}

/* 9. Badges de Frecuencia y Schumann */
.badge-schumann,
span[style*="f5d0fe"] {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    border: 1px solid #d8b4fe !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   PERFECCIONAMIENTO DE INMERSION-20D Y HIPNOPEDIA TMR (ALTO CONTRASTE Y LUZ)
   ========================================================================== */

/* 1. Badges de Fases en Inmersion-20D */
.tag-fase1 {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
}
.tag-fase2 {
    background: #ffe4e6 !important;
    color: #be123c !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
}
.tag-fase3 {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
}

/* 2. Cajas de Pilares y Chunks en Inmersion-20D */
.imm-pillar-box {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
.imm-pillar-header h4 {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
}
.imm-pillar-header span {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Filas de frases en los pilares */
.imm-chunk-row {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease !important;
}
.imm-chunk-row:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06) !important;
}
.imm-chunk-row div > div:first-child {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}
.imm-chunk-row div > div:nth-child(2) {
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}
.imm-btn-speak-chunk {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #4338ca !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.imm-btn-speak-chunk:hover {
    background: #eef2ff !important;
    border-color: #6366f1 !important;
    transform: scale(1.06) !important;
}

/* 3. Hipnopedia TMR: Cabecera Limpia y Fases Cientificas */
.tmr-hero-banner {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 28px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 24px !important;
}
.tmr-hero-banner h2 {
    color: #0f172a !important;
    font-weight: 800 !important;
}
.tmr-hero-banner p {
    color: #334155 !important;
}

/* Tarjetas de las 3 Fases TMR */
.tmr-phase-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.tmr-phase-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}
.tmr-phase-card h4 {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 16.5px !important;
}
.tmr-phase-card p {
    color: #334155 !important;
    line-height: 1.55 !important;
    font-size: 13px !important;
}
.tmr-phase-card b, .tmr-phase-card strong {
    color: #0f172a !important;
}

/* Fase 2 destacada en amarillo/ambar elegante (sin fondo negro) */
.tmr-phase-card.active-phase {
    background: #ffffff !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12) !important;
}
.tmr-phase-card.active-phase h4 {
    color: #0f172a !important;
}
.tmr-phase-card.active-phase p {
    color: #334155 !important;
}
.tmr-phase-card.active-phase .tmr-phase-num {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

/* Badges de numero de fase */
.tmr-phase-1 .tmr-phase-num {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}
.tmr-phase-3 .tmr-phase-num {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

/* ==========================================================================
   HOMOGENEIZACION TOTAL DE FICHAS HERO SECUNDARIAS Y BARRAS SUBNAV (LIGHT)
   ========================================================================== */

/* 1. Transformacion de Banners Secundarios a Tarjetas Blancas Premium */
.imm-hero-banner,
.kp-hero-banner,
.core-hero-banner,
.omega-hero-banner,
.synapse-hero-banner,
.tmr-hero-banner {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 28px 32px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    color: #0f172a !important;
}

.imm-hero-banner h1, .imm-hero-banner h2, .imm-hero-banner h3,
.kp-hero-banner h1, .kp-hero-banner h2, .kp-hero-banner h3,
.core-hero-banner h1, .core-hero-banner h2, .core-hero-banner h3,
.omega-hero-banner h1, .omega-hero-banner h2, .omega-hero-banner h3,
.synapse-hero-banner h1, .synapse-hero-banner h2, .synapse-hero-banner h3,
.tmr-hero-banner h1, .tmr-hero-banner h2, .tmr-hero-banner h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

.imm-hero-banner p,
.kp-hero-banner p,
.core-hero-banner p,
.omega-hero-banner p,
.synapse-hero-banner p,
.tmr-hero-banner p {
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Badges y Pastillas dentro de Banners Secundarios */
.imm-hero-banner span,
.kp-hero-banner span,
.core-hero-banner span,
.omega-hero-banner span,
.synapse-hero-banner span,
.tmr-hero-banner span {
    border-radius: 9999px !important;
}

.imm-badge-fire,
.kp-badge-glow {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    padding: 4px 12px !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
}

/* 2. Barras de Sub-Navegacion como Controles Segmentados Modernos (Apple/Stripe Style) */
.imm-subnav-bar,
.kp-subnav-bar,
.core-subnav-bar,
.omega-subnav-bar,
.synapse-subnav-bar {
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 6px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.imm-subnav-btn,
.kp-subnav-btn,
.core-subnav-btn,
.omega-subnav-btn,
.synapse-subnav-btn {
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 18px !important;
    border-radius: 9px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.imm-subnav-btn:hover,
.kp-subnav-btn:hover,
.core-subnav-btn:hover,
.omega-subnav-btn:hover,
.synapse-subnav-btn:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.imm-subnav-btn.active,
.kp-subnav-btn.active,
.core-subnav-btn.active,
.omega-subnav-btn.active,
.synapse-subnav-btn.active {
    background: #ffffff !important;
    color: #4338ca !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid #cbd5e1 !important;
}

/* ============================================================================
   BARRA SUPERIOR FIJA Y UNIFICADA (HEADER MAESTRO PARA TODOS LOS MÉTODOS)
   ============================================================================ */

html {
    scroll-padding-top: 78px !important;
    scroll-behavior: smooth !important;
}

.header-bar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 24px !important;
    min-height: 64px !important;
    background: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
}

[data-theme="dark"] .header-bar {
    background: #0f172a !important;
    border-bottom: 1.5px solid #1e293b !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* GRUPO IZQUIERDO: INICIO + IDENTIDAD DEL MÉTODO */
.header-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-shrink: 0 !important;
}

/* BOTÓN INICIO HACIA LA IZQUIERDA */
.btn-header-home {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1) !important;
}

.btn-header-home:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

.btn-header-home.active {
    background: #1e40af !important;
    color: #ffffff !important;
    border-color: #1e3a8a !important;
}

[data-theme="dark"] .btn-header-home {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-theme="dark"] .btn-header-home:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

/* IDENTIDAD DINÁMICA DEL MÉTODO */
.active-method-identity {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-left: 1.5px solid #e2e8f0 !important;
    padding-left: 14px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

[data-theme="dark"] .active-method-identity {
    border-left-color: #334155 !important;
}

.active-method-identity:hover {
    opacity: 0.85;
}

.method-header-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 19px !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2) !important;
    flex-shrink: 0 !important;
}

.method-header-text-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.2 !important;
}

.method-header-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
    white-space: nowrap !important;
}

[data-theme="dark"] .method-header-title {
    color: #f8fafc !important;
}

.method-header-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

[data-theme="dark"] .method-header-badge {
    color: #818cf8 !important;
}

/* NAVEGACIÓN CENTRAL / RESTO DE LA FRANJA (SUBGRUPOS) */
.header-subtopics-nav {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    padding: 0 12px !important;
    scrollbar-width: none !important;
}

.header-subtopics-nav::-webkit-scrollbar {
    display: none !important;
}

.nav-subtopics-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
}

/* BOTONES DE SUBGRUPOS / SUBTEMAS DEL MODELO */
.subtopic-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.subtopic-tab-btn:hover {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    color: #4f46e5 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.12) !important;
}

.subtopic-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25) !important;
}

[data-theme="dark"] .subtopic-tab-btn {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .subtopic-tab-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: #818cf8 !important;
}

[data-theme="dark"] .subtopic-tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%) !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

/* BOTONES DE ACCIONES DERECHA */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.btn-offline-head {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1.5px solid #a7f3d0 !important;
    border-radius: 9999px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.btn-offline-head:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25) !important;
}

.btn-icon-head {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-icon-head:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
}

/* OCULTAR CUALQUIER BARRA REPETIDA SOBRANTE */
.method-top-bar, .section-context-bar-duplicate {
    display: none !important;
}

/* ============================================================================
   SECCIÓN: MATERIAL ADICIONAL & ENTRENADOR DE SESIÓN DIARIA (AUDIO COACH 60 BPM)
   ============================================================================ */

.method-additional-material-wrapper {
    margin-top: 52px !important;
    margin-bottom: 40px !important;
    padding-top: 24px !important;
    border-top: 2px dashed #cbd5e1 !important;
}

[data-theme="dark"] .method-additional-material-wrapper {
    border-top-color: #334155 !important;
}

/* HERO DEL MATERIAL ADICIONAL */
.mat-hero-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 28px 32px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    position: relative !important;
    overflow: hidden !important;
}

[data-theme="dark"] .mat-hero-card {
    background: #131b2e !important;
    border-color: #1e293b !important;
}

.mat-badge-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #1d4ed8 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
}

[data-theme="dark"] .mat-badge-tag {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

.mat-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
}

[data-theme="dark"] .mat-title {
    color: #f8fafc !important;
}

.mat-desc {
    font-size: 14.5px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    max-width: 860px !important;
    margin: 0 !important;
}

[data-theme="dark"] .mat-desc {
    color: #94a3b8 !important;
}

/* TARJETA CENTRAL DEL AUDIO COACH */
.session-coach-card {
    background: #ffffff !important;
    border: 2px solid #6366f1 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin-bottom: 34px !important;
    box-shadow: 0 10px 34px rgba(99, 102, 241, 0.08) !important;
    position: relative !important;
}

[data-theme="dark"] .session-coach-card {
    background: #111827 !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4) !important;
}

.coach-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .coach-header-row {
    border-bottom-color: #1f2937 !important;
}

.coach-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.coach-icon-pulse {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}

.coach-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 3px 0 !important;
}

[data-theme="dark"] .coach-title {
    color: #f8fafc !important;
}

.coach-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
}

[data-theme="dark"] .coach-subtitle {
    color: #94a3b8 !important;
}

/* SELECTOR DE DURACIÓN */
.coach-duration-pills {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dur-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-right: 4px !important;
}

.btn-dur-pill {
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-dur-pill:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-dur-pill.active {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
}

/* FLUJO DE PASOS (GRID DE 3 ACTIVIDADES) */
.coach-steps-grid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

@media (max-width: 768px) {
    .coach-steps-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .coach-step-divider {
        display: none !important;
    }
}

.coach-step-divider {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-align: center !important;
}

.coach-step-item {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    transition: all 0.25s ease !important;
}

[data-theme="dark"] .coach-step-item {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.coach-step-item.active {
    background: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.15) !important;
    transform: translateY(-2px) !important;
}

[data-theme="dark"] .coach-step-item.active {
    background: #1e293b !important;
    border-color: #6366f1 !important;
}

.coach-step-item.completed {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

[data-theme="dark"] .coach-step-item.completed {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #059669 !important;
}

.step-num-badge {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.coach-step-item.active .step-num-badge {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

.coach-step-item.completed .step-num-badge {
    background: #10b981 !important;
    color: #ffffff !important;
}

.step-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.step-type-tag {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #6366f1 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
}

.step-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
}

[data-theme="dark"] .step-name {
    color: #f8fafc !important;
}

.step-time-tag {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

/* CONSOLA DE REPRODUCCIÓN CENTRAL */
.coach-player-console {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 18px 24px !important;
    margin-bottom: 18px !important;
}

[data-theme="dark"] .coach-player-console {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.coach-timer-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.coach-timer-display {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    line-height: 1 !important;
}

[data-theme="dark"] .coach-timer-display {
    color: #f8fafc !important;
}

.coach-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
}

[data-theme="dark"] .coach-status-badge {
    color: #818cf8 !important;
}

.coach-status-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #4f46e5 !important;
    animation: pulse 1.8s infinite !important;
}

.coach-action-btns {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* BOTÓN MAESTRO DE 1-CLIC */
.btn-coach-start {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-coach-start:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45) !important;
    filter: brightness(1.08) !important;
}

.btn-coach-secondary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

[data-theme="dark"] .btn-coach-secondary {
    background: #111827 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

.btn-coach-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* PROGRESS BAR */
.coach-progress-wrapper {
    width: 100% !important;
    height: 8px !important;
    background: #e2e8f0 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    margin-bottom: 18px !important;
}

[data-theme="dark"] .coach-progress-wrapper {
    background: #334155 !important;
}

.coach-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981) !important;
    transition: width 0.4s ease !important;
}

/* MONITOR DE INSTRUCCIÓN / TRANSCRIPT */
.coach-live-transcript {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-left: 4px solid #4f46e5 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
}

[data-theme="dark"] .coach-live-transcript {
    background: #1e293b !important;
    border-color: #334155 !important;
    border-left-color: #6366f1 !important;
}

.transcript-coach-badge {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #4f46e5 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 6px !important;
}

[data-theme="dark"] .transcript-coach-badge {
    color: #818cf8 !important;
}

.transcript-text {
    font-size: 14px !important;
    color: #1e293b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-style: italic !important;
}

[data-theme="dark"] .transcript-text {
    color: #cbd5e1 !important;
}

/* ============================================================================
   BANNER DE AUDIO RUTINA DIARIA COMPLETA (SINCRONIZADA POR SEMANAS)
   ============================================================================ */
.coach-full-routine-banner {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95)) !important;
    border: 2px solid #6366f1 !important;
    border-radius: 18px !important;
    padding: 24px 26px !important;
    margin: 22px 0 26px 0 !important;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="dark"] .coach-full-routine-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.cfr-banner-header {
    margin-bottom: 18px !important;
}

.cfr-badge-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 10px !important;
}

.cfr-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    background: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
}

.cfr-time-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 12px !important;
    background: #e0e7ff !important;
    color: #3730a3 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .cfr-time-badge {
    background: rgba(99, 102, 241, 0.25) !important;
    color: #c7d2fe !important;
}

.cfr-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

[data-theme="dark"] .cfr-title {
    color: #f8fafc !important;
}

.cfr-desc {
    font-size: 13.5px !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

[data-theme="dark"] .cfr-desc {
    color: #94a3b8 !important;
}

/* CONTROLES Y BOTONES */
.cfr-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    padding: 16px 18px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
}

[data-theme="dark"] .cfr-controls-row {
    background: #131b2e !important;
    border-color: #1e293b !important;
}

.cfr-week-selector-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.cfr-label {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

[data-theme="dark"] .cfr-label {
    color: #cbd5e1 !important;
}

.cfr-week-select {
    padding: 8px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.2s !important;
    max-width: 320px !important;
}

.cfr-week-select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="dark"] .cfr-week-select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

.cfr-btn-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.btn-cfr-play {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 22px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-cfr-play:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
}

.btn-cfr-play.playing {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.btn-cfr-play.paused {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
}

.btn-cfr-speed {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 16px !important;
    background: #eef2ff !important;
    border: 1.5px solid #c7d2fe !important;
    color: #4338ca !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-cfr-speed:hover {
    background: #e0e7ff !important;
    border-color: #818cf8 !important;
}

.btn-cfr-speed.active {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
    font-weight: 800 !important;
}

[data-theme="dark"] .btn-cfr-speed {
    background: #1e1b4b !important;
    border-color: #4338ca !important;
    color: #c7d2fe !important;
}

[data-theme="dark"] .btn-cfr-speed.active {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: #f59e0b !important;
    color: #fcd34d !important;
}

.btn-cfr-stop {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 14px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-cfr-stop:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="dark"] .btn-cfr-stop {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* TIMELINE DE PASOS INTERACTIVOS */
.cfr-timeline-steps {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.cfr-step-pill {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    position: relative !important;
}

.cfr-step-pill:hover {
    border-color: #a5b4fc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12) !important;
}

[data-theme="dark"] .cfr-step-pill {
    background: #131b2e !important;
    border-color: #1e293b !important;
}

.cfr-step-pill.active {
    border-color: #4f46e5 !important;
    background: #eef2ff !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25) !important;
}

[data-theme="dark"] .cfr-step-pill.active {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.2) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
}

.cfr-step-pill.completed {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

[data-theme="dark"] .cfr-step-pill.completed {
    border-color: #059669 !important;
    background: rgba(16, 185, 129, 0.15) !important;
}

.cfr-pill-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
}

.cfr-pill-time {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.1) !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
}

[data-theme="dark"] .cfr-pill-time {
    color: #a5b4fc !important;
    background: rgba(99, 102, 241, 0.2) !important;
}

.cfr-pill-status {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
}

.cfr-step-pill.active .cfr-pill-status {
    color: #4f46e5 !important;
}

[data-theme="dark"] .cfr-step-pill.active .cfr-pill-status {
    color: #818cf8 !important;
}

.cfr-step-pill.completed .cfr-pill-status {
    color: #059669 !important;
}

.cfr-pill-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

[data-theme="dark"] .cfr-pill-title {
    color: #f1f5f9 !important;
}

/* CAJA DE ESTADO Y TRANSCRIPCIÓN EN VIVO */
.cfr-live-status-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="dark"] .cfr-live-status-box {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.cfr-status-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-bottom: 10px !important;
}

.cfr-status-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

[data-theme="dark"] .cfr-status-indicator {
    color: #f8fafc !important;
}

.cfr-pulse-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #94a3b8 !important;
    display: inline-block !important;
    transition: all 0.3s !important;
}

.cfr-pulse-dot.running {
    background: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3) !important;
    animation: pulseDotAnim 1.6s infinite !important;
}

@keyframes pulseDotAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.cfr-timer-readout {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #4f46e5 !important;
    letter-spacing: 0.5px !important;
}

[data-theme="dark"] .cfr-timer-readout {
    color: #818cf8 !important;
}

.cfr-progress-bar-bg {
    width: 100% !important;
    height: 6px !important;
    background: #e2e8f0 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}

[data-theme="dark"] .cfr-progress-bar-bg {
    background: #1e293b !important;
}

.cfr-progress-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #4f46e5, #06b6d4) !important;
    width: 0% !important;
    border-radius: 9999px !important;
    transition: width 0.4s ease !important;
}

.cfr-voice-transcript {
    font-size: 13px !important;
    color: #334155 !important;
    line-height: 1.55 !important;
    font-style: italic !important;
    background: #f8fafc !important;
    border-left: 3px solid #6366f1 !important;
    padding: 8px 12px !important;
    border-radius: 0 8px 8px 0 !important;
}

[data-theme="dark"] .cfr-voice-transcript {
    color: #cbd5e1 !important;
    background: #1e293b !important;
}

/* Indicadores de Fase (Explicando vs Práctica) y Avisos */
.cfr-phase-indicator {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

.cfr-phase-indicator.explaining {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.cfr-phase-indicator.practicing {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.cfr-phase-indicator.idle {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .cfr-phase-indicator.explaining {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fcd34d !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .cfr-phase-indicator.practicing {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

[data-theme="dark"] .cfr-phase-indicator.idle {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.cfr-waiting-notice {
    margin-top: 8px !important;
    padding: 7px 12px !important;
    background: #ecfdf5 !important;
    border-left: 3px solid #10b981 !important;
    border-radius: 0 6px 6px 0 !important;
    color: #065f46 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

[data-theme="dark"] .cfr-waiting-notice {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #a7f3d0 !important;
    border-color: #10b981 !important;
}

.cfr-step-pill.explaining {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}

[data-theme="dark"] .cfr-step-pill.explaining {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.15) !important;
}

.cfr-step-pill.explaining .cfr-pill-status {
    color: #d97706 !important;
}

.cfr-pulse-dot.running.explaining {
    background: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35) !important;
}

.cfr-pulse-dot.running.practicing {
    background: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35) !important;
}

/* RECURSOS CIENTÍFICOS Y DE APOYO (GRID 4 CARDS) */
.mat-resources-section {
    margin-top: 36px !important;
}

.mat-sec-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
}

[data-theme="dark"] .mat-sec-title {
    color: #f8fafc !important;
}

.mat-sec-subtitle {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 0 20px 0 !important;
}

[data-theme="dark"] .mat-sec-subtitle {
    color: #94a3b8 !important;
}

.mat-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 18px !important;
}

.mat-resource-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.25s ease !important;
}

[data-theme="dark"] .mat-resource-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.mat-resource-card:hover {
    transform: translateY(-3px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
}

.mrc-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.mrc-icon {
    font-size: 20px !important;
}

.mrc-tag {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
}

.mrc-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
}

[data-theme="dark"] .mrc-title {
    color: #f8fafc !important;
}

.mrc-desc {
    font-size: 12.5px !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    margin: 0 0 16px 0 !important;
    flex: 1 !important;
}

[data-theme="dark"] .mrc-desc {
    color: #94a3b8 !important;
}

.mrc-footer {
    margin-top: auto !important;
}

.btn-mrc-download, .btn-mrc-action, .btn-mrc-external {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.btn-mrc-download {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1.5px solid #bfdbfe !important;
}

.btn-mrc-download:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1e40af !important;
}

.btn-mrc-action {
    background: #fdf4ff !important;
    color: #9333ea !important;
    border: 1.5px solid #f0abfc !important;
}

.btn-mrc-action:hover {
    background: #9333ea !important;
    color: #ffffff !important;
    border-color: #7e22ce !important;
}

.btn-mrc-external {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1.5px solid #a7f3d0 !important;
}

.btn-mrc-external:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #047857 !important;
}

/* ============================================================================
   AJUSTE DE FRANJA TOTALMENTE FIJA (FIXED) & BOTÓN INICIO TRAS EL TÍTULO
   ============================================================================ */

body {
    padding-top: 72px !important;
}

.header-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 64px !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 0 20px !important;
    background: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
    box-sizing: border-box !important;
}

[data-theme="dark"] .header-bar {
    background: #0f172a !important;
    border-bottom: 1.5px solid #1e293b !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
}

.header-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

/* 1. TÍTULO E IDENTIDAD PRIMERO */
.active-method-identity {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* 2. BOTÓN DE INICIO JUSTO DESPUÉS DEL TÍTULO */
.btn-header-home {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: 10px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
    white-space: nowrap !important;
}

.btn-header-home:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

[data-theme="dark"] .btn-header-home {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-theme="dark"] .btn-header-home:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

/* 3. NAVEGACIÓN DE SUBGRUPOS CON SEPARADOR */
.header-subtopics-nav {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    padding: 0 12px !important;
    border-left: 1.5px solid #e2e8f0 !important;
    scrollbar-width: none !important;
}

[data-theme="dark"] .header-subtopics-nav {
    border-left-color: #334155 !important;
}

.header-subtopics-nav::-webkit-scrollbar {
    display: none !important;
}

/* Optimización Responsive de la Barra Superior Fija para Dispositivos Móviles */
@media (max-width: 768px) {
    body {
        padding-top: 86px !important;
    }

    .header-bar {
        height: auto !important;
        min-height: 76px !important;
        flex-wrap: wrap !important;
        padding: 6px 12px 4px 12px !important;
        gap: 4px 0 !important;
        align-items: center !important;
    }

    .header-left-group {
        order: 1 !important;
        max-width: calc(100% - 90px) !important;
        gap: 6px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .active-method-identity {
        max-width: calc(100% - 70px) !important;
        overflow: hidden !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    .method-header-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
        border-radius: 6px !important;
    }

    .method-header-text-col {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .method-header-title {
        font-size: 12px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
        line-height: 1.2 !important;
    }

    .method-header-badge {
        font-size: 8.5px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
        line-height: 1.2 !important;
    }

    .btn-header-home {
        padding: 4px 7px !important;
        font-size: 11px !important;
        border-radius: 7px !important;
        flex-shrink: 0 !important;
        gap: 3px !important;
    }

    .header-actions {
        order: 2 !important;
        flex-shrink: 0 !important;
        gap: 6px !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .btn-offline-head {
        padding: 4px 8px !important;
        font-size: 11px !important;
        border-radius: 7px !important;
        height: 28px !important;
    }

    .btn-offline-head span#offline-btn-text {
        display: none !important;
    }

    .btn-icon-head {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
        border-radius: 7px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-subtopics-nav {
        order: 3 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        border-left: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
        padding: 4px 0 2px 0 !important;
        margin: 2px 0 0 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    [data-theme="dark"] .header-subtopics-nav {
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .nav-subtopics-wrapper {
        gap: 5px !important;
        padding-right: 10px !important;
    }

    .subtopic-tab-btn {
        padding: 3px 9px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }
}



/* ==========================================================================
   SUITE COMPLETA DE MATERIAL ADICIONAL MULTIMEDIA & CIENTÍFICO
   ========================================================================== */

/* Contenedor General de la Sección */
.method-additional-material-wrapper {
    margin-top: 50px !important;
    padding-top: 36px !important;
    border-top: 2px dashed #cbd5e1 !important;
}

[data-theme="dark"] .method-additional-material-wrapper {
    border-top-color: #334155 !important;
}

/* Categorías de la Biblioteca de Materiales */
.mat-section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 36px 0 20px 0;
}

.mat-section-divider h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mat-section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #cbd5e1 0%, transparent 100%);
}

[data-theme="dark"] .mat-section-divider::after {
    background: linear-gradient(90deg, #334155 0%, transparent 100%);
}

/* Grilla de Diagramas e Infografías Científicas */
.mat-diagram-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: center;
}

@media (max-width: 900px) {
    .mat-diagram-card {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .mat-diagram-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.diagram-preview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .diagram-preview-box {
    background: #0f172a;
    border-color: #1e293b;
}

.diagram-svg-wrap {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: center;
}

.diagram-svg-wrap svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.06));
}

.diagram-info-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diagram-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    align-self: flex-start;
}

[data-theme="dark"] .diagram-badge {
    background: rgba(129, 140, 248, 0.18);
    color: #a5b4fc;
}

.diagram-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.diagram-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.diagram-keys-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diagram-keys-list li {
    font-size: 12.5px;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.diagram-key-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    margin-top: 5px;
    flex-shrink: 0;
}

/* Grilla de Videos Científicos & Masterclasses */
.mat-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.mat-video-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

[data-theme="dark"] .mat-video-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.mat-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.mat-video-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 52%;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    cursor: pointer;
    overflow: hidden;
}

.mat-video-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    transition: background 0.2s ease;
}

.mat-video-card:hover .mat-video-thumb-overlay {
    background: rgba(15, 23, 42, 0.15);
}

.mat-video-play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.mat-video-card:hover .mat-video-play-btn {
    transform: scale(1.1);
}

.mat-video-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.mat-video-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mat-video-author {
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

[data-theme="dark"] .mat-video-author {
    color: #a5b4fc;
}

.mat-video-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.mat-video-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
}

.btn-video-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-video-watch:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Panel de Neuroacústica Interactiva */
.mat-soundlab-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .mat-soundlab-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.soundlab-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .soundlab-header-row {
    border-bottom-color: #334155;
}

.soundlab-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.soundlab-icon {
    font-size: 24px;
}

.soundlab-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.soundlab-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.soundlab-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.sound-toggle-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[data-theme="dark"] .sound-toggle-btn {
    background: #0f172a;
    border-color: #1e293b;
}

.sound-toggle-btn:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

.sound-toggle-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.sound-btn-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sound-btn-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
}

.sound-btn-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

.sound-toggle-btn.active .sound-btn-badge {
    background: #6366f1;
    color: #ffffff;
}

.sound-btn-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Tarjeta de Herramienta Interactiva */
.mat-tool-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .mat-tool-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(46, 16, 101, 0.4) 100%);
    border-color: rgba(165, 180, 252, 0.2);
}

.tool-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.tool-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-icon {
    font-size: 24px;
}

.tool-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.tool-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .tool-tag {
    color: #a5b4fc;
}

/* Animación Respiratoria Vagal */
.vagal-circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vagal-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 70%);
    border: 3px solid #6366f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 4s ease-in-out, background 0.3s ease;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}

.vagal-circle.inhale {
    transform: scale(1.4);
    border-color: #10b981;
    box-shadow: 0 0 34px rgba(16, 185, 129, 0.45);
}

.vagal-circle.hold {
    transform: scale(1.4);
    border-color: #f59e0b;
    box-shadow: 0 0 34px rgba(245, 158, 11, 0.45);
}

.vagal-circle.exhale {
    transform: scale(0.9);
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.vagal-phase-text {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
}

.vagal-count-text {
    font-size: 22px;
    font-weight: 900;
    color: #6366f1;
    margin-top: 4px;
}

/* ==========================================================================
   ALTO CONTRASTE VISUAL GARANTIZADO (SIN TEXTOS INVISIBLES NI PÁLIDOS)
   ========================================================================== */
/* Entradas y buscadores */
input[type="text"], input[type="search"], select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
}

input[type="text"]::placeholder, input[type="search"]::placeholder, input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

[data-theme="dark"] input[type="text"], [data-theme="dark"] input[type="search"], [data-theme="dark"] select {
    background-color: rgba(15, 23, 42, 0.75) !important;
    color: #f8fafc !important;
    border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] input[type="text"]::placeholder, [data-theme="dark"] input[type="search"]::placeholder, [data-theme="dark"] input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Badges y Pills temáticas en modo claro */
.feat-badge {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    font-weight: 700;
}

[data-theme="dark"] .feat-badge {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

/* Tags de pilares en dimensiones de métodos */
.imm-pillar-tag {
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
}

/* ==========================================================================
   MODAL RANKING DE 9 MÉTODOS CIENTÍFICOS
   ========================================================================== */
.ranking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.ranking-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ranking-modal-container {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-lg, 20px);
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .ranking-modal-container {
    background: #131b2e;
    color: #f1f5f9;
    border-color: #24304f;
}

.ranking-modal-overlay.active .ranking-modal-container {
    transform: scale(1);
}

.ranking-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8fafc;
}

[data-theme="dark"] .ranking-modal-header {
    background: #1a243b;
    border-color: #24304f;
}

.ranking-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.ranking-tag {
    font-size: 11px;
    font-weight: 800;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 2px;
}

[data-theme="dark"] .ranking-tag {
    color: #facc15;
}

.ranking-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a !important;
    line-height: 1.2;
    margin: 0;
}

[data-theme="dark"] .ranking-modal-title {
    color: #f1f5f9 !important;
}

.ranking-modal-close {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid #cbd5e1;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ranking-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

.ranking-modal-intro {
    padding: 14px 24px;
    font-size: 13.5px;
    color: #475569;
    background: rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.5;
}

[data-theme="dark"] .ranking-modal-intro {
    color: #cbd5e1;
    background: rgba(99, 102, 241, 0.12);
    border-color: #24304f;
}

.ranking-cards-list {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranking-item-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .ranking-item-card {
    background: #182238;
    border-color: #2a375a;
}

.ranking-item-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.ranking-item-card.rank-1 {
    border-color: rgba(245, 158, 11, 0.7);
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.25) 0%, #ffffff 100%);
}

[data-theme="dark"] .ranking-item-card.rank-1 {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.12) 0%, #182238 100%);
    border-color: #f59e0b;
}

.ranking-item-card.rank-2 {
    border-color: rgba(148, 163, 184, 0.7);
}

.ranking-item-card.rank-3 {
    border-color: rgba(217, 119, 6, 0.5);
}

.ranking-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ranking-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-pos-pill {
    font-size: 13px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rank-pos-pill.gold {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #f59e0b;
}

.rank-pos-pill.silver {
    background: #f1f5f9;
    color: #334155;
    border: 1.5px solid #94a3b8;
}

.rank-pos-pill.bronze {
    background: #ffedd5;
    color: #9a3412;
    border: 1.5px solid #f97316;
}

.rank-pos-pill.standard {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1.5px solid rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .rank-pos-pill.standard {
    color: #a5b4fc;
}

.rank-score-pill {
    font-size: 12px;
    font-weight: 800;
    color: #059669;
    background: #d1fae5;
    border: 1px solid #34d399;
    padding: 3px 8px;
    border-radius: 6px;
}

[data-theme="dark"] .rank-score-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.rank-time-pill {
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    padding: 3px 8px;
    border-radius: 6px;
}

[data-theme="dark"] .rank-time-pill {
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
}

.ranking-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #0f172a !important;
    margin: 2px 0;
}

[data-theme="dark"] .ranking-item-title {
    color: #ffffff !important;
}

.ranking-item-tagline {
    font-size: 12.5px;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 4px;
}

[data-theme="dark"] .ranking-item-tagline {
    color: #818cf8;
}

.ranking-item-desc {
    font-size: 13.5px;
    color: #334155 !important;
    line-height: 1.55;
    margin: 0;
}

[data-theme="dark"] .ranking-item-desc {
    color: #cbd5e1 !important;
}

.ranking-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
}

[data-theme="dark"] .ranking-item-meta {
    border-color: #24304f;
}

.ranking-item-ideal {
    font-size: 12.5px;
    color: #64748b;
    flex: 1;
    min-width: 240px;
}

[data-theme="dark"] .ranking-item-ideal {
    color: #94a3b8;
}

.ranking-item-ideal strong {
    color: #0f172a;
}

[data-theme="dark"] .ranking-item-ideal strong {
    color: #f1f5f9;
}

.btn-ranking-goto {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-ranking-goto:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.ranking-modal-footer {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

[data-theme="dark"] .ranking-modal-footer {
    background: #1a243b;
    border-color: #24304f;
    color: #cbd5e1;
}

/* Pill clickeable en el hero */
.badge-pill.clickable-ranking-pill {
    cursor: pointer;
    background: rgba(234, 179, 8, 0.25) !important;
    border: 1.5px solid rgba(250, 204, 21, 0.6) !important;
    color: #fef08a !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.25s ease;
}

.badge-pill.clickable-ranking-pill:hover {
    background: rgba(234, 179, 8, 0.45) !important;
    border-color: #facc15 !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(250, 204, 21, 0.35);
}

/* ==========================================================================
   JUEGO: FICHAS DE EL MAPA DE LOS 500 NODOS
   ========================================================================== */
.core-fichas-game-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.94));
    border: 1.5px solid rgba(217, 70, 239, 0.32);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 16px 40px -10px rgba(168, 85, 247, 0.14), 0 0 0 1px rgba(217, 70, 239, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .core-fichas-game-container {
    background: linear-gradient(135deg, #0b0f19, #150f2f);
    border-color: rgba(217, 70, 239, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(217, 70, 239, 0.2);
}

.core-fichas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 1.5px solid rgba(217, 70, 239, 0.15);
    padding-bottom: 18px;
}

.fichas-mode-pill-group {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.05);
    border: 1.5px solid rgba(203, 213, 225, 0.9);
    border-radius: 9999px;
    padding: 4px;
    gap: 4px;
}

[data-theme="dark"] .fichas-mode-pill-group {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(71, 85, 105, 0.8);
}

.fichas-mode-btn {
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    font-size: 12.5px;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fichas-mode-btn:hover {
    color: #d946ef;
}

.fichas-mode-btn.active {
    background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 70, 239, 0.4);
}

/* PESTAÑAS DE CLASIFICACIÓN (Sin Evaluar, Difíciles, Media, Fáciles) */
.core-fichas-tabs-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.core-fichas-tab {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 11px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main, #0f172a);
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .core-fichas-tab {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.core-fichas-tab:hover {
    transform: translateY(-2px);
    border-color: #d946ef;
    box-shadow: 0 6px 16px rgba(217, 70, 239, 0.16);
}

.core-fichas-tab.active {
    background: #ffffff;
    border-color: #d946ef;
    box-shadow: 0 6px 18px rgba(217, 70, 239, 0.28), inset 0 0 0 1px #d946ef;
    color: #a855f7;
}

[data-theme="dark"] .core-fichas-tab.active {
    background: #1e1b4b;
    border-color: #c026d3;
    color: #f5d0fe;
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.35), inset 0 0 0 1px #c026d3;
}

.tab-badge {
    font-size: 11.5px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
    min-width: 26px;
    text-align: center;
}

[data-theme="dark"] .tab-badge {
    background: #334155;
    color: #cbd5e1;
}

.tab-badge.hard {
    background: #fee2e2;
    color: #dc2626;
}

[data-theme="dark"] .tab-badge.hard {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.tab-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

[data-theme="dark"] .tab-badge.medium {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.tab-badge.easy {
    background: #dcfce7;
    color: #16a34a;
}

[data-theme="dark"] .tab-badge.easy {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

/* BARRA DE PROGRESO DE DOMINIO */
.core-fichas-progress-wrap {
    margin-bottom: 22px;
}

.core-fichas-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-muted, #64748b);
    margin-bottom: 8px;
}

.core-fichas-progress-track {
    height: 9px;
    background: rgba(203, 213, 225, 0.5);
    border-radius: 9999px;
    display: flex;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .core-fichas-progress-track {
    background: rgba(51, 65, 85, 0.7);
}

.progress-bar-segment {
    height: 100%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-segment.easy {
    background: linear-gradient(90deg, #10b981, #22c55e);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.progress-bar-segment.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-bar-segment.hard {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ESCENARIO DE LA TARJETA 3D */
.core-card-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    padding: 8px 0 20px 0;
}

.core-flip-card {
    width: 100%;
    max-width: 620px;
    height: 380px;
    position: relative;
    cursor: pointer;
    perspective: 1200px;
    user-select: none;
}

.core-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1);
    transform-style: preserve-3d;
}

.core-flip-card.flipped .core-flip-card-inner {
    transform: rotateY(180deg);
}

.core-card-face {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 24px;
    padding: 26px 28px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 18px 45px -10px rgba(168, 85, 247, 0.16), 0 0 0 1px rgba(217, 70, 239, 0.18);
    background: #ffffff;
    color: var(--text-main, #0f172a);
}

.core-card-front {
    transform: rotateY(0deg);
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    border: 2px solid rgba(217, 70, 239, 0.3);
}

[data-theme="dark"] .core-card-front {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(217, 70, 239, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(217, 70, 239, 0.25);
    color: #f8fafc;
}

.core-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, #fdf4ff 0%, #ffffff 100%);
    border: 2px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 20px 45px -10px rgba(217, 70, 239, 0.24), 0 0 0 1px rgba(168, 85, 247, 0.2);
}

[data-theme="dark"] .core-card-back {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    border-color: rgba(217, 70, 239, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(217, 70, 239, 0.35);
    color: #f8fafc;
}

/* ELEMENTOS DENTRO DE LA TARJETA */
.fichas-card-tag {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(217, 70, 239, 0.12);
    color: #c026d3;
    border: 1px solid rgba(217, 70, 239, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .fichas-card-tag {
    color: #f5d0fe;
    background: rgba(217, 70, 239, 0.2);
}

.fichas-card-icon-wrap {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.16) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.core-flip-card:hover .fichas-card-icon-wrap {
    transform: scale(1.1);
}

.fichas-card-icon-hero {
    font-size: 82px;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.14));
}

.fichas-card-word-hero {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0 6px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

[data-theme="dark"] .fichas-card-word-hero {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

/* PALABRA CLICABLE CON AUDIO */
.fichas-card-word-hero.clickable-audio-word {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 14px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.fichas-card-word-hero.clickable-audio-word:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: scale(1.02);
}

[data-theme="dark"] .fichas-card-word-hero.clickable-audio-word:hover {
    background: rgba(96, 165, 250, 0.15);
}

.word-speaker-mini {
    font-size: 20px;
    opacity: 0.55;
    transition: all 0.2s ease;
}

.clickable-audio-word:hover .word-speaker-mini {
    opacity: 1;
    transform: scale(1.2);
}

.fichas-card-action-hero {
    font-size: 16px;
    font-weight: 800;
    color: #c026d3;
    max-width: 480px;
    margin: 0 auto 6px auto;
    line-height: 1.35;
}

[data-theme="dark"] .fichas-card-action-hero {
    color: #f0abfc;
}

.fichas-card-phrase-hero {
    font-size: 14.5px;
    font-style: italic;
    color: #334155;
    background: rgba(217, 70, 239, 0.07);
    border-left: 3.5px solid #d946ef;
    padding: 8px 16px;
    border-radius: 8px;
    max-width: 480px;
    margin: 4px auto 0 auto;
    line-height: 1.45;
}

[data-theme="dark"] .fichas-card-phrase-hero {
    background: rgba(0, 0, 0, 0.35);
    color: #cbd5e1;
    border-color: #d946ef;
}

/* FRASE CLICABLE CON AUDIO */
.fichas-card-phrase-hero.clickable-audio-phrase {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    user-select: none;
}

.fichas-card-phrase-hero.clickable-audio-phrase:hover {
    background: rgba(217, 70, 239, 0.14);
    border-left-width: 5px;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.12);
}

[data-theme="dark"] .fichas-card-phrase-hero.clickable-audio-phrase:hover {
    background: rgba(217, 70, 239, 0.22);
}

.phrase-speaker-mini {
    font-size: 16px;
    opacity: 0.65;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.clickable-audio-phrase:hover .phrase-speaker-mini {
    opacity: 1;
    transform: scale(1.25);
}

.fichas-tap-hint {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.04);
    padding: 5px 14px;
    border-radius: 9999px;
}

[data-theme="dark"] .fichas-tap-hint {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

/* GRUPO DE BOTONES DE AUDIO: PALABRA / FRASE / TODO */
.fichas-audio-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px auto 10px auto;
    max-width: 100%;
}

.btn-ficha-audio {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    user-select: none;
}

.btn-ficha-audio:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-ficha-audio-word {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-color: #93c5fd;
}

.btn-ficha-audio-word:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.btn-ficha-audio-phrase {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    color: #a21caf;
    border-color: #f0abfc;
}

.btn-ficha-audio-phrase:hover {
    background: #a21caf;
    color: #ffffff;
    border-color: #a21caf;
    box-shadow: 0 4px 14px rgba(162, 28, 175, 0.35);
}

.btn-ficha-audio-all {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border-color: #86efac;
}

.btn-ficha-audio-all:hover {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

[data-theme="dark"] .btn-ficha-audio-word {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.45);
}

[data-theme="dark"] .btn-ficha-audio-word:hover {
    background: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .btn-ficha-audio-phrase {
    background: rgba(192, 38, 211, 0.18);
    color: #f0abfc;
    border-color: rgba(217, 70, 239, 0.45);
}

[data-theme="dark"] .btn-ficha-audio-phrase:hover {
    background: #c026d3;
    color: #ffffff;
}

[data-theme="dark"] .btn-ficha-audio-all {
    background: rgba(22, 163, 74, 0.18);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.45);
}

[data-theme="dark"] .btn-ficha-audio-all:hover {
    background: #16a34a;
    color: #ffffff;
}

/* PULSO ACTIVO AL PRONUNCIAR */
.btn-ficha-audio.is-speaking-active,
.clickable-audio-word.is-speaking-active,
.clickable-audio-phrase.is-speaking-active {
    animation: fichaSpeakingPulse 0.9s infinite alternate;
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.6) !important;
}

@keyframes fichaSpeakingPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.035); }
}

/* BOTONERA Y ACCIONES */
.core-fichas-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin-bottom: 18px;
}

.core-fichas-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .core-fichas-actions-bar {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-card-action.btn-flip {
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 18px rgba(217, 70, 239, 0.35);
}

.btn-card-action.btn-flip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 70, 239, 0.5);
}

.btn-card-action.btn-flip:active {
    transform: translateY(0);
}

.fichas-actions-divider {
    width: 1px;
    height: 38px;
    background: #cbd5e1;
}

[data-theme="dark"] .fichas-actions-divider {
    background: #475569;
}

.fichas-rate-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-rate-card {
    border: none;
    border-radius: 12px;
    padding: 9px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-align: left;
}

.btn-rate-card .rate-text {
    display: flex;
    flex-direction: column;
}

.btn-rate-card .rate-text strong {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
}

.btn-rate-card .rate-text small {
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.9;
}

.btn-rate-card.btn-rate-hard {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.btn-rate-card.btn-rate-hard:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-rate-card.btn-rate-medium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
    border: 1.5px solid #fde68a;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.btn-rate-card.btn-rate-medium:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-rate-card.btn-rate-easy {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 1.5px solid #86efac;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
}

.btn-rate-card.btn-rate-easy:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.fichas-nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-fichas-ctrl {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: var(--text-main, #334155);
    font-size: 12.5px;
    font-weight: 800;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .btn-fichas-ctrl {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.btn-fichas-ctrl:hover {
    border-color: #d946ef;
    color: #d946ef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.2);
}

.core-fichas-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(203, 213, 225, 0.7);
}

[data-theme="dark"] .core-fichas-footer {
    border-color: rgba(51, 65, 85, 0.7);
}

.btn-fichas-reset {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.btn-fichas-reset:hover {
    color: #ef4444;
}

/* Estado de grupo vacío */
.fichas-empty-state {
    padding: 44px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.fichas-empty-icon {
    font-size: 64px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
}

.fichas-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main, #0f172a);
    margin: 0;
}

[data-theme="dark"] .fichas-empty-title {
    color: #ffffff;
}

.fichas-empty-desc {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    max-width: 440px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 640px) {
    /* CONTENEDOR PRINCIPAL: AJUSTE DE PADDING PARA APROVECHAR PANTALLA */
    .core-fichas-game-container {
        padding: 18px 12px !important;
        border-radius: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* HEADER Y SELECTOR DE MODO CON SCROLL HORIZONTAL SI NO CABE */
    .core-fichas-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        padding-bottom: 14px !important;
    }
    .core-fichas-header h3 {
        font-size: 19px !important;
        line-height: 1.25 !important;
    }
    .core-fichas-header p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }
    .core-fichas-mode-selector {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
        scrollbar-width: thin !important;
    }
    .fichas-mode-pill-group {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        min-width: max-content !important;
    }
    .fichas-mode-btn {
        padding: 6px 13px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    /* PESTAÑAS DE CLASIFICACIÓN CON SCROLL HORIZONTAL DE IZQUIERDA A DERECHA */
    .core-fichas-tabs-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding: 2px 2px 8px 2px !important;
        margin-bottom: 16px !important;
        scrollbar-width: thin !important;
        -ms-overflow-style: -ms-autohiding-scrollbar !important;
        width: 100% !important;
    }
    .core-fichas-tabs-bar::-webkit-scrollbar {
        height: 5px !important;
    }
    .core-fichas-tabs-bar::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.05) !important;
        border-radius: 999px !important;
    }
    .core-fichas-tabs-bar::-webkit-scrollbar-thumb {
        background: rgba(217, 70, 239, 0.45) !important;
        border-radius: 999px !important;
    }
    [data-theme="dark"] .core-fichas-tabs-bar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06) !important;
    }
    [data-theme="dark"] .core-fichas-tabs-bar::-webkit-scrollbar-thumb {
        background: rgba(217, 70, 239, 0.6) !important;
    }
    .core-fichas-tab {
        flex: 0 0 auto !important;
        min-width: 122px !important;
        padding: 9px 12px !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
    }
    .core-fichas-tab .tab-label {
        font-size: 12px !important;
    }

    /* BARRA DE PROGRESO */
    .core-fichas-progress-stats {
        flex-wrap: wrap !important;
        gap: 4px !important;
        font-size: 11.5px !important;
    }
    #fichasProgressPercent {
        font-size: 11px !important;
        line-height: 1.35 !important;
        flex: 1 1 100% !important;
    }
    #fichasProgressCurrentIndex {
        font-size: 11.5px !important;
        font-weight: 800 !important;
        color: #c026d3 !important;
    }
    [data-theme="dark"] #fichasProgressCurrentIndex {
        color: #f0abfc !important;
    }

    /* ESCENARIO DE LA TARJETA 3D */
    .core-card-stage {
        padding: 4px 0 16px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .core-flip-card {
        height: 450px !important;
        max-width: 100% !important;
    }
    .core-card-face {
        padding: 16px 14px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        width: 100% !important;
        border-radius: 18px !important;
        justify-content: space-around !important;
    }
    .fichas-card-tag {
        font-size: 10px !important;
        padding: 4px 10px !important;
        max-width: 95% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .fichas-card-icon-wrap {
        width: 86px !important;
        height: 86px !important;
        margin: 4px 0 !important;
    }
    .fichas-card-icon-hero {
        font-size: 58px !important;
    }
    .fichas-card-word-hero {
        font-size: 28px !important;
        margin: 2px 0 4px 0 !important;
        max-width: 100% !important;
        word-break: break-word !important;
    }
    .word-speaker-mini {
        font-size: 16px !important;
    }
    .fichas-card-action-hero {
        font-size: 13.5px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
    }
    .fichas-card-phrase-hero {
        font-size: 12.5px !important;
        padding: 7px 11px !important;
        max-width: 100% !important;
        word-break: break-word !important;
        line-height: 1.35 !important;
    }
    .phrase-speaker-mini {
        font-size: 14px !important;
    }
    .fichas-tap-hint {
        font-size: 10.5px !important;
        padding: 4px 10px !important;
        text-align: center !important;
        white-space: normal !important;
    }

    /* BOTONERA DE AUDIO CON SCROLL HORIZONTAL SI NO CABE */
    .fichas-audio-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 6px !important;
        padding: 4px 2px !important;
        scrollbar-width: none !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .fichas-audio-actions::-webkit-scrollbar {
        display: none !important;
    }
    .btn-ficha-audio {
        flex: 0 0 auto !important;
        padding: 5px 11px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    /* TIP / INSTRUCCIÓN */
    .core-fichas-hint {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
        padding: 6px 10px !important;
    }

    /* BOTONERA DE ACCIÓN */
    .core-fichas-actions-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .btn-card-action.btn-flip {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 13.5px !important;
    }
    .fichas-actions-divider {
        display: none !important;
    }

    /* BOTONES DE CALIFICACIÓN CON SCROLL HORIZONTAL DE IZQUIERDA A DERECHA */
    .fichas-rate-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding: 2px 2px 8px 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        scrollbar-width: thin !important;
        -ms-overflow-style: -ms-autohiding-scrollbar !important;
    }
    .fichas-rate-buttons::-webkit-scrollbar {
        height: 5px !important;
    }
    .fichas-rate-buttons::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.05) !important;
        border-radius: 999px !important;
    }
    .fichas-rate-buttons::-webkit-scrollbar-thumb {
        background: rgba(217, 70, 239, 0.45) !important;
        border-radius: 999px !important;
    }
    [data-theme="dark"] .fichas-rate-buttons::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06) !important;
    }
    [data-theme="dark"] .fichas-rate-buttons::-webkit-scrollbar-thumb {
        background: rgba(217, 70, 239, 0.6) !important;
    }
    .btn-rate-card {
        flex: 1 0 auto !important;
        min-width: 118px !important;
        scroll-snap-align: start !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }
    .btn-rate-card .rate-text strong {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    .btn-rate-card .rate-text small {
        font-size: 9.5px !important;
        white-space: nowrap !important;
    }

    /* CONTROLES DE NAVEGACIÓN AUXILIARES */
    .fichas-nav-controls {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        width: 100% !important;
        justify-content: space-between !important;
        padding: 2px 0 !important;
    }
    .btn-fichas-ctrl {
        flex: 1 1 0 !important;
        min-width: 80px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 8px 6px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    /* PIE DE FICHAS Y ESTADO VACÍO */
    .core-fichas-footer {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        text-align: center !important;
    }
    .fichas-empty-state {
        padding: 28px 12px !important;
    }
    .fichas-empty-title {
        font-size: 19px !important;
    }
    .fichas-empty-desc {
        font-size: 13px !important;
    }
}

@media (max-width: 420px) {
    .core-fichas-game-container {
        padding: 14px 10px !important;
        border-radius: 14px !important;
    }
    .core-flip-card {
        height: 470px !important;
    }
    .fichas-card-word-hero {
        font-size: 25px !important;
    }
    .fichas-card-icon-hero {
        font-size: 52px !important;
    }
    .fichas-card-icon-wrap {
        width: 76px !important;
        height: 76px !important;
    }
    .btn-rate-card {
        min-width: 110px !important;
        padding: 7px 10px !important;
    }
}

/* ============================================================================
   SELECTOR DUAL DE MODO: AUDIO VS VIDEO RUTINA DIARIA (COEXISTENCIA PARALELA)
   ============================================================================ */
.cfr-mode-switch-container {
    margin: 14px 0 16px 0 !important;
    background: rgba(99, 102, 241, 0.06) !important;
    border: 1.5px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
}

[data-theme="dark"] .cfr-mode-switch-container {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

.cfr-mode-tabs {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 8px !important;
}

@media (max-width: 640px) {
    .cfr-mode-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        padding-bottom: 4px !important;
    }
    .btn-cfr-mode-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

.btn-cfr-mode-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    border: 1.5px solid transparent !important;
    background: #ffffff !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="dark"] .btn-cfr-mode-tab {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

.btn-cfr-mode-tab:hover {
    transform: translateY(-1px) !important;
    color: #1e1b4b !important;
    border-color: #818cf8 !important;
}

[data-theme="dark"] .btn-cfr-mode-tab:hover {
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

.btn-cfr-mode-tab.active {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

.btn-cfr-mode-tab.active.video-active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.cfr-mode-desc-note {
    font-size: 12.5px !important;
    color: #64748b !important;
    line-height: 1.45 !important;
}

[data-theme="dark"] .cfr-mode-desc-note {
    color: #94a3b8 !important;
}

.cfr-embedded-video-card {
    background: #090e1a !important;
    border: 1.5px solid #38bdf8 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin: 14px 0 18px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

.cfr-embedded-video-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    background: #111827 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ============================================================================
   BARRA FLOTANTE DE AUDIO RUTINA DIARIA (CONTROLES FIJOS: PAUSAR, SEGUIR, PARAR)
   ============================================================================ */
.cfr-floating-bar {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(140px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s !important;
    width: auto !important;
    max-width: 95vw !important;
    font-family: inherit !important;
}

.cfr-floating-bar.visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.cfr-floating-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 50px !important;
    padding: 8px 18px 8px 14px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(14, 165, 233, 0.25) !important;
    color: #f8fafc !important;
}

[data-theme="light"] .cfr-floating-inner {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), 0 0 20px rgba(99, 102, 241, 0.15) !important;
    color: #0f172a !important;
}

/* En Desktop: .cfr-float-main-row se despliega en horizontal sin añadir contenedor rígido */
.cfr-float-main-row {
    display: contents !important;
}

/* Indicador de onda acústica */
.cfr-float-sound-indicator {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 6px 10px !important;
    background: rgba(30, 41, 59, 0.7) !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .cfr-float-sound-indicator {
    background: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.cfr-float-wave-bars {
    display: flex !important;
    align-items: flex-end !important;
    gap: 3px !important;
    height: 18px !important;
}

.cfr-wave-bar {
    width: 3.5px !important;
    height: 4px !important;
    background: #38bdf8 !important;
    border-radius: 2px !important;
    transition: height 0.2s ease !important;
}

.cfr-float-wave-bars.playing .cfr-wave-bar:nth-child(1) {
    animation: cfrWaveAnim 0.7s infinite alternate ease-in-out !important;
}
.cfr-float-wave-bars.playing .cfr-wave-bar:nth-child(2) {
    animation: cfrWaveAnim 0.5s infinite alternate ease-in-out 0.15s !important;
}
.cfr-float-wave-bars.playing .cfr-wave-bar:nth-child(3) {
    animation: cfrWaveAnim 0.8s infinite alternate ease-in-out 0.3s !important;
}
.cfr-float-wave-bars.playing .cfr-wave-bar:nth-child(4) {
    animation: cfrWaveAnim 0.6s infinite alternate ease-in-out 0.1s !important;
}

@keyframes cfrWaveAnim {
    0% { height: 4px; background: #38bdf8; }
    50% { height: 16px; background: #10b981; }
    100% { height: 8px; background: #6366f1; }
}

/* Información de la rutina */
.cfr-float-info {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    cursor: pointer !important;
    min-width: 190px !important;
    max-width: 290px !important;
    user-select: none !important;
}

.cfr-float-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.cfr-float-method-badge {
    background: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
    color: #ffffff !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.cfr-float-phase-badge {
    padding: 2px 7px !important;
    border-radius: 10px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
}
.cfr-float-phase-badge.practicing {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid #10b981 !important;
    color: #34d399 !important;
}
.cfr-float-phase-badge.explaining {
    background: rgba(147, 51, 234, 0.2) !important;
    border: 1px solid #a855f7 !important;
    color: #c084fc !important;
}
.cfr-float-phase-badge.paused {
    background: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid #f59e0b !important;
    color: #fbbf24 !important;
}

.cfr-float-timer {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    margin-left: auto !important;
}

[data-theme="light"] .cfr-float-timer {
    color: #0284c7 !important;
}

.cfr-float-step-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #e2e8f0 !important;
}

[data-theme="light"] .cfr-float-step-name {
    color: #1e293b !important;
}

.cfr-float-progress-track {
    position: absolute !important;
    bottom: 0 !important;
    left: 24px !important;
    right: 24px !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

[data-theme="light"] .cfr-float-progress-track {
    background: rgba(0, 0, 0, 0.1) !important;
}

.cfr-float-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #38bdf8, #10b981) !important;
    border-radius: 2px !important;
    transition: width 0.3s ease !important;
}

/* Botones flotantes */
.cfr-float-actions {
    order: 4 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Badge prominente del Timer al lado de los botones de acción */
.cfr-float-step-timer-badge {
    order: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    background: rgba(14, 165, 233, 0.12) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.25) !important;
    user-select: none !important;
    transition: all 0.25s ease !important;
}

[data-theme="light"] .cfr-float-step-timer-badge {
    background: rgba(14, 165, 233, 0.08) !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
}

.cfr-float-step-timer-badge.paused {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.cfr-float-step-timer-badge.explaining {
    background: rgba(168, 85, 247, 0.15) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
}

.cfr-float-timer-icon {
    font-size: 14px !important;
    line-height: 1 !important;
}

.cfr-float-timer-content {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.05 !important;
}

.cfr-float-timer-label {
    font-size: 8.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .cfr-float-timer-label {
    color: #64748b !important;
}

.cfr-float-step-timer-digits {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    color: #38bdf8 !important;
    letter-spacing: 0.5px !important;
}

[data-theme="light"] .cfr-float-step-timer-digits {
    color: #0284c7 !important;
}

.cfr-float-step-timer-badge.paused .cfr-float-step-timer-digits {
    color: #fbbf24 !important;
}

.cfr-float-step-timer-badge.explaining .cfr-float-step-timer-digits {
    color: #c084fc !important;
}

/* Ahorro inteligente de espacio: Solo iconos auto-explicativos */
.cfr-float-btn-text {
    display: none !important;
}

.btn-cfr-float {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.cfr-float-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14.5px !important;
    line-height: 1 !important;
}

.btn-cfr-float:hover {
    transform: translateY(-1.5px) scale(1.08) !important;
}

.btn-cfr-float:active {
    transform: translateY(0.5px) scale(0.95) !important;
}

/* Botón Pausar (mientras reproduce) */
.btn-float-playpause.pause-state {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
}
.btn-float-playpause.pause-state:hover {
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6) !important;
}

/* Botón Seguir (mientras está en pausa) */
.btn-float-playpause.resume-state {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
    animation: cfrResumePulse 1.8s infinite alternate !important;
}
@keyframes cfrResumePulse {
    0% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35); }
    100% { box-shadow: 0 4px 22px rgba(16, 185, 129, 0.75); }
}

/* Botón Parar - Máxima visibilidad y contraste */
.btn-float-stop {
    background: #ef4444 !important;
    border: 1.5px solid #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4) !important;
}
.btn-float-stop:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 16px rgba(220, 38, 38, 0.6) !important;
}

/* Botón Siguiente - Máxima visibilidad */
.btn-float-next {
    background: #6366f1 !important;
    border: 1.5px solid #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4) !important;
}
.btn-float-next:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 16px rgba(79, 70, 229, 0.6) !important;
}

/* Botón Subir al Banner */
.btn-float-nav {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
[data-theme="light"] .btn-float-nav {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
    color: #1e293b !important;
}
.btn-float-nav:hover {
    background: #0284c7 !important;
    color: #fff !important;
}

/* Botón Minimizar */
.btn-float-collapse {
    order: 5 !important;
    background: rgba(148, 163, 184, 0.2) !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
    color: #f1f5f9 !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-size: 13px !important;
}
[data-theme="light"] .btn-float-collapse {
    background: rgba(100, 116, 139, 0.12) !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
    color: #334155 !important;
}
.btn-float-collapse:hover {
    background: rgba(148, 163, 184, 0.4) !important;
    color: #fff !important;
}

/* Estado Colapsado / Píldora Compacta */
.cfr-floating-bar.collapsed .cfr-float-info,
.cfr-floating-bar.collapsed .btn-float-next,
.cfr-floating-bar.collapsed .btn-float-nav,
.cfr-floating-bar.collapsed .cfr-float-btn-text,
.cfr-floating-bar.collapsed .cfr-float-timer-label {
    display: none !important;
}

.cfr-floating-bar.collapsed .cfr-floating-inner {
    padding: 6px 14px !important;
    gap: 8px !important;
}

/* ============================================================================
   RESPONSIVIDAD TOTAL: BOTONES VISIBLES, CÓMODOS Y ORDENADOS EN MÓVILES
   ============================================================================ */

/* 1. ADAPTACIÓN DEL BANNER PRINCIPAL DE LA RUTINA EN MÓVILES */
@media (max-width: 768px) {
    .session-coach-card {
        padding: 16px 12px !important;
        margin-bottom: 20px !important;
        border-radius: 16px !important;
    }
    .coach-full-routine-banner {
        padding: 16px 12px !important;
        margin: 14px 0 18px 0 !important;
        border-radius: 16px !important;
        overflow: visible !important;
    }
    .cfr-badge-row {
        gap: 6px !important;
    }
    .cfr-tag,
    .cfr-time-badge,
    .cfr-video-badge {
        font-size: 11px !important;
        padding: 3px 9px !important;
    }
    .cfr-title {
        font-size: 1.25rem !important;
    }

    /* Pestañas de Modo Audio vs Video en Móvil */
    .cfr-mode-switch-container {
        padding: 12px 10px !important;
        margin: 10px 0 14px 0 !important;
    }
    .cfr-mode-tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .btn-cfr-mode-tab {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        padding: 11px 14px !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
    }

    /* Fila de Controles y Botones del Banner en Móvil */
    .cfr-controls-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .cfr-week-selector-wrap {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }
    .cfr-week-select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 12px !important;
        font-size: 13.5px !important;
    }

    /* Grupo de Botones de Acción del Banner */
    .cfr-btn-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 9px !important;
    }
    .btn-cfr-play {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 13px 14px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        text-align: center !important;
        box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    }
    .btn-cfr-video {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 14px !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        text-align: center !important;
        background: linear-gradient(135deg, #0284c7, #2563eb) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
    }
    .btn-cfr-speed {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 12px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }
    .btn-cfr-stop {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 12px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    /* Barra Flotante en Móviles - Adaptación total a la pantalla sin desbordamiento */
    .cfr-floating-bar {
        bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
        left: 8px !important;
        right: 8px !important;
        transform: translateY(200px) !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        margin: 0 !important;
    }
    .cfr-floating-bar.visible {
        transform: translateY(0) !important;
    }
    .cfr-floating-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px 10px 12px !important;
        border-radius: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(14, 165, 233, 0.25) !important;
    }

    /* Fila 1: Ondas + Info del paso actual + Timer Badge + Minimizar */
    .cfr-float-main-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        order: 1 !important;
    }
    .cfr-float-sound-indicator {
        order: 1 !important;
        padding: 4px 6px !important;
        gap: 3px !important;
        flex-shrink: 0 !important;
    }
    .cfr-wave-bar {
        width: 2.5px !important;
        height: 12px !important;
    }
    .cfr-float-info {
        order: 2 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
        gap: 1px !important;
    }
    .cfr-float-title-row {
        gap: 5px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }
    .cfr-float-method-badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .cfr-float-phase-badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .cfr-float-step-name {
        font-size: 11.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }
    .cfr-float-step-timer-badge {
        order: 3 !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 4px 8px !important;
        border-radius: 10px !important;
    }
    .cfr-float-timer-icon {
        font-size: 12px !important;
    }
    .cfr-float-timer-label {
        display: none !important;
    }
    .cfr-float-step-timer-digits {
        font-size: 13px !important;
        letter-spacing: 0.3px !important;
    }
    .btn-float-collapse {
        order: 4 !important;
        flex-shrink: 0 !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        border-radius: 50% !important;
    }

    /* Track de Progreso en Móvil */
    .cfr-float-progress-track {
        position: static !important;
        order: 2 !important;
        width: 100% !important;
        height: 3px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Fila 2: Botones de Acción (Pausar, Siguiente, Parar, Fases) distribuidos al 100% */
    .cfr-float-actions {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .cfr-float-actions .btn-cfr-float {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        height: 38px !important;
        border-radius: 10px !important;
        padding: 0 6px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        box-sizing: border-box !important;
        flex-shrink: 1 !important;
    }
    .btn-float-playpause {
        flex: 1.3 1 0 !important;
        min-width: 0 !important;
    }
    .btn-float-next {
        flex: 1.1 1 0 !important;
        min-width: 0 !important;
    }
    .btn-float-stop {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    .btn-float-nav {
        flex: 0.9 1 0 !important;
        min-width: 0 !important;
        display: inline-flex !important;
    }
    .cfr-float-btn-text {
        display: inline !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
    .cfr-float-btn-icon {
        font-size: 13px !important;
    }

    /* Estado colapsado en Móvil */
    .cfr-floating-bar.collapsed {
        left: auto !important;
        right: 12px !important;
        width: auto !important;
        max-width: 85vw !important;
        bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    }
    .cfr-floating-bar.collapsed .cfr-floating-inner {
        flex-direction: row !important;
        align-items: center !important;
        padding: 6px 12px !important;
        border-radius: 25px !important;
        gap: 6px !important;
        width: auto !important;
    }
    .cfr-floating-bar.collapsed .cfr-float-actions,
    .cfr-floating-bar.collapsed .cfr-float-progress-track,
    .cfr-floating-bar.collapsed .cfr-float-info {
        display: none !important;
    }
}

/* 2. PANTALLAS COMPACTAS (SMARTPHONES <= 540px) */
@media (max-width: 540px) {
    .cfr-floating-inner {
        padding: 8px 10px !important;
        gap: 6px !important;
        border-radius: 16px !important;
    }
    .cfr-float-actions .btn-cfr-float {
        height: 36px !important;
        gap: 4px !important;
        padding: 0 4px !important;
        font-size: 11.5px !important;
        border-radius: 9px !important;
    }
    .cfr-float-btn-text {
        font-size: 11px !important;
    }
    .cfr-float-step-name {
        font-size: 11px !important;
    }
    .cfr-float-step-timer-badge {
        padding: 3px 6px !important;
    }
    .cfr-float-step-timer-digits {
        font-size: 12px !important;
    }
}

/* 3. TELÉFONOS MUY ESTRECHOS (iPhone SE, Galaxy Mini <= 380px) */
@media (max-width: 380px) {
    .cfr-floating-bar {
        left: 4px !important;
        right: 4px !important;
        max-width: calc(100vw - 8px) !important;
    }
    .cfr-floating-inner {
        padding: 7px 8px !important;
        gap: 5px !important;
    }
    .cfr-float-sound-indicator {
        display: none !important;
    }
    .cfr-float-actions {
        gap: 4px !important;
    }
    .cfr-float-actions .btn-cfr-float {
        height: 34px !important;
        gap: 2px !important;
        padding: 0 3px !important;
        font-size: 11px !important;
    }
    .cfr-float-btn-text {
        font-size: 10px !important;
    }
    .cfr-float-btn-icon {
        font-size: 12px !important;
    }
    .cfr-float-step-timer-digits {
        font-size: 11.5px !important;
    }
}

/* ==========================================================================
   INTERACCIÓN Y SALTO A ACTIVIDADES (MODAL Y BARRA FLOTANTE)
   ========================================================================== */
.cfr-active-activity-target {
    position: relative !important;
    border-radius: 16px !important;
    animation: cfrTargetPulseGlow 3.5s cubic-bezier(0.16, 1, 0.3, 1) 1 !important;
    box-shadow: 0 0 0 4px #10b981, 0 12px 35px rgba(16, 185, 129, 0.45) !important;
    z-index: 5 !important;
}

@keyframes cfrTargetPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.95), 0 0 30px rgba(16, 185, 129, 0.8);
        transform: scale(1.018);
    }
    25% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.7), 0 0 45px rgba(16, 185, 129, 0.6);
        transform: scale(1.01);
    }
    60% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.4), 0 0 25px rgba(16, 185, 129, 0.35);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 4px 15px rgba(0, 0, 0, 0.12);
        transform: scale(1);
    }
}

.btn-video-go-activity {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-video-go-activity:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55) !important;
}
.btn-video-go-activity:active {
    transform: translateY(0) scale(0.98) !important;
}

.btn-cfr-activity {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.2s ease !important;
}
.btn-cfr-activity:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, #047857, #059669) !important;
}
.btn-cfr-activity:active {
    transform: translateY(0) scale(0.98) !important;
}

/* ============================================================================
   RESALTADO Y ENFOQUE AUTOMÁTICO DE EJERCICIO ACTIVO EN RUTINA DIARIA
   ============================================================================ */
.cfr-active-exercise-highlight {
    position: relative !important;
    animation: cfrExercisePulse 2.4s infinite ease-in-out !important;
    border-radius: 16px !important;
    scroll-margin-top: 110px !important;
    scroll-margin-bottom: 120px !important;
}

@keyframes cfrExercisePulse {
    0% {
        box-shadow: 0 0 0 3px #6366f1, 0 8px 30px rgba(99, 102, 241, 0.35);
        outline: 2px solid rgba(99, 102, 241, 0.6);
        outline-offset: 4px;
    }
    50% {
        box-shadow: 0 0 0 6px #818cf8, 0 16px 45px rgba(99, 102, 241, 0.55);
        outline: 2px solid rgba(129, 140, 248, 0.9);
        outline-offset: 7px;
    }
    100% {
        box-shadow: 0 0 0 3px #6366f1, 0 8px 30px rgba(99, 102, 241, 0.35);
        outline: 2px solid rgba(99, 102, 241, 0.6);
        outline-offset: 4px;
    }
}

.cfr-exercise-active-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border: 1.5px solid #818cf8;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    animation: cfrBannerSlideIn 0.4s ease-out;
}

@keyframes cfrBannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cfr-exercise-active-banner .cfr-eab-badge {
    background: #4f46e5;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cfr-exercise-active-banner .cfr-eab-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #e0e7ff;
    flex: 1;
}

.cfr-exercise-active-banner .cfr-eab-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 900;
    color: #38bdf8;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   SISTEMA DE VISUALIZACIÓN: SWICHE TODO / RESUMEN
   "si es todo, es lo que hoy muestra; si es resumen, solo las secciones
   que se necesitan para ejecutar el metodo, nada de teoria, ni infografias,
   ni material adicional"
   ========================================================================== */

/* 1. Swiche en la Cabecera Fija */
.header-switch-todo-resumen {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    background: #e2e8f0 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9999px !important;
    padding: 2px !important;
    cursor: pointer !important;
    user-select: none !important;
    margin-right: 2px !important;
    transition: all 0.2s ease !important;
}

[data-theme="dark"] .header-switch-todo-resumen {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.hdr-switch-opt {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: color 0.2s ease !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

[data-theme="dark"] .hdr-switch-opt {
    color: #94a3b8 !important;
}

.hdr-switch-opt.active {
    color: #ffffff !important;
}

.hdr-switch-slider {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: calc(50% - 2px) !important;
    height: calc(100% - 4px) !important;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.header-switch-todo-resumen.is-summary .hdr-switch-slider {
    transform: translateX(100%) !important;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45) !important;
}

/* 2. Swiche en Cada Tarjeta Hero de los Métodos */
.method-view-switch-bar {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.mv-switch-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.mv-switch-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #e0e7ff !important;
}

.mv-switch-sub {
    font-size: 12.5px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    line-height: 1.3 !important;
}

.switch-todo-resumen {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 9999px !important;
    padding: 4px !important;
    cursor: pointer !important;
    user-select: none !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.switch-opt {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
}

.switch-opt.active {
    color: #0f172a !important;
}

.switch-slider-thumb {
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    width: calc(50% - 4px) !important;
    height: calc(100% - 8px) !important;
    background: #ffffff !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.switch-todo-resumen.is-summary .switch-slider-thumb {
    transform: translateX(100%) !important;
    background: linear-gradient(135deg, #facc15 0%, #fbbf24 100%) !important;
}

/* 3. Banner Informativo cuando Resumen está Activo */
.resumen-active-notice {
    display: none !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 14px !important;
    background: rgba(16, 185, 129, 0.22) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    animation: ranFadeIn 0.3s ease-out !important;
}

.ran-badge {
    background: #10b981 !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

@keyframes ranFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. REGLAS ESTRICTAS DEL MODO RESUMEN:
   "si es resumen, solo las secciones que se necesitan para ejecutar el metodo,
   nada de teoria, ni infografias, ni material adicional; mostrando obviamente
   el Entrenador de Sesión Diaria"
   ========================================================================== */
body.mode-summary .method-visual-guide-card,
body.mode-summary .mat-hero-card,
body.mode-summary .mat-section-divider,
body.mode-summary .mat-diagram-card,
body.mode-summary .mat-tool-card,
body.mode-summary .mat-videos-grid,
body.mode-summary .mat-soundlab-card,
body.mode-summary .mat-cards-grid,
body.mode-summary .diagram-preview-box,
body.mode-summary .diagram-svg-wrap,
body.mode-summary .diagram-info-col,
body.mode-summary .omega-manifesto-card,
body.mode-summary #omegaSecManifesto,
body.mode-summary .mvg-diagram-flow,
body.mode-summary .mvg-header,
body.mode-summary .omega-diagram-wrap,
body.mode-summary .omega-diagram-caption,
body.mode-summary .fmm-desc {
    display: none !important;
}

/* El Entrenador de Sesión Diaria (Audio-Coach con Música Barroca 60 BPM) se muestra en Resumen */
body.mode-summary .method-additional-material-wrapper {
    display: block !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

body.mode-summary .session-coach-card {
    display: block !important;
    margin-top: 8px !important;
    margin-bottom: 24px !important;
}

body.mode-summary .resumen-active-notice {
    display: flex !important;
}

/* Responsividad en Móviles */
@media (max-width: 768px) {
    .method-view-switch-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .switch-todo-resumen {
        width: 100% !important;
        display: flex !important;
    }

    .switch-opt {
        flex: 1 1 50% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
    }

    .header-switch-todo-resumen {
        padding: 1.5px !important;
    }

    .hdr-switch-opt {
        padding: 3px 7px !important;
        font-size: 10px !important;
    }

    .resumen-active-notice {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
}

/* ==========================================================================
   BARRA DE ACCESO RÁPIDO AL ENTRENADOR DIARIO EN EL PLAN DE ESTUDIO
   ========================================================================== */
.msp-routine-quick-bar {
    margin-top: 14px !important;
    margin-bottom: 16px !important;
    padding: 12px 16px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="dark"] .msp-routine-quick-bar {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.mrqb-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.mrqb-icon {
    font-size: 22px !important;
    line-height: 1 !important;
}

.mrqb-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.mrqb-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
}

[data-theme="dark"] .mrqb-title {
    color: #ffffff !important;
}

.mrqb-sub {
    font-size: 12px !important;
    color: #64748b !important;
}

[data-theme="dark"] .mrqb-sub {
    color: #94a3b8 !important;
}

.mrqb-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.btn-plan-quick-audio {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 9px 16px !important;
    border-radius: 9999px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-plan-quick-audio:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4) !important;
}

.btn-plan-quick-video {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 9px 16px !important;
    border-radius: 9999px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-plan-quick-video:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4) !important;
}

@media (max-width: 768px) {
    .msp-routine-quick-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .mrqb-actions {
        width: 100% !important;
        flex-direction: column !important;
    }
    .btn-plan-quick-audio,
    .btn-plan-quick-video {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }
}



/* ======================================================================
   SISTEMA DE GESTIÓN DE USUARIOS Y AVANCES (JuanLoa)
   ====================================================================== */

.btn-header-user-progress {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-align: left;
}

.btn-header-user-progress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    filter: brightness(1.08);
}

.uprog-avatar {
    font-size: 18px;
    line-height: 1;
}

.uprog-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.uprog-alias {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.uprog-badge {
    font-size: 10px;
    font-weight: 700;
    color: #bae6fd;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Tarjeta Hero en la pestaña de Inicio */
.user-home-progress-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #1e293b 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.uhp-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.uhp-user-col {
    display: flex;
    align-items: center;
    gap: 14px;
}

.uhp-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.uhp-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

.uhp-greeting {
    font-size: 16px;
    color: #f8fafc;
}

.uhp-greeting strong {
    color: #38bdf8;
    font-weight: 800;
}

.uhp-sub {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.uhp-tag {
    color: #f1f5f9;
    font-weight: 700;
}

.uhp-role {
    color: #a5b4fc;
    font-weight: 700;
}

.uhp-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uhp-metric-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.uhp-metric-val {
    font-size: 15px;
    font-weight: 900;
    color: #f8fafc;
}

.uhp-metric-lbl {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.uhp-active-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
}

.uhp-ab-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.uhp-ab-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.uhp-ab-desc {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 680px;
}

.uhp-ab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-uhp-continue {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    transition: transform 0.15s ease;
}

.btn-uhp-continue:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-uhp-view-all {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-uhp-view-all:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Dashboard de Avances de Usuario */
.user-progress-dashboard-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.uprog-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c4a6e 100%);
    border-radius: 24px;
    padding: 32px;
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.3);
    border: 1.5px solid rgba(56, 189, 248, 0.25);
}

.uprog-hero-main {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.uprog-big-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
    flex-shrink: 0;
}

.uprog-hero-details {
    flex: 1;
}

.uprog-hero-top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.uprog-pill-role {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38bdf8;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.uprog-pill-status {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.uprog-user-fullname {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.uprog-user-id-row {
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.uprog-user-id-row code {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    color: #38bdf8;
    font-weight: 700;
}

.uprog-user-desc {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 800px;
}

.uprog-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.uprog-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.usc-icon {
    font-size: 26px;
}

.usc-data {
    display: flex;
    flex-direction: column;
}

.usc-value {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
}

.usc-label {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
}

/* Callout Card */
.uprog-callout-card {
    background: #ffffff;
    border: 2px solid #0284c7;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.ucc-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.ucc-sub {
    margin: 0;
    font-size: 14px;
    color: #475569;
    max-width: 680px;
    line-height: 1.5;
}

.ucc-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-ucc-play {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: transform 0.15s ease;
}

.btn-ucc-play:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-ucc-test {
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-ucc-test:hover {
    background: #e2e8f0;
}

/* Sección de Bloques */
.uprog-section-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.uprog-sec-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.uprog-sec-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.uprog-sec-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.uprog-count-badge {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

/* Grid de Métodos */
.uprog-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.uprog-method-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s ease;
}

.uprog-method-card.featured {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

.umc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.umc-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.umc-icon {
    font-size: 24px;
}

.umc-name {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.umc-badge {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
}

.umc-week-pill {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.25);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.umc-progress-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.umc-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.umc-cur-name {
    color: #0369a1;
}

.umc-percent {
    color: #64748b;
}

.umc-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.umc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.umc-meta-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
}

.umc-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-umc-enter {
    flex: 1;
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-umc-enter:hover {
    background: #0369a1;
}

.btn-umc-advance {
    background: #e2e8f0;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-umc-advance:hover {
    background: #cbd5e1;
}

/* Tabla de Historial */
.uprog-table-wrap {
    overflow-x: auto;
}

.uprog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.uprog-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    padding: 12px 14px;
    border-bottom: 2px solid #cbd5e1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uprog-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.uprog-history-row:hover td {
    background: #f8fafc;
}

.uh-date {
    color: #1e293b;
    white-space: nowrap;
}

.uh-tag-method {
    background: rgba(2, 132, 199, 0.1);
    color: #0369a1;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    white-space: nowrap;
}

.uh-badge-type {
    font-weight: 700;
    color: #334155;
}

.uh-duration {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.uh-badge-status {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid #10b981;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.btn-uh-clear {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-uh-clear:hover {
    background: #e2e8f0;
}

/* User Mgmt Card */
.uprog-user-mgmt-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 20px;
}

.uum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.uum-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.uum-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.uum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.uum-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
}

.uum-item label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.uum-item strong, .uum-item code {
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
}

.uum-note {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* ======================================================================
   ESTILOS COMPLETOS DEL SISTEMA DE FICHAS, AUTENTICACIÓN, INACTIVIDAD Y CRUD
   ====================================================================== */

.user-fichas-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 80px;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

/* Ficha Maestra Superior */
.user-profile-master-ficha {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 28px;
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.upmf-user-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.upmf-avatar-frame {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
    flex-shrink: 0;
}

.upmf-avatar {
    font-size: 34px;
}

.upmf-status-ring {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid #0f172a;
    border-radius: 50%;
}

.upmf-role-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 6px;
}

.upmf-fullname {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.upmf-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.upmf-id-badge {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    color: #cbd5e1;
}

.upmf-id-badge code {
    color: #38bdf8;
    font-family: monospace;
    font-weight: 700;
}

.upmf-timeout-badge {
    font-size: 11px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.upmf-admin-badge {
    font-size: 11px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
}

/* 4 Fichas Resumen */
.upmf-stats-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.stat-ficha {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-ficha:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-ficha.active-border {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.08);
}

.sf-icon {
    font-size: 26px;
}

.sf-content {
    display: flex;
    flex-direction: column;
}

.sf-content strong {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.sf-content span {
    font-size: 11.5px;
    color: #94a3b8;
}

/* Barra de Pestañas de Grupos y Fichas */
.user-fichas-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.user-fichas-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #475569;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-fichas-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.user-fichas-tab.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.user-fichas-tab.admin-tab {
    border: 1px dashed #cbd5e1;
    background: #fdf2f8;
    color: #9d174d;
}

.user-fichas-tab.admin-tab:hover {
    background: #fce7f3;
}

.user-fichas-tab.admin-tab.active {
    background: #831843;
    border-color: #f43f5e;
    color: #ffffff;
}

.uft-icon {
    font-size: 16px;
}

.uft-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
}

.user-fichas-tab.active .uft-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.uft-badge.highlight {
    background: #06b6d4;
    color: #ffffff;
}

.uft-badge.admin-count {
    background: #f43f5e;
    color: #ffffff;
}

/* Paneles */
.user-fichas-panel {
    display: none;
}

.user-fichas-panel.active {
    display: block;
    animation: ufFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ufFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-section-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.psi-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.psi-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.psi-counter {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Cuadrícula de 8 Fichas de Métodos */
.user-methods-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.user-method-ficha-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    border: 1.5px solid #e2e8f0;
    border-top: 5px solid var(--method-accent, #06b6d4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-method-ficha-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.user-method-ficha-card.highlight-active-method {
    border-color: #06b6d4;
    box-shadow: 0 8px 26px rgba(6, 182, 212, 0.15);
}

.umf-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.umf-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.umf-title-group {
    flex: 1;
}

.umf-badge-top {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.umf-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.umf-status-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
}

.umf-status-pill.status-active {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #06b6d4;
}

/* Ficha de Fase Actual */
.umf-current-phase-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.umf-cp-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.umf-cp-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.umf-cp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #475569;
    margin-bottom: 6px;
}

.umf-progress-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.umf-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Píldoras de semanas */
.umf-weeks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.mficha-week-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.mficha-week-pill.completed {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.mficha-week-pill.active {
    background: #ecfeff;
    color: #0891b2;
    border: 1.5px solid #06b6d4;
    font-weight: 800;
}

.mficha-week-pill.pending {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* Estadísticas de Ficha */
.umf-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.umfs-val {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.umfs-lbl {
    font-size: 10px;
    color: #64748b;
}

/* Botones de acción */
.umf-actions-bar {
    display: flex;
    gap: 8px;
}

.btn-umf-train {
    flex: 2;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-umf-train:hover {
    background: #1e293b;
}

.btn-umf-advance {
    flex: 1;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 10px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-umf-advance:hover {
    background: #e2e8f0;
}

/* Panel 2: Ficha de Rutina Activa */
.user-active-routine-ficha {
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
    border: 2px solid #06b6d4;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.12);
}

.uarf-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0891b2;
    margin-bottom: 8px;
}

.uarf-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.uarf-desc {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 0 24px 0;
}

.uarf-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-uarf-play {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

.btn-uarf-video {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn-uarf-sim {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

/* Panel 3: Fichas de Historial */
.user-history-fichas-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-session-ficha {
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.usf-type-icon {
    font-size: 28px;
}

.usf-main-col {
    flex: 1;
}

.usf-header-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.usf-type-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.usf-type-badge.type-audio {
    background: #ecfeff;
    color: #0891b2;
}

.usf-type-badge.type-video {
    background: #fef3c7;
    color: #d97706;
}

.usf-method-tag {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.usf-week-tag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

.usf-date {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

.usf-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.usf-notes {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.usf-stats-col {
    text-align: right;
}

.usf-duration {
    font-size: 14px;
    font-weight: 800;
    color: #059669;
}

.usf-status {
    font-size: 11px;
    color: #64748b;
}

.btn-reset-history-demo {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* Panel 4: Ficha de Alumno / Cuenta */
.user-account-ficha-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.uaf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.uaf-icon {
    font-size: 36px;
}

.uaf-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.uaf-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.btn-uaf-logout {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-uaf-logout:hover {
    background: #fecaca;
    color: #991b1b;
}

.uaf-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.uaf-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

.uaf-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.uaf-val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.uaf-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 800;
    color: #0284c7;
}

.uaf-admin-callout {
    background: #fdf2f8;
    border: 1.5px solid #fbcfe8;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.uac-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uac-icon {
    font-size: 26px;
}

.uac-info strong {
    display: block;
    font-size: 14.5px;
    color: #831843;
    margin-bottom: 2px;
}

.uac-info p {
    font-size: 12.5px;
    color: #9d174d;
    margin: 0;
}

.btn-uac-goto {
    background: #831843;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.uaf-footer-note {
    font-size: 12.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid #06b6d4;
    line-height: 1.5;
}

/* ======================================================================
   PANEL 5: GESTIÓN DE USUARIOS (CRUD EXCLUSIVO JUANLOA)
   ====================================================================== */

.admin-panel-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 26px 30px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    border: 1.5px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.aph-info {
    flex: 1;
    min-width: 280px;
}

.aph-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fda4af;
    margin-bottom: 6px;
}

.aph-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.aph-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.btn-aph-create-user {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-aph-create-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.5);
}

.admin-users-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.admin-user-ficha-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid #e2e8f0;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-user-ficha-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07);
}

.admin-user-ficha-card.main-admin-card {
    border-color: #f43f5e;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 40%);
}

.admin-user-ficha-card.active-session-card {
    border-color: #06b6d4;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
}

.auf-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
}

.auf-avatar-frame {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.auf-title-block {
    flex: 1;
}

.auf-role-badge {
    font-size: 10px;
    font-weight: 800;
    color: #e11d48;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.auf-fullname {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.auf-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.auf-tag {
    font-size: 11px;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 5px;
    color: #475569;
}

.auf-tag code {
    color: #0284c7;
    font-weight: 700;
}

.auf-active-tag {
    font-size: 10px;
    font-weight: 800;
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #06b6d4;
    padding: 2px 8px;
    border-radius: 9999px;
    position: absolute;
    top: 0;
    right: 0;
}

.auf-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.aufs-num {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
}

.aufs-lbl {
    font-size: 10px;
    color: #64748b;
}

.auf-actions-bar {
    display: flex;
    gap: 8px;
}

.btn-auf-edit {
    flex: 1;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 9px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auf-edit:hover {
    background: #e2e8f0;
}

.btn-auf-switch {
    flex: 1.5;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 9px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auf-switch:hover {
    background: #1e293b;
}

.btn-auf-delete {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 9px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auf-delete:hover {
    background: #fecaca;
}

.btn-auf-delete.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Modal CRUD Crear/Modificar Usuario */
.supera-crud-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.supera-crud-modal-overlay.visible {
    opacity: 1;
}

.supera-crud-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1.5px solid #e2e8f0;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', system-ui, sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.supera-crud-modal-overlay.visible .supera-crud-card {
    transform: translateY(0) scale(1);
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sc-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-icon {
    font-size: 32px;
}

.sc-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sc-sub {
    font-size: 12.5px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.btn-sc-close {
    background: #f1f5f9;
    border: none;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
}

.sc-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.sc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-label {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}

.sc-input,
.sc-select {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-size: 13.5px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-input:focus,
.sc-select:focus {
    border-color: #06b6d4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.sc-input:disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.avatar-choices-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-choice-pill {
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-choice-pill:hover {
    border-color: #06b6d4;
    transform: scale(1.1);
}

.avatar-choice-pill.selected {
    border-color: #06b6d4;
    background: #ecfeff;
    box-shadow: 0 0 0 2px #06b6d4;
}

.sc-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-sc-save {
    flex: 2;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sc-save:hover {
    background: #1e293b;
}

.btn-sc-cancel {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Ficha de Sesión Bloqueada (Invitado / Cerrado) */
.user-locked-session-card {
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px 24px;
    max-width: 580px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ulsc-icon {
    font-size: 54px;
    display: block;
    margin-bottom: 16px;
}

.user-locked-session-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.user-locked-session-card p {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.ulsc-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-ulsc-login {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.btn-ulsc-home {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.ulsc-note {
    font-size: 12px;
    color: #94a3b8;
}

/* ======================================================================
   BOTÓN EN CABECERA Y BOTÓN DE SALIR
   ====================================================================== */

.header-user-badge-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-header-user-progress,
.btn-header-user-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header-user-progress:hover,
.btn-header-user-login:hover {
    border-color: #06b6d4;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

.uprog-avatar {
    font-size: 18px;
}

.uprog-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.uprog-alias {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.uprog-badge {
    font-size: 9.5px;
    font-weight: 700;
    color: #0284c7;
}

.btn-header-logout {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header-logout:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Home Card */
.user-home-progress-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-home-progress-card.guest-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.btn-uhp-login-now {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.uhp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.uhp-user-col {
    display: flex;
    align-items: center;
    gap: 14px;
}

.uhp-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uhp-avatar {
    font-size: 24px;
}

.uhp-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

.uhp-greeting {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.uhp-sub {
    font-size: 12px;
    color: #94a3b8;
}

.uhp-tag {
    color: #38bdf8;
    font-weight: 700;
}

.uhp-role {
    color: #cbd5e1;
}

.uhp-timeout-tag {
    color: #fbbf24;
    font-weight: 700;
}

.uhp-metrics-row {
    display: flex;
    gap: 12px;
}

.uhp-metric-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 14px;
    border-radius: 10px;
    text-align: center;
}

.uhp-metric-val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.uhp-metric-lbl {
    font-size: 10px;
    color: #94a3b8;
}

.uhp-active-banner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.uhp-ab-info {
    flex: 1;
    min-width: 260px;
}

.uhp-ab-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.uhp-ab-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0;
}

.uhp-ab-desc {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.uhp-ab-actions {
    display: flex;
    gap: 10px;
}

.btn-uhp-continue {
    background: #06b6d4;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.btn-uhp-view-all {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* ======================================================================
   MODAL DE LOGIN MODERNO & TOAST DE INACTIVIDAD
   ====================================================================== */

.supera-login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.supera-login-modal-overlay.visible {
    opacity: 1;
}

.supera-login-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 460px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1.5px solid #e2e8f0;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', system-ui, sans-serif;
}

.supera-login-modal-overlay.visible .supera-login-card {
    transform: translateY(0) scale(1);
}

.slc-header {
    text-align: center;
    margin-bottom: 20px;
}

.slc-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.slc-logo-icon {
    font-size: 16px;
}

.slc-logo-badge {
    font-size: 11px;
    font-weight: 800;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slc-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.slc-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.slc-reason-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 12.5px;
    line-height: 1.4;
}

.slc-reason-banner.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.slc-reason-banner.info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.slc-reason-banner.welcome {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.srb-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.slc-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.slc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.slc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slc-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #334155;
}

.btn-toggle-login-pass {
    background: transparent;
    border: none;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.slc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.slc-input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.slc-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.slc-input:focus {
    border-color: #06b6d4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.btn-slc-submit {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-slc-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-slc-submit:active {
    transform: translateY(0);
}

.slc-quick-access-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.sqab-tag {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.btn-slc-quick-demo {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.btn-slc-quick-demo:hover {
    border-color: #06b6d4;
    background: #ecfeff;
}

.sqd-avatar {
    font-size: 20px;
}

.sqd-info {
    flex: 1;
}

.sqd-info strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.sqd-info span {
    display: block;
    font-size: 11px;
    color: #64748b;
}

.sqd-arrow {
    font-size: 16px;
    color: #06b6d4;
    font-weight: 800;
}

.slc-footer-note {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

/* Toast de Inactividad (Faltando 2 minutos) */
.supera-inactivity-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 99999;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-width: 90%;
}

.supera-inactivity-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.sit-content {
    background: #0f172a;
    color: #ffffff;
    border-radius: 9999px;
    padding: 10px 18px 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    cursor: pointer;
    font-family: 'Outfit', system-ui, sans-serif;
}

.sit-icon {
    font-size: 22px;
    animation: sitPulse 1s infinite alternate;
}

@keyframes sitPulse {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.sit-info strong {
    display: block;
    font-size: 13px;
    color: #fbbf24;
}

.sit-info span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.btn-sit-keep-alive {
    background: #06b6d4;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sit-keep-alive:hover {
    background: #0891b2;
}

/* Dark mode overrides */
[data-theme="dark"] .user-fichas-tabs-bar {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .user-fichas-tab {
    color: #94a3b8;
}

[data-theme="dark"] .user-fichas-tab:hover {
    background: #1e293b;
    color: #ffffff;
}

[data-theme="dark"] .user-fichas-tab.active {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .user-method-ficha-card,
[data-theme="dark"] .user-active-routine-ficha,
[data-theme="dark"] .user-session-ficha,
[data-theme="dark"] .user-account-ficha-card,
[data-theme="dark"] .user-locked-session-card,
[data-theme="dark"] .admin-user-ficha-card,
[data-theme="dark"] .supera-login-card,
[data-theme="dark"] .supera-crud-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .umf-title,
[data-theme="dark"] .psi-title,
[data-theme="dark"] .uarf-title,
[data-theme="dark"] .usf-title,
[data-theme="dark"] .uaf-title,
[data-theme="dark"] .uaf-val,
[data-theme="dark"] .auf-fullname,
[data-theme="dark"] .sc-title,
[data-theme="dark"] .slc-title {
    color: #ffffff;
}

[data-theme="dark"] .umf-current-phase-card,
[data-theme="dark"] .uaf-field,
[data-theme="dark"] .slc-quick-access-box,
[data-theme="dark"] .auf-stats-row {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .slc-input,
[data-theme="dark"] .sc-input,
[data-theme="dark"] .sc-select {
    background: #0f172a;
    border-color: #475569;
    color: #ffffff;
}


/* ======================================================================
   PANTALLA EN BLANCO INICIAL & MODAL DE ACCESO OBLIGATORIO
   ====================================================================== */

.supera-auth-gate-blank {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    background: #ffffff; /* PANTALLA COMPLETAMENTE EN BLANCO */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.supera-auth-gate-blank.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.supera-auth-gate-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 460px;
    width: 100%;
    padding: 34px 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px #e2e8f0;
    border: 1.5px solid #cbd5e1;
    font-family: 'Outfit', system-ui, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
    animation: sagPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sagPop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.sag-header {
    text-align: center;
    margin-bottom: 22px;
}

.sag-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.sag-logo-icon {
    font-size: 16px;
}

.sag-logo-badge {
    font-size: 11px;
    font-weight: 800;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sag-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.sag-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.sag-reason-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 12.5px;
    line-height: 1.4;
}

.sag-reason-banner.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.sag-reason-banner.info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.sag-reason-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.sag-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    line-height: 1.4;
    text-align: left;
}

.sag-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.sag-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sag-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sag-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #334155;
}

.btn-toggle-gate-pass {
    background: transparent;
    border: none;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.sag-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sag-input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.sag-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
}

.sag-input:focus {
    border-color: #06b6d4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.btn-sag-submit {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-sag-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-sag-submit:active {
    transform: translateY(0);
}

.sag-quick-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.sqb-tag {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.btn-sag-quick {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.btn-sag-quick:hover {
    border-color: #06b6d4;
    background: #ecfeff;
}

.sqb-avatar {
    font-size: 20px;
}

.sqb-info {
    flex: 1;
}

.sqb-info strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.sqb-info span {
    display: block;
    font-size: 11px;
    color: #64748b;
}

.sqb-info code {
    color: #0284c7;
    font-weight: 700;
}

.sqb-arrow {
    font-size: 16px;
    color: #06b6d4;
    font-weight: 800;
}

.sag-footer-note {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

/* ======================================================================
   ESTILOS COMPLETOS DEL SISTEMA DE FICHAS, AUTENTICACIÓN, INACTIVIDAD Y CRUD
   ====================================================================== */

.user-fichas-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 80px;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

/* Ficha Maestra Superior */
.user-profile-master-ficha {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 28px;
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.upmf-user-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.upmf-avatar-frame {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
    flex-shrink: 0;
}

.upmf-avatar {
    font-size: 34px;
}

.upmf-status-ring {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid #0f172a;
    border-radius: 50%;
}

.upmf-role-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 6px;
}

.upmf-fullname {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.upmf-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.upmf-id-badge {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    color: #cbd5e1;
}

.upmf-id-badge code {
    color: #38bdf8;
    font-family: monospace;
    font-weight: 700;
}

.upmf-timeout-badge {
    font-size: 11px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.upmf-admin-badge {
    font-size: 11px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
}

/* 4 Fichas Resumen */
.upmf-stats-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.stat-ficha {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-ficha:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-ficha.active-border {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.08);
}

.sf-icon {
    font-size: 26px;
}

.sf-content {
    display: flex;
    flex-direction: column;
}

.sf-content strong {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.sf-content span {
    font-size: 11.5px;
    color: #94a3b8;
}

/* Barra de Pestañas de Grupos y Fichas */
.user-fichas-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.user-fichas-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #475569;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-fichas-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.user-fichas-tab.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.user-fichas-tab.admin-tab {
    border: 1px dashed #cbd5e1;
    background: #fdf2f8;
    color: #9d174d;
}

.user-fichas-tab.admin-tab:hover {
    background: #fce7f3;
}

.user-fichas-tab.admin-tab.active {
    background: #831843;
    border-color: #f43f5e;
    color: #ffffff;
}

.uft-icon {
    font-size: 16px;
}

.uft-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
}

.user-fichas-tab.active .uft-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.uft-badge.highlight {
    background: #06b6d4;
    color: #ffffff;
}

.uft-badge.admin-count {
    background: #f43f5e;
    color: #ffffff;
}

/* Paneles */
.user-fichas-panel {
    display: none;
}

.user-fichas-panel.active {
    display: block;
    animation: ufFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ufFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-section-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.psi-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.psi-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.psi-counter {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Cuadrícula de 8 Fichas de Métodos */
.user-methods-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.user-method-ficha-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    border: 1.5px solid #e2e8f0;
    border-top: 5px solid var(--method-accent, #06b6d4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-method-ficha-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.user-method-ficha-card.highlight-active-method {
    border-color: #06b6d4;
    box-shadow: 0 8px 26px rgba(6, 182, 212, 0.15);
}

.umf-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.umf-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.umf-title-group {
    flex: 1;
}

.umf-badge-top {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.umf-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.umf-status-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
}

.umf-status-pill.status-active {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #06b6d4;
}

/* Ficha de Fase Actual */
.umf-current-phase-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.umf-cp-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.umf-cp-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.umf-cp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #475569;
    margin-bottom: 6px;
}

.umf-progress-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.umf-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Píldoras de semanas */
.umf-weeks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.mficha-week-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.mficha-week-pill.completed {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.mficha-week-pill.active {
    background: #ecfeff;
    color: #0891b2;
    border: 1.5px solid #06b6d4;
    font-weight: 800;
}

.mficha-week-pill.pending {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* Estadísticas de Ficha */
.umf-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.umfs-val {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.umfs-lbl {
    font-size: 10px;
    color: #64748b;
}

/* Botones de acción */
.umf-actions-bar {
    display: flex;
    gap: 8px;
}

.btn-umf-train {
    flex: 2;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-umf-train:hover {
    background: #1e293b;
}

.btn-umf-advance {
    flex: 1;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 10px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-umf-advance:hover {
    background: #e2e8f0;
}

/* Panel 2: Ficha de Rutina Activa */
.user-active-routine-ficha {
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
    border: 2px solid #06b6d4;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.12);
}

.uarf-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0891b2;
    margin-bottom: 8px;
}

.uarf-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.uarf-desc {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 0 24px 0;
}

.uarf-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-uarf-play {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
}

.btn-uarf-video {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn-uarf-sim {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

/* Panel 3: Fichas de Historial */
.user-history-fichas-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-session-ficha {
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.usf-type-icon {
    font-size: 28px;
}

.usf-main-col {
    flex: 1;
}

.usf-header-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.usf-type-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.usf-type-badge.type-audio {
    background: #ecfeff;
    color: #0891b2;
}

.usf-type-badge.type-video {
    background: #fef3c7;
    color: #d97706;
}

.usf-method-tag {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.usf-week-tag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

.usf-date {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

.usf-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.usf-notes {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.usf-stats-col {
    text-align: right;
}

.usf-duration {
    font-size: 14px;
    font-weight: 800;
    color: #059669;
}

.usf-status {
    font-size: 11px;
    color: #64748b;
}

.btn-reset-history-demo {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* Panel 4: Ficha de Alumno / Cuenta */
.user-account-ficha-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.uaf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.uaf-icon {
    font-size: 36px;
}

.uaf-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.uaf-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.btn-uaf-logout {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-uaf-logout:hover {
    background: #fecaca;
    color: #991b1b;
}

.uaf-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.uaf-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

.uaf-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.uaf-val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.uaf-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 800;
    color: #0284c7;
}

.uaf-admin-callout {
    background: #fdf2f8;
    border: 1.5px solid #fbcfe8;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.uac-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uac-icon {
    font-size: 26px;
}

.uac-info strong {
    display: block;
    font-size: 14.5px;
    color: #831843;
    margin-bottom: 2px;
}

.uac-info p {
    font-size: 12.5px;
    color: #9d174d;
    margin: 0;
}

.btn-uac-goto {
    background: #831843;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.uaf-footer-note {
    font-size: 12.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid #06b6d4;
    line-height: 1.5;
}

/* ======================================================================
   PANEL 5: GESTIÓN DE USUARIOS (CRUD EXCLUSIVO JUANLOA)
   ====================================================================== */

.admin-panel-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 26px 30px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    border: 1.5px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.aph-info {
    flex: 1;
    min-width: 280px;
}

.aph-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fda4af;
    margin-bottom: 6px;
}

.aph-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.aph-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.btn-aph-create-user {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-aph-create-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.5);
}

.admin-users-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.admin-user-ficha-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid #e2e8f0;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-user-ficha-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07);
}

.admin-user-ficha-card.main-admin-card {
    border-color: #f43f5e;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 40%);
}

.admin-user-ficha-card.active-session-card {
    border-color: #06b6d4;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
}

.auf-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
}

.auf-avatar-frame {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.auf-title-block {
    flex: 1;
}

.auf-role-badge {
    font-size: 10px;
    font-weight: 800;
    color: #e11d48;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.auf-fullname {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.auf-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.auf-tag {
    font-size: 11px;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 5px;
    color: #475569;
}

.auf-tag code {
    color: #0284c7;
    font-weight: 700;
}

.auf-active-tag {
    font-size: 10px;
    font-weight: 800;
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #06b6d4;
    padding: 2px 8px;
    border-radius: 9999px;
    position: absolute;
    top: 0;
    right: 0;
}

.auf-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.aufs-num {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
}

.aufs-lbl {
    font-size: 10px;
    color: #64748b;
}

.auf-actions-bar {
    display: flex;
    gap: 8px;
}

.btn-auf-edit {
    flex: 1;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 9px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auf-edit:hover {
    background: #e2e8f0;
}

.btn-auf-switch {
    flex: 1.5;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 9px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auf-switch:hover {
    background: #1e293b;
}

.btn-auf-delete {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 9px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auf-delete:hover {
    background: #fecaca;
}

.btn-auf-delete.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Modal CRUD Crear/Modificar Usuario */
.supera-crud-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.supera-crud-modal-overlay.visible {
    opacity: 1;
}

.supera-crud-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1.5px solid #e2e8f0;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', system-ui, sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.supera-crud-modal-overlay.visible .supera-crud-card {
    transform: translateY(0) scale(1);
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sc-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-icon {
    font-size: 32px;
}

.sc-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sc-sub {
    font-size: 12.5px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.btn-sc-close {
    background: #f1f5f9;
    border: none;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
}

.sc-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.sc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-label {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}

.sc-input,
.sc-select {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-size: 13.5px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-input:focus,
.sc-select:focus {
    border-color: #06b6d4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.sc-input:disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.avatar-choices-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-choice-pill {
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-choice-pill:hover {
    border-color: #06b6d4;
    transform: scale(1.1);
}

.avatar-choice-pill.selected {
    border-color: #06b6d4;
    background: #ecfeff;
    box-shadow: 0 0 0 2px #06b6d4;
}

.sc-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-sc-save {
    flex: 2;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sc-save:hover {
    background: #1e293b;
}

.btn-sc-cancel {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Ficha de Sesión Bloqueada (Invitado / Cerrado) */
.user-locked-session-card {
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px 24px;
    max-width: 580px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ulsc-icon {
    font-size: 54px;
    display: block;
    margin-bottom: 16px;
}

.user-locked-session-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.user-locked-session-card p {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.ulsc-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-ulsc-login {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.btn-ulsc-home {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.ulsc-note {
    font-size: 12px;
    color: #94a3b8;
}

/* ======================================================================
   BOTÓN EN CABECERA Y BOTÓN DE SALIR
   ====================================================================== */

.header-user-badge-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-header-user-progress,
.btn-header-user-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header-user-progress:hover,
.btn-header-user-login:hover {
    border-color: #06b6d4;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

.uprog-avatar {
    font-size: 18px;
}

.uprog-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.uprog-alias {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.uprog-badge {
    font-size: 9.5px;
    font-weight: 700;
    color: #0284c7;
}

.btn-header-logout {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #fef2f2 !important;
    border: 1.5px solid #fecaca !important;
    color: #dc2626 !important;
    padding: 6px 12px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.btn-header-logout:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15) !important;
}

/* Home Card */
.user-home-progress-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-home-progress-card.guest-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.btn-uhp-login-now {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.uhp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.uhp-user-col {
    display: flex;
    align-items: center;
    gap: 14px;
}

.uhp-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uhp-avatar {
    font-size: 24px;
}

.uhp-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

.uhp-greeting {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.uhp-sub {
    font-size: 12px;
    color: #94a3b8;
}

.uhp-tag {
    color: #38bdf8;
    font-weight: 700;
}

.uhp-role {
    color: #cbd5e1;
}

.uhp-timeout-tag {
    color: #fbbf24;
    font-weight: 700;
}

.uhp-metrics-row {
    display: flex;
    gap: 12px;
}

.uhp-metric-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 14px;
    border-radius: 10px;
    text-align: center;
}

.uhp-metric-val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.uhp-metric-lbl {
    font-size: 10px;
    color: #94a3b8;
}

.uhp-active-banner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.uhp-ab-info {
    flex: 1;
    min-width: 260px;
}

.uhp-ab-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.uhp-ab-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0;
}

.uhp-ab-desc {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.uhp-ab-actions {
    display: flex;
    gap: 10px;
}

.btn-uhp-continue {
    background: #06b6d4;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.btn-uhp-view-all {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* ======================================================================
   MODAL DE LOGIN MODERNO & TOAST DE INACTIVIDAD
   ====================================================================== */

.supera-login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.supera-login-modal-overlay.visible {
    opacity: 1;
}

.supera-login-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 460px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1.5px solid #e2e8f0;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', system-ui, sans-serif;
}

.supera-login-modal-overlay.visible .supera-login-card {
    transform: translateY(0) scale(1);
}

.slc-header {
    text-align: center;
    margin-bottom: 20px;
}

.slc-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.slc-logo-icon {
    font-size: 16px;
}

.slc-logo-badge {
    font-size: 11px;
    font-weight: 800;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slc-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.slc-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.slc-reason-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 12.5px;
    line-height: 1.4;
}

.slc-reason-banner.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.slc-reason-banner.info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.slc-reason-banner.welcome {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.srb-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.slc-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
}

.slc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.slc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slc-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #334155;
}

.btn-toggle-login-pass {
    background: transparent;
    border: none;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.slc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.slc-input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.slc-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.slc-input:focus {
    border-color: #06b6d4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.btn-slc-submit {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-slc-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-slc-submit:active {
    transform: translateY(0);
}

.slc-quick-access-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.sqab-tag {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.btn-slc-quick-demo {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.btn-slc-quick-demo:hover {
    border-color: #06b6d4;
    background: #ecfeff;
}

.sqd-avatar {
    font-size: 20px;
}

.sqd-info {
    flex: 1;
}

.sqd-info strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.sqd-info span {
    display: block;
    font-size: 11px;
    color: #64748b;
}

.sqd-arrow {
    font-size: 16px;
    color: #06b6d4;
    font-weight: 800;
}

.slc-footer-note {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

/* Toast de Inactividad (Faltando 2 minutos) */
.supera-inactivity-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 99999;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-width: 90%;
}

.supera-inactivity-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.sit-content {
    background: #0f172a;
    color: #ffffff;
    border-radius: 9999px;
    padding: 10px 18px 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    cursor: pointer;
    font-family: 'Outfit', system-ui, sans-serif;
}

.sit-icon {
    font-size: 22px;
    animation: sitPulse 1s infinite alternate;
}

@keyframes sitPulse {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.sit-info strong {
    display: block;
    font-size: 13px;
    color: #fbbf24;
}

.sit-info span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.btn-sit-keep-alive {
    background: #06b6d4;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sit-keep-alive:hover {
    background: #0891b2;
}

/* Dark mode overrides */
[data-theme="dark"] .user-fichas-tabs-bar {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .user-fichas-tab {
    color: #94a3b8;
}

[data-theme="dark"] .user-fichas-tab:hover {
    background: #1e293b;
    color: #ffffff;
}

[data-theme="dark"] .user-fichas-tab.active {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .user-method-ficha-card,
[data-theme="dark"] .user-active-routine-ficha,
[data-theme="dark"] .user-session-ficha,
[data-theme="dark"] .user-account-ficha-card,
[data-theme="dark"] .user-locked-session-card,
[data-theme="dark"] .admin-user-ficha-card,
[data-theme="dark"] .supera-login-card,
[data-theme="dark"] .supera-crud-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .umf-title,
[data-theme="dark"] .psi-title,
[data-theme="dark"] .uarf-title,
[data-theme="dark"] .usf-title,
[data-theme="dark"] .uaf-title,
[data-theme="dark"] .uaf-val,
[data-theme="dark"] .auf-fullname,
[data-theme="dark"] .sc-title,
[data-theme="dark"] .slc-title {
    color: #ffffff;
}

[data-theme="dark"] .umf-current-phase-card,
[data-theme="dark"] .uaf-field,
[data-theme="dark"] .slc-quick-access-box,
[data-theme="dark"] .auf-stats-row {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .slc-input,
[data-theme="dark"] .sc-input,
[data-theme="dark"] .sc-select {
    background: #0f172a;
    border-color: #475569;
    color: #ffffff;
}



/* ======================================================================
   BLINDAJE DE ALTO CONTRASTE EN PANELES OSCUROS (ADMIN HERO, MASTER FICHA, ETC.)
   ====================================================================== */

.admin-panel-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
    border-radius: 20px !important;
    padding: 26px 30px !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
    border: 1.5px solid rgba(244, 63, 94, 0.35) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3) !important;
}

.aph-badge,
.admin-panel-hero .aph-badge {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    color: #fda4af !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
}

.aph-title,
.admin-panel-hero h2,
.admin-panel-hero .aph-title,
.tab-pane .admin-panel-hero h2,
.tab-pane:not(#home) .admin-panel-hero h2,
.tab-pane [class*="pane"] .admin-panel-hero h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.3px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.aph-desc,
.admin-panel-hero p,
.admin-panel-hero .aph-desc,
.tab-pane .admin-panel-hero p,
.tab-pane:not(#home) .admin-panel-hero p,
.tab-pane [class*="pane"] .admin-panel-hero p {
    font-size: 13.5px !important;
    color: #e2e8f0 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    opacity: 0.95 !important;
}

.btn-aph-create-user {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-aph-create-user:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.6) !important;
}

/* Ficha Maestra de Perfil - Contraste Impecable */
.user-profile-master-ficha {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 20px !important;
    padding: 28px !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.25) !important;
    margin-bottom: 24px !important;
}

.upmf-role-pill {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
}

.upmf-fullname,
.user-profile-master-ficha h2,
.tab-pane .user-profile-master-ficha h2 {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.5px !important;
}

.upmf-alias-user,
.user-profile-master-ficha p,
.tab-pane .user-profile-master-ficha p {
    color: #cbd5e1 !important;
    font-size: 14px !important;
}

.upmf-stat-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
}

.upmf-stat-card .usc-number {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.upmf-stat-card .usc-label {
    color: #94a3b8 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
}

/* Ficha Rutina Diaria Hero */
.routine-daily-hero-ficha {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%) !important;
    border: 1.5px solid rgba(129, 140, 248, 0.3) !important;
    border-radius: 20px !important;
    padding: 26px 30px !important;
    color: #ffffff !important;
}

.routine-daily-hero-ficha h2,
.tab-pane .routine-daily-hero-ficha h2 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.routine-daily-hero-ficha p,
.tab-pane .routine-daily-hero-ficha p {
    color: #e0e7ff !important;
    font-size: 13.5px !important;
}

/* Tarjetas de Usuarios en el Admin Grid */
.admin-user-ficha-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 22px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
}

.admin-user-ficha-card .auf-fullname {
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

.admin-user-ficha-card.main-admin-card {
    border-color: #f43f5e !important;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 45%) !important;
}

/* ======================================================================
   DISEÑO LIMPIO Y EXQUISITO DEL PORTAL DE MÉTODOS (ESTILO IMAGEN 3)
   ====================================================================== */

.portal-container-home {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 10px 60px 10px;
}

.section-header-row-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 18px 0;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.section-header-row-home h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: -0.3px !important;
    margin: 0 !important;
}

.section-badge-tag-home {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    background: #e0f2fe !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    border: 1px solid #bae6fd !important;
}

.methods-grid-featured-home {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

@media (max-width: 860px) {
    .methods-grid-featured-home {
        grid-template-columns: 1fr !important;
    }
}

.methods-grid-standard-home {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
    gap: 20px !important;
}

/* Ficha Individual de Método (Fiel a Imagen 3) */
.card-method-home {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
    color: inherit !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

.card-method-home:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
    border-color: #4f46e5 !important;
}

.card-method-home.featured-synapse:hover {
    border-color: #06b6d4 !important;
}

.card-method-home.featured-omega:hover {
    border-color: #f59e0b !important;
}

.card-method-header-home {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    gap: 12px !important;
}

.card-icon-box-home {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.card-icon-box-home.icon-synapse { background: rgba(6, 182, 212, 0.12) !important; border-color: rgba(6, 182, 212, 0.3) !important; }
.card-icon-box-home.icon-omega { background: rgba(245, 158, 11, 0.12) !important; border-color: rgba(245, 158, 11, 0.3) !important; }
.card-icon-box-home.icon-musica { background: rgba(99, 102, 241, 0.12) !important; border-color: rgba(99, 102, 241, 0.3) !important; }
.card-icon-box-home.icon-supera { background: rgba(168, 85, 247, 0.12) !important; border-color: rgba(168, 85, 247, 0.3) !important; }
.card-icon-box-home.icon-wordletic { background: rgba(16, 185, 129, 0.12) !important; border-color: rgba(16, 185, 129, 0.3) !important; }
.card-icon-box-home.icon-tmr { background: rgba(56, 189, 248, 0.12) !important; border-color: rgba(56, 189, 248, 0.3) !important; }
.card-icon-box-home.icon-imm20d { background: rgba(244, 63, 94, 0.12) !important; border-color: rgba(244, 63, 94, 0.3) !important; }
.card-icon-box-home.icon-krashen { background: rgba(14, 165, 233, 0.12) !important; border-color: rgba(14, 165, 233, 0.3) !important; }
.card-icon-box-home.icon-core { background: rgba(217, 70, 239, 0.12) !important; border-color: rgba(217, 70, 239, 0.3) !important; }

.card-meta-tag-home {
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    align-self: flex-start !important;
}

.card-meta-tag-home.tag-synapse { background: rgba(6, 182, 212, 0.12) !important; color: #0891b2 !important; }
.card-meta-tag-home.tag-omega { background: rgba(245, 158, 11, 0.12) !important; color: #b45309 !important; }
.card-meta-tag-home.tag-musica { background: rgba(99, 102, 241, 0.12) !important; color: #4338ca !important; }
.card-meta-tag-home.tag-supera { background: rgba(168, 85, 247, 0.12) !important; color: #7e22ce !important; }
.card-meta-tag-home.tag-wordletic { background: rgba(16, 185, 129, 0.12) !important; color: #047857 !important; }
.card-meta-tag-home.tag-tmr { background: rgba(56, 189, 248, 0.12) !important; color: #0284c7 !important; }
.card-meta-tag-home.tag-imm20d { background: rgba(244, 63, 94, 0.12) !important; color: #be123c !important; }
.card-meta-tag-home.tag-krashen { background: rgba(14, 165, 233, 0.12) !important; color: #0369a1 !important; }
.card-meta-tag-home.tag-core { background: rgba(217, 70, 239, 0.12) !important; color: #a21caf !important; }

.card-method-body-home {
    flex: 1 !important;
    margin-bottom: 20px !important;
}

.card-method-title-home {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
}

.card-method-subtitle-home {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
    margin: 0 0 10px 0 !important;
    display: block !important;
}

.card-method-desc-home {
    font-size: 0.92rem !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    margin: 0 0 14px 0 !important;
}

.card-pills-row-home {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.card-pill-item-home {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.card-method-footer-home {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.btn-card-enter-home {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-card-enter-home:hover {
    opacity: 0.95 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
}

.btn-card-enter-home.btn-omega-custom {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25) !important;
}
