/* =========================================
   1. VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Space+Grotesk:wght@300;400;600&family=Syne:wght@700;800&display=swap');

:root {
    --acid-yellow: #ccff00;
    --acid-pink: #ff0099;
    --acid-blue: #00f0ff;
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    
    /* TIPOGRAFÍAS */
    --font-logo: 'Syne', sans-serif; 
    --font-heading: 'Helvetica Neue', 'Helvetica', 'Inter', Arial, sans-serif; 
    --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    max-width: 100vw; 
    overflow-x: hidden; 
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }

.notranslate {
    -webkit-translate: no;
    -moz-translate: no;
    -ms-translate: no;
    translate: no;
}

/* =========================================
   2. HEADER & NAV
   ========================================= */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000; padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; justify-content: center;
}

.nav-container {
    width: 100%; 
    max-width: 1200px;
    padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}

/* --- LOGO --- */
.logo a, .footer-logo a {
    font-family: var(--font-logo); 
    font-weight: 800; 
    font-style: normal; 
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    color: var(--black);
    padding: 4px 8px; 
    border: 3px solid var(--black); 
    background: var(--white);
    transform: skew(0deg);
    white-space: nowrap;
}

.logo-glitch { position: relative; display: block; z-index: 2; }
.logo-glitch::before, .logo-glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); z-index: -1;
}

/* Animaciones Glitch */
.logo-glitch::before { left: 2px; text-shadow: 1px 0 var(--acid-blue); animation: glitch-idle-1 2s infinite linear alternate-reverse; }
.logo-glitch::after { left: -2px; text-shadow: -1px 0 var(--acid-pink); animation: glitch-idle-2 2.5s infinite linear alternate-reverse; }

.logo a:hover .logo-glitch::before, .footer-logo a:hover .logo-glitch::before { text-shadow: 3px 0 var(--acid-pink); animation: glitch-hover-1 0.2s infinite linear alternate-reverse; }
.logo a:hover .logo-glitch::after, .footer-logo a:hover .logo-glitch::after { text-shadow: -3px 0 var(--acid-blue); animation: glitch-hover-2 0.2s infinite linear alternate-reverse; }
.logo a:hover, .footer-logo a:hover { box-shadow: 6px 6px 0px var(--acid-yellow); transform: translate(-2px, -2px); }

@keyframes glitch-idle-1 { 0% { clip-path: inset(0 0 0 0); transform: translate(0); } 80% { clip-path: inset(0 0 0 0); transform: translate(0); } 85% { clip-path: inset(10% 0 60% 0); transform: translate(-2px); } 90% { clip-path: inset(80% 0 5% 0); transform: translate(2px); } 100% { clip-path: inset(0 0 0 0); transform: translate(0); } }
@keyframes glitch-idle-2 { 0% { clip-path: inset(0 0 0 0); } 70% { clip-path: inset(0 0 0 0); transform: translate(0); } 75% { clip-path: inset(0% 0 80% 0); transform: translate(2px); } 85% { clip-path: inset(40% 0 20% 0); transform: translate(-2px); } 100% { clip-path: inset(0 0 0 0); transform: translate(0); } }
@keyframes glitch-hover-1 { 0% { clip-path: inset(20% 0 80% 0); } 20% { clip-path: inset(60% 0 10% 0); } 40% { clip-path: inset(40% 0 50% 0); } 60% { clip-path: inset(80% 0 5% 0); } 80% { clip-path: inset(10% 0 60% 0); } 100% { clip-path: inset(30% 0 30% 0); } }
@keyframes glitch-hover-2 { 0% { clip-path: inset(10% 0 60% 0); } 20% { clip-path: inset(30% 0 20% 0); } 40% { clip-path: inset(70% 0 10% 0); } 60% { clip-path: inset(20% 0 50% 0); } 80% { clip-path: inset(50% 0 30% 0); } 100% { clip-path: inset(0% 0 80% 0); } }

/* --- MENU LINKS --- */
.nav-links { display: flex; gap: 10px; align-items: center; }

.nav-links a { 
    font-family: var(--font-heading); 
    font-weight: 900; 
    text-transform: lowercase; 
    font-size: 1.1rem; 
    position: relative;
    padding: 8px 15px; 
    color: var(--black);
    background: transparent;
    border-radius: 0px; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a.active-link { background-color: var(--acid-pink); color: var(--white); }
.nav-links a:hover {
    background-color: transparent; 
    color: var(--black);
    transform: scale(1.10);
    text-shadow: 3px 3px 0px var(--acid-pink), 5px 5px 0px var(--acid-yellow);
}

.burger { display: none; cursor: pointer; z-index: 2000; }
.burger div { width: 30px; height: 4px; background: var(--black); margin: 5px; transition: 0.3s; }

/* =========================================
   3. SECCIONES
   ========================================= */
.hero-section {
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 20px; margin-top: 60px;
}
.hero-content h1 { font-family: var(--font-heading); font-weight: 900; font-size: 4rem; line-height: 1; }
.highlight { color: var(--acid-pink); }

/* Estilos Hero Grid (Index) */
.hero-grid-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding-top: 80px; padding-bottom: 20px; overflow: hidden; width: 100%; 
}
.hero-grid-container {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    width: 100%; max-width: 98%; margin: 0 auto;
}
.hero-grid-item {
    position: relative; width: 100%; height: 60vh; 
    overflow: hidden; background-color: var(--black); cursor: pointer; border: 0;
}
.hero-grid-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    will-change: transform, opacity; opacity: 1;
}
.hero-grid-item:hover img { transform: scale(1.15); }

.cta-button {
    display: inline-block; padding: 15px 40px; background: var(--black); color: var(--acid-yellow);
    font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; 
    border: 3px solid var(--black); transition: 0.3s; cursor: pointer;
}
.cta-button:hover { background: var(--white); color: var(--black); box-shadow: 5px 5px 0px var(--acid-pink); transform: translate(-2px, -2px); }

.content-section { padding: 80px 40px; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.text-block { flex: 1; }
.text-block h2 { font-family: var(--font-heading); font-weight: 900; font-size: 2.5rem; margin-bottom: 20px; line-height: 1.1; }
.link-more { display: inline-block; margin-top: 20px; font-weight: 900; border-bottom: 3px solid var(--acid-yellow); }

.image-block {
    flex: 1; min-height: 500px; background-size: cover; background-position: center;
    border: 3px solid var(--black); box-shadow: 10px 10px 0px var(--acid-blue);
    display: flex; align-items: stretch; justify-content: stretch;
}

/* Slider */
.slider-web { padding: 0; border: none; box-shadow: none; background: transparent; cursor: grab; overflow: hidden;}
.slider-web:active { cursor: grabbing; }
.slider-wrapper { width: 100%; height: 100%; position: relative; overflow: hidden; border: 3px solid var(--black); box-shadow: 10px 10px 0px var(--acid-yellow); background: #000; }
.slider-container { display: flex; height: 100%; width: 100%; touch-action: pan-y; will-change: transform; }
.slider-item { flex: 0 0 100%; width: 100%; height: 100%; position: relative; }
.slider-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.gallery-section { padding: 80px 40px; background: var(--gray-light); text-align: center; }
.gallery-header { margin-bottom: 50px; }
.gallery-header h2 { font-family: var(--font-heading); font-weight: 900; font-size: 3rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.portfolio-item {
    aspect-ratio: 4/3; background-size: cover; background-position: center;
    border: 3px solid var(--black); position: relative; cursor: pointer; transition: 0.3s; text-decoration: none; display: block;
}
.portfolio-item:hover { transform: translate(-5px, -5px); box-shadow: 8px 8px 0px var(--acid-pink); }
.portfolio-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: var(--black); color: var(--white); padding: 15px; 
    font-family: var(--font-heading); font-weight: 900; text-transform: uppercase;
    opacity: 0; transition: 0.3s;
}
.portfolio-item:hover .portfolio-caption { opacity: 1; }

.contact-section { padding: 80px 20px; text-align: center; }
.contact-card { max-width: 600px; margin: 0 auto; padding: 40px; border: 3px solid var(--black); box-shadow: 10px 10px 0px #ddd; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ccc; font-family: var(--font-body); }

/* FOOTER */
.main-footer { 
    background: var(--black); color: var(--white); 
    padding: 60px 20px; 
    text-align: center; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.footer-logo a {
    font-family: var(--font-logo); 
    font-size: 1rem;
    padding: 3px 6px;
    border-width: 2px;
}

/* =========================================
   4. LIGHTBOX UI
   ========================================= */
#go-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--acid-yellow); border: 2px solid var(--black);
    font-size: 20px; cursor: pointer; display: none; z-index: 900;
}

.lightbox-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98); z-index: 5000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-modal.is-open { display: flex; opacity: 1; }
.lightbox-content-wrapper { position: relative; width: 90%; height: 90%; display: flex; align-items: center; justify-content: center;}
.lightbox-image-content {
    max-height: 85vh; max-width: 85vw; object-fit: contain;
    border: 1px solid var(--white); box-shadow: 0 0 40px rgba(0, 240, 255, 0.2); cursor: grab; 
}
.lightbox-close {
    position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--white);
    font-size: 50px; cursor: pointer; font-weight: 100; line-height: 1; z-index: 2010; transition: 0.3s;
}
.lightbox-close:hover { color: var(--acid-yellow); transform: rotate(90deg); }

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 80px; height: 80px;
    background: transparent; border: none; cursor: pointer; z-index: 2001; opacity: 0.7; transition: 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.lightbox-nav:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }
.arrow-icon { width: 25px; height: 25px; border-top: 2px solid var(--white); border-right: 2px solid var(--white); display: block; }
.lightbox-prev { left: 0px; } .lightbox-prev .arrow-icon { transform: rotate(-135deg); border-color: var(--acid-blue); }
.lightbox-next { right: 0px; } .lightbox-next .arrow-icon { transform: rotate(45deg); border-color: var(--acid-pink); }

/* =========================================
   5. RESPONSIVE (GENERAL)
   ========================================= */
@media (max-width: 900px) {
    html, body { overflow-x: hidden; position: relative; }
    .burger { display: block; }
    .nav-links {
        position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; 
        background: var(--white); flex-direction: column; justify-content: center; align-items: center;
        gap: 40px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1500; margin: 0; padding: 0;
    }
    .nav-links.nav-active { transform: translateX(0); }
    .nav-links a { font-size: 2.5rem; padding: 10px 0; font-weight: 900; }
    .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle .line2 { opacity: 0; }
    .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    .content-section { flex-direction: column; gap: 40px; padding: 40px 20px; width: 100%; }
    .image-block { width: 100%; min-height: 350px; }
    .slider-wrapper { height: 350px; }
    .hero-grid-container { grid-template-columns: repeat(2, 1fr); padding: 0; max-width: 100%; }
    .hero-grid-item { height: 40vh; }
    .lightbox-prev { left: 0; } .lightbox-next { right: 0; }
}

@media (max-width: 480px) {
    .footer-logo a { font-size: 0.9rem; padding: 3px 5px; }
    .nav-container { padding: 0 20px; }
    .logo a { font-size: 1.3rem; padding: 4px 8px; }
    .hero-content h1 { font-size: 2.5rem; } /* Ajuste para el título grande en móvil */
}

/* =========================================
   6. MOBILE LANDSCAPE LOGIC (FIXED HEADER FIX)
   ========================================= */
@media (max-width: 900px) and (orientation: landscape) {
    .main-header { position: absolute; }
}