/* Fondo solo desde debajo del header */
.content-area {
  background-image: url('../img/fondo-pagina.png');
  background-size: cover;
  background-position: center;
  
  background-repeat: no-repeat;
  min-height: 100vh; /* o 100% si tu layout lo requiere */
}

.dark .content-area {
  background-image: none;
  background-color: #121212;
}
/* Banner superior full-width sin provocar scroll horizontal */
.top-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.top-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.top-banner img[usemap] {
  cursor: default;
}
area {
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% { 
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-8px) scale(1.1);
  }
  50% { 
    transform: translateY(-15px) scale(1.15);
  }
  75% {
    transform: translateY(-8px) scale(1.1);
  }
}

@keyframes pulse-icons {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.1);
  }
}

.pulse-arrow {
  animation: pulse 2s infinite ease-in-out;
}

.pulse-arrow:hover {
  animation-duration: 0.8s;
}

.pulse-icons .pulse-icon {
  animation: pulse-icons 3s infinite ease-in-out;
}

/* Efecto de onda en los iconos (se activan uno tras otro) */
.pulse-icons .pulse-icon:nth-child(1) {
  animation-delay: 0s;
}
.pulse-icons .pulse-icon:nth-child(2) {
  animation-delay: 0.5s;
}
.pulse-icons .pulse-icon:nth-child(3) {
  animation-delay: 1s;
}
.pulse-icons .pulse-icon:nth-child(4) {
  animation-delay: 1.5s;
}

.pulse-icons:hover .pulse-icon {
  animation-duration: 1s;
}

.text-custom-orange {
  color: #ff6600;
}

.bg-custom-orange {
  background-color: #ff6600;
}

.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: shine 2.5s infinite;
}
@keyframes shine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Evitar scroll horizontal solo en layout de tienda */
html.tienda-page-html,
body.tienda-page-body {
  overflow-x: hidden;
}


/* --- Ultra Zero-Scroll Noise --- */
.no-scrollbar-luxury {
    /* Firefox */
    scrollbar-width: none !important;
    /* IE y Edge */
    -ms-overflow-style: none !important;
}

/* Chrome, Safari y toda la base Chromium (Brave, Opera, Edge) */
.no-scrollbar-luxury::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
}

/* Fuerza el ocultamiento incluso si el sistema operativo intenta forzarla */
.no-scrollbar-luxury {
    overflow-x: auto;
    overflow-y: hidden;
    /* Evita el rebote elástico en Mac que a veces muestra el fondo de la barra */
    overscroll-behavior-x: contain; 
}

/* Glassmorphism para flechas laterales */
.glass-arrow {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .glass-arrow {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* --- High-End Hero UI --- */

/* Brillo metálico animado para botones premium */
.shimmer-button {
    position: relative;
    overflow: hidden;
}
.shimmer-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: 0.7s;
}
.shimmer-button:hover::after {
    left: 120%;
}

/* Tarjeta flotante con desenfoque extremo */
.ultra-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animación de entrada para el contenido */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal-content {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroZoomMobile {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@media (max-width: 1023px) {
    #hero-image {
        animation: heroZoomMobile 12s ease-in-out infinite alternate;
    }
}


/* --- Categorías Next-Gen --- */
.category-tile {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Efecto de resplandor al hacer hover */
.category-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.category-tile:hover::before {
    opacity: 1;
}

/* Animación de la imagen de fondo */
.category-image {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-tile:hover .category-image {
    transform: scale(1.1) rotate(-2deg);
}

/* Ocultar scrollbar pero mantener funcionalidad */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }


/* Hacemos las tarjetas invisibles pero funcionales */
.card-container {
  opacity: 0; /* Invisible */
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Pero el contenido dentro flota visiblemente */
.floating-media-matrix {
  position: fixed; /* ¡Clave! Se sale del flujo normal */
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.media-cell {
  position: absolute;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  animation: float-base 15s infinite ease-in-out;
}

/* Cada celda flota con ritmo diferente */
.cell-1 { animation: float-1 18s infinite alternate; }
.cell-2 { animation: float-2 22s infinite alternate; animation-delay: 3s; }
/* etc... */


/* --- HERO EXPERIENCE: THE GATEWAY --- */

/* Fondo de video con superposición de malla */
.hero-video-container {
    position: relative;
    overflow: hidden;
}
.hero-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    z-index: 1; /* Textura de puntos sutil para calidad premium */
    pointer-events: none;
}

/* Barra de búsqueda "Glassmorphic" */
.glass-search-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
}

/* Animación de entrada escalonada */
.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Input placeholder styling */
.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* --- THE MINT LAB: FLOATING MATRIX CAROUSEL --- */

/* Contenedor Principal: El Espacio 3D 
.mint-carousel-section {
    background: transparent; 
    position: relative;
    overflow: hidden;
    perspective: 1500px;
    padding: 4rem 0;
}*/


.mint-carousel-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDMiLz4KPC9zdmc+');
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* El "Swiper" actúa como el orquestador del espacio */
.mint-swiper {
    width: 100%;
    padding: 2rem 0;
    z-index: 10;
}

/* El Slide es el "Contenedor Invisible" */
.mint-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Altura fija para mantener consistencia en la matriz */
    height: 60vh; 
    min-height: 500px;
    opacity: 0.4;
    transition: opacity 0.6s ease;
    
}

.mint-slide.swiper-slide-active {
    opacity: 1;

}

/* Asegurar que los elementos interactivos dentro del slide activo funcionen */
.mint-slide.swiper-slide-active .matrix-cell,
.mint-slide.swiper-slide-active a {
    /* pointer-events: auto !important; <- ELIMINADO */
    position: relative;
    /* z-index: 1001 !important; <- ELIMINADO */
}

/* La Matriz Flotante (Grid interno del slide) */
.floating-matrix {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Elementos Flotantes (Celdas de la matriz) */
.matrix-cell {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    /* Sombra profunda para efecto de flotación */
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    cursor: pointer; /* Forzar cursor mano */
    z-index: 30; /* Elevar sobre overlay y otros elementos */
    display: block; /* Asegurar comportamiento de bloque para el enlace */
    pointer-events: auto !important; /* FORZAR CLICKABLE SIEMPRE */
}

.matrix-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease-out;
}

/* Efecto Hover INDIVIDUAL por celda (No global) */
.matrix-cell:hover {
    transform: translateZ(30px) scale(1.05); /* Zoom y elevación individual */
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 50; /* Traer al frente absoluto */
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7); /* Sombra más intensa al elevarse */
}

.matrix-cell:hover img {
    transform: scale(1.15); /* Zoom interno de la imagen */
}

/* --- CANALES DE ANIMACIÓN (Cuando el slide está activo) --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Canal 1: Entrada suave */
.swiper-slide-active .anim-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Canal 2: Flotación perpetua desfasada */
.float-channel-1 { animation: floatY 6s ease-in-out infinite; animation-delay: 0s; }
.float-channel-2 { animation: floatY 7s ease-in-out infinite; animation-delay: -1s; }
.float-channel-3 { animation: floatY 8s ease-in-out infinite; animation-delay: -2s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- SUPER HERO CAROUSEL --- */
.hero-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Transición suave entre fotos del mismo producto */
    z-index: 1;
}

.hero-layer.active {
    opacity: 1;
    z-index: 2;
}

/* Animación de entrada para cada foto (Zoom + Blur) - Lenta y Notoria */
.animate-zoom-blur {
    animation: zoomBlurEffect 8s ease-out forwards;
}

@keyframes zoomBlurEffect {
    0% {
        transform: scale(1.25); /* Zoom inicial más notorio */
        filter: blur(5px); /* Blur inicial suave */
        opacity: 0;
    }
    10% {
        opacity: 1;
        filter: blur(0px); /* Enfoca relativamente rápido */
    }
    100% {
        transform: scale(1.0); /* Zoom out muy lento hasta el final */
        filter: blur(0px);
        opacity: 1;
    }
}

/* Variaciones para los clones (Relleno) para que parezcan fotos distintas */
.clon-relleno-1 {
    object-position: 20% 50%; /* Enfocar izquierda */
}
.clon-relleno-2 {
    object-position: 80% 50%; /* Enfocar derecha */
}

/* Transición Global de Producto (Contenedor Padre) - Efecto Diferente (Slide Vertical + Fade) */
.product-transition-enter {
    animation: productChangeEnter 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.product-transition-exit {
    /* No se usa explícitamente en el JS actual, pero se define por si acaso */
    animation: productChangeExit 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes productChangeEnter {
    from {
        opacity: 0;
        transform: translateY(60px); /* Entra desde abajo */
        filter: brightness(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1);
    }
}

@keyframes productChangeExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-60px); /* Sale hacia arriba */
    }
}

/* --- LAYOUTS ESPECÍFICOS DE CELDAS --- */

/* Imagen Principal (Hero) */
.cell-hero {
    grid-column: span 12;
    grid-row: span 4;
    z-index: 1;
}
.cell-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* Detalles / Specs (Lateral) */
.cell-detail {
    grid-column: span 6;
    grid-row: span 2;
    z-index: 2;
}

/* Info Textual (Flotando libre) */
.cell-info {
    grid-column: span 12;
    /* grid-row: span 2; Eliminado para usar absolute */
    position: absolute;
    bottom: 34%; /* Alineado con el borde inferior de la celda hero (aprox) */
    left: 1.5rem;
    right: 1.5rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* Dejar pasar clicks al fondo si es necesario */
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .cell-hero {
        grid-column: 1 / span 8;
        grid-row: 1 / span 6;
    }
    .cell-detail-1 {
        grid-column: 9 / span 4;
        grid-row: 1 / span 3;
    }
    .cell-detail-2 {
        grid-column: 9 / span 4;
        grid-row: 4 / span 3;
    }
    .cell-info {
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        right: auto;
        width: 40%;
        text-align: left;
    }
}

/* Badges Holográficos */
.holo-badge-matrix {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 20;
}

/* Botón fantasma que cubre todo el enlace */
.slide-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    cursor: pointer;
}


.skeleton-card {
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* tacking */

@keyframes revealStep {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-reveal {
    opacity: 0;
    animation: revealStep 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Ocultar scrollbar pero mantener funcionalidad */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}



.product-image-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
    transition: transform 0.3s ease;
}
.product-card:hover .product-image-container {
    transform: scale(1.03);
}