/* Modern Design System for Konnex */
:root {
    --primary: #e07926;
    /* New Konnex Orange */
    --primary-glow: rgba(224, 121, 38, 0.3);
    --secondary: #1e293b;
    --accent: #f97316;
    --background: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --radius-3xl: 48px;
    --radius-2xl: 32px;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Glass Header */
.glass-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 15px 35px -5px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .glass-header {
        padding-left: 1.25rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .glass-header {
        padding-left: 1rem !important;
        padding-right: 0.75rem !important;
    }

    #mobile-menu-toggle {
        margin-left: 0.25rem;
    }
}

/* Organic Shapes */
.organic-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-card {
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(224, 121, 38, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.organic-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -15px rgba(224, 121, 38, 0.15);
}

/* Sections */
.section-dynamic {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.dynamic-blob {
    position: absolute;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.15;
    background: var(--primary);
    border-radius: 50%;
}

/* Unity Container Stylized Slide */
#unity-container.unity-desktop {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    max-width: 1280px;
    width: 95%;
    margin: 0 auto !important;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.3),
        0 20px 50px -10px rgba(224, 121, 38, 0.15);
    border: 10px solid white;
    background: #111;
    z-index: 5;
}

#unity-canvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    display: block;
}

#hero-11 {
    padding-top: 100px !important;
    /* Reduced space for the floating header to bring Unity up */
    padding-bottom: 40px !important;
    /* Reduced bottom space to bring next section closer */
    min-height: auto !important;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inner-page-hero {
    padding-top: 140px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.s-52 {
    font-size: 3.5rem;
    font-weight: 800 !important;
    line-height: 1.1;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.about-2-title p {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: white;
    font-size: 32px;
    cursor: pointer;
    animation: blink-scroll 2s infinite ease-in-out;
    background: rgba(224, 121, 38, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    background: rgba(224, 121, 38, 0.8);
    transform: translateX(-50%) translateY(-5px) scale(1.1);
}

@keyframes blink-scroll {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

#brands-1 {
    padding-top: 60px !important;
    /* Reduced from py-24 (96px) to bring content higher */
    margin-top: -30px;
    /* Pull section up towards Unity canvas */
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn-modern {
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-modern {
    background-color: var(--primary);
    color: #000;
}

.btn-primary-modern:hover {
    background-color: var(--primary-light);
    transform: scale(1.05);
}

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #e07926 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Brands Marquee Fixes */
.brands-modern {
    padding: 40px 0;
    background: white;
}

.brands-wrapper {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    width: fit-content;
    align-items: center;
}

.brands-item {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.brands-item:hover {
    transform: scale(1.15);
}

.brands-item img {
    max-width: 100%;
    height: auto;
    filter: none !important;
    /* Always colored as requested */
    opacity: 1 !important;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInBlur 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Transitions */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Language Dropdown Fix */
#lang-dropdown.is-open,
.lang-dropdown.is-open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Puente para evitar que se cierre al mover el mouse */
#lang-dropdown::before,
.lang-dropdown::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}