/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

/* Barra de navegación transparente */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.navbar-scroll {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.contenedor-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #f0a500;
}

/* Menú de navegación */
.menu-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.menu-nav > li {
    position: relative;
}

.menu-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    display: block;
}

.menu-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f0a500;
    transition: width 0.3s ease;
}

.menu-nav > li > a:hover {
    color: #f0a500;
}

.menu-nav > li > a:hover::after {
    width: 100%;
}

/* Menú desplegable */
.menu-desplegable {
    position: relative;
}

.enlace-desplegable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flecha {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.menu-desplegable:hover .flecha {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem 0;
    min-width: 280px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(240, 165, 0, 0.2);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
}

.submenu::-webkit-scrollbar {
    width: 6px;
}

.submenu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.submenu::-webkit-scrollbar-thumb {
    background: #f0a500;
    border-radius: 10px;
}

.menu-desplegable:hover .submenu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.submenu li {
    padding: 0;
}

.submenu li a {
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu li a:hover {
    background: rgba(240, 165, 0, 0.1);
    color: #f0a500;
    border-left-color: #f0a500;
    padding-left: 2rem;
}

.submenu li a::after {
    display: none;
}

/* Botón menú móvil */
.boton-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.boton-menu span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Navegación lateral con puntos */
.navegacion-puntos {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.punto {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.punto:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.punto.activo {
    background: #f0a500;
    border-color: #f0a500;
    box-shadow: 0 0 10px rgba(240, 165, 0, 0.5);
}

.punto::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.punto:hover::before {
    opacity: 1;
}

/* ========================================
   ESTILOS GENERALES HERO
   ======================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.imagen-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.overlay-oscuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.contenedor-hero {
    text-align: center;
    color: #fff;
    z-index: 10;
    padding: 0 2rem;
    animation: aparecerHero 1s ease-out;
}

.numero-efecto {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.titulo-hero {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 2px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.subtitulo-hero {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

@keyframes aparecerHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   EFECTO 1: PARALLAX ZOOM CON MOUSE
   ======================================== */

.hero-parallax-zoom .imagen-fondo {
    transform: scale(1.2);
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.hero-parallax-zoom {
    cursor: crosshair;
}

/* ========================================
   EFECTO 2: KEN BURNS
   ======================================== */

.hero-ken-burns .imagen-fondo {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(-5%, -5%);
    }
}

/* ========================================
   EFECTO 3: OVERLAY ANIMADO
   ======================================== */

.overlay-gradiente {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 0, 150, 0.4) 0%, 
        rgba(0, 204, 255, 0.4) 100%);
    background-size: 400% 400%;
    animation: gradienteMovimiento 15s ease infinite;
    z-index: 2;
}

@keyframes gradienteMovimiento {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   EFECTO 4: SPLIT SCREEN
   ======================================== */

.hero-split-screen {
    cursor: default;
}

.split-izquierda,
.split-derecha {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: width 0.8s ease;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.split-izquierda {
    left: 0;
}

.split-derecha {
    right: 0;
}

/* ========================================
   EFECTO 5: GLITCH INTENSO
   ======================================== */

.glitch-img {
    animation: glitchImg 3s infinite;
}

@keyframes glitchImg {
    0%, 80%, 100% {
        transform: translate(0) skew(0deg);
        filter: none;
    }
    81% {
        transform: translate(-10px, 5px) skew(-2deg);
        filter: hue-rotate(90deg) saturate(3);
    }
    82% {
        transform: translate(8px, -8px) skew(2deg);
        filter: hue-rotate(-90deg) saturate(3);
    }
    83% {
        transform: translate(-6px, -4px) skew(1deg);
        filter: hue-rotate(180deg) saturate(2);
    }
    84% {
        transform: translate(10px, 6px) skew(-1deg);
        filter: hue-rotate(0deg) contrast(2);
    }
    85% {
        transform: translate(-8px, 3px) skew(2deg);
        filter: hue-rotate(270deg) saturate(3);
    }
    86% {
        transform: translate(5px, -5px) skew(-2deg);
        filter: hue-rotate(45deg) contrast(1.5);
    }
}

.glitch-texto {
    position: relative;
    animation: glitchTexto 3s infinite;
}

.glitch-texto::before,
.glitch-texto::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-texto::before {
    animation: glitchBefore 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    opacity: 0;
}

.glitch-texto::after {
    animation: glitchAfter 1.5s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    opacity: 0;
}

@keyframes glitchTexto {
    0%, 80%, 100% {
        transform: translate(0) skew(0deg);
    }
    81% {
        transform: translate(-5px, 3px) skew(-1deg);
    }
    82% {
        transform: translate(4px, -4px) skew(1deg);
    }
    83% {
        transform: translate(-3px, 2px) skew(0.5deg);
    }
    84% {
        transform: translate(5px, -2px) skew(-0.5deg);
    }
}

@keyframes glitchBefore {
    0%, 80%, 100% {
        transform: translate(0, 0);
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        opacity: 0;
    }
    81% {
        transform: translate(-10px, 5px);
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
        opacity: 0.8;
    }
    82% {
        transform: translate(8px, -8px);
        clip-path: polygon(0 10%, 100% 10%, 100% 50%, 0 50%);
        opacity: 0.8;
    }
    83% {
        transform: translate(-6px, 3px);
        clip-path: polygon(0 5%, 100% 5%, 100% 40%, 0 40%);
        opacity: 0.8;
    }
}

@keyframes glitchAfter {
    0%, 80%, 100% {
        transform: translate(0, 0);
        clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
        opacity: 0;
    }
    81% {
        transform: translate(10px, -5px);
        clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
        opacity: 0.8;
    }
    82% {
        transform: translate(-8px, 8px);
        clip-path: polygon(0 55%, 100% 55%, 100% 95%, 0 95%);
        opacity: 0.8;
    }
    83% {
        transform: translate(6px, -3px);
        clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
        opacity: 0.8;
    }
}

/* ========================================
   EFECTO 6: DUOTONO DINÁMICO
   ======================================== */

.overlay-duotono {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff0080, #7928ca);
    mix-blend-mode: multiply;
    opacity: 0.7;
    animation: duotonoRotar 10s ease-in-out infinite;
    z-index: 2;
}

@keyframes duotonoRotar {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
}

/* ========================================
   EFECTO 7: REVELAR CON SCROLL
   ======================================== */

.mascara-revelar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3;
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 0.5s ease-out;
}

/* ========================================
   EFECTO 8: MOSAICO ANIMADO
   ======================================== */

.contenedor-mosaico {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    z-index: 1;
}

.tile {
    background-size: cover;
    background-position: center;
    animation: tileFloat 8s ease-in-out infinite;
}

.tile:nth-child(1) {
    animation-delay: 0s;
}

.tile:nth-child(2) {
    animation-delay: 2s;
}

.tile:nth-child(3) {
    animation-delay: 4s;
}

.tile:nth-child(4) {
    animation-delay: 6s;
}

@keyframes tileFloat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   EFECTO 9: DESENFOQUE CON MOUSE
   ======================================== */

.hero-desenfoque {
    cursor: crosshair;
}

.hero-desenfoque .imagen-fondo {
    filter: blur(0px);
    transition: filter 0.2s ease-out;
    will-change: filter;
}

/* ========================================
   EFECTO 10: PARTÍCULAS SOBRE IMAGEN
   ======================================== */

#canvasParticulasImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* ========================================
   EFECTO 11: CLIP PATH ANIMADO - CÍRCULO MÓVIL
   ======================================== */

.hero-clip-path .imagen-fondo {
    animation: circuloMovil 12s ease-in-out infinite;
}

@keyframes circuloMovil {
    0% {
        clip-path: circle(40% at 20% 30%);
    }
    20% {
        clip-path: circle(45% at 80% 25%);
    }
    40% {
        clip-path: circle(42% at 70% 70%);
    }
    60% {
        clip-path: circle(47% at 30% 75%);
    }
    80% {
        clip-path: circle(43% at 50% 40%);
    }
    100% {
        clip-path: circle(40% at 20% 30%);
    }
}

/* ========================================
   EFECTO 12: RGB SPLIT
   ======================================== */

.hero-rgb-split {
    cursor: crosshair;
}

.hero-rgb-split .imagen-fondo::before,
.hero-rgb-split .imagen-fondo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transition: transform 0.1s ease-out, opacity 0.15s ease-out;
    opacity: 0;
}

.hero-rgb-split .imagen-fondo::before {
    filter: sepia(1) hue-rotate(180deg) saturate(3);
    mix-blend-mode: screen;
}

.hero-rgb-split .imagen-fondo::after {
    filter: sepia(1) hue-rotate(300deg) saturate(3);
    mix-blend-mode: screen;
}

/* ========================================
   EFECTO 13: TILT 3D
   ======================================== */

.hero-tilt-3d {
    perspective: 1000px;
}

.contenedor-tilt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.contenedor-tilt .imagen-fondo {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ========================================
   EFECTO 14: ZOOM FOCAL
   ======================================== */

.hero-zoom-focal {
    cursor: none;
}

.lupa-zoom {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 
                inset 0 0 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-size: 2000% 2000%;
    background-repeat: no-repeat;
}

/* Hotspots - Puntos interactivos (estrellitas) */
.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 4;
    transform: translate(-50%, -50%);
    animation: parpadeoEstrella 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hotspot::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #FFD700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.4);
}

.hotspot:hover::before {
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 1),
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 45px rgba(255, 215, 0, 0.6);
}

@keyframes parpadeoEstrella {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Tooltip */
.tooltip-hotspot {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: all 0.2s ease;
    border: 2px solid rgba(240, 165, 0, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.tooltip-hotspot.activo {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.tooltip-contenido {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tooltip-texto {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
}

.tooltip-boton {
    background: linear-gradient(135deg, #f0a500, #ff8c00);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 165, 0, 0.3);
}

.tooltip-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 165, 0, 0.5);
    background: linear-gradient(135deg, #ff8c00, #f0a500);
}

/* Mensaje de acceso */
.mensaje-acceso {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 3rem;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    border: 3px solid rgba(240, 165, 0, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.mensaje-acceso.activo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mensaje-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mensaje-icono {
    font-size: 3rem;
    animation: rotarIcono 2s linear infinite;
}

@keyframes rotarIcono {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mensaje-texto {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* ========================================
   EFECTO 15: EFECTO LÍQUIDO
   ======================================== */

.hero-liquido {
    cursor: crosshair;
}

#canvasLiquido {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-liquido .imagen-fondo {
    filter: blur(0px);
}

/* ========================================
   EFECTO 16: PARALLAX HORIZONTAL CON MOUSE
   ======================================== */

.hero-scroll-horizontal {
    overflow: hidden;
}

.capa-horizontal {
    position: absolute;
    top: 0;
    width: 120%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.capa-h-1 {
    left: -10%;
    opacity: 1;
    filter: blur(2px);
}

.capa-h-2 {
    left: -10%;
    opacity: 0.4;
    filter: blur(1px);
}

.capa-h-3 {
    left: -10%;
    opacity: 0.5;
}

/* ========================================
   EFECTO 17: MÁSCARA DE TEXTO
   ======================================== */

.hero-mascara-texto {
    background: #000;
}

.hero-mascara-texto .titulo-con-mascara {
    font-size: clamp(4rem, 12vw, 15rem);
    font-weight: 900;
    color: transparent;
    background-size: cover;
    background-position: center;
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-mascara-texto .imagen-fondo {
    opacity: 0.2;
    filter: blur(3px);
}

.hero-mascara-texto .subtitulo-hero {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* ========================================
   EFECTO 18: ZOOM INFINITO
   ======================================== */

.hero-zoom-infinito .imagen-fondo {
    animation: zoomInfinito 20s linear infinite;
}

@keyframes zoomInfinito {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(2);
    }
}

/* ========================================
   EFECTO 19: CRISTAL ROTO
   ======================================== */

.hero-cristal-roto {
    background: #000;
    overflow: hidden;
}

.contenedor-fragmentos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fragmento {
    position: absolute;
    background-size: cover;
    background-position: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    will-change: transform;
    --intensidad: 0;
}

/* Efecto al activar el cristal roto (solo fragmentos cercanos al mouse) */
.fragmento.roto {
    transform: translate(
        calc(var(--tx) * var(--intensidad)), 
        calc(var(--ty) * var(--intensidad))
    ) 
    rotate(calc(var(--rotacion) * var(--intensidad))) 
    scale(calc(1 - 0.05 * var(--intensidad)));
    filter: brightness(calc(1 - 0.2 * var(--intensidad)));
    z-index: calc(10 * var(--intensidad));
}

/* Efecto hover individual en fragmentos */
.fragmento:hover {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rotacion)) scale(1.1) !important;
    filter: brightness(1.3) !important;
    z-index: 100 !important;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .menu-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transition: right 0.3s ease;
        padding: 5rem 0 2rem 0;
        overflow-y: auto;
    }

    .menu-nav.menu-activo {
        right: 0;
    }

    .menu-nav > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .menu-nav > li > a {
        padding: 1rem 2rem;
    }

    .menu-nav > li > a::after {
        display: none;
    }

    .submenu {
        position: static;
        transform: none;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .menu-desplegable.activo .submenu {
        max-height: 600px;
    }

    .submenu li a {
        padding: 0.75rem 2.5rem;
        font-size: 0.9rem;
    }

    .submenu li a:hover {
        padding-left: 3rem;
    }

    .boton-menu {
        display: flex;
        z-index: 1001;
    }

    .boton-menu.activo span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .boton-menu.activo span:nth-child(2) {
        opacity: 0;
    }

    .boton-menu.activo span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .contenedor-nav {
        padding: 0 1.5rem;
    }

    .navegacion-puntos {
        right: 1rem;
        gap: 0.8rem;
    }

    .punto {
        width: 10px;
        height: 10px;
    }

    .punto::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.5rem;
    }

    .contenedor-nav {
        padding: 0 1rem;
    }

    .titulo-hero {
        letter-spacing: 1px;
    }

    .subtitulo-hero {
        font-size: 1rem;
    }

    .numero-efecto {
        font-size: 1rem;
    }

    .navegacion-puntos {
        right: 0.5rem;
        gap: 0.6rem;
    }

    .punto {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
}
