:root {
    /* Brand Colors - Apple/Tesla Premium Minimalist */
    --color-primary: #0056b3; 
    --color-primary-light: #007bff;
    --color-primary-dark: #003d82;
    --color-white: #ffffff;
    --color-bg-dark: #020617; /* Slate 950 - Navy profundo */
    --color-bg-light: #F5F7FA; /* Gris muy claro para secciones */
    --color-whatsapp: #25D366; 
    --color-text-main: #1e293b; /* Slate 800 para legibilidad sobre blancos */
    --color-text-muted: #64748b; /* Slate 500 */
    --color-stroke: #e2e8f0;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* BOTÓN DE MÚSICA SUTIL */
.music-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-container.visible {
    opacity: 1;
    visibility: visible;
}

.music-toggle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: var(--color-primary-dark);
}

.volume-control {
    width: 0;
    opacity: 0;
    transition: all 0.4s ease;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.music-container:hover .volume-control {
    width: 80px;
    opacity: 1;
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* ANIMACIÓN PRELOADER BRUTAL CON AUDIO */
.preloader {
    position: fixed;
    inset: 0;
    /* Un degradado oscuro puro sin transparencia, para evitar ver el fondo blanco pálido del sitio */
    background: radial-gradient(circle at center, rgb(0, 31, 77) 0%, rgb(0, 0, 0) 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.17, 1);
}

.preloader.slide-up {
    transform: translateY(-100%);
}

.preloader-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.5s ease;
}

.preloader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.pulse-text {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: textPulse 2s infinite;
    margin-top: 180px; /* Separado del logo */
    cursor: pointer;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.preloader-content {
    position: relative;
    opacity: 1;
}

.preloader-logo {
    height: 120px; 
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0));
    opacity: 0.1;
}

.preloader-logo.flicker {
    animation: neonVoiceSync 2.3s forwards; /* Simulación del tono exacto acelerada */
}

@keyframes neonVoiceSync {
    0%   { opacity: 0.1; filter: drop-shadow(0 0 0px rgba(0, 122, 255, 0)); }
    10%  { opacity: 1;   filter: drop-shadow(0 0 30px rgba(0, 122, 255, 1)); } /* AVISOS (azul) */
    15%  { opacity: 0.5; filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.5)); }
    20%  { opacity: 1;   filter: drop-shadow(0 0 40px rgba(0, 122, 255, 1)); } 
    30%  { opacity: 1;   filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.8)); }
    
    45%  { opacity: 0.1; filter: drop-shadow(0 0 0px rgba(255, 0, 0, 0)); } 
    50%  { opacity: 1;   filter: drop-shadow(0 0 50px rgba(255, 0, 50, 1)); } /* EL CHAMO (rojo) */
    55%  { opacity: 0.8; filter: drop-shadow(0 0 20px rgba(255, 0, 50, 0.8)); }
    60%  { opacity: 1;   filter: drop-shadow(0 0 70px rgba(255, 0, 50, 1)); } 
    100% { opacity: 1;   filter: drop-shadow(0 0 30px rgba(0, 122, 255, 1)); } /* Vuelve a azul estable */
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px; /* Más aire lateral */
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 6px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.3px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-text-main);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-white);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Sombra añadida siempre */
    transform: translateY(-10px);
    opacity: 0;
}

.header.visible {
    transform: translateY(0);
    opacity: 1;
}

.header.scrolled {
    height: 75px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    height: 48px; /* Logo más grande */
    width: auto;
    transition: all 0.4s ease;
}

.header.scrolled .header-logo {
    height: 38px;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 700; /* Letras más gruesas */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-header {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 4px;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

/* 1. HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: #020617 url('./HERO-FALLBACK.png') no-repeat center center / cover; /* Fallback de alta calidad */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay for contrast */
    background: linear-gradient(
        to bottom,
        rgba(2, 6, 23, 0.5) 0%,
        rgba(2, 6, 23, 0.7) 60%,
        rgba(2, 6, 23, 0.9) 100%
    );
    z-index: 2;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999999; /* Máximo z-index: POR ENCIMA de TODO, inclusive el preloader y los menús */
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 4;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(2.5rem, 6vw, 4.8rem); /* Tipografía más grande */
    margin-bottom: 30px;
    letter-spacing: -1.5px;
    line-height: 1.3; /* Espaciado claro entre líneas */
    text-align: center;
    max-width: 1100px;
}

.hero-title .highlight {
    color: var(--color-white);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 50px rgba(0, 123, 255, 0.6);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-weight: 400; /* Medium weight for clarity */
    max-width: 900px;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* HERO SLIDER REDESIGN (GRID STACK) */
.hero-slider {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding-top: 20px;
}

.hero-slide {
    grid-column: 1;
    grid-row: 1; /* Todas las slides en la misma celda */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 2;
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-align: center;
    max-width: 1200px; /* Aumentado para evitar saltos de línea indeseados */
    width: 95%;
    font-weight: 800; /* Super Bold as in screenshot */
}

.hero-buttons {
    grid-column: 1;
    grid-row: 2; /* Siempre debajo de las slides */
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 30px;
    z-index: 10;
}

.hero-dots {
    grid-column: 1;
    grid-row: 3; /* Siempre debajo de los botones */
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-dots .dot.active {
    background: var(--color-primary-light);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--color-primary-light);
}

@media (max-width: 768px) {
    .hero-slider {
        padding-top: 10px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* BARRA DE PROGRESO */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* General Sections */
section {
    padding: 60px 0; /* Espacios reducidos globalmente */
}

.section-header {
    text-align: center;
    margin-bottom: 50px; /* Reducido para evitar espacios muertos */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text-main) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 700px;
    margin: 0 auto;
}

/* ANIMACIONES DE ENTRADA LATERAL DRAMÁTICAS */
.reveal-left {
    opacity: 0;
    transform: translateX(120px); /* Movimiento amplio desde la derecha */
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(-120px); /* Movimiento amplio desde la izquierda */
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
    opacity: 1;
    transform: translate(0, 0) !important;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 2. SERVICIOS */
.services {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.section {
    padding: 60px 0; /* Espacios reducidos significativamente */
}

.service-icon-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 122, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-decoration: none;
}

.service-icon-card h3 {
    color: var(--color-primary); /* Azul Chamo */
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.service-icon-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.service-icon-card:hover {
    background: #ffffff;
    border-color: var(--color-primary-light);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.1);
    transform: translateY(-10px);
}

.s-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 122, 255, 0.05);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 5px;
    transition: all 0.4s ease;
}

.service-icon-card:hover .s-icon {
    background: var(--color-primary);
    color: #ffffff;
    transform: rotate(10deg);
}

.service-wa-indicator {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-icon-card:hover .service-wa-indicator {
    opacity: 1;
}

.service-icon-card:hover .s-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.service-icon-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.service-icon-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-wa-indicator {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: var(--color-whatsapp);
    color: var(--color-white);
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: bottom 0.3s ease;
}

.service-icon-card:hover .service-wa-indicator {
    bottom: 0;
}

/* VIDEOS IPHONE TIPO REELS */
.iphone-video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.iphone-wrapper {
    position: relative;
    width: 250px;
    height: 520px;
    border-radius: 36px;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2), 0 0 0 8px #1a1a1a, 0 0 0 10px #333;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.iphone-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 123, 255, 0.4), 0 0 0 8px #1a1a1a, 0 0 0 10px #333;
}

.iphone-notch {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 25px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.iphone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.iphone-wrapper:hover .iphone-video, 
.iphone-wrapper.playing .iphone-video {
    opacity: 1;
}

.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 65px; height: 65px;
    background: rgba(0, 123, 255, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 5;
}

.iphone-wrapper.playing .video-play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    pointer-events: none;
}

.video-wa-btn {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}

.video-wa-btn:hover {
    transform: scale(1.15) rotate(5deg);
    background: #1ebe57;
}

/* GALERÍA ESTILO MASONRY PROFESIONAL (MODULA) */
.portfolio {
    background-color: #ffffff;
    padding: 100px 0;
}

.galeria-grid {
    columns: 4 250px; /* 4 columnas en desktop, se ajusta a 250px min */
    column-gap: 20px;
    padding: 20px 0;
}

.galeria-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    width: 100%;
}

.galeria-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.galeria-item img {
    width: 100%;
    height: auto; 
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 86, 179, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transition: all 0.4s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay span {
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

@media (max-width: 768px) {
    .galeria-grid {
        columns: 2 150px;
        column-gap: 12px;
    }
    .galeria-item {
        margin-bottom: 12px;
    }
}

/* LIGHTBOX (VISOR) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    padding: 40px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    border: 8px solid var(--color-white); /* El Marquito */
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    background: var(--color-white);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    padding: 15px;
    background: var(--color-white);
    color: var(--color-text-main);
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--color-primary-light);
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-light);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .lightbox { padding: 10px; }
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-content { border-width: 4px; }
}

/* 4. IMPACTO PARALLAX */
.impact-parallax {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./FACHADA DE FONDO WEB.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    text-align: center;
}

.impact-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Oscuro profundo para que el aviso brillante destaque */
    background: linear-gradient(rgba(2, 6, 23, 0.85), rgba(0, 0, 0, 0.9));
}

.impact-container {
    position: relative;
    z-index: 1;
}

.impact-title {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -1px;
}

/* TESTIMONIOS SLIDER */
.testimonials {
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 50, 150, 0.05);
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 20px;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
}

.t-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 400;
}

.t-author {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.t-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-stroke);
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-dot.active {
    background: var(--color-primary);
    transform: scale(1.4);
}

/* 5. CONTACTO & FORMULARIO */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    align-items: stretch;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    overflow: hidden;
}

.contact-map {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background: #e9e9e9;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    /* Modo claro original */
}

.map-overlay-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-white);
    color: var(--color-text-main);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.map-overlay-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.contact-form-wrapper {
    padding: 50px;
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.contact-form-wrapper > p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 35px;
}

.wa-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wa-form .form-group {
    margin-bottom: 25px;
}

.wa-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wa-form input, .wa-form select, .wa-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-stroke);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fdfdfd;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.form-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.form-features i {
    color: var(--color-whatsapp);
    font-size: 1.1rem;
    margin-right: 4px;
    vertical-align: middle;
}

.btn-submit-wa {
    width: 100%;
    padding: 18px;
    background: #af1b1b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit-wa:hover {
    background: #8e1414;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(175, 27, 27, 0.3);
}

/* 6. FOOTER PRO */
.footer {
    background: #020617; /* Azul casi negro ultra profundo */
    padding: 80px 0 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-column h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    padding-left: 5px;
}

.footer-info-list {
    list-style: none;
    padding: 0;
}

.footer-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-info-list i {
    color: var(--color-primary-light);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.s-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.s-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-status {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-white);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #1ebe57;
    border-radius: 50%;
    box-shadow: 0 0 10px #1ebe57;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 990;
}

.whatsapp-message {
    background-color: var(--color-white);
    color: var(--color-text-main);
    padding: 12px 20px;
    border-radius: 12px 12px 0 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 200px;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInMessage 0.8s forwards 1.5s;
    border: 1px solid var(--color-stroke);
}

.whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    border-width: 8px 0 0 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--color-white);
}

@keyframes slideInMessage {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fab-whatsapp {
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: var(--color-white);
}

/* Utility Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* EFECTO CURSOR Y PARTICULAS EN RATON */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, .galeria-item, .t-dot, .lightbox-close, .lightbox-prev, .lightbox-next {
        cursor: none;
    }
}

.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--color-primary);
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(0, 123, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
}

.mouse-particle {
    position: fixed;
    background: var(--color-primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--color-primary-light);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        min-height: 350px;
    }
    .masonry-grid {
        column-count: 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-info ul {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-bg-light);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        justify-content: center;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .btn-header {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    section {
        padding: 80px 0;
    }
    .galeria-grid {
        gap: 8px;
    }
    .galeria-item {
        width: calc(50% - 8px);
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

/* 2.5 SECCIÓN ESTUDIO (DISEÑO DE AUTOR) */
.studio-section {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.studio-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 50, 150, 0.1);
}

.studio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.studio-image:hover img {
    transform: scale(1.05);
}

.studio-content {
    padding-right: 40px;
}

.studio-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.studio-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-main);
    margin-bottom: 25px;
}

.studio-title .highlight-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.studio-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.studio-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .studio-content {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .studio-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .studio-stats {
        justify-content: center;
    }
}
