/* ==========================================================================
   WBO TECNOLOGIA - DESIGN SYSTEM & LAYOUT CSS
   Author: Antigravity / WBO Tecnologia
   Description: Ultra fast, premium, modern CSS stylesheet. Alternating themes
                (Black & Blue, White & Blue), 3D carousel, parallax, and sidebar.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Core Tokens --- */
:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;

    /* Dark Theme Colors (Black & Blue) */
    --bg-dark: #070913;
    --bg-dark-card: rgba(9, 14, 28, 0.88);
    --bg-dark-card-hover: rgba(15, 23, 46, 0.95);
    --text-dark-primary: #f8fafc;
    --text-dark-secondary: #94a3b8;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-dark-hover: rgba(59, 130, 246, 0.4);

    /* Light Theme Colors (White & Blue) */
    --bg-light: #f8fafc;
    --bg-light-card: #ffffff;
    --bg-light-card-hover: #ffffff;
    --text-light-primary: #0f172a;
    --text-light-secondary: #475569;
    --border-light: rgba(15, 23, 42, 0.08);
    --border-light-hover: rgba(37, 99, 235, 0.3);

    /* Shared Accents */
    --color-blue-electric: #2563eb;
    --color-blue-glow: #00d2ff;
    --color-cyan: #06b6d4;
    --color-indigo: #4f46e5;

    /* Interactive Gradients */
    --grad-electric: linear-gradient(135deg, #00d2ff 0%, #2563eb 100%);
    --grad-dark-mesh: radial-gradient(circle at 50% 50%, #0d1527 0%, #070913 100%);
    --grad-light-mesh: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%);
    --grad-text: linear-gradient(135deg, #ffffff 30%, #00d2ff 100%);
    --grad-text-light: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);

    /* Shadows & Effects */
    --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.2);
    --shadow-glow-blue: 0 8px 32px 0 rgba(37, 99, 235, 0.15);
    --shadow-card-light: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-card-dark: 0 10px 40px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(12px);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    color: var(--text-dark-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Parallax Container & Backgrounds --- */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    will-change: transform;
}

.orb-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: var(--color-blue-glow);
}

.orb-2 {
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--color-indigo);
}

.orb-3 {
    top: 40%;
    left: 45%;
    width: 300px;
    height: 300px;
    background: var(--color-cyan);
}

/* Grid overlay background */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    z-index: 1;
}

/* --- Layout Sections --- */
section {
    position: relative;
    padding: 100px 5% 120px;
    width: 100%;
    z-index: 2;
    overflow: hidden;
}

/* Black & Blue Theme Section */
.theme-dark {
    background-color: var(--bg-dark);
    background-image: var(--grad-dark-mesh);
    color: var(--text-dark-primary);
}

.theme-dark .section-subtitle {
    color: var(--color-blue-glow);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.theme-dark .section-title {
    background: var(--grad-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* White & Blue Theme Section */
.theme-light {
    background-color: var(--bg-light);
    background-image: var(--grad-light-mesh);
    color: var(--text-light-primary);
}

.theme-light .section-subtitle {
    color: var(--color-blue-electric);
}

.theme-light .section-title {
    background: var(--grad-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-light .grid-overlay {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 19, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-dark);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 10px 5%;
    background: rgba(7, 9, 19, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header.scrolled-light {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid var(--border-light);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-container:hover .logo-img {
    transform: scale(1.05) rotate(-3deg);
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--grad-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.theme-dark nav a {
    color: var(--text-dark-secondary);
}

.theme-dark nav a:hover,
.theme-dark nav a.active {
    color: var(--color-blue-glow);
}

.theme-light nav a {
    color: var(--text-light-secondary);
}

.theme-light nav a:hover,
.theme-light nav a.active {
    color: var(--color-blue-electric);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-electric);
    transition: var(--transition-smooth);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn-primary {
    background: var(--grad-electric);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    border: 1px solid var(--border-dark);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dark-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

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

.menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    transition: var(--transition-fast);
}

.menu-trigger:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--color-blue-electric);
    transform: scale(1.05);
}

.menu-trigger svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark-primary);
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    /* Hidden initially */
    width: 380px;
    height: 100vh;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-dark);
    z-index: 200;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.sidebar.open {
    transform: translateX(-380px);
    visibility: visible;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--color-blue-electric);
    box-shadow: var(--shadow-glow);
    object-fit: cover;
    background: #0f172a;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-title {
    font-size: 0.9rem;
    color: var(--color-blue-glow);
    font-weight: 500;
    margin-bottom: 15px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.profile-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.sidebar-info-group {
    margin-bottom: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--color-blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-text h4 {
    font-size: 0.85rem;
    color: var(--text-dark-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sidebar-text p {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.sidebar-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-primary);
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--grad-electric);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Hero Section (Black & Blue) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    z-index: 10;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-brand-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.hero-brand-banner:hover {
    transform: translateY(-4px);
    border-color: var(--color-blue-glow);
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.15);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--grad-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-dark-secondary);
    margin-bottom: 36px;
    max-width: 550px;
    font-family: var(--font-secondary);
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-dark);
    width: 100%;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
    background: var(--grad-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-dark-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    perspective: 1000px;
    /* Enable 3D tilt perspective */
}

.hero-logo-large {
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.35));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.35));
    }

    50% {
        transform: translateY(-12px);
        filter: drop-shadow(0 0 45px rgba(0, 210, 255, 0.55));
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.05rem;
    color: inherit;
    opacity: 0.8;
}

/* --- Services/Automation Section (White & Blue) --- */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-card-light);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(37, 99, 235, 0) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-blue);
    border-color: var(--border-light-hover);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--color-blue-electric);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--color-blue-electric);
    color: #ffffff;
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-light-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.service-features li svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-blue-electric);
    flex-shrink: 0;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-blue-electric);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* --- 3D Carousel Section (Black & Blue) --- */
.carousel-3d-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
}

.carousel-3d-viewport {
    perspective: 1200px;
    transform-style: preserve-3d;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 40px auto 20px;
    overflow: visible;
    /* Gestos horizontais chegam ao JS; a rolagem vertical segue nativa */
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-3d-viewport:active {
    cursor: grabbing;
}

/* The actual 3D container rotating in space */
.carousel-3d-container {
    width: 280px;
    height: 420px;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    touch-action: pan-y;
    cursor: inherit;
}

/* Central logo inside the carousel ring */
.carousel-3d-center-logo {
    position: absolute;
    width: 200px;
    height: 200px;
    top: calc(50% - 100px);
    left: calc(50% - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transform: translateZ(0);
    /* Anchored in center coordinate */
    pointer-events: none;
}

.carousel-3d-center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pulseLogo 4s ease-in-out infinite;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8));
    }
}

/* 3D Cards */
.carousel-3d-card {
    position: absolute;
    width: 560px;
    height: 840px;
    left: calc(50% - 280px);
    top: calc(50% - 420px);
    border: 4px solid var(--border-dark);
    border-radius: 40px;
    padding: 0;
    overflow: hidden;
    display: block;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.8s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: var(--shadow-card-dark);
    user-select: none;
    background: #0f172a;
}

.carousel-3d-card.active {
    border-color: var(--color-blue-glow);
    box-shadow: 0 15px 45px rgba(0, 210, 255, 0.25), var(--shadow-glow);
}

.carousel-3d-card .card-3d-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.5s ease;
}

.carousel-3d-card:hover .card-3d-img,
.carousel-3d-card.active .card-3d-img {
    transform: scale(1.04) translateZ(0);
}



/* Info Panel below 3D carousel */
.carousel-details-panel {
    max-width: 650px;
    margin: 40px auto 0;
    background: rgba(13, 20, 38, 0.35);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 24px 30px;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.carousel-details-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel-details-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.carousel-details-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.carousel-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-primary);
    transition: var(--transition-fast);
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-blue-glow);
    color: var(--color-blue-glow);
}

.ctrl-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* --- Horizontal Carousel Section (White & Blue) --- */
.tech-section {
    padding: 80px 0;
}

.horizontal-carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.horizontal-carousel-wrapper::before,
.horizontal-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.theme-light .horizontal-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.theme-light .horizontal-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.theme-dark .horizontal-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.theme-dark .horizontal-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

/* Infinite slider animation track */
.tech-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTrack 30s linear infinite;
}

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

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-card {
    width: 180px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card-light);
    transition: var(--transition-fast);
    color: var(--text-light-primary);
}

.theme-dark .tech-card {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    color: var(--text-light-primary);
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-blue-electric);
    box-shadow: var(--shadow-glow-blue);
}

.theme-dark .tech-card:hover {
    border-color: var(--color-blue-electric);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
}

.tech-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-electric);
}

.theme-dark .tech-icon-wrapper {
    color: var(--color-blue-electric);
}

.tech-icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

.tech-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}

body .horizontal-carousel-wrapper .tech-card {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    color: var(--text-light-primary);
}

body .horizontal-carousel-wrapper .tech-card:hover {
    border-color: var(--color-blue-electric);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
}

body .horizontal-carousel-wrapper .tech-icon-wrapper {
    color: var(--color-blue-electric);
}

body .horizontal-carousel-wrapper .tech-card span {
    color: var(--text-light-primary);
}

/* --- Contact & CTA Section (Black & Blue) --- */
.contact-section {
    background-color: var(--bg-dark);
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-dark-secondary);
    margin-bottom: 30px;
    font-family: var(--font-secondary);
}

.contact-details-list {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--color-blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-text h4 {
    font-size: 0.85rem;
    color: var(--text-dark-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-text a,
.contact-text p {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    transition: var(--transition-fast);
}

.contact-text a:hover {
    color: var(--color-blue-glow);
}

/* Interactive Card Form */
.contact-form-card {
    background: var(--bg-dark-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-card-dark);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-dark-secondary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-blue-glow);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

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

.form-btn {
    width: 100%;
    justify-content: center;
}

/* --- Footer --- */
footer {
    background: #04060d;
    padding: 60px 5% 40px;
    border-top: 1px solid var(--border-dark);
    color: var(--text-dark-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-blue-glow);
}

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

.footer-bottom p {
    margin: 0;
}

.footer-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition-fast);
}

.footer-to-top:hover {
    background: var(--grad-electric);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-to-top svg {
    width: 18px;
    height: 18px;
}

/* --- Scroll Animations / Reveal Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.0rem, 6vw, 3.2rem);
        text-align: center;
    }

    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    header nav {
        display: none;
        /* Hide default nav, user can use Sidebar or we add mobile menu */
    }

    .sidebar {
        width: 100%;
        right: -100%;
    }

    .sidebar.open {
        transform: translateX(-100%);
    }

    .carousel-3d-viewport {
        height: 380px;
    }

    .carousel-3d-container {
        width: 220px;
        height: 330px;
    }

    .carousel-3d-card {
        width: 440px;
        height: 660px;
        left: calc(50% - 220px);
        top: calc(50% - 330px);
        border-radius: 30px;
        padding: 0;
    }

    .carousel-3d-center-logo {
        width: 110px;
        height: 110px;
        top: calc(50% - 55px);
        left: calc(50% - 55px);
    }
}

@media (max-width: 576px) {
    #header-cta span {
        display: none;
    }

    #header-cta {
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }
    
    #header-cta svg {
        margin: 0;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .logo-img {
        height: 32px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .nav-actions {
        gap: 8px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 1.0rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

    .contact-form-card {
        padding: 24px 16px;
    }

    .carousel-3d-viewport {
        height: 300px;
        margin: 20px auto 10px;
    }

    .carousel-3d-container {
        width: 160px;
        height: 240px;
    }

    .carousel-3d-card {
        width: 320px;
        height: 480px;
        left: calc(50% - 160px);
        top: calc(50% - 240px);
        border-radius: 20px;
        border-width: 2px;
    }

    .carousel-3d-center-logo {
        width: 80px;
        height: 80px;
        top: calc(50% - 40px);
        left: calc(50% - 40px);
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    header {
        padding: 10px;
    }

    .logo-img {
        height: 28px;
    }

    .brand-name {
        font-size: 1.0rem;
    }

    #header-cta {
        width: 36px;
        height: 36px;
    }

    .menu-trigger {
        width: 36px;
        height: 36px;
    }

    .menu-trigger svg,
    #header-cta svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   Chat Widget Flutuante (Chat Particular Directo)
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-primary);
}

.chat-bubble-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-electric);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.chat-bubble-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.5);
}

.chat-bubble-btn svg {
    width: 28px;
    height: 28px;
}

.chat-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px #10b981;
}

.chat-container-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: min(520px, calc(100vh - 140px));
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform-origin: bottom right;
}

.chat-container-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-window-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-dark);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-blue-glow);
    object-fit: cover;
}

.chat-agent-status h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.chat-agent-status p {
    font-size: 0.75rem;
    color: var(--text-dark-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-online::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

.chat-window-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dark-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-window-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chat-window-close svg {
    width: 16px;
    height: 16px;
}

.chat-window-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chat-msg.assistant {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg.assistant .chat-msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-dark);
}

.chat-msg.user .chat-msg-bubble {
    background: var(--grad-electric);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.chat-msg-image {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typing Indicator */
.chat-typing-indicator {
    align-self: flex-start;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    display: none;
    /* Controlled by JS */
    gap: 4px;
    margin-left: 20px;
    margin-bottom: 20px;
}

.chat-typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-dark-secondary);
    border-radius: 50%;
    display: inline-block;
    animation: bounceBubble 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounceBubble {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Image Preview Area */
.chat-image-preview-area {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-dark);
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.chat-image-preview-area.active {
    display: flex;
}

#chat-preview-img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#chat-cancel-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

#chat-cancel-image svg {
    width: 14px;
    height: 14px;
}

/* Chat Footer & Inputs */
.chat-window-footer {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-footer-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    color: var(--text-dark-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-footer-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: var(--color-blue-glow);
}

.chat-footer-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Microfone Recording Active State */
.chat-footer-btn.recording {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.chat-input-field {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: 18px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    max-height: 80px;
    transition: var(--transition-fast);
}

.chat-input-field:focus {
    border-color: var(--color-blue-glow);
    background: rgba(255, 255, 255, 0.05);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--grad-electric);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 210, 255, 0.4);
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .chat-container-window {
        width: calc(100vw - 40px);
        height: min(480px, calc(100vh - 120px));
        right: -10px;
    }
}

/* Custom styled CTA button for markdown links inside chat */
.chat-cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--grad-electric);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
    margin-bottom: 4px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 210, 255, 0.4);
    filter: brightness(1.1);
}

/* Custom styled CTA button for WhatsApp links */
.chat-cta-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chat-cta-btn.whatsapp-btn:hover {
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* Custom styled phone link inside chat */
.chat-phone-link {
    color: var(--color-blue-glow);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition-fast);
}

.chat-phone-link:hover {
    color: #ffffff;
    filter: brightness(1.2);
}