:root {
    /* Brand Colors */
    --brand-primary: #00FF9D;
    /* Neon Green */
    --brand-primary-dim: rgba(0, 255, 157, 0.1);
    --brand-secondary: #00a8e8;
    /* Cyan */
    --brand-gradient: linear-gradient(135deg, #00FF9D 0%, #00a8e8 100%);

    /* Base Colors */
    --base-bg: #000000;
    /* Pure Black */
    --base-surface: #0a0a0a;
    /* Almost Black */
    --base-border: #222222;
    /* Subtle Border */

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --text-tertiary: #64748b;
    /* Slate 500 */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Layout properties */
    --container-width: 1280px;
    /* Wider container like Flownex */
    --header-height: 80px;
    --border-radius: 16px;
    /* Larger radius */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--base-bg);
    /* Advanced Animated Mesh Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 255, 157, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 168, 232, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: 120% 120%;
    animation: backgroundMove 20s ease-in-out infinite alternate;

    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}


h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: #000;
    border: 1px solid var(--brand-primary);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.4);
    background: #00e68e;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--base-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.btn-outline-green {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--brand-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline-green:hover {
    background: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
    transform: translateY(-2px);
}

/* Feature Grid */
/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--base-border);
    z-index: 1000;
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--brand-primary);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1002;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    margin-bottom: 6px;
    transition: var(--transition);
}

.mobile-menu-btn span:last-child {
    margin-bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}


.mobile-nav-link:hover {
    color: var(--brand-primary);
}

.mobile-nav-link.highlight {
    color: var(--brand-primary);
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Hero Section (Split Layout) */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Visual placeholder for Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 100%;
    max-width: 400px;
    /* Adjust size as needed */
    height: auto;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--brand-primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    border-radius: 50%;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

/* Service Rich Cards (Flownex Style) */
.service-card {
    background: var(--base-bg);
    border: 1px solid var(--base-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon-box {
    min-width: 64px;
    height: 64px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    transform: scale(1.1);
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.service-list {
    margin-top: auto;
    padding-left: 2rem;
    /* Indent slightly for visual hierarchy */
    border-left: 1px solid var(--base-border);
    margin-left: 2rem;
    /* Align with text start */
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.service-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: var(--brand-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.item-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.item-text p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Variant for Secondary/Accent items (optional) */
.service-card.accent-card .service-icon-box {
    background: rgba(0, 168, 232, 0.1);
    color: var(--brand-secondary);
}

.service-card.accent-card:hover {
    border-color: var(--brand-secondary);
}

.service-card.accent-card .check-icon {
    color: var(--brand-secondary);
}

/* Feature Grid (Cards) */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Specific 2x2 Grid for Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Watermark Logo for Services */
#segmentos {
    position: relative;
    overflow: hidden;
    /* Prevent logo from spilling out */
}

.section-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    /* Large size */
    opacity: 0.05;
    /* Verify subtle effect */
    pointer-events: none;
    /* Ensure clicks pass through */
    z-index: 0;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--base-bg);
    border: 1px solid var(--base-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 255, 157, 0.1);
    color: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.card {
    background: var(--base-surface);
    border: 1px solid var(--base-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* ===== Pillar Tabs & Accordion Services ===== */
.pillar-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    /* Ensure z-index works */
    z-index: 10;
}

.pillar-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    /* Improve touch response */
}

.pillar-tab svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: color 0.35s;
}

.pillar-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-primary);
    color: var(--text-primary);
}

.pillar-tab.active {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(0, 212, 255, 0.12));
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

.pillar-tab.active svg {
    color: var(--brand-primary);
}

/* Pillar content panels */
.pillar-content {
    display: none;
}

.pillar-content.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pillar-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.pillar-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Accordion */
.accordion-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-group:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem 0.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
}

.accordion-header:hover {
    color: var(--brand-primary);
}

.accordion-header.active {
    color: var(--brand-primary);
}

.accordion-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--text-secondary);
    pointer-events: none;
    /* Ensure click goes to button */
}

.accordion-header.active .accordion-chevron {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0.5rem;
}

.accordion-body.active {
    max-height: 2000px;
    /* Safe increased height for mobile */
    padding: 1rem 0.5rem 1.2rem;
    /* Added top padding */
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    /* Increased gap (interlineado visual entre tags) */
}

.service-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.25s ease;
    cursor: default;
}

.service-tag:hover {
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.3);
    color: var(--brand-primary);
    transform: translateY(-1px);
}

/* Mobile adjustments for tabs */
@media (max-width: 768px) {
    .pillar-tabs {
        gap: 0.5rem;
    }

    .pillar-tab {
        padding: 0.7rem 1rem;
        font-size: 0.82rem;
    }

    .pillar-tab .tab-label {
        display: block;
    }

    .pillar-tab svg {
        width: 18px;
        height: 18px;
    }

    .accordion-header {
        font-size: 1rem;
        padding: 1rem 0.25rem;
    }

    .service-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
    }
}

/* Process Steps (01, 02, 03 style) */
/* Process Timeline (New Toptal-inspired) */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary));
    z-index: 0;
    opacity: 0.3;
    display: none;
    /* Hidden by default, shown in specific layouts if needed or handled by pseudo-elements */
}

/* Vertical Timeline for Mobile/Tablet first */
.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}

.step-dot {
    width: 12px;
    height: 12px;
    background: var(--brand-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-secondary);
    position: relative;
}

/* Connecting line for vertical layout */
.process-step:not(:last-child) .step-marker::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    /* Start after number */
    bottom: -3rem;
    /* Extend to next step */
    left: 29px;
    /* Centered in 60px width roughly */
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.step-content {
    background: var(--base-surface);
    border: 1px solid var(--base-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    flex: 1;
    transition: var(--transition);
}

.step-content:hover {
    border-color: var(--brand-primary);
    transform: translateX(10px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Desktop Horizontal Timeline */
@media (min-width: 900px) {
    .process-timeline {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        max-width: var(--container-width);
    }

    .timeline-line {
        display: block;
        width: 100%;
        height: 2px;
        left: 0;
        top: 2rem;
        /* Align with dots */
        background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
        z-index: 0;
    }

    .process-step {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 0;
        text-align: left;
    }

    .step-marker {
        align-items: flex-start;
        /* Align left */
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--base-border);
        padding-bottom: 1rem;
    }

    /* Remove vertical connecting line */
    .process-step:not(:last-child) .step-marker::after {
        display: none;
    }

    .step-number {
        font-size: 4rem;
        line-height: 0.8;
        opacity: 0.2;
        /* Watermark style */
        color: var(--text-primary);
        transition: var(--transition);
    }

    .process-step:hover .step-number {
        opacity: 1;
        color: var(--brand-primary);
    }

    .step-dot {
        display: none;
        /* Hide dot on desktop, use number as main visual */
    }

    .step-content {
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .step-content:hover {
        transform: translateY(-5px);
        border: none;
        box-shadow: none;
    }

    .step-content h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--text-primary);
    }

    .step-content p {
        font-size: 0.95rem;
    }
}

/* Footer */
footer {
    background: #000;
    /* Darker than base-bg */
    padding: 4rem 1rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--base-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

/* Chatbot Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-main);
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--base-bg);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 255, 157, 0.6);
}

.chat-toggle-btn svg {
    width: 28px;
    height: 28px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--base-surface);
    border: 1px solid var(--base-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    /* Hidden by default */
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    background: var(--base-bg);
    border-bottom: 1px solid var(--base-border);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 157, 0.1);
    padding: 2px;
    object-fit: contain;
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}


.chat-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.status-indicator {
    font-size: 0.75rem;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.chat-close-btn:hover {
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message.bot-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
    align-items: flex-end;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-top-left-radius: 2px;
}

.user-message .message-content {
    background: var(--brand-primary);
    color: black;
    /* Better contrast on neon green */
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.chat-input-area {
    padding: 1rem;
    background: var(--base-bg);
    border-top: 1px solid var(--base-border);
}

#chat-form {
    display: flex;
    gap: 0.5rem;
    background: var(--base-surface);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--base-border);
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

#chat-form button {
    background: transparent;
    border: none;
    color: var(--brand-primary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

#chat-form button:hover {
    transform: scale(1.1);
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chip {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    background: rgba(0, 255, 157, 0.1);
}

@media (max-width: 480px) {
    .chat-window {
        width: 100vw;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

.footer {
    background: var(--base-surface);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--base-border);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-logo-img {
        max-width: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .header-actions .btn {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
        /* Reducir títulos de sección en móvil */
    }

    .section-header p {
        font-size: 1rem;
    }
}

/* Empresa Section Specifics */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.vision-card {
    background: var(--base-surface);
    border: 1px solid var(--base-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
}

.vision-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Matching Section Header Font for Vision and Pillars */
.section-header-like h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Mission and Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 0;
}

@media (max-width: 1200px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific styling for internal section titles if reusable class is not enough */
.vision-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.vision-card .vision-body {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.vision-card .vision-highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--base-surface);
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--base-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header-section {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.modal-header-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header-section p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-card {
    padding: 0 2rem 2rem;
}

/* Progress Bar */
.progress-bar-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-steps {
    display: flex;
    gap: 0.5rem;
}

.step {
    width: 40px;
    height: 4px;
    background: var(--base-border);
    border-radius: 2px;
}

.step.active {
    background: var(--brand-primary);
}

.step-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modal Content */
.modal-body-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #111;
    border: 1px solid var(--base-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.1);
}

.readonly-input {
    background: #1a1a1a;
    color: var(--text-secondary);
    cursor: default;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.phone-input-group {
    display: flex;
}

.flag-select {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid var(--base-border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 1rem;
    /* Increased padding */
    gap: 0.5rem;
    white-space: nowrap;
    /* Prevent text wrapping */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.flag-select span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.phone-input-group .form-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.text-btn {
    background: none;
    border: 1px solid var(--base-border);
    color: var(--text-primary);
}

.text-btn:hover {
    background: var(--base-border);
}

.action-btn {
    min-width: 120px;
}

/* Login Page Styles */
.login-page {
    background-color: var(--base-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--base-surface);
    border: 1px solid var(--base-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.forgot-password-link {
    color: var(--brand-primary);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--base-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.link-highlight {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.link-highlight:hover {
    text-decoration: underline;
}

/* =========================================
   Process Section Redesign (Step Indicator)
   ========================================= */
.process-steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
    padding: 0 1rem;
    gap: 1rem;
}

.process-line-track {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.process-line-fill {
    height: 100%;
    width: 0;
    background: var(--brand-primary);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reveal Animation Default State */
.process-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.step-marker {
    width: 50px;
    height: 50px;
    background: var(--base-bg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
}

.step-circle {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Active State (Triggered by Scroll Reveal class) */
.process-steps-container.active .process-line-fill {
    width: 100%;
}

.process-steps-container.active .process-step {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger transitions */
.process-steps-container.active .process-step:nth-child(2) {
    transition-delay: 0.2s;
}

.process-steps-container.active .process-step:nth-child(3) {
    transition-delay: 0.5s;
}

.process-steps-container.active .process-step:nth-child(4) {
    transition-delay: 0.8s;
}

.process-steps-container.active .process-step:nth-child(5) {
    transition-delay: 1.1s;
}

/* Active Step Marker */
.process-steps-container.active .process-step .step-marker {
    border-color: var(--brand-primary);
    background: rgba(0, 255, 157, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.process-steps-container.active .process-step .step-circle {
    color: var(--brand-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .process-steps-container {
        flex-direction: column;
        gap: 2.5rem;
        padding-left: 2rem;
        margin-top: 2rem;
    }

    .process-line-track {
        width: 2px;
        height: 100%;
        left: 25px;
        /* Center with marker */
        top: 0;
    }

    .process-line-fill {
        width: 100%;
        height: 0;
        transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .process-steps-container.active .process-line-fill {
        height: 100%;
    }

    /* Override flex for mobile steps */
    .process-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        /* Ensure text aligns left */
        gap: 1.5rem;
        transform: translateX(20px);
        /* Slide in from right on mobile */
    }

    .process-steps-container.active .process-step {
        transform: translateX(0);
        z-index: 5;
        /* Ensure steps are above line */
    }

    .step-marker {
        flex-shrink: 0;
        margin-bottom: 0;
        /* Remove bottom margin */
    }

    .step-content {
        padding-top: 5px;
        /* Align text with circle */
        text-align: left;
        width: 100%;
        background: transparent;
        /* Remove background on mobile to avoid boxiness if desired, or keep */
        border: none;
        /* Simplify on mobile */
        padding: 0;
    }

    .step-content p {
        margin: 0;
        text-align: left;
        max-width: none;
    }
}

/* Chatbot Widget Styles - Mobile Fix */
@media (max-width: 768px) {
    .chat-widget {
        z-index: 9999;
        /* Ensure it is above everything */
        bottom: 20px;
        right: 20px;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
    }

    .chat-window {
        z-index: 10000;
    }
}

/* Hover Effects (User Request) */
.process-step:hover .step-marker {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
    cursor: default;
    /* Or pointer if they lead somewhere */
}

.process-step:hover .step-circle {
    color: #000;
    /* Contrast text */
}

.process-step:hover h3 {
    color: var(--brand-primary);
    transition: color 0.3s ease;
}