:root {
    /* Nueva Paleta Premium (Oscura con Acentro Esmeralda) */
    --bg-color: #07090b; 
    --bg-secondary: #0d1117;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent: #00e5a0; /* Verde Esmeralda Premium */
    --accent-hover: #00c98d;
    --accent-glow: rgba(0, 229, 160, 0.2);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(13, 17, 23, 0.6);
    --glass-bg: rgba(7, 9, 11, 0.7);
    --divider: rgba(255, 255, 255, 0.05);

    /* Tipografías */
    --font-heading: 'DM Sans', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Tipografía Base */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.space-mono {
    font-family: var(--font-mono);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 1.75rem;
    background: linear-gradient(160deg, #FFFFFF 0%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.massive-text {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin-bottom: 3.5rem;
    color: #e6e6e6;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
    color: #f0f0f0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4em 1em;
    background: var(--accent-glow);
    border-radius: 100px;
}

/* Base Grids e IDs */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}

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

.container-small {
    max-width: 850px;
}

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

.huge-padding {
    padding: 10vh 0;
}

/* Glass Cards Genéricas */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 229, 160, 0.08);
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    width: 100%;
}

.fullscreen {
    min-height: 100vh;
    min-height: 100svh; /* avoids mobile browser chrome overlap */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Apple-style radial darkening — keeps neural network visible at edges, text readable at center */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(7,9,11,0.62) 0%, rgba(7,9,11,0.2) 55%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Apple-style bottom fade from hero to content */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    pointer-events: none;
    z-index: 1;
}

/* Background Animations / Orbe */
.hero-orb-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Neural network — full-screen hero background */
#neural-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.hero-orb {
    position: absolute;
    inset: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
    filter: blur(80px);
    animation: orbPulse 8s ease-in-out infinite alternate;
}

.hero-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 160, 0.1);
    animation: spin 20s linear infinite;
}

.hero-orb-ring::before, .hero-orb-ring::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
}

.hero-orb-ring::before { top: -3px; left: 50%; }
.hero-orb-ring::after { bottom: 20%; right: 5%; }

@keyframes orbPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Reading Progress */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 1000;
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.1s ease-out;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--text-primary);
}

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    opacity: 1 !important;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg-color) !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Reveal Words */
.reveal-words span {
    opacity: 0.2;
    transition: opacity 0.5s ease;
    display: inline-block;
}
.reveal-words span.active { opacity: 1; color: var(--text-primary); }

/* Etiquetas pulsantes */
.badge-pulsating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 229, 160, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 229, 160, 0); }
}

/* Hero Content — Apple-style: centered over full-screen neural bg */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Subtle bottom vignette pull — content sits slightly below center */
    margin-top: 3vh;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 16px rgba(7,9,11,0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Botones Premium */
.btn-apple {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 229, 160, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 160, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* KPIs Hero */
.hero-kpis {
    display: flex;
    gap: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.kpi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.kpi-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Trust Bar */
.trust-bar {
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    background: rgba(0,0,0,0.3);
    padding: 1.5rem 0;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    position: relative;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.process-step::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: 0.3s;
}

.process-step:hover::before {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.process-step:hover {
    border-top-color: var(--accent);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.95rem;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ROI Calculator */
.calculator-wrapper {
    padding: 3rem;
}

.calc-header {
    margin-bottom: 3rem;
}

.calc-body {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.sliders-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Range Slider Customization */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 15px 0;
    background: transparent;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    border: none;
}
input[type=range]::-webkit-slider-thumb {
    border: 2px solid var(--accent);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -7px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.results-section {
    background: rgba(0,0,0,0.5);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--accent-glow);
}

.result-box:not(:last-child) {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.result-box h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Integraciones Marquee */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: scroll-x 40s linear infinite;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    gap: 2rem;
    padding-right: 2rem;
}

@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brand-box {
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    background: var(--card-bg);
    transition: 0.3s;
}

.brand-box:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Testimonios */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #fff;
}

.avatar-1 { background: linear-gradient(135deg, #00e5a0, #007a55); }
.avatar-2 { background: linear-gradient(135deg, #58a6ff, #1f6feb); }
.avatar-3 { background: linear-gradient(135deg, #a371f7, #6e40c9); }

.review-author-info strong {
    display: block;
    color: var(--text-primary);
}

.review-author-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
}

/* Plan Precios */
.black-section {
    background: #000;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.price-amount {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-primary);
}

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

.price-desc {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    min-height: 50px;
}

.price-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.price-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #d1d5db;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.full-width {
    width: 100%;
    text-align: center;
}

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

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* Contacto */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-header { margin-bottom: 3rem; }

.apple-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-container { position: relative; }

.input-container input, .input-container textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1rem 0.5rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.input-container textarea { resize: vertical; min-height: 100px; }

.input-container input:focus, .input-container textarea:focus {
    border-color: var(--accent);
    background: rgba(0,229,160,0.05);
}

.input-container label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s;
}

.input-container input:focus ~ label,
.input-container input:not(:placeholder-shown) ~ label,
.input-container textarea:focus ~ label,
.input-container textarea:not(:placeholder-shown) ~ label {
    top: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
}

.form-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.form-trust-note svg { color: var(--accent); }

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: var(--bg-color);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-brand p { margin-top: 0.5rem; font-size: 0.9rem; }
.footer-socials { margin-top: 1.5rem; display: flex; gap: 1rem; }
.footer-socials a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem;}
.footer-socials a:hover { color: var(--accent); }
.footer-links-grid { display: flex; gap: 4rem; }
.footer-col h4 { margin-bottom: 1rem; font-size: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition:0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; text-align: center; font-size: 0.85rem; color:var(--text-secondary); }

/* Chatbot Widget (Simplificado y oculto por ahora si no es requerido modificar) */
#chatbot-widget { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
#chatbot-toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #000; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(0, 229, 160, 0.3); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
#chatbot-toggle:hover { transform: scale(1.05); }
.chat-icon { width: 28px; height: 28px; }
.close-icon { width: 28px; height: 28px; display: none; }
#chatbot-widget.open .chat-icon { display: none; }
#chatbot-widget.open .close-icon { display: block; }
#chatbot-window { display: none; position: absolute; bottom: 80px; right: 0; width: 350px; height: 500px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.5); overflow: hidden; }
#chatbot-widget.open #chatbot-window { display: flex; }
.chat-header { background: var(--glass-bg); padding: 1rem; border-bottom: 1px solid var(--border-color); }
.bot-info { display: flex; align-items: center; gap: 1rem; }
.bot-avatar { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-weight: bold; }
.status { font-size: 0.8rem; color: var(--accent); }
#chat-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.message { padding: 0.8rem 1rem; border-radius: 12px; max-width: 80%; font-size: 0.95rem; line-height: 1.4; }
.bot-message { background: var(--card-bg); align-self: flex-start; }
.user-message { background: var(--accent); color: #000; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-input-area { display: flex; border-top: 1px solid var(--border-color); padding: 0.5rem; background: var(--bg-secondary); }
#chat-input { flex: 1; background: transparent; border: none; padding: 0.5rem; color: #fff; outline: none; }
#chat-send { background: transparent; border: none; color: var(--accent); cursor: pointer; padding: 0.5rem; width: 40px;}

/* Form feedback in-page */
#form-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}
.form-feedback-success {
    display: block !important;
    background: rgba(0, 229, 160, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 229, 160, 0.25);
}
.form-feedback-error {
    display: block !important;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* === SOFIA — Enhanced chatbot identity === */
.bot-role {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    letter-spacing: 0.03em;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 5px;
    vertical-align: middle;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

/* Quick-reply chips */
.chat-quick-replies {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg, rgba(7,9,11,0.7));
}

.quick-chip {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 20px;
    padding: 0.28rem 0.8rem;
    font-size: 0.76rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.quick-chip:hover {
    background: var(--accent);
    color: #000;
}

/* Sofia avatar animated ring */
.sofia-avatar {
    position: relative;
}

.sofia-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.45;
    animation: avatar-ring 3s ease-in-out infinite;
}

@keyframes avatar-ring {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.12); opacity: 0.15; }
}

/* Typing indicator */
.message.typing {
    font-style: italic;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message.typing::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 6px;
    background: radial-gradient(circle, var(--accent) 30%, transparent 70%);
    border-radius: 50%;
    animation: typing-bounce 1s ease-in-out infinite;
}

@keyframes typing-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-4px); opacity: 0.5; }
}

/* Animations Genericas */
.reveal-element { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-element.visible { opacity: 1; transform: translateY(0); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .process-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .hero-kpis { gap: 2rem; justify-content: center; }
    .hero-orb-container { width: 400px; height: 400px; }
    .calc-body { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Nav */
    nav ul { display: none; }
    .mobile-toggle { display: flex; }
    #nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        z-index: 99;
    }

    /* Hero — use svh so mobile browser chrome doesn't overlap content */
    .fullscreen {
        min-height: 100svh;
        min-height: 100vh; /* fallback */
    }
    .hero-content {
        padding: 100px 1.5rem 2rem; /* top clears fixed nav (~80px) */
        margin-top: 0;
        justify-content: center;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        letter-spacing: -0.03em;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .badge-pulsating {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 1.25rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }
    .hero-actions .btn-apple {
        width: 100%;
        text-align: center;
    }
    .hero-kpis {
        flex-wrap: wrap;
        gap: 1.5rem 2rem;
        justify-content: center;
        padding-top: 1.5rem;
    }

    /* Grids */
    .process-grid, .pricing-grid, .services-grid, .reviews-grid { grid-template-columns: 1fr; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; gap: 1rem; }

    /* Footer */
    .footer-links-grid { flex-direction: column; gap: 2rem; }

    /* Cards */
    .glass-card { padding: 1.5rem; }

    /* Price card popular offset looks wrong on single column */
    .price-card.popular { transform: none; margin-top: 0.5rem; }

    /* Chatbot — keep inside viewport on narrow screens */
    #chatbot-widget { bottom: 20px; right: 16px; }
    #chatbot-window {
        width: calc(100vw - 32px);
        max-width: 340px;
        right: 0;
        bottom: 74px;
    }

    /* Sections */
    .huge-padding { padding: 7vh 0; }
    .section-title h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .massive-text { font-size: clamp(1.6rem, 5vw, 2.4rem); }
}

/* Utils Extras */
.overflow-hidden { overflow: hidden; }

/* Custom Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,229,160,0.03) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: screen;
}

/* Stagger Effects */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* n8n Canvas & Nodes */
.n8n-canvas {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    height: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.connection-lines {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 300px;
    transform: translateY(-50%);
    z-index: 0;
}

.base-path {
    stroke: var(--border-color);
    stroke-width: 2;
    fill: none;
}

.flow-packet {
    stroke: var(--accent);
    stroke-width: 5;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 20 800; /* small packet, large gap */
    animation: flowPulse 2.5s linear infinite;
    filter: drop-shadow(0 0 8px var(--accent));
}

.packet-1 { animation-delay: 0s; }
.packet-2 { animation-delay: 1.25s; }

@keyframes flowPulse {
    0% { stroke-dashoffset: 800; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.node-item {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    width: 260px;
    text-align: left;
    transition: 0.3s;
}

.node-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.node-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.node-content { display: flex; flex-direction: column; }
.node-title { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.node-desc { font-size: 0.8rem; color: var(--accent); margin-top: 0.2rem; }

.node-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--accent);
    opacity: 0;
    pointer-events: none;
    animation: nodePulse 3s infinite;
}

#node-webhook .node-pulse { animation-delay: 0s; }
#node-ai .node-pulse { animation-delay: 1s; }
#node-db .node-pulse { animation-delay: 2s; }

@keyframes nodePulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

/* Testimonials Updates */
.review-stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.real-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .n8n-canvas {
        flex-direction: column;
        height: auto;
        gap: 2rem;
        padding: 2rem 0;
    }
    .connection-lines { display: none; }
    .node-item {
        width: 100%;
        max-width: 320px;
    }
}

/* Cookie Banner & Extras */
.hidden-review { display: none !important; }

.fixed-width-num {
    display: inline-block;
    min-width: 2.5ch;
    text-align: right;
}

#cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    padding: 0 2rem;
    width: 100%;
    justify-content: space-between;
}

.cookie-content p { margin: 0; font-size: 0.9rem; }
.cookie-content a { color: var(--accent); }

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; gap: 1rem; text-align: center; }
}

/* --- MICRO-INTERACTIONS & ELEVATION --- */
.logo-dot {
    color: var(--accent);
    animation: blink-dot 3s ease-in-out infinite;
}
@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transition: none;
}

.btn-primary:hover::after {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    to { left: 100%; }
}

.service-card {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
}

.service-card:hover { 
    border-top: 2px solid var(--accent); 
}

/* --- HERO CONTRAST IMPROVEMENTS --- */
.hero-title {
    filter: drop-shadow(0px 4px 24px rgba(0, 0, 0, 0.9)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 1));
}

.hero-subtitle {
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.9), 0px 2px 8px rgba(0, 0, 0, 1);
    color: #ffffff;
    font-weight: 500;
}

.hero-content {
    position: relative;
    z-index: 2; /* ensure it sits above the neural container */
}
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(7, 9, 11, 0.85) 0%, rgba(7, 9, 11, 0.4) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- TERMINAL DEMO --- */
.terminal-wrapper { text-align: center; margin-top: 4rem; z-index: 2; position: relative;}
.terminal-window {
    max-width: 650px;
    margin: 0 auto;
    background: #0a0d10;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
    background: rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.term-btn { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.term-red { background: #ff5f56; }
.term-yellow { background: #ffbd2e; }
.term-green { background: #27c93f; }
.term-title { margin-left: auto; margin-right: auto; font-size: 0.85rem; color: var(--text-secondary); opacity: 0.7; }

.terminal-body {
    padding: 1.5rem;
    height: 250px;
    overflow-y: hidden;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
}
.term-line-green { color: var(--accent); }
.term-line-blue { color: #60a5fa; }
.term-line-gray { color: var(--text-secondary); }
.term-cursor {
    display: inline-block;
    width: 8px; height: 15px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink-dot 1s step-end infinite;
}
