:root {
            --brand-red: #ff0000;
            --brand-dark-red: #B8001F;
            --bg-dark: #0A0A0A;
            --surface: #141414;
            --surface-border: #2A2A2A;
            --text-primary: #FFFFFF;
            --text-secondary: #9CA3AF;
            --text-muted: #6B7280;
        }

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

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-primary);
            overflow-x: hidden;
        }

        /* Typography */
        h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -0.02em; }
        .text-brand { color: var(--brand-red) !important; }
        .bg-brand { background-color: var(--brand-red) !important; }
        .bg-surface { background-color: var(--surface) !important; }

        /* Navbar */
        .navbar-custom {
            background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
            padding: 1rem 0;
            transition: all 0.3s ease;
        }
        .navbar-custom.scrolled {
            background: rgba(10, 10, 10, 0.6) !important;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            padding: 0.5rem 0;
            box-shadow: 0 8px 30px rgba(0,0,0,0.5);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .navbar-brand-custom { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
        .brand-text { line-height: 0.8; }
        .brand-name { font-weight: 900; font-size: 0.9rem; color: white; letter-spacing: 0.1em; }
        .brand-sub { font-size: 0.55rem; font-weight: 700; color: var(--brand-red); letter-spacing: 0.2em; }
        .nav-link-custom {
            color: #ccc !important; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.15em;
            text-transform: uppercase; padding: 0.5rem 1rem !important; position: relative; transition: color 0.3s ease;
        }
        .nav-link-custom:hover { color: white !important; }
        .nav-link-custom::after {
            content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
            background: var(--brand-red); transition: all 0.3s ease; transform: translateX(-50%);
        }
        .nav-link-custom:hover::after { width: 100%; }

        /* Hero Section */
        .hero-section { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%),
                        url('../img/gym3.webp') center/cover;
        }
        .hero-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, transparent, var(--brand-red), transparent); }
        .hero-title { font-size: clamp(2.5rem, 8.6vw, 5.6rem); margin-top: 65px; font-weight: 900; font-style: italic; line-height: 0.95; margin-bottom: 1.5rem; }
        .hero-title span { color: var(--brand-red); position: relative; display: inline-block; }
        .hero-title span::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 4px; background: var(--brand-red); }
        .hero-subtitle { font-size: 1rem; color: #ccc; max-width: 500px; border-left: 4px solid var(--brand-red); padding-left: 1.5rem; line-height: 1.7; }
        .btn-cta {
            background: var(--brand-red); color: white; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.15em;
            text-transform: uppercase; padding: 0.6rem 1.2rem; border: none; border-radius: 0; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.75rem;
        }
        .btn-cta:hover { background: var(--brand-dark-red); color: white; transform: scale(1.05); box-shadow: 0 10px 40px rgba(217, 4, 41, 0.4); }
        .btn-outline-light-custom {
            border: 1px solid rgba(255,255,255,0.3); color: white; font-weight: 700; font-size: 0.8rem;
            letter-spacing: 0.15em; text-transform: uppercase; padding: 1rem 2rem; background: transparent; transition: all 0.3s ease;
        }
        .btn-outline-light-custom:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }
        .scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); text-align: center; animation: bounce 2s infinite; }
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
            40% { transform: translateX(-50%) translateY(-10px); }
            60% { transform: translateX(-50%) translateY(-5px); }
        }

        /* Stats Section */
        .stats-section { background: var(--surface); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); position: relative; overflow: hidden; }
        .stat-item { text-align: center; padding: 2rem 1rem; position: relative; }
        .stat-number { font-size: 3rem; font-weight: 900; color: var(--brand-red); font-style: italic; }
        .stat-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #6B7280; }

        /* Marquee Banner */
        .marquee-banner { background: var(--brand-red); padding: 0.75rem 0; overflow: hidden; position: relative; }
        .marquee-content { display: flex; animation: marquee 20s linear infinite; white-space: nowrap; }
        .marquee-item { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0 2rem; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: black; }
        .marquee-dot { width: 6px; height: 6px; background: rgba(0,0,0,0.4); border-radius: 50%; }
        @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

        /* Features Section */
        .features-section { padding: 6rem 0; position: relative; }
        .section-badge { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brand-red); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
        .section-badge::before, .section-badge::after { content: ''; width: 30px; height: 2px; background: var(--brand-red); }
        .section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; font-style: italic; line-height: 1.1; margin-bottom: 1rem; }
        .feature-card { background: var(--surface); border: 1px solid var(--surface-border); padding: 2rem; position: relative; overflow: hidden; transition: all 0.4s ease; height: 100%; }
        .feature-card::before { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 50px 50px 0; border-color: transparent var(--brand-red) transparent transparent; opacity: 0; transition: opacity 0.3s ease; }
        .feature-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--brand-red); transition: width 0.5s ease; }
        .feature-card:hover { border-color: rgba(217, 4, 41, 0.5); }
        .feature-card:hover::before { opacity: 0.2; }
        .feature-card:hover::after { width: 100%; }
        .feature-icon { width: 60px; height: 60px; background: var(--bg-dark); border: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--brand-red); font-size: 1.5rem; transition: all 0.3s ease; }
        .feature-card:hover .feature-icon { background: var(--brand-red); color: white; border-color: var(--brand-red); }
        .feature-title { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
        .feature-text { font-size: 0.85rem; color: #6B7280; line-height: 1.6; }

        /* Programs Section */
        .programs-section { padding: 6rem 0; background: var(--surface); }
        .program-card { position: relative; height: 450px; overflow: hidden; cursor: pointer; }
        .program-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: all 0.7s ease; }
        .program-card:hover img { opacity: 0.4; transform: scale(1.1); }
        .program-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%); }
        .program-badge { position: absolute; top: 1.5rem; left: 1.5rem; background: var(--brand-red); color: white; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.4rem 0.8rem; }
        .program-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; transform: translateY(0); transition: transform 0.5s ease; }
        .program-card:hover .program-content { transform: translateY(-10px); }
        .program-title { font-size: 1.75rem; font-weight: 900; font-style: italic; text-transform: uppercase; margin-bottom: 0.75rem; }
        .program-desc { font-size: 0.85rem; color: #ccc; max-width: 300px; opacity: 0; transform: translateY(20px); transition: all 0.5s ease 0.1s; }
        .program-card:hover .program-desc { opacity: 1; transform: translateY(0); }
        .program-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brand-red); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1rem; opacity: 0; transition: opacity 0.5s ease 0.2s; }
        .program-card:hover .program-link { opacity: 1; }
        .program-progress { position: absolute; bottom: 0; left: 0; width: 0; height: 4px; background: var(--brand-red); transition: width 0.7s ease; }
        .program-card:hover .program-progress { width: 100%; }

        /* CTA Section */
        .cta-section { padding: 6rem 0; background: var(--brand-red); position: relative; overflow: hidden; }
        .cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 20px); }
        .cta-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; font-style: italic; line-height: 0.95; color: black; }
        .cta-text { color: rgba(0,0,0,0.6); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; }
        .btn-cta-dark { background: black; color: white; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 1.25rem 2.5rem; border: none; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.75rem; }
        .btn-cta-dark:hover { background: rgba(0,0,0,0.8); color: white; transform: scale(1.05); box-shadow: 0 15px 50px rgba(0,0,0,0.3); }

        /* Testimonials Section */
        .testimonials-section { padding: 6rem 0; }
        .testimonial-card { background: var(--surface); border: 1px solid var(--surface-border); padding: 2rem; position: relative; }
        .testimonial-card::before { content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-size: 5rem; font-weight: 900; color: var(--brand-red); opacity: 0.2; font-style: italic; line-height: 1; }
        .testimonial-stars { color: #FFD700; margin-bottom: 1rem; }
        .testimonial-text { font-size: 0.95rem; color: #ccc; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
        .testimonial-author { display: flex; align-items: center; gap: 1rem; }
        .testimonial-avatar { width: 50px; height: 50px; background: var(--brand-red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; color: white; }
        .testimonial-name { font-weight: 700; font-size: 0.9rem; }
        .testimonial-role { font-size: 0.75rem; color: #6B7280; }

        /* Pricing Section */
        .pricing-section { padding: 6rem 0; background: var(--surface); }
        .pricing-card { background: var(--bg-dark); border: 1px solid var(--surface-border); padding: 2.5rem; text-align: center; position: relative; transition: all 0.3s ease; height: 100%; }
        .pricing-card.featured { border-color: var(--brand-red); transform: scale(1.05); }
        .pricing-card.featured::before { content: 'MÁS POPULAR'; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--brand-red); color: white; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.15em; padding: 0.4rem 1.5rem; }
        .pricing-card:hover { border-color: var(--brand-red); }
        .pricing-name { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #6B7280; margin-bottom: 1rem; }
        .pricing-price { font-size: 3rem; font-weight: 900; font-style: italic; color: var(--brand-red); margin-bottom: 0.5rem; }
        .pricing-period { font-size: 0.8rem; color: #6B7280; margin-bottom: 2rem; }
        .pricing-features { list-style: none; padding: 0; margin: 0 0 2rem 0; text-align: left; }
        .pricing-features li { padding: 0.75rem 0; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: #ccc; }
        .pricing-features li i { color: var(--brand-red); }

        /* Contact Section */
        .contact-section { padding: 6rem 0; position: relative; }
        .contact-card { background: var(--surface); border: 1px solid var(--surface-border); padding: 2rem; transition: all 0.3s ease; }
        .contact-card:hover { border-color: rgba(217, 4, 41, 0.5); }
        .contact-icon { width: 50px; height: 50px; background: var(--bg-dark); border: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: center; color: var(--brand-red); font-size: 1.25rem; margin-bottom: 1rem; transition: all 0.3s ease; }
        .contact-card:hover .contact-icon { border-color: var(--brand-red); }
        .contact-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #6B7280; margin-bottom: 0.5rem; }
        .contact-value { font-weight: 600; font-size: 0.9rem; }
        .contact-form-section { background: var(--surface); border: 1px solid var(--surface-border); padding: 3rem; }
        .form-línea-acento { width: 50px; height: 3px; background: var(--brand-red); margin-bottom: 1.5rem; }
        .form-title { font-size: 1.75rem; font-weight: 900; font-style: italic; text-transform: uppercase; margin-bottom: 1rem; }
        .form-subtitle { font-size: 0.85rem; color: #6B7280; margin-bottom: 2rem; }
        .form-control-custom { background: var(--bg-dark); border: 1px solid var(--surface-border); color: white; padding: 1rem; font-size: 0.85rem; transition: all 0.3s ease; }
        .form-control-custom:focus { background: var(--bg-dark); border-color: var(--brand-red); color: white; box-shadow: none; }
        .form-control-custom::placeholder { color: #6B7280; }

        /* Footer */
        .footer { padding: 3rem 0; border-top: 1px solid var(--surface-border); }
        .footer-brand { display: flex; align-items: center; gap: 1rem; }
        .footer-brand img { height: 40px; opacity: 0.8; }
        .footer-brand-name { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; }
        .footer-brand-nit { font-size: 0.6rem; font-weight: 700; color: var(--brand-red); letter-spacing: 0.15em; }
        .footer-copyright { font-size: 0.75rem; color: #4B5563; }
        .social-link { width: 40px; height: 40px; border: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: center; color: #6B7280; transition: all 0.3s ease; }
        .social-link:hover { border-color: var(--brand-red); color: var(--brand-red); }

        /* WhatsApp Float Button */
        .whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.75rem; box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4); z-index: 1000; transition: all 0.3s ease; text-decoration: none; }
        .whatsapp-float:hover { transform: scale(1.1); color: white; }

        /* Trainers Section */
        .trainers-section { padding: 6rem 0; }
        .trainer-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--surface-border); }
        .trainer-card img { width: 100%; height: 300px; object-fit: cover; filter: grayscale(100%); transition: all 0.5s ease; }
        .trainer-card:hover img { filter: grayscale(0%); transform: scale(1.05); }
        .trainer-info { padding: 1.5rem; text-align: center; }
        .trainer-name { font-weight: 800; font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
        .trainer-specialty { color: var(--brand-red); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

        /* Map Section */
        .map-section { height: 400px; background: var(--surface); position: relative; }
        .map-section iframe { width: 100%; height: 100%; border: none; }

        /* Animations */
        .fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
        .fade-in.visible { opacity: 1; transform: translateY(0); }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-title { font-size: 2.5rem; }
            .stat-number { font-size: 2.5rem; }
            .pricing-card.featured { transform: scale(1); margin-top: 1rem; }
            .contact-form-section { padding: 2rem; }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-dark); }
        ::-webkit-scrollbar-thumb { background: var(--brand-red); }

        /* ═══════════════════════════════════════════════
           PORTAL DE AFILIADOS — ESTILOS GENERALES
        ═══════════════════════════════════════════════ */
        .btn-portal {
            background: transparent; border: 1px solid rgba(255,0,0,0.6); color: #ff0000;
            font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
            padding: 0.45rem 1rem; border-radius: 0; transition: all 0.3s ease; display: inline-flex;
            align-items: center; gap: 0.4rem; cursor: pointer;
        }
        .btn-portal:hover { background: #ff0000; color: #fff; box-shadow: 0 0 20px rgba(255,0,0,0.35); }
        .btn-portal.logged-in { background: rgba(255,0,0,0.12); border-color: #ff0000; color: #ff6666; }

        /* Overlay modal Login */
        .portal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
        .portal-overlay.active { display: flex; }
        .portal-modal { background: #111; border: 1px solid #222; border-top: 3px solid #ff0000; max-width: 420px; width: 100%; position: relative; animation: portalSlideIn 0.35s cubic-bezier(0.34,1.56,0.64,1); }
        @keyframes portalSlideIn { from { opacity: 0; transform: translateY(-30px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
        .portal-modal-header { background: #0d0d0d; padding: 1.5rem 1.75rem 1.25rem; border-bottom: 1px solid #1e1e1e; }
        .portal-modal-header h3 { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin: 0; }
        .portal-modal-header p { font-size: 0.72rem; color: #666; margin: 0.3rem 0 0; letter-spacing: 0.05em; }
        .portal-close { position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; color: #555; font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0; transition: color 0.2s; }
        .portal-close:hover { color: #ff0000; }
        .portal-modal-body { padding: 1.75rem; }
        .portal-field { margin-bottom: 1rem; }
        .portal-field label { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #666; margin-bottom: 0.4rem; }
        .portal-field input { width: 100%; background: #0a0a0a; border: 1px solid #2a2a2a; color: #fff; padding: 0.7rem 0.9rem; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; outline: none; transition: border-color 0.2s; border-radius: 0; }
        .portal-field input:focus { border-color: #ff0000; }
        .portal-field input::placeholder { color: #444; }
        .btn-portal-submit { width: 100%; background: #ff0000; color: #fff; border: none; padding: 0.85rem; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: all 0.25s ease; border-radius: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
        .btn-portal-submit:hover:not(:disabled) { background: #B8001F; box-shadow: 0 8px 30px rgba(255,0,0,0.35); }
        .btn-portal-submit:disabled { opacity: 0.5; cursor: not-allowed; }
        .portal-alert { padding: 0.7rem 0.9rem; font-size: 0.75rem; font-weight: 600; margin-bottom: 1rem; display: none; }
        .portal-alert.error { background: rgba(255,0,0,0.12); border-left: 3px solid #ff0000; color: #ff6666; }
        .portal-alert.success { background: rgba(22,163,74,0.12); border-left: 3px solid #16a34a; color: #4ade80; }
        .portal-alert.active { display: block; }
        .spinner-sm { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* SECCIÓN PORTAL CTA (debajo de precios) */
        .portal-section { background: #0d0d0d; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; padding: 80px 0; }
        .portal-cta-card { background: #111; border: 1px solid #1e1e1e; border-left: 4px solid #ff0000; padding: 2.5rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
        .portal-cta-card h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; color: #fff; margin: 0 0 0.5rem; }
        .portal-cta-card p { color: #666; font-size: 0.85rem; margin: 0; line-height: 1.6; }
        .portal-features-list { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
        .portal-feat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #888; }
        .portal-feat i { color: #ff0000; font-size: 0.9rem; }

        /* ═══════════════════════════════════════════════
           NUEVO DISEÑO DASHBOARD (SIDEBAR + CONTENT)
        ═══════════════════════════════════════════════ */
        .dashboard-overlay { display: none; position: fixed; inset: 0; background: #0a0a0a; z-index: 10000; }
        .dashboard-overlay.active { display: flex; flex-direction: column; }
        .dashboard-content { display: flex; flex-direction: column; height: 100vh; width: 100%; }
        
        .dash-header { background: #111; border-bottom: 1px solid #1e1e1e; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
        .dash-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
        
        .dash-body { display: flex; flex: 1; overflow: hidden; }
        
        .dash-sidebar { width: 260px; background: #111; border-right: 1px solid #1e1e1e; padding: 1.5rem; flex-shrink: 0; display: flex; flex-direction: column; }
        .dash-user-info { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #1e1e1e; }
        .dash-user-name { font-weight: 800; color: #fff; font-size: 1rem; line-height:1.2; margin-bottom: 4px; }
        .dash-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #ff0000; flex-shrink: 0; }
        .dash-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: #1D3557; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 900; color: #7eb3ff; border: 2px solid #ff0000; flex-shrink: 0; }
        
        .dash-nav { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; flex: 1; }
        .dash-menu-btn { background: transparent; color: #9CA3AF; border: none; text-align: left; padding: 0.85rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; display: flex; align-items: center; font-family: 'Montserrat', sans-serif;}
        .dash-menu-btn:hover, .dash-menu-btn.active { background: rgba(255,0,0,0.1); color: #ff0000; }
        
        .dash-main { flex: 1; padding: 2rem; overflow-y: auto; background: #0a0a0a; }

        @media (max-width: 768px) {
            .dash-body { flex-direction: column; overflow-y: auto; }
            .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #1e1e1e; }
            .dash-main { overflow-y: visible; padding: 1rem; }
        }

        /* Estilos Internos del Dashboard */
        .dash-welcome { background: linear-gradient(135deg, #111 0%, #0d0d0d 100%); border: 1px solid #1e1e1e; border-top: 3px solid #ff0000; padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
        .dash-welcome-info h2 { font-size: 1.3rem; font-weight: 900; color: #fff; margin: 0 0 0.25rem; }
        .dash-welcome-info p { color: #666; font-size: 0.8rem; margin: 0; }
        .dash-badge { display: inline-block; padding: 0.2rem 0.7rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 20px; margin-top: 0.4rem; }
        .dash-badge.activo   { background: rgba(22,163,74,0.2);  color: #4ade80; }
        .dash-badge.pendiente{ background: rgba(234,179,8,0.2);   color: #fbbf24; }
        .dash-badge.vencido  { background: rgba(255,0,0,0.2);     color: #f87171; }
        .dash-badge.inactivo { background: rgba(107,114,128,0.2); color: #9ca3af; }

        .dash-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
        .dash-card { background: #111; border: 1px solid #1e1e1e; padding: 1.25rem 1.5rem; border-radius: 8px;}
        .dash-card-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #555; margin-bottom: 0.4rem; }
        .dash-card-value { font-size: 1rem; font-weight: 800; color: #fff; }
        .dash-card-icon { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--brand-red); }

        .dash-progress-wrap { background: #111; border: 1px solid #1e1e1e; padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px;}
        .dash-progress-wrap h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #666; margin-bottom: 1rem; }
        .progress-bar-track { height: 8px; background: #1e1e1e; border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
        .progress-bar-fill { height: 100%; background: linear-gradient(90deg, #ff0000, #ff6060); border-radius: 4px; transition: width 1s ease; }
        .progress-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: #555; }

        .dash-qr-wrap { background: #111; border: 1px solid #1e1e1e; padding: 1.5rem; text-align: center; border-radius: 8px;}
        .dash-qr-wrap h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #666; margin-bottom: 1rem; }
        .qr-placeholder { width: 120px; height: 120px; background: #fff; margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: #333; text-align: center; padding: 0.5rem; }
        .qr-code-text { font-size: 0.65rem; font-family: monospace; color: #555; word-break: break-all; }

        .dash-aicoach-card { background: linear-gradient(135deg, rgba(255,0,0,0.06), rgba(29,53,87,0.12)); border: 1px solid rgba(255,0,0,0.15); border-left: 4px solid #ff0000; padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px;}
        .dash-aicoach-card h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #ff6666; margin-bottom: 0.75rem; }
        .dash-aicoach-card p { font-size: 0.8rem; color: #888; line-height: 1.6; margin-bottom: 1rem; }
        .btn-dash-aicoach { display: inline-flex; align-items: center; gap: 0.5rem; background: #ff0000; color: #fff; border: none; padding: 0.6rem 1.25rem; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: all 0.2s; border-radius: 4px;}
        .btn-dash-aicoach:hover { background: #cc0000; color: #fff; box-shadow: 0 4px 16px rgba(255,0,0,0.3); }
        
        @media (max-width: 576px) { .portal-cta-card { padding: 1.5rem; } .dash-welcome { padding: 1.25rem; 
        }
   
}

