/* ============================================
   GastroAgent AI - Landing Page Styles
   Paleta Optimizada: Morado Tech + Calidez
   Mobile-First Responsive Design
   ============================================ */

/* === CSS Variables === */
:root {
    /* Colores Principales */
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --secondary: #EC4899;
    --accent: #10B981;
    
    /* Fondos */
    --bg-dark: #0F172A;
    --bg-dark-purple: #1E1B4B;
    --bg-card: #1E293B;
    --bg-light: #F8FAFC;
    
    /* Texto */
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-dark: #1E293B;
    --text-muted: #94A3B8;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --gradient-warm: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Bordes */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: none;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.nav-actions {
    display: none;
    gap: var(--spacing-sm);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: var(--spacing-md);
    display: none;
    flex-direction: column;
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.mobile-menu a:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

/* === Buttons === */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* === Hero Section === */
.hero {
    background: var(--gradient-dark);
    color: var(--text-primary);
    padding: 8rem var(--spacing-sm) var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge,
.badge-purple {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
}

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

.hero h1 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.hero-features {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item svg {
    color: var(--accent);
}

.trust-badges {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.trust-badges span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.logos {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.logo-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === Section Styles === */
section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.125rem;
}

/* === Problems Section === */
.problems {
    background: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.problem-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.problem-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

/* === Solution Section === */
.solution {
    background: var(--bg-light);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature {
    display: flex;
    gap: var(--spacing-sm);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.solution-visual {
    display: flex;
    justify-content: center;
}

.dashboard-preview {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.dashboard-header {
    background: var(--bg-card);
    padding: var(--spacing-sm);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-content {
    padding: var(--spacing-md);
    display: grid;
    gap: var(--spacing-sm);
}

.stat-card {
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-change {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
}

/* === How It Works === */
.how-it-works {
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.step h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

/* === Benefits === */
.benefits {
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.benefit-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.benefit-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

/* === Pricing === */
.pricing {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: var(--spacing-xs);
}

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

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.plan-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid #F1F5F9;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* === Testimonials === */
.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.testimonial-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.quote {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === FAQ === */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md) 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
}

.faq-icon {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: var(--spacing-md);
}

.faq-answer p {
    color: var(--text-muted);
}

/* === CTA Final === */
.cta-final {
    background: var(--gradient-dark);
    color: var(--text-primary);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.cta-content h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.cta-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-col a {
    display: block;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Responsive Design === */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .nav-actions {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text > * {
    animation: fadeIn 0.8s ease-out backwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }
.hero-text > *:nth-child(5) { animation-delay: 0.5s; }
