/* style.css - MaIA Plus Landing Page */

:root {
    /* Colors - Coherent with App */
    --bg-dark: #f8fafc;
    /* Fondo claro general */
    --bg-card: #ffffff;
    /* Tarjetas blancas */
    --brand-purple: #7C3AED;
    --brand-blue: #3B82F6;
    --brand-purple-glow: rgba(124, 58, 237, 0.4);
    --accent-amber: #FBBF24;
    --accent-green: #059669;
    --text-main: #0f172a;
    /* Texto oscuro */
    --text-muted: #64748b;
    /* Texto gris */
    --border-glass: rgba(15, 23, 42, 0.1);

    /* Gradients */
    --gradient-neon: linear-gradient(to right, var(--brand-purple), var(--brand-blue));

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-purple);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.text-center {
    text-align: center;
}

.align-center {
    margin: 0 auto;
    text-align: center;
}

.mb-section {
    margin-bottom: 3rem;
}

.separator-top {
    margin-top: 6rem;
}

.gradient-text {
    color: var(--brand-purple);
}

/* Glassmorphism / Cards */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--brand-purple);
    color: white;
    box-shadow: 0 4px 14px var(--brand-purple-glow);
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--brand-purple-glow);
}

.btn-secondary {
    color: var(--text-main);
    background: white;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* Pulse animation for CTA */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--brand-purple-glow);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    border-radius: 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.logo .highlight {
    color: var(--brand-purple);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent 50%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 40%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--brand-purple);
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Mockup */
.mockup-img {
    width: 100%;
    height: 400px;
    border-radius: 24px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
}

.mockup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
}

.mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    z-index: 1;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Trust Logos */
.trust-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(30, 41, 59, 0.3);
}

.trust-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.6;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    padding: 2.5rem;
    text-align: center;
}

.stat-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Features */
.features-section {
    padding-top: 6rem;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-title p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-purple);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* Pricing Section */
.pricing-section {
    padding-bottom: 4rem;
}

.pricing-card {
    max-width: 600px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
}

.pricing-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.pricing-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.price {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-amber);
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--accent-amber);
}

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

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--brand-purple);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--brand-purple);
}

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

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

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.text-gray {
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Chat Widget - Bottom Right */
.chat-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-purple);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s;
    color: white;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.chat-panel {
    width: 350px;
    height: 480px;
    margin-bottom: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

/* Chat structure */
.chat-header {
    padding: 16px;
    background: white;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-left: 8px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--brand-purple);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    font-size: 0.9rem;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.msg-content {
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.4;
}

.message.bot .msg-content {
    background: white;
    /* Lighter bg for bot msg */
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 2px;
}

.message.user .msg-content {
    background: var(--brand-purple);
    color: white;
    border-bottom-right-radius: 2px;
}

/* Loading Dots */
.typing-indicator {
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: inline-flex;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-dark);
}

#chatForm {
    display: flex;
    gap: 8px;
}

#chatInput {
    flex: 1;
    background: white;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

#chatInput:focus {
    outline: none;
    border-color: var(--brand-purple);
}

.send-btn {
    background: var(--brand-purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #6d28d9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
    }

    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .chat-panel {
        width: calc(100vw - 48px);
        right: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0;
    }
}