:root {
    --bg-dark: #080a0f;
    --text-main: #FFFFFF;
    --text-muted: #8A8F98;
    --cyan: #00D2FF;
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Prevent default scrolling on body */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body.loading {
    opacity: 0;
}

/* Global Loader */
#global-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--bg-dark); /* Same dark background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-logo {
    height: 80px;
    margin-bottom: 40px;
}
.loader-progress-bar {
    width: 250px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--cyan);
    transition: width 0.3s ease-out;
}

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

.cyan-accent {
    color: var(--cyan);
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border: 1px solid rgba(0, 210, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

body.cursor-hover .cursor-outline {
    width: 50px; height: 50px;
    background-color: rgba(0, 210, 255, 0.1);
}

body.cursor-view .cursor-outline {
    width: 70px; height: 70px;
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* JS Fullpage Wrapper */
#fullpage-wrapper {
    position: relative;
    width: 100vw; height: 100vh;
    transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
    will-change: transform;
}

.section {
    height: 100vh; width: 100vw;
    position: relative;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
}

.container {
    width: 85%; max-width: 1400px;
    margin: 0 auto; position: relative; z-index: 10;
}

/* Geometric Background */
.geo-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}
.geo-circle {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15;
}
.circle-1 {
    width: 600px; height: 600px; background: var(--cyan); top: -20%; right: -10%;
}
.circle-2 {
    width: 500px; height: 500px; background: #4A00E0; bottom: -20%; left: -10%;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 40px;
    background: rgba(0, 0, 0, 0.40);
    display: flex; justify-content: flex-end; align-items: center;
    padding: 0 7.5%; z-index: 1001;
    font-size: 0.85rem; font-weight: 300; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar a {
    display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); transition: color 0.3s; text-decoration: none;
}
.top-bar a:hover { color: var(--cyan); }
.social-icon {
    display: flex; align-items: center; color: rgba(255,255,255,0.8); transition: color 0.3s;
}
.social-icon:hover { color: var(--cyan); }

/* Header */
.header {
    position: fixed; top: 40px; width: 100%; padding: 20px 7.5%;
    display: flex; justify-content: space-between; align-items: center; z-index: 1000;
}
.massive-logo {
    height: 60px; transition: transform 0.3s ease;
}
.massive-logo:hover {
    transform: scale(1.05);
}
.nav {
    display: flex; gap: 40px; align-items: center;
}
.nav a {
    font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px;
}
.contact-btn {
    border: 1px solid rgba(255,255,255,0.4); padding: 10px 24px; border-radius: 30px; transition: all 0.3s;
}
.contact-btn:hover {
    background: #fff; color: #000;
}

/* Hero */
.section-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.bg-img {
    width: 100%; height: 100%; object-fit: cover;
}
.bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(4,5,8,0.9) 0%, rgba(4,5,8,0.5) 50%, rgba(4,5,8,0.1) 100%);
}
.bg-overlay-dark {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5);
}
.hero-right-align {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    width: 100%;
    padding-right: 5%; /* Margen al borde derecho */
}
.hero-content {
    width: 40%; /* 2/5 del ancho */
    margin-bottom: 12vh; /* Mover más arriba */
}
.hero-title {
    font-family: var(--font-heading); font-size: 8rem; line-height: 0.95; text-transform: uppercase;
}
.hero-subtitle {
    margin-top: 20px; 
    font-size: 1.1rem; 
    font-weight: 300; 
    letter-spacing: 2px; 
    color: rgba(255, 255, 255, 0.95); /* Prácticamente blanco */
    line-height: 1.5;
    margin-bottom: 30px;
    text-wrap: balance;
}
.hero-subtitle strong {
    font-weight: 700;
    color: #ffffff;
}
.hero-btn {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: #fff;
    border: 1px solid var(--cyan);
    padding: 15px 45px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}
.hero-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.6);
    transform: translateY(-5px);
}
.scroll-indicator {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 10;
    font-size: 0.8rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase;
}
.mouse {
    width: 24px; height: 36px; border: 2px solid rgba(255,255,255,0.3); border-radius: 12px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: var(--cyan); border-radius: 50%; animation: scrollMouse 1.5s infinite;
}
@keyframes scrollMouse {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Brands Section (Animated Grid) */
.brands-section {
    background: var(--bg-dark);
}
.brands-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 80px;
    margin-top: 40px;
    max-width: 900px;
    width: 100%;
}
.brand-logo {
    height: 60px;
    width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.5);
    transition: opacity 0.3s;
    animation: floatBrand 4s ease-in-out infinite;
}
.brand-logo:hover {
    opacity: 1;
}
@keyframes floatBrand {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.anim-1 { animation-delay: 0s; }
.anim-2 { animation-delay: 0.3s; }
.anim-3 { animation-delay: 0.6s; }
.anim-4 { animation-delay: 0.9s; }
.anim-5 { animation-delay: 1.2s; }
.anim-6 { animation-delay: 1.5s; }
.anim-7 { animation-delay: 1.8s; }
.anim-8 { animation-delay: 2.1s; }
.anim-9 { animation-delay: 2.4s; }

/* Shared Titles */
.section-title {
    font-family: var(--font-heading); font-size: 4rem; margin-bottom: 20px;
}
.body-text {
    font-size: 1.1rem; 
    font-weight: 300; 
    letter-spacing: 2px; 
    color: rgba(255, 255, 255, 0.95); 
    line-height: 1.5;
}

/* Mix Foto & Video */
.mix-section {
    background: #000;
}
.video-bg-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; pointer-events: none;
}
.local-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 5, 15, 0.7);
}
.mix-content {
    position: absolute;
    top: 25%; left: 7.5%;
    width: 45%; /* Estricto para evitar superposición */
    max-width: 550px;
    z-index: 2;
}
.collage-wrapper {
    position: absolute;
    top: 0; right: 0; width: 45%; height: 100%;
    z-index: 1;
}
.collage-img {
    position: absolute;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s ease, z-index 0s;
}
.collage-img:hover {
    transform: scale(1.05) !important; 
    z-index: 100 !important;
}
/* Percentages relative to the 45% right-side wrapper */
.img-1 { width: 60%; height: auto; top: 15%; right: 10%; z-index: 5; }
.img-2 { width: 50%; height: auto; top: 40%; right: 35%; z-index: 4; }
.img-3 { width: 70%; height: auto; bottom: 15%; right: 15%; z-index: 6; }
.img-4 { width: 40%; height: auto; top: 25%; left: -10%; z-index: 3; }
.img-5 { width: 55%; height: auto; bottom: 10%; left: 5%; z-index: 7; }

/* Interactive Services (Accordion Vertical) */
.interactive-services {
    background: var(--bg-dark);
}
.srv-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 15vh;
    padding-bottom: 10vh;
}
.srv-header {
    font-family: var(--font-heading); font-size: 4rem; color: var(--cyan); margin-bottom: 40px; text-transform: uppercase;
}
.services-accordion {
    display: flex;
    gap: 20px;
    width: 100%;
    flex: 1;
    overflow: hidden;
}
.service-card {
    position: relative;
    flex: 1;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: none; 
}
.service-card.active {
    flex: 3;
}
.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    transition: background 0.6s ease;
    z-index: 1;
}
.service-card.active .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}
.card-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.card-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.srv-num {
    font-family: var(--font-heading); font-size: 2rem; color: var(--cyan); margin-bottom: 10px;
}
.srv-mockup {
    width: 100%;
    max-height: 0;
    margin-bottom: 0;
    object-fit: contain;
    object-position: bottom left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card.active .srv-mockup {
    max-height: 350px;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Centered Popup Video Container */
.srv-video-container {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 200px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card.active .srv-video-container {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.2s;
}
.srv-video-mockup {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}


.srv-title {
    font-family: var(--font-heading); font-size: 2.2rem; text-transform: uppercase; line-height: 1.1;
    transition: font-size 0.6s ease;
}
.service-card.active .srv-title {
    font-size: 3rem;
    margin-bottom: 15px;
}
.srv-desc-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card.active .srv-desc-wrapper {
    grid-template-rows: 1fr;
}
.srv-desc {
    font-size: 1.1rem; 
    font-weight: 300; 
    letter-spacing: 2px; 
    color: rgba(255, 255, 255, 0.95); 
    line-height: 1.6;
    max-width: 500px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0s;
}
.service-card.active .srv-desc {
    opacity: 1;
    transition-delay: 0.3s;
}

/* Portfolio */
.portfolio-wrapper {
    position: relative; width: 100%; height: 100%;
}
.portfolio-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease;
}
.portfolio-item.active {
    opacity: 1; z-index: 2;
}
.p-content {
    position: absolute; bottom: 15%; left: 7.5%; z-index: 10;
}
.p-content h2 {
    font-family: var(--font-heading); font-size: 5rem; line-height: 1;
}
.p-category {
    color: var(--cyan); letter-spacing: 3px; text-transform: uppercase; margin-top: 10px;
}
.p-controls {
    position: absolute; bottom: 60px; right: 7.5%; z-index: 10;
}
.p-row-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.7);
}
.p-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.p-thumbnails {
    display: flex; gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.p-thumbnails::-webkit-scrollbar {
    display: none;
}
.thumb {
    width: 100px; height: 60px; object-fit: cover; opacity: 0.3; transition: all 0.4s; border: 1px solid transparent; cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.thumb.active, .thumb:hover {
    opacity: 1; border-color: var(--cyan);
}
.slider-arrow {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0 5px;
    display: flex;
    align-items: center;
}
.slider-arrow:hover {
    color: var(--cyan);
}

/* Contact */
.contact-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.input-group {
    position: relative; margin-bottom: 40px;
}
.input-group input, .input-group textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 15px 0; color: #fff; font-size: 1.2rem;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none; border-color: var(--cyan);
}
.input-group label {
    position: absolute; top: 15px; left: 0; color: var(--text-muted); transition: 0.3s ease; pointer-events: none;
}
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -15px; font-size: 0.9rem; color: var(--cyan);
}
.btn-submit {
    background: #fff; color: #000; border: none; padding: 15px 40px; border-radius: 40px; font-size: 1.1rem; font-weight: 600; transition: all 0.3s;
}
.btn-submit:hover {
    background: var(--cyan);
}

/* Footer */
.footer {
    position: absolute; bottom: 0; width: 100%; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1);
}
.f-content {
    display: flex; justify-content: space-between; align-items: center;
}
.massive-logo-footer {
    height: 80px; opacity: 0.5;
}
.socials {
    display: flex; gap: 30px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
}

/* Reveal Animations triggered by JS */
.reveal-text {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-text.visible {
    opacity: 1; transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .srv-title { font-size: 2rem; }
    .hero-title { font-size: 4rem; }
    .hero-right-align { align-items: center; text-align: center; padding-right: 0; }
    
    .mix-content { width: 55%; left: 5%; top: 15%; }
    .collage-wrapper { width: 40%; }
    .img-1 { width: 80%; height: auto; top: 20%; right: 10%; }
    .img-2 { display: none; }
    .img-3 { width: 100%; height: auto; bottom: 15%; right: 5%; }
    .img-4 { display: none; }
    .img-5 { width: 70%; height: auto; bottom: 40%; right: 20%; left: auto; }
    
    .services-accordion { flex-direction: column; }
    .service-card.active .srv-title { font-size: 2.5rem; }
    
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

/* Visibility Utilities */
.mobile-only { display: none; }
