:root {
    --bg-color: #050a14;
    --text-color: #e0e6ed;
    --accent-color: #00f2ff;
    --secondary-color: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #00f2ff 0%, #7000ff 100%);
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader.fadeOut {
    opacity: 0;
    pointer-events: none;
}

.loader-content .logo-img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    display: block;
    margin: -80px 0;
    /* Adjusted compensation for 320px */
}

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(5, 10, 20, 0.5);
    /* Slight visibility even when not scrolled */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.btn-contact {
    padding: 0.6rem 1.5rem;
    background: var(--gradient);
    border-radius: 50px;
    color: white !important;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 10, 20, 0.7), rgba(5, 10, 20, 0.7)), url('assets/nave_disdom.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #a0aec0;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary {
    padding: 1rem 2rem;
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

/* Infographic Section */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.infographic-container {
    position: relative;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-center {
    width: 350px;
    height: 350px;
    position: relative;
    z-index: 2;
}

.center-node {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 242, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
    }
}

.connections {
    position: absolute;
    inset: -200px;
    width: calc(100% + 400px);
    height: calc(100% + 400px);
    z-index: -1;
    pointer-events: none;
}

.line {
    stroke: var(--glass-border);
    stroke-width: 2;
    stroke-dasharray: 10;
    animation: dash 10s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.info-card {
    position: absolute;
    width: 250px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, var(--accent-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card i {
    color: var(--accent-color);
    margin-bottom: 1rem;
    width: 40px;
    height: 40px;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.top-left {
    top: 0;
    left: 10%;
}

.top-right {
    top: 0;
    right: 10%;
}

.bottom-left {
    bottom: 0;
    left: 10%;
}

.bottom-right {
    bottom: 0;
    right: 10%;
}

/* Detail Panels */
.details-section {
    padding: 0;
}

.detail-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
}

.detail-panel.reverse {
    direction: rtl;
}

.detail-panel.reverse .detail-content {
    direction: ltr;
}

#img-almacen {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1200&q=80');
}

#img-transporte {
    background-image: url('logistics_fleet_1768840137559.png');
}

#img-milla {
    background-image: url('https://images.unsplash.com/photo-1549194388-f61be84a6e9e?auto=format&fit=crop&w=1200&q=80');
}

.detail-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.detail-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.detail-panel.reverse .detail-image::after {
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.detail-content {
    padding: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.detail-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.features {
    list-style: none;
    margin-top: 2rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.features li i {
    color: var(--accent-color);
}

/* Tech Showcase */
.tech-showcase {
    padding: 10rem 0;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-visual {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar {
    width: 250px;
    height: 250px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
}

.radar::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    top: 0;
    left: 50%;
    transform-origin: bottom left;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.glitch-box {
    position: absolute;
    padding: 1rem 2rem;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    font-weight: 900;
}

/* Footer */
footer {
    background: #02050a;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-form h4 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    line-height: 2;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: #4a5568;
    font-size: 0.9rem;
}

/* Available Spaces Section */
.spaces-section {
    background: linear-gradient(to bottom, var(--bg-color), #0a1220);
}

.spaces-infographic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.spaces-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
}

.spaces-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.spaces-image-container:hover .spaces-main-img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 242, 255, 0.2), transparent);
    mix-blend-mode: overlay;
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.space-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    cursor: default;
    backdrop-filter: blur(10px);
}

.space-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
}

.card-icon i {
    width: 24px;
    height: 24px;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.area-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.area-bar {
    width: 100px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--accent-color);
    padding: 1.5rem 0;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #a0aec0;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .infographic-container {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .info-card {
        position: static;
        width: 100%;
    }

    .connections {
        display: none;
    }

    .detail-panel {
        grid-template-columns: 1fr;
    }

    .detail-image {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .spaces-infographic {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .spaces-image-container {
        height: 300px;
    }

    .spaces-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}