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

:root {
    --bg: #070a13;
    --bg-darker: #04060b;
    --fg: #f8fafc;
    --muted: #94a3b8;
    
    /* Brand Accent Colors */
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-orange: #f97316;
    
    /* Current dynamic accent, controlled by JS */
    --accent: var(--accent-purple);
    --accent-glow: rgba(124, 58, 237, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 3D Background Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: auto; /* Allow mouse movement interaction */
}

#canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Overlay layer above canvas */
.app-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to canvas where needed */
}

/* Enable pointer events on standard layout containers */
header, section, footer {
    pointer-events: auto;
}

/* --- COMMON LAYOUT & UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
    transform: translateY(-5px);
}

.accent-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.5s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent), 0 0 15px var(--accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 10, 19, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(4, 6, 11, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

header .container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--fg);
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 2px 10px rgba(6, 182, 212, 0.15));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 20px rgba(6, 182, 212, 0.35));
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 18px;
    position: relative;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.5s ease;
}

.logo:hover .logo-icon {
    transform: rotate(360deg);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fg);
    transition: all 0.3s ease;
}

/* Mobile Nav Active states */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- SECTIONS COMMON --- */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0;
}

/* --- HERO SECTION --- */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

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

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(38px, 6.5vw, 84px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 16px auto;
    font-weight: 300;
}

.hero-tagline {
    font-size: clamp(13px, 1.3vw, 15px);
    color: var(--accent-cyan);
    max-width: 540px;
    margin: 0 auto 40px auto;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.85;
    padding: 8px 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    background: rgba(6, 182, 212, 0.05);
    display: inline-block;
    backdrop-filter: blur(4px);
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--muted);
    border-radius: 10px;
    position: relative;
}

.scroll-wheel {
    width: 2px;
    height: 6px;
    background: var(--muted);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: scroll-wheel-anim 1.8s infinite;
}

/* --- SERVICES SECTION --- */
#servicios {
    background: linear-gradient(180deg, transparent, rgba(7, 10, 19, 0.4));
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-header {
    max-width: 500px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 30px;
    font-size: 16px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(6, 182, 212, 0.3); /* cyan */
    transform: translateX(8px);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.service-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-info p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 300;
}

/* --- SIMULATOR SECTION --- */
#simulador {
    background: linear-gradient(180deg, rgba(7, 10, 19, 0.4), transparent);
}

.sim-container {
    width: 100%;
}

.flow-playground {
    margin-top: 40px;
    min-height: 400px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.flow-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flow-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 16px;
    color: var(--fg);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.flow-btn:hover,
.flow-btn.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.flow-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--muted);
    transition: all 0.3s ease;
}

.flow-btn:hover .flow-btn-icon,
.flow-btn.active .flow-btn-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
}

.flow-btn-info h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.flow-btn-info p {
    font-size: 12px;
    color: var(--muted);
}

.flow-canvas-panel {
    background: rgba(5, 7, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Grid overlay behind flow diagram */
.flow-canvas-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.flow-visualizer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 250px;
    padding: 0 40px;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 120px;
    z-index: 3;
}

.node-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-node.active .node-icon-wrapper {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    transform: scale(1.1);
}

.node-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}

.flow-node.active .node-title {
    color: var(--fg);
}

/* Connective Pipeline */
.flow-pipe {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    margin: 0 -20px;
    top: -15px; /* Offset for text title spacing align */
    border-radius: 2px;
}

.flow-pulse {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, transparent, var(--accent-emerald), transparent);
    transform: translateX(-100%);
}

.flow-node.active + .flow-pipe .flow-pulse {
    animation: flow-pulse-anim 1.5s infinite linear;
}

.flow-explanation {
    position: relative;
    z-index: 2;
    min-height: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

/* --- ROI CALCULATOR SECTION --- */
#calculadora {
    background: linear-gradient(180deg, transparent, rgba(7, 10, 19, 0.5));
}

.roi-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calculator-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
}

.slider-label {
    color: var(--muted);
}

.slider-value {
    color: var(--accent-orange);
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Premium styled range input */
.slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.3s ease;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-orange);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    transition: transform 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.roi-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.result-card.highlight {
    border-color: rgba(249, 115, 22, 0.2);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.05);
}

.result-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 10px;
}

.result-value {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    line-height: 1;
    color: var(--fg);
    margin-bottom: 5px;
}

.result-card.highlight .result-value {
    color: var(--accent-orange);
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.result-desc {
    font-size: 12px;
    color: var(--muted);
}

/* --- CONTACT SECTION --- */
#contacto {
    padding-bottom: 120px;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

.contact-submit {
    margin-top: 10px;
}

.form-status {
    grid-column: span 2;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-darker);
    padding: 60px 0 40px 0;
    font-size: 14px;
    color: var(--muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--muted);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--fg);
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes scroll-wheel-anim {
    0% { transform: translate(-50%, 0); opacity: 1; }
    80% { transform: translate(-50%, 12px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

@keyframes flow-pulse-anim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400px); }
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .roi-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .flow-playground {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding-bottom: 100px;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
        pointer-events: none;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-content, .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- WHATSAPP FLOATING BUTTON --- */
#whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

#whatsapp-fab:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 14px 40px rgba(37, 211, 102, 0.65);
}

.fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: fab-pulse-ring 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes fab-pulse-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.6); opacity: 0;   }
    100% { transform: scale(1.6); opacity: 0;   }
}

.fab-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid rgba(37, 211, 102, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(10, 14, 23, 0.92);
}

#whatsapp-fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    #whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    .fab-tooltip {
        display: none;
    }
}

/* --- TECH STACK SLIDER --- */
.tech-section {
    min-height: unset;
    padding: 40px 0 56px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(7,10,19,0.0) 0%, rgba(7,10,19,0.35) 100%);
    overflow: hidden;
}

.tech-subtitle {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
    margin-bottom: 28px;
}

.tech-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* fade edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

.tech-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: tech-scroll 28s linear infinite;
}

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

@keyframes tech-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--muted);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 0.01em;
}

.tech-logo:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.tech-logo .logo-icon {
    font-size: 18px;
    line-height: 1;
}

/* --- TECH ICON (SVG branded) --- */
.tech-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--brand, var(--accent));
    transition: transform 0.3s ease;
    display: block;
}

.tech-logo {
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.07);
}

.tech-logo:hover {
    color: var(--fg);
    background: color-mix(in srgb, var(--brand, var(--accent)) 10%, rgba(10,14,23,0.6));
    border-color: color-mix(in srgb, var(--brand, var(--accent)) 55%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--brand, var(--accent)) 22%, transparent),
                0 6px 20px rgba(0,0,0,0.35);
    transform: translateY(-3px);
}

.tech-logo:hover .tech-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* --- TESTIMONIALS SECTION --- */
#testimonios {
    background: linear-gradient(180deg, rgba(7, 10, 19, 0.5), transparent);
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.04) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(6, 182, 212, 0.05);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-rating {
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    z-index: 1;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 25px;
    z-index: 1;
    flex-grow: 1;
}

.testimonial-card:hover .testimonial-text {
    color: var(--fg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    z-index: 1;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-info strong {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
}

.author-info span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .glass-card {
        padding: 25px;
    }
}

/* --- FAQ SECTION --- */
#faq {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(7, 10, 19, 0.45));
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(124, 58, 237, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--fg);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color: var(--fg);
}

.faq-item.active .faq-question {
    color: var(--fg);
}

.faq-toggle-icon {
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    color: var(--muted);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
    font-weight: 300;
}

/* --- BLOG SECTION --- */
#blog {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(7, 10, 19, 0.45), transparent);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    align-items: flex-start;
}

.blog-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

/* Badge colors matching category context */
.blog-card:nth-child(2) .blog-badge {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.blog-card:nth-child(3) .blog-badge {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
}

.blog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: space-between;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.blog-content h3 a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card:hover h3 a {
    color: var(--accent);
}

.blog-card:nth-child(2):hover h3 a {
    color: var(--accent-cyan);
}

.blog-card:nth-child(3):hover h3 a {
    color: var(--accent-orange);
}

.blog-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-date {
    font-size: 12px;
    color: var(--muted);
    opacity: 0.6;
    font-weight: 400;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    width: 100%;
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(124, 58, 237, 0.05);
}

.blog-card:nth-child(2):hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(6, 182, 212, 0.05);
}

.blog-card:nth-child(3):hover {
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(249, 115, 22, 0.05);
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
