/* css/style.css */
:root {
    /* Colors */
    --primary: #0f4c81; /* Professional blue */
    --primary-light: #256bb3;
    --primary-dark: #072a4d;
    --accent: #ff6b35; /* Orange accent */
    --accent-hover: #e55a29;
    
    --bg-color: #ffffff;
    --bg-alt: #f8fafc; /* Subtle gray-blue for alternate sections */
    --text-main: #0f172a;
    --text-muted: #475569;
    
    /* Variables */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mt-4 { margin-top: 1.5rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.05rem; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.bg-light { background-color: var(--bg-alt); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.15rem; border-radius: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}

.header.scrolled .logo, .header.scrolled .nav a {
    color: var(--primary-dark);
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: white;
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

/* Advanced Hero Section */
.hero-advanced {
    position: relative;
    min-height: 100vh;
    background-color: #030a16;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-advanced-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.glow-orb {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, rgba(15, 76, 129, 0.1) 30%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: pulseOrb 8s infinite alternate;
}

@keyframes pulseOrb {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-badge-wrap { margin-bottom: 2rem; }
.hero-badge {
    padding: 0.6rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.glitch-text {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: white;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.03em;
}

.gradient-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(to right, #60a5fa, #c084fc, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-advanced-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-actions-center {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
    transform: translateY(-3px);
    background: rgba(255, 107, 53, 0.1);
}
.btn-glow:hover::before {
    left: 100%;
}

.hero-3d-showcase {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 450px;
    margin-top: 5rem;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.floating-ui-card {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: #0f172a;
}

.floating-ui-card img {
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.floating-ui-card:hover img {
    opacity: 1;
}

.card-1 {
    width: 500px;
    top: 0px;
    left: 50%;
    transform: translateX(-50%) translateZ(80px);
    z-index: 3;
}

.card-2 {
    width: 350px;
    top: 60px;
    left: 8%;
    transform: translateZ(0px) rotateY(20deg);
    z-index: 2;
    filter: blur(1px) brightness(0.7);
}

.code-card {
    width: 380px;
    top: 120px;
    right: 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 20px;
    transform: translateZ(120px) rotateY(-20deg);
    z-index: 4;
    text-align: left;
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 40px rgba(96, 165, 250, 0.1);
}

.code-card pre {
    color: #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.code-card .token-string { color: #a3e635; }
.code-card .token-key { color: #f472b6; }

@media (max-width: 992px) {
    .hero-advanced { min-height: auto; padding-bottom: 100px; }
    .hero-3d-showcase { height: 300px; margin-top: 3rem; }
    .card-1 { width: 90%; max-width: 400px; }
    .card-2 { display: none; }
    .code-card { display: none; }
}

/* Grids & Sections */
section {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Benefits */
.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 76, 129, 0.15);
}

.icon-box {
    width: 65px;
    height: 65px;
    background: rgba(15, 76, 129, 0.05);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    transition: var(--transition);
}

.benefit-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.benefit-card h3 {
    font-size: 1.3rem;
}

/* Demo Section */
.demo-section {
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}

.demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.check-list {
    margin: 2rem 0;
}

.check-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.check-list i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.browser-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.browser-header {
    background: #f8fafc;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
    padding: 1rem;
    border-radius: 16px;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(15, 76, 129, 0.1);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 10px var(--bg-alt);
}

/* Use Cases */
.case-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: var(--bg-alt);
    transition: var(--transition);
    border: 1px solid transparent;
}

.case-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.case-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    border-color: rgba(15, 76, 129, 0.1);
}

.case-card:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rating {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1.1rem;
    color: var(--text-main);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.user-info img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

/* Pricing */
.pricing {
    background: linear-gradient(to bottom, var(--bg-alt) 50%, var(--bg-color) 50%);
}

.pricing-card {
    background: white;
    max-width: 500px;
    margin: 0 auto;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary);
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
    letter-spacing: 1px;
}

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

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.8rem;
    margin-right: 1rem;
    margin-top: 0.8rem;
    font-weight: 600;
}

.currency {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 0.5rem;
}

.amount {
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.9;
    color: var(--primary-dark);
}

.pricing-features {
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.pricing-features i {
    color: #10b981;
    font-size: 1.2rem;
}

.secure-payment {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: var(--transition);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 1.2rem;
}

.faq-item.active .faq-question {
    background: var(--bg-alt);
}

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

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

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary-dark), #0c365c);
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta h2 {
    color: white;
}

.final-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
}

.guarantee-box {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
}

.guarantee-box i {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #061524;
    color: white;
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h3, .footer h4 {
    color: white;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* WhatsApp Float */
/* Bot Widget de Ventas */
.bot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.bot-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 8px 8px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    animation: bounce 2s infinite;
}

.bot-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
}

.bot-text {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.bot-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(255,107,53,0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Chat Window */
.bot-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: bottom right;
    border: 1px solid rgba(0,0,0,0.05);
}

.bot-chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.bot-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.bot-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-profile i {
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-profile h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.bot-profile span {
    font-size: 0.75rem;
    color: #a7f3d0;
    font-weight: 600;
}

#bot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

#bot-close:hover { opacity: 1; transform: scale(1.1); }

.bot-messages {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-messages::-webkit-scrollbar { width: 6px; }
.bot-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.bot-msg {
    background: white;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-self: flex-start;
}

.user-msg {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 2px 5px rgba(15,76,129,0.2);
}

.bot-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.bot-opt-btn {
    background: white;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
}

.bot-opt-btn:hover {
    background: var(--accent);
    color: white;
}

.bot-opt-btn.whatsapp-cta {
    background: #25d366;
    border-color: #25d366;
    color: white;
    text-align: center;
    font-size: 1.05rem;
    padding: 14px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

.bot-opt-btn.whatsapp-cta:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.bot-input-area input {
    flex-grow: 1;
    border: none;
    background: #f1f5f9;
    padding: 12px 15px;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.bot-input-area button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.3rem;
    padding: 0 10px;
    cursor: pointer;
    opacity: 0.5;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    background: white;
    border-radius: 15px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-advanced { min-height: auto; padding-bottom: 100px; }
    .hero-3d-showcase { height: 300px; margin-top: 3rem; }
    .card-1 { width: 90%; max-width: 400px; }
    .card-2 { display: none; }
    .code-card { display: none; }
    
    .hero-content, .demo-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions, .hero-trust {
        justify-content: center;
    }

    .process-steps::before {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 2.5rem 1.5rem;
    }

    section {
        padding: 80px 0;
    }

    /* Reducción general de tamaño de fuente para evitar textos muy grandes en tablet/móvil grande */
    html {
        font-size: 14px;
    }
    
    /* Prevenir que textos largos rompan la pantalla */
    h1, h2, h3, h4, p, a, span {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .bot-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .bot-chat-window {
        width: calc(100vw - 40px);
        right: 0px;
        bottom: 70px;
    }

    /* Reducción extra para móviles pequeños */
    html {
        font-size: 13px;
    }
    
    /* Ajustes específicos para que botones y textos clave no se desborden */
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        white-space: normal;
        height: auto;
        line-height: 1.4;
    }
    
    h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.8rem, 7vw, 2rem); }
    
    .glitch-text, .gradient-text {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    /* Evitar que el badge del hero se divida en dos líneas en smartwatch/S4 */
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
}
