/* 
 * BNEXIA — Custom CSS
 * Estilo limpio, profesional y enfocado a conversión.
 */

/* --- Base & Typography --- */
:root {
    --color-dark: #191E39;
    --color-primary: #1F428D;
    --color-accent: #5F24FF;
    --color-cyan: #1FB5D7;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- FAQ Accordion Styles --- */
.faq-item button svg {
    transition: transform 0.3s ease;
}

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

.faq-item.active .faq-content {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

.faq-item .faq-content {
    display: none;
}

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

/* --- Fade-in Animations (Intersection Observer) --- */
/* Estado oculto inicial */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado visible cuando el observer lo activa */
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones heredadas (compatibilidad) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Table Styles for Pricing --- */
table th, table td {
    padding-left: 1rem;
    padding-right: 1rem;
}

table tr:first-child td {
    border-top: none;
}

/* --- Link Hover Effects --- */
a {
    transition: all 0.2s ease-in-out;
}

/* --- Chat Bubble Typing Effect (Optional enhancement) --- */
.chat-typing::after {
    content: '...';
    animation: typing 1.5s steps(4, end) infinite;
}

@keyframes typing {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* --- Print Styles --- */
@media print {
    nav, footer, .no-print { display: none; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { text-decoration: underline; color: #000; }
}