/* Variables & Reset */
:root {
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --brand-500: #3b82f6;
    --brand-600: #007BFF;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a8a;
    --accent-500: #00CC99;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --red-50: #fef2f2;
    --red-500: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--slate-900);
    background-color: var(--slate-50);
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--slate-50); }

.text-center { text-align: center; }
.text-blue { color: var(--brand-600); }
.text-green { color: var(--accent-500); }
.text-red { color: var(--red-500); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

.overline {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-600);
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 4rem auto;
}

.section-header h3 {
    font-size: 2.25rem;
    color: var(--slate-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-600);
}

.badge-pill-center {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--brand-50);
    color: var(--brand-600);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 1rem;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--brand-600);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-700);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--accent-500);
    color: var(--slate-900);
}

.btn-secondary:hover {
    filter: brightness(0.95);
}

.btn-outline {
    background-color: white;
    border-color: var(--slate-200);
    color: var(--slate-700);
}

.btn-outline:hover {
    border-color: var(--brand-600);
    color: var(--brand-600);
}

.btn-outline-white {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.2);
}

.full-width {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.95); /* Changed to slate-900 (Footer color) */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Updated Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 3rem; 
    width: auto;
    object-fit: contain;
}

header.scrolled .logo { color: var(--white); }

.desktop-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-nav a:hover { color: white; }

/* Text colors in scrolled header must remain light because background is now dark */
header.scrolled .desktop-nav a { color: var(--slate-300); }
header.scrolled .desktop-nav a:hover { color: var(--white); }

.header-cta .btn-text {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

header.scrolled .header-cta .btn-text { color: var(--brand-500); }
header.scrolled .header-cta .btn-text:hover { color: var(--brand-400); }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
header.scrolled .mobile-menu-btn { color: var(--white); }

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-top: 1px solid var(--slate-100);
}

.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--slate-700);
    font-weight: 500;
}
.mobile-menu hr { margin: 0.5rem 0; border: 0; border-top: 1px solid var(--slate-100); }
.mobile-menu .mobile-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

/* Hero Slider Styles */
.hero {
    position: relative;
    display: grid; 
    grid-template-areas: "hero-stack";
    overflow: hidden;
    height: 100vh;
    min-height: 100vh;
    max-height: 100dvh;
}

.hero-slide {
    grid-area: hero-stack;
    width: 100%;
    height: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    padding: clamp(5rem, 10vh, 8rem) 1.5rem clamp(4rem, 8vh, 6rem);
    box-sizing: border-box;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; 
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: clamp(1rem, 2vh, 2rem);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 20;
}

.hero-dot {
    width: 3rem; /* Line style dots */
    height: 0.25rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-dot.active {
    background-color: var(--accent-500);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    color: var(--brand-100);
    margin-bottom: clamp(1rem, 2vh, 2rem);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.dot-pulse {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 4rem);
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, var(--brand-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    color: var(--slate-300);
    max-width: 42rem;
    margin: 0 auto clamp(1rem, 2vh, 2.5rem) auto;
    font-weight: 300;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: clamp(1rem, 2vh, 3rem);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
    color: var(--slate-400);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    flex-wrap: wrap;
}

.indicator { display: flex; align-items: center; gap: 0.5rem; }
.indicator i { width: 1.125rem; height: 1.125rem; color: var(--accent-500); }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card {
    position: relative;
    border-radius: 1rem;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover { transform: translateY(-5px); }

.product-card.erp,
.product-card.pos {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
}

.product-card.erp:hover,
.product-card.pos:hover {
    background-color: var(--slate-100);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    opacity: 0.1;
    margin: 2rem;
    color: currentColor;
}

.card-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: white;
}

.card-icon-box.bg-dark { background-color: #1e293b; }
.card-icon-box i { width: 2rem; height: 2rem; }

.product-card h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.product-subtitle { font-weight: 500; margin-bottom: 1.5rem; color: var(--slate-500); }
.product-desc { margin-bottom: 2rem; color: var(--slate-600); line-height: 1.6; }

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-list li i { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; color: var(--brand-500); }

/* --- Carousel / Solutions --- */

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.solution-card {
    /* Layout properties for the carousel track */
    flex: 0 0 100%;
    padding: 0 10px; /* Horizontal gap */
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
}

.solution-card .problem-side {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border: 1px solid var(--slate-200);
    border-bottom: none;
}

.solution-card .solution-side {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    border: 1px solid var(--slate-200);
    border-top: 1px solid var(--slate-100);
    background: white;
    height: 100%; /* Fill height */
}

/* Problem Side Styling */
.problem-side {
    background-color: var(--red-50);
    position: relative;
    padding: 2rem;
    padding-bottom: 2.5rem;
}

.solution-side { 
    padding: 2rem; 
    position: relative;
    background: white;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tag i { width: 1rem; height: 1rem; }

.arrow-connector {
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    color: var(--slate-400);
    z-index: 5;
}

.result-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 6;
}

/* Carousel Controls */
.carousel-btn {
    background-color: white;
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--brand-600);
    color: white;
    border-color: var(--brand-600);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--slate-300);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: var(--brand-600);
    transform: scale(1.1);
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: 0.75rem;
    transition: transform 0.2s;
}

.value-card:hover { transform: translateY(-3px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

.value-card .icon-box {
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-50);
    color: var(--brand-600);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* --- CLIENT LOGO MARQUEE CSS --- */
.logos-container { 
    text-align: center; 
    margin-bottom: 5rem; 
    overflow: hidden; /* Important for containing the scroll */
}

.logos-container p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Marquee Container */
.logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    /* Soft edges effect */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* The scrolling track */
.logo-track {
    display: flex;
    align-items: center;
    gap: 4rem; /* Spacing between logos */
    width: max-content;
    animation: scroll-logos 40s linear infinite;
    padding-left: 2rem;
}

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

/* Individual Logo styling inside marquee */
.client-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--slate-400);
    font-size: 1.25rem;
    white-space: nowrap; /* Prevent wrapping */
    transition: all 0.3s;
    opacity: 0.7;
}

.client-logo:hover {
    color: var(--brand-600);
    opacity: 1;
    transform: scale(1.05);
}

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    position: relative;
}

.quote-icon { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--slate-200); }
.stars { color: #fbbf24; display: flex; gap: 2px; margin-bottom: 1.5rem; }
.stars i { width: 1rem; height: 1rem; fill: currentColor; }
.quote { font-style: italic; color: var(--slate-700); margin-bottom: 1.5rem; min-height: 4.5rem; }

.result-tag {
    display: inline-block;
    background-color: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.testimonial-card hr { border: 0; border-top: 1px solid var(--slate-100); margin-bottom: 1.5rem; }

.author { display: flex; align-items: center; gap: 1rem; }
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-100);
    color: var(--brand-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* --- New Contact Section Design (Single Column) --- */
.contact-section-bg {
    background: linear-gradient(180deg, var(--slate-50) 0%, #eef2ff 100%);
    position: relative;
}

/* Contact Info Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 1024px;
    margin: 0 auto 3rem auto;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--slate-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

a.info-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border-color: var(--brand-200);
}

.info-card .icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--brand-50);
    color: var(--brand-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.info-card h5 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--slate-900);
}

.info-card p {
    color: var(--slate-500);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.link-action {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.link-action:hover {
    color: var(--brand-700);
    text-decoration: underline;
}

.link-action-static {
    color: var(--accent-500);
    font-weight: 600;
}

/* Cal.com Agenda tu Demo */
.cal-schedule-block {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.cal-schedule-block .schedule-intro {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cal-schedule-block .schedule-intro h4 {
    font-size: 1.5rem;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.cal-schedule-block .schedule-intro > p {
    font-size: 1rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
}

.cal-schedule-block .schedule-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

.cal-schedule-block .schedule-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.cal-schedule-block .schedule-features i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-500);
}

.cal-embed-wrapper {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--slate-100);
}

.cal-embed-container {
    width: 100%;
    min-height: 580px;
    height: 630px;
    overflow: auto;
    border-radius: 0.5rem;
}

.schedule-fallback {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--slate-500);
    text-align: center;
}

.schedule-fallback a {
    color: var(--brand-600);
    font-weight: 600;
}

/* Centered Form Wrapper */
.contact-form-wrapper {
    background-color: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--slate-100);
    max-width: 900px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title h4 {
    font-size: 1.75rem;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.form-title p {
    color: var(--slate-500);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Keep previous input styles but ensure layout works in single col */
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 0.5rem; }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--slate-400);
    transition: color 0.3s;
    pointer-events: none;
    z-index: 10;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    color: var(--slate-400);
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: var(--brand-600);
}

input, select, textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; /* Slightly larger padding for "hero" form feel */
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background-color: var(--slate-50);
    color: var(--slate-700);
}

input::placeholder, textarea::placeholder {
    color: var(--slate-400);
}

input:focus, select:focus, textarea:focus {
    background-color: white;
    border-color: var(--brand-300);
    box-shadow: 0 0 0 4px var(--brand-50);
}

.textarea-wrapper .input-icon {
    top: 1rem;
}

select { appearance: none; cursor: pointer; }

/* Error Styling */
.error-msg { 
    color: var(--red-500); 
    font-size: 0.75rem; 
    margin-top: 0.35rem; 
    display: none; 
    font-weight: 500;
}

.form-group.error input, 
.form-group.error select, 
.form-group.error textarea { 
    border-color: var(--red-500); 
    background-color: var(--red-50); 
    color: var(--red-500);
}

.form-group.error .input-icon {
    color: var(--red-500);
}

.form-group.error .error-msg { display: block; }

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ecfdf5;
    color: #059669;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
    border: 1px solid #d1fae5;
}

/* Footer */
footer { background-color: var(--slate-900); color: var(--slate-300); padding: 4rem 0 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; display: flex; gap: 0.75rem; align-items: center; }
.footer-col a { color: var(--slate-400); text-decoration: none; transition: color 0.2s; font-size: 0.9rem; }
.footer-col a:hover { color: white; }

.socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.socials i { width: 1.25rem; height: 1.25rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-600);
}

/* Media Queries */
@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
    .desktop-nav, .header-cta { display: block; }
    
    .hero h1 { font-size: 4.5rem; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .contact-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .solutions-grid, .values-grid, .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
    
    /* Carousel Responsive Sizing */
    .solution-card {
        flex: 0 0 50%; /* Tablet: 2 items */
    }
}

@media (min-width: 1024px) {
    .solution-card {
        flex: 0 0 33.333%; /* Desktop: 3 items */
    }
}

@media (max-width: 767px) {
    .desktop-nav, .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .hero .hero-slide { padding-top: 7rem; }
    
    /* Hide Carousel Buttons on mobile to rely on swipe (or keep if desired, but they take space) */
    .carousel-btn {
        display: none; 
    }
    .carousel-wrapper {
        gap: 0;
    }
    
    .contact-form-container, .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 204, 153, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 204, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 204, 153, 0); }
}

/* --- Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--brand-600);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.chat-toggle-btn:hover {
    transform: scale(1.05);
    background-color: var(--brand-700);
}

.chat-window {
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    position: absolute;
    bottom: 70px;
    right: 0;
}

.chat-window.hidden {
    display: none;
}

.chat-header {
    background-color: var(--brand-600);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1; /* Default/Grey */
    border-radius: 50%;
    transition: background-color 0.3s;
}

.status-dot.online {
    background-color: #4ade80; /* Green */
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.status-dot.connecting {
    background-color: #facc15; /* Yellow */
    animation: pulse-yellow 2s infinite;
}

.status-dot.offline {
    background-color: #f87171; /* Red/Orange */
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
    70% { box-shadow: 0 0 0 4px rgba(250, 204, 21, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
}

#chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
}

#chat-close-btn:hover {
    opacity: 1;
}

/* Chat Registration Form */
.chat-registration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--slate-50);
}

.chat-registration.hidden {
    display: none;
}

.chat-reg-content {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    text-align: center;
    width: 100%;
}

.chat-reg-content h5 {
    margin-bottom: 0.5rem;
    color: var(--brand-600);
    font-size: 1.25rem;
}

.chat-reg-content p {
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

.chat-form-group {
    margin-bottom: 1rem;
}

.chat-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    outline: none;
}

.chat-form-group input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 2px var(--brand-50);
}

.chat-start-btn {
    width: 100%;
    background-color: var(--brand-600);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-start-btn:hover {
    background-color: var(--brand-700);
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-interface.hidden {
    display: none;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--slate-50);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.bot {
    background-color: white;
    border: 1px solid var(--slate-200);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    color: var(--slate-700);
}

.chat-message.user {
    background-color: var(--brand-600);
    color: white;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--slate-200);
    display: flex;
    gap: 10px;
    background-color: white;
}

#chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--slate-300);
    border-radius: 20px;
    font-size: 0.9rem;
}

#chat-input:focus {
    border-color: var(--brand-500);
    outline: none;
}

#chat-send-btn {
    background: none;
    border: none;
    color: var(--brand-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-send-btn:hover {
    color: var(--brand-700);
}

@media (max-width: 480px) {
    .chat-window {
        width: 300px;
        height: 400px;
        right: -10px; /* Offset margin */
    }
}