:root {
    /* Fondo limpio y corporativo */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    
    /* Textos oscuros */
    --text-main: #0f172a;
    --text-muted: #334155; /* Oscurecido para mejor ratio de contraste WCAG */
    
    /* Acentos tecnológicos */
    --accent-primary: #1d4ed8; /* Azul más profundo para contraste con texto blanco */
    --accent-secondary: #059669; /* Verde más profundo para contraste */
    
    /* Glass y bordes sutiles */
    --border-light: rgba(0, 0, 0, 0.08);
    --panel-bg: rgba(255, 255, 255, 0.85);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Glassmorphism utility para modo claro */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Screen Reader Only - Ocultar visualmente pero no para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enlace para saltar al contenido al usar teclado */
.skip-link:focus {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--accent-primary);
    color: white;
    padding: 16px;
    z-index: 99999;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn-primary, .btn-primary-sm, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #1d4ed8);
    color: white;
    padding: 16px 32px;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary-sm {
    background: var(--accent-primary);
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 14px;
}

.btn-primary-sm:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 15px 31px;
    border: 2px solid var(--border-light);
    font-size: 16px;
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
}

.logo img {
    height: 36px;
}

.logo-text {
    color: var(--text-main);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 18px;
}

/* Grid 3 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    padding: 40px 32px;
    transition: var(--transition);
    background: var(--bg-card);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Before vs After */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.compare-card {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.compare-card.before {
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}

.compare-card.before h3 {
    color: #e11d48;
}

.compare-card.before i {
    color: #e11d48;
}

.compare-card.after {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.compare-card.after h3 {
    color: #059669;
}

.compare-card.after i {
    color: #059669;
}

.compare-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-list {
    list-style: none;
}

.compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-main);
}

/* Chat Mockup */
.mockup-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.mockup-header {
    background: #f1f5f9;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.mockup-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafafa;
}

.bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.bubble.user {
    background: #e2e8f0;
    color: var(--text-main);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble.bot {
    background: var(--accent-primary);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Interactive Try & Contact Block */
.try-block {
    text-align: center;
    background: var(--bg-card);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-top: 60px;
}

.try-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-try {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-try:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.faq-answer {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.lang-option:hover {
    background-color: #f1f5f9;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

footer .logo-text {
    color: white;
}

/* Web Chat Widget CSS */
/* Light Theme Variables for Chat */
:root {
    --chat-bg: #ffffff;
    --chat-header-bg: rgba(37, 99, 235, 0.05);
    --chat-border: #e2e8f0;
    --chat-bubble-bot: #2563eb;
    --chat-bubble-user: #f1f5f9;
    --chat-text-dark: #1e293b;
    --chat-text-white: #ffffff;
    --chat-accent-blue: #2563eb;
}

.chat-toggle-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    z-index: 1000;
    animation: float 5s ease-in-out infinite;
}

.chat-toggle-pill {
    background: var(--chat-accent-blue);
    color: var(--chat-text-white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-toggle-pill:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 40px;
    width: 360px;
    height: 520px;
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--chat-bg);
    border-radius: 16px;
    border: 1px solid var(--chat-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-widget.expanded {
    width: 90vw;
    height: 90vh;
    max-height: 90vh;
    bottom: 5vh;
    right: 5vw;
    border-radius: var(--radius-lg);
    z-index: 2147483647 !important;
}
@media (max-width: 768px) {
    .chat-widget.expanded {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        z-index: 2147483647 !important;
    }
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--chat-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--chat-header-bg);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
    width: 32px;
    height: 32px;
}

.bot-avatar {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: contain;
}

.status-indicator-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.chat-header h4 {
    margin: 0;
    font-size: 15px;
    color: var(--chat-text-dark);
    font-weight: 600;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--chat-text-dark);
}

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

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message.bot {
    background: var(--chat-bubble-bot);
    color: var(--chat-text-white);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--chat-bubble-user);
    color: var(--chat-text-dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* Quick Replies */
.quick-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.quick-btn {
    background: transparent;
    border: 1px solid var(--chat-accent-blue);
    color: var(--chat-accent-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--chat-border);
    display: flex;
    gap: 12px;
    background: #ffffff;
}

#chat-input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--chat-border);
    color: var(--chat-text-dark);
    padding: 12px 16px;
    border-radius: 20px;
    outline: none;
    transition: var(--transition);
}

#chat-input::placeholder {
    color: #94a3b8;
}

#chat-input:focus {
    border-color: var(--chat-accent-blue);
}

.send-btn-accent {
    background: var(--chat-accent-blue);
    color: var(--chat-text-white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn-accent:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 900px) {
    .nav-links { gap: 16px; }
    .nav-links a:not(.btn-primary-sm) { display: none; }
    .hero-bg-glow { width: 100vw; height: 100vw; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 40px; }
    .hero-cta { flex-direction: column; }
    .chat-tooltip { display: none; }
    
    .hide-mobile { display: none !important; }
    .step-empty { display: none !important; }
    .step-content.left, .step-content.right {
        width: calc(100% - 60px) !important;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
    }
    .roadmap-step {
        justify-content: flex-start !important;
    }
    .founders-card {
        flex-direction: column !important;
        text-align: center;
        padding: 24px !important;
    }
    .founders-text {
        text-align: center;
    }
    .modal-content {
        padding: 20px !important;
    }
    .comparison-table-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* FAQ Hover */
.faq-question:hover {
    color: var(--accent-primary) !important;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Scroll Ticker */
.tech-scroll-section {
    padding: 30px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Fading edges */
.tech-scroll-section::before,
.tech-scroll-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-scroll-section::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.tech-scroll-section::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.tech-scroll-track {
    display: flex;
    gap: 60px;
    align-items: center;
    width: max-content;
    animation: scroll-x 25s linear infinite;
}

.tech-scroll-track:hover {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 18px;
    white-space: nowrap;
    opacity: 0.7;
    transition: var(--transition);
}

.tech-item:hover {
    opacity: 1;
    color: var(--text-main);
    transform: scale(1.05);
}

.tech-item img {
    height: 28px;
    width: auto;
}

/* ROI Calculator Styles */
.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.roi-select, .roi-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #64748b; /* Contraste 3:1 WCAG garantizado */
    border-radius: var(--radius-sm);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.roi-select:focus, .roi-input:focus {
    border-color: var(--accent-primary);
}

.roi-slider {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.slider-value {
    text-align: right;
    margin-top: 8px;
    font-weight: 600;
    color: var(--accent-primary);
}

@keyframes scroll-x {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

/* Nuevas animaciones de flotación y brillo */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.card-icon {
    animation: float 4s ease-in-out infinite;
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Mobile Responsiveness for Chat */
@media (max-width: 768px) {
    .chat-toggle-container {
        right: 15px;
        bottom: 15px;
        animation: none; /* Disable float on mobile to avoid jumping */
    }
    
    .chat-toggle-pill {
        padding: 10px 16px;
        font-size: 13px;
        max-width: 90vw;
        white-space: normal;
        text-align: center;
    }

    .chat-widget {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 75px;
        height: calc(100dvh - 90px);
        max-height: 500px;
        z-index: 2147483647 !important;
    }
}

/* WhatsApp Button Styles */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    background: #25D366;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-btn {
    position: fixed;
    bottom: 104px;
    right: 40px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    background-color: #25D366;
    color: white;
    border-radius: 30px;
    padding: 8px 24px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 998;
    transition: var(--transition);
    animation: float 5s ease-in-out infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        left: 15px;
        right: auto;
        bottom: 15px;
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        animation: none;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float-btn .icon-circle {
        margin-right: 0 !important;
    }
}
