:root {
    --bg-dark: #070707;
    --bg-card: #121212;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --neon-green: #b9ff2e; /* Verde vibrante tipo mockup */
    --neon-green-hover: #9bdd1e;
    --border-color: #222222;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 7, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
}

.logo-text em {
    color: var(--neon-green);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-green);
}

.nav-links a.active {
    color: var(--neon-green);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-green);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--text-gray);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px; /* Space for navbar */
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}

.badge {
    color: var(--neon-green);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-title .highlight {
    color: var(--neon-green);
}

.hero-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-description .dimmed {
    color: #666;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--neon-green);
}

.feature-item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
    line-height: 1.3;
}

/* CTA and Social Proof */
.hero-action-area {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--neon-green);
    color: var(--bg-dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s;
}

.main-cta:hover {
    transform: translateY(-2px);
    background-color: var(--neon-green-hover);
}

.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -12px;
    object-fit: cover;
}

.avatar:first-child {
    margin-left: 0;
}

.rating-info {
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--neon-green);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.2;
}

/* Right Image */
.hero-image-wrapper {
    position: relative;
    height: calc(100vh - 80px); /* Height minus navbar */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* centrado en el coach */
    border-radius: 20px;
    -webkit-mask-image: linear-gradient(to left, black 90%, transparent); /* Fade towards text */
    mask-image: linear-gradient(to left, black 90%, transparent);
}

/* Para darle ese efecto superpuesto tipo película */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(7, 7, 7, 0) 10%);
    pointer-events: none;
}


/* Responsive Design */
@media (max-width: 1100px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-action-area {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    /* ── Navbar mobile ── */
    .navbar {
        z-index: 200; /* Asegurar que la barra esté por encima de todo */
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 201; /* Por encima del menú abierto */
        position: relative;
    }

    /* Menú desplegable — DEBAJO de la navbar, nunca sobre el logo */
    .nav-links.nav-active {
        display: flex;
        flex-direction: column;
        position: fixed; /* fixed para que no dependa del scroll */
        top: 80px;       /* exactamente la altura del navbar */
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(16px);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid #222;
        box-shadow: 0 20px 40px rgba(0,0,0,0.9);
        z-index: 199; /* Debajo del navbar y del botón hamburguesa */
        text-align: center;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* Botón WhatsApp dentro del menú desplegable */
    .nav-links.nav-active .nav-cta {
        display: inline-flex;
        justify-content: center;
        margin: 0 auto;
        width: fit-content;
        max-width: 280px;
    }

    /* ── Hero mobile ── */
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-image-wrapper {
        height: 50vh;
        order: -1;
    }
    
    .hero-image {
        object-position: top center;
        -webkit-mask-image: linear-gradient(to top, black 90%, transparent); 
        mask-image: linear-gradient(to top, black 90%, transparent);
    }
    
    .image-overlay {
        background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(7, 7, 7, 0) 15%);
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }

    /* ── Hero action area mobile ── */
    .hero-action-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-cta {
        width: 100%;
        justify-content: center;
    }

    .social-proof {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }

    .container {
        padding: 0 1.2rem;
    }

    /* ── Servicios mobile ── */
    .service-image img {
        height: 250px;
    }

    .service-title {
        font-size: 1.4rem;
    }

    /* ── Sección "Cómo Funciona" mobile ── */
    .login-box {
        padding: 2rem 1.5rem;
    }

    /* ── Contacto mobile ── */
    .contact-info {
        padding-right: 0;
    }

    .contact-form-container {
        padding: 2rem 1.2rem;
    }

    /* ── Sección padding reducido ── */
    .section-padding {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* ── Features reducidas ── */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem 0.8rem;
    }

    .feature-item span {
        font-size: 0.7rem;
    }
}

/* --- NUEVAS SECCIONES --- */
.section-padding {
    padding: 6rem 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.5px;
}
.text-center {
    text-align: center;
}
.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.highlight {
    color: var(--neon-green);
}
.section-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Sobre mí */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}
.secondary-cta {
    display: inline-block;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}
.secondary-cta:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
}

/* Servicios */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}
.service-block.reverse .service-content {
    order: 2;
}
.service-block.reverse .service-image {
    order: 1;
}
.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neon-green);
}
.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}
.text-link {
    color: var(--neon-green);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    display: inline-block;
}
.text-link:hover {
    text-decoration: underline;
}

/* Beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.benefit-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
}
.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--neon-green);
}
.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Sistema Clientes */
.client-system-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.system-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.system-features {
    list-style: none;
    margin-top: 2rem;
}
.system-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-white);
}
.system-features svg {
    width: 24px;
    height: 24px;
    color: var(--neon-green);
    flex-shrink: 0;
}
.login-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
.login-header {
    margin-bottom: 2rem;
    text-align: center;
}
.login-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.login-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
}
.login-input:focus {
    outline: none;
    border-color: var(--neon-green);
}
.login-btn {
    background: var(--neon-green);
    color: var(--bg-dark);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}
.login-btn:hover {
    background: var(--neon-green-hover);
}
.demo-btn {
    background: transparent;
    border: 1px solid var(--text-gray);
    color: var(--text-gray);
    margin-top: 0.5rem;
}
.demo-btn:hover {
    background: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.testimonial-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}
.testimonial-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-green);
}
.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.contact-info {
    padding-right: 2rem;
}
.contact-form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-input:focus {
    outline: none;
    border-color: var(--neon-green);
}
.contact-textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-submit:hover {
    background: var(--neon-green) !important;
    color: var(--bg-dark) !important;
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-logo p {
    color: var(--text-gray);
    margin-top: 1rem;
}
.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
}
.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--neon-green);
}
.footer-bottom {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* --- DASHBOARD STYLES --- */
.dashboard-body {
    background-color: #050505; /* Un poco más oscuro */
}
.dashboard-nav {
    position: sticky;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 576px) {
    #user-display-name {
        display: none;
    }
    .user-profile {
        gap: 0.5rem;
    }
}
.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    object-fit: cover;
}
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}
.dashboard-sidebar {
    width: 250px;
    background: #0a0a0a;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.dashboard-sidebar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.sidebar-menu {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    font-family: var(--font-main);
}
.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.05);
}
.tab-btn.active {
    color: var(--neon-green);
    background: rgba(185, 255, 46, 0.05);
    border-right: 3px solid var(--neon-green);
}
.tab-btn svg {
    color: inherit;
}
.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}
.support-btn {
    display: block;
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.5rem;
    text-align: center;
    border-radius: 6px;
    font-size: 0.9rem;
}
.dashboard-main {
    flex: 1;
    padding: 3rem;
}
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dash-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.dash-subtitle {
    color: var(--text-gray);
    margin-bottom: 3rem;
}
.routines-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.accordion-item.active {
    border-color: var(--neon-green);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255,255,255,0.05);
}

.accordion-header h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    transition: color 0.3s;
}

.accordion-item.active .accordion-header h3 {
    color: var(--neon-green);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: transform 0.3s;
    font-family: monospace;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--neon-green);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.exercise-list {
    padding: 0 1.5rem 1.5rem;
}

.exercise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.exercise-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exercise-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.exercise-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.play-exercise-btn {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.play-exercise-btn:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
}
.nutrition-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}
.macro-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}
.macro {
    display: flex;
    flex-direction: column;
}
.macro-value {
    font-size: 2.5rem;
    font-weight: 800;
}
.macro-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.meal-list {
    list-style: none;
    margin-top: 1.5rem;
}
.meal-list li {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-gray);
}
.meal-list li strong {
    color: white;
    display: inline-block;
    width: 100px;
}
.progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}
.metric {
    margin-top: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}
.metric-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}
.metric-trend.down {
    color: var(--neon-green);
    font-weight: 600;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-outline:hover {
    border-color: var(--neon-green);
}
.progress-bar-container {
    height: 8px;
    background: #222;
    border-radius: 4px;
    margin-top: 2rem;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--neon-green);
}
.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-gray);
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}
.upload-box:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* Nuevos estilos Nutrición */
.meal-section {
    margin-bottom: 3rem;
}
.meal-section-title {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.meal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.meal-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-green);
}
.meal-card.selected {
    border-color: var(--neon-green);
    background: rgba(185, 255, 46, 0.05);
    box-shadow: 0 0 15px rgba(185, 255, 46, 0.15);
}
.meal-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}
.meal-ingredients {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}
.meal-ingredients strong {
    color: #ccc;
}
.macro-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.pill {
    background: #222;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
}
.pill.calories {
    color: #ffa500;
    border: 1px solid #ffa50033;
}
.pill.protein {
    color: #4da6ff;
    border: 1px solid #4da6ff33;
}
.pill.carbs {
    color: #ffd700;
    border: 1px solid #ffd70033;
}
.pill.fat {
    color: #ff6b6b;
    border: 1px solid #ff6b6b33;
}

/* Nuevas Media Queries */
@media (max-width: 992px) {
    .about-container, .system-container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .service-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    .service-block.reverse .service-content {
        order: unset;
    }
    .service-block.reverse .service-image {
        order: unset;
    }
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
    }
    .contact-info {
        padding-right: 0;
    }
    .service-image img {
        height: 300px;
    }
    /* Sistema: la caja de login va debajo del texto */
    .system-login-mockup {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .system-features li {
        font-size: 1rem;
    }
    .about-container {
        gap: 2rem;
    }
    .contact-grid {
        gap: 2rem;
    }
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
    .login-box {
        padding: 1.5rem 1rem;
    }
    .service-image img {
        height: 220px;
    }
    .service-block {
        margin-top: 2rem;
    }
}

/* Video Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-modal {
    color: var(--text-gray);
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--neon-green);
    text-decoration: none;
    cursor: pointer;
}

.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(185, 255, 46, 0.2);
    border: 1px solid var(--neon-green);
}

#modalVideo {
    width: 100%;
    display: block;
}

/* Tracker de Nutrición */
.tracker-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tracker-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, background 0.3s;
}
.tracker-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-green);
}
.tracker-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--neon-green);
}


@media (max-width: 992px) {
    /* Dashboard Mobile Layout Fixes */
    .dashboard-layout {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 80px; /* Under navbar */
        z-index: 90;
        background: var(--bg-dark);
        height: auto;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        gap: 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .sidebar-menu::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .tab-btn {
        padding: 1rem;
        font-size: 0.9rem;
        border-right: none !important;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        flex: 1;
        justify-content: center;
        gap: 0.5rem;
    }
    .tab-btn.active {
        border-bottom: 3px solid var(--neon-green) !important;
        background: rgba(185, 255, 46, 0.05);
    }
    .sidebar-footer {
        display: none; /* Hide footer on mobile sidebar to save space */
    }
    .dashboard-main {
        padding: 1.5rem 1rem;
    }
    .progress-grid {
        grid-template-columns: 1fr;
    }
    .meal-cards {
        grid-template-columns: 1fr;
    }
    .routines-accordion .accordion-item {
        margin-bottom: 1rem;
    }
}


/* Floating Support Button */
.floating-support {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--neon-green);
    color: var(--bg-dark);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(185, 255, 46, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.floating-support:active {
    transform: scale(0.9);
}

@media (max-width: 992px) {
    .floating-support {
        display: flex; /* Show on mobile */
    }
}
