/* ============================================
   GymPlus Landing Page
   ============================================ */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --purple: #764ba2;
    --pink: #e74c6f;
    --dark: #1a1a2e;
    --darker: #16163a;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16163a 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d3748;
    overflow-x: hidden;
}

.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--gradient);
    border: none;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.py-section { padding: 5rem 0; }

.badge-label {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.badge-label-dark {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* ============ Navbar ============ */
#mainNav {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: transparent;
}
#mainNav.scrolled {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.brand-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--pink);
}
.brand-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 14px;
    background: var(--pink);
    border-radius: 2px;
}
.brand-icon-sm {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: var(--pink);
}
.brand-plus-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 10px;
    background: var(--pink);
    border-radius: 2px;
}

/* ============ Hero ============ */
.hero-section {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    min-height: 100vh;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(102,126,234,0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 80% 20%, rgba(118,75,162,0.1) 0%, transparent 60%);
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
}
.opacity-85 { opacity: 0.85; }
.opacity-60 { opacity: 0.6; }

/* Mockup */
.hero-mockup {
    position: relative;
    perspective: 1000px;
}
.mockup-browser {
    background: #1e1e3f;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.mockup-browser:hover {
    transform: rotateY(0) rotateX(0);
}
.mockup-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
}
.mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.mockup-bar span:first-child { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }

.mockup-content {
    display: flex;
    min-height: 260px;
}
.mockup-sidebar {
    width: 60px;
    background: rgba(255,255,255,0.03);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.mockup-nav-item {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}
.mockup-nav-item.active {
    background: var(--gradient);
}
.mockup-main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mockup-kpi-row {
    display: flex;
    gap: 8px;
}
.mockup-kpi {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}
.mockup-kpi.c1 { background: linear-gradient(135deg, rgba(102,126,234,0.3), rgba(102,126,234,0.1)); }
.mockup-kpi.c2 { background: linear-gradient(135deg, rgba(72,187,120,0.3), rgba(72,187,120,0.1)); }
.mockup-kpi.c3 { background: linear-gradient(135deg, rgba(237,137,54,0.3), rgba(237,137,54,0.1)); }
.mockup-kpi.c4 { background: linear-gradient(135deg, rgba(231,76,111,0.3), rgba(231,76,111,0.1)); }

.mockup-chart {
    height: 80px;
    border-radius: 8px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 18px,
        rgba(102,126,234,0.15) 18px,
        rgba(102,126,234,0.15) 26px
    );
    position: relative;
    overflow: hidden;
}
.mockup-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 70%;
    background: linear-gradient(to top, rgba(102,126,234,0.2), transparent);
    border-radius: 8px 8px 0 0;
}

.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mockup-row {
    height: 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
}

.mockup-chatbot {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    width: 180px;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}
.chatbot-header {
    background: var(--gradient);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.chatbot-msg {
    padding: 10px 12px;
    font-size: 0.7rem;
    color: #4a5568;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============ Features ============ */
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-card.highlight {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(118,75,162,0.03), rgba(102,126,234,0.03));
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.bg-primary-soft { background: rgba(102,126,234,0.1); color: var(--primary); }
.bg-success-soft { background: rgba(72,187,120,0.1); color: #48bb78; }
.bg-warning-soft { background: rgba(237,137,54,0.1); color: #ed8936; }
.bg-info-soft { background: rgba(56,178,172,0.1); color: #38b2ac; }
.bg-danger-soft { background: rgba(231,76,111,0.1); color: var(--pink); }
.bg-purple-soft { background: rgba(118,75,162,0.1); color: var(--purple); }
.bg-purple { background: var(--purple) !important; }

/* ============ Modules ============ */
.module-pill {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 50px;
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}
.module-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.module-pill.highlight {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}
.module-pill i { margin-right: 4px; }

/* ============ AI Demo ============ */
.ai-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(72,187,120,0.2);
    color: #48bb78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.ai-chat-demo {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ai-chat-header {
    background: var(--gradient);
    color: #fff;
    padding: 1rem 1.2rem;
    font-weight: 600;
}
.ai-chat-header small {
    opacity: 0.7;
    font-weight: 400;
    margin-left: 0.5rem;
}
.ai-chat-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.ai-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.ai-msg.user {
    background: var(--gradient);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.ai-msg.bot {
    background: #f7f7f9;
    color: #4a5568;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* ============ Pricing ============ */
.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}
.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a0aec0;
}
.pricing-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-period {
    font-size: 1rem;
    color: #a0aec0;
    font-weight: 500;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i {
    color: #48bb78;
    margin-right: 0.5rem;
    width: 16px;
}

/* ============ FAQ ============ */
.accordion-item {
    border: none;
    border-bottom: 1px solid #edf2f7;
    background: transparent;
}
.accordion-button {
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    box-shadow: none !important;
    font-size: 1rem;
    padding: 1.2rem 0;
}
.accordion-button:not(.collapsed) {
    color: var(--primary);
    background: transparent;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23667eea' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
}
.accordion-body {
    padding: 0 0 1.2rem 0;
    color: #718096;
}

/* ============ Registro ============ */
.bg-gradient-dark {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}
.bg-gradient-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(102,126,234,0.1), transparent 70%);
}

.registro-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.registro-card .form-control {
    border-radius: var(--radius-sm);
    border: 2px solid #edf2f7;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.registro-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.cta-step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 0.5rem;
}

/* ============ WhatsApp ============ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

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

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .hero-section { min-height: auto; }
    .hero-section .row { min-height: auto; padding-top: 6rem; }
    .py-section { padding: 3.5rem 0; }
    .display-4 { font-size: 2.2rem; }
    .display-6 { font-size: 1.6rem; }
}

@media (max-width: 575px) {
    .pricing-card { padding: 2rem 1.5rem; }
    .registro-card { padding: 1.5rem; }
    .hero-section .row { padding-top: 5rem; }
    .d-flex.gap-4.small { flex-direction: column; gap: 0.5rem !important; }
}

/* ============ GymBot Chat Widget ============ */
#gymbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

#gymbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    position: relative;
}
#gymbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(102, 126, 234, 0.6);
}
#gymbot-toggle.active {
    background: #e53e3e;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

#gymbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: gymbot-slide-up 0.3s ease;
}

@keyframes gymbot-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gymbot-header {
    background: var(--gradient);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gymbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gymbot-header-info i {
    font-size: 1.3rem;
}
.gymbot-header-info strong {
    display: block;
    font-size: 0.95rem;
}
.gymbot-header-info small {
    opacity: 0.75;
    font-size: 0.72rem;
}
#gymbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px 8px;
}
#gymbot-close:hover { opacity: 1; }

#gymbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 360px;
    background: #f8f9fb;
}

.gymbot-msg {
    display: flex;
    gap: 8px;
    max-width: 90%;
    animation: gymbot-fade-in 0.3s ease;
}
.gymbot-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.gymbot-msg.bot {
    align-self: flex-start;
}

@keyframes gymbot-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gymbot-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.gymbot-msg.bot .gymbot-avatar {
    background: var(--gradient);
    color: #fff;
}
.gymbot-msg.user .gymbot-avatar {
    background: #e2e8f0;
    color: #718096;
}

.gymbot-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.gymbot-msg.bot .gymbot-bubble {
    background: #fff;
    color: #4a5568;
    border: 1px solid #edf2f7;
    border-bottom-left-radius: 4px;
}
.gymbot-msg.user .gymbot-bubble {
    background: var(--gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.gymbot-bubble.typing {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
}
.gymbot-bubble.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a0aec0;
    animation: gymbot-typing 1.2s infinite;
}
.gymbot-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.gymbot-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes gymbot-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

#gymbot-form {
    display: flex;
    padding: 12px;
    border-top: 1px solid #edf2f7;
    background: #fff;
    gap: 8px;
}
#gymbot-input {
    flex: 1;
    border: 2px solid #edf2f7;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Inter', sans-serif;
}
#gymbot-input:focus {
    border-color: var(--primary);
}
#gymbot-form button[type="submit"] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    font-size: 0.85rem;
}
#gymbot-form button[type="submit"]:hover {
    transform: scale(1.08);
}

/* GymBot responsive */
@media (max-width: 480px) {
    #gymbot-window {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 70px;
        max-height: 70vh;
    }
    .whatsapp-float { bottom: 90px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

#gymbot-messages::-webkit-scrollbar { width: 5px; }
#gymbot-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
