/* ================================
   PersonalBot - Landing Page
   ================================ */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition);
}

.header.scrolled,
.header-solid {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-logo .logo-icon {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(247, 147, 30, 0.15) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: var(--bg-card);
    border-radius: 40px;
    border: 8px solid #2a2a5a;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.phone-screen {
    height: 100%;
    background: var(--bg-darker);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chat-demo {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chat-message {
    max-width: 85%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--gradient);
    color: var(--text);
}

.chat-message.ai {
    align-self: flex-start;
    background: var(--bg-card);
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-card span {
    font-size: 1.5rem;
}

.card-1 { top: 10%; left: -20%; animation-delay: 0s; }
.card-2 { top: 50%; right: -15%; animation-delay: 1s; }
.card-3 { bottom: 15%; left: -10%; animation-delay: 2s; }

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* Features */
.features {
    padding: var(--space-3xl) 0;
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How it works */
.how-it-works {
    padding: var(--space-3xl) 0;
}

.steps {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.step {
    text-align: center;
    max-width: 300px;
    position: relative;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto var(--space-lg);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    padding: var(--space-3xl) 0;
    background: var(--bg-darker);
}

.pricing-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition);
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.pricing-card.current {
    border-color: var(--success);
}

.popular-badge,
.current-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--text);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.current-badge {
    background: var(--success);
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.pricing-price .currency {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
}

.pricing-price .period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-light);
}

.pricing-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Testimonials */
.testimonials {
    padding: var(--space-3xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-darker);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 700px;
    margin: var(--space-3xl) auto 0;
}

.pricing-faq h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.faq-item h4 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Current Plan Banner */
.current-plan-banner {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(255, 107, 53, 0.15));
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.plan-info .plan-badge {
    display: inline-block;
    background: var(--success);
    color: var(--text);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.plan-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.plan-info p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================
   Feature Cards - Interactivos + Modal
   ================================ */

.feature-card {
    cursor: pointer;
}

.feature-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.feature-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap var(--transition);
}

.feature-toggle svg {
    transition: transform var(--transition);
}

.feature-card:hover .feature-toggle,
.feature-card:focus-visible .feature-toggle {
    gap: calc(var(--space-xs) + 4px);
}

.feature-card:hover .feature-toggle svg,
.feature-card:focus-visible .feature-toggle svg {
    transform: translateX(4px);
}

/* Modal de Recursos */
.feature-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(18, 15, 12, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-modal-overlay.open {
    display: flex;
}

.feature-modal-overlay.show {
    opacity: 1;
}

.feature-modal {
    position: relative;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition);
}

.feature-modal-overlay.show .feature-modal {
    transform: translateY(0) scale(1);
}

.feature-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.feature-modal-close:hover {
    color: var(--text);
    border-color: var(--primary);
}

.feature-modal-icon {
    font-size: 2.5rem;
    margin-top: var(--space-lg);
    line-height: 1;
}

.feature-modal h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.feature-modal-tagline {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.feature-modal-body p {
    color: var(--text-light);
    line-height: 1.6;
}

.feature-section {
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.feature-section h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.feature-section .feature-example {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    margin-top: var(--space-sm);
}

.feature-example::before {
    content: '→';
    color: var(--primary-light);
    flex-shrink: 0;
    font-weight: 700;
}

.feature-example strong {
    color: var(--text);
    font-weight: 600;
    margin-right: var(--space-xs);
}

.feature-example span {
    color: var(--text-light);
}

.feature-modal-cta {
    width: 100%;
    margin-top: var(--space-md);
}

@media (max-width: 1024px) {
    .feature-modal {
        width: calc(100vw - 32px);
    }
}
/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .steps {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .steps::before {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions .btn-ghost {
        display: none;
    }
    
    .current-plan-banner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: var(--space-lg);
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}
