/* =============================================== */
/*           HEXAGONAL CATALOG STYLES             */
/*        Diseño Hexagonal Revolucionario        */
/*         Ultra Premium + Efectos 3D            */
/* =============================================== */

/* ========================== */
/*      VARIABLES HEXAGONALES  */
/* ========================== */
:root {
    /* Colores hexagonales únicos */
    --hex-primary: #00d4ff;
    --hex-secondary: #ff6b00;
    --hex-tertiary: #ff0080;
    --hex-quaternary: #80ff00;
    
    /* Gradientes hexagonales */
    --hex-gradient-1: linear-gradient(120deg, #00d4ff 0%, #ff6b00 50%, #ff0080 100%);
    --hex-gradient-2: linear-gradient(240deg, #ff0080 0%, #80ff00 50%, #00d4ff 100%);
    --hex-gradient-3: conic-gradient(from 0deg, #00d4ff, #ff6b00, #ff0080, #80ff00, #00d4ff);
    --hex-gradient-4: radial-gradient(circle, #00d4ff 0%, #ff6b00 50%, #ff0080 100%);
    
    /* Sombras hexagonales */
    --hex-shadow-1: 0 0 30px rgba(0, 212, 255, 0.5);
    --hex-shadow-2: 0 0 40px rgba(255, 107, 0, 0.4);
    --hex-shadow-3: 0 0 50px rgba(255, 0, 128, 0.6);
    --hex-shadow-ultra: 0 20px 60px rgba(0, 212, 255, 0.3);
    
    /* Formas hexagonales */
    --hex-clip-1: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    --hex-clip-2: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    --hex-clip-3: polygon(20% 0%, 80% 0%, 100% 30%, 100% 70%, 80% 100%, 20% 100%, 0% 70%, 0% 30%);
    
    /* Efectos especiales */
    --hex-glow-ultra: 0 0 80px currentColor;
    --hex-blur-3d: blur(30px);
    --hex-perspective: 1200px;
}

/* ========================== */
/*    FONDO HEXAGONAL ULTRA   */
/* ========================== */
.hexagonal-bg-ultra {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 0, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.08) 0%, transparent 80%);
}

.hex-pattern {
    position: absolute;
    width: 120%;
    height: 120%;
    background-image: 
        radial-gradient(circle at 0% 50%, transparent 12px, rgba(0, 212, 255, 0.2) 13px, rgba(0, 212, 255, 0.2) 18px, transparent 19px),
        linear-gradient(90deg, transparent 39px, rgba(255, 107, 0, 0.1) 40px, rgba(255, 107, 0, 0.1) 41px, transparent 42px),
        linear-gradient(60deg, transparent 39px, rgba(255, 0, 128, 0.08) 40px, rgba(255, 0, 128, 0.08) 41px, transparent 42px);
    background-size: 80px 80px;
    animation: hexPatternMove 30s linear infinite;
    transform: rotate(30deg);
}

@keyframes hexPatternMove {
    0% { transform: rotate(30deg) translate(0, 0); }
    100% { transform: rotate(30deg) translate(80px, 80px); }
}

.floating-gems {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gem {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--hex-gradient-3);
    clip-path: var(--hex-clip-1);
    animation: gemFloat 15s ease-in-out infinite;
    opacity: 0.7;
    filter: blur(2px);
}

.gem-1 { top: 10%; left: 15%; animation-delay: 0s; }
.gem-2 { top: 20%; right: 20%; animation-delay: 2.5s; width: 80px; height: 80px; }
.gem-3 { bottom: 30%; left: 10%; animation-delay: 5s; width: 40px; height: 40px; }
.gem-4 { top: 60%; right: 10%; animation-delay: 7.5s; width: 70px; height: 70px; }
.gem-5 { bottom: 15%; right: 40%; animation-delay: 10s; width: 50px; height: 50px; }
.gem-6 { top: 40%; left: 60%; animation-delay: 12.5s; width: 45px; height: 45px; }

@keyframes gemFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-50px) rotate(90deg) scale(1.3);
        opacity: 1;
    }
    50% {
        transform: translateY(0px) rotate(180deg) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(40px) rotate(270deg) scale(1.2);
        opacity: 0.9;
    }
}

.cyber-network {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 255, 0.1) 50%, transparent 51%),
        linear-gradient(60deg, transparent 49%, rgba(255, 107, 0, 0.08) 50%, transparent 51%),
        linear-gradient(120deg, transparent 49%, rgba(255, 0, 128, 0.06) 50%, transparent 51%);
    background-size: 100px 100px;
    animation: networkPulse 20s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ========================== */
/*      HEADER HEXAGONAL      */
/* ========================== */
.header.hexagonal-header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(5, 15, 25, 0.95) 100%);
    backdrop-filter: var(--hex-blur-3d);
    border-bottom: 3px solid transparent;
    border-image: var(--hex-gradient-1) 1;
    position: relative;
    overflow: hidden;
}

.header-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 0, 0.08) 0%, transparent 40%);
    animation: headerNetworkFlow 15s ease-in-out infinite;
}

@keyframes headerNetworkFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.logo.cyber-enhanced {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(15px);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.logo.cyber-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hex-gradient-1);
    border-radius: var(--radius-xl);
    z-index: -1;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: logoBorderFlow 4s linear infinite;
}

@keyframes logoBorderFlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.logo-hologram {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hex-gradient-3);
    opacity: 0.1;
    border-radius: var(--radius-xl);
    animation: hologramPulse 6s ease-in-out infinite;
}

@keyframes hologramPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
}

.nav.cyber-nav {
    display: flex;
    gap: 1rem;
    perspective: var(--hex-perspective);
}

.nav.cyber-nav .nav-link {
    position: relative;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    transform-style: preserve-3d;
}

.link-hexagon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hex-gradient-1);
    opacity: 0;
    clip-path: var(--hex-clip-2);
    transition: var(--transition-normal);
    transform: translateZ(-10px);
}

.nav-link:hover .link-hexagon,
.nav-link.active .link-hexagon {
    opacity: 0.3;
    transform: translateZ(0px);
}

.nav-link:hover .link-text,
.nav-link.active .link-text {
    color: var(--text-primary);
    text-shadow: var(--hex-glow-ultra);
    transform: translateZ(5px);
}

.link-text {
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
    transform-style: preserve-3d;
}

.header-actions.cyber-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-hexagon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
}

.hex-search-bg {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--hex-gradient-1);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.search-hexagon:hover .hex-search-bg {
    opacity: 0.4;
}

.search-hexagon:hover {
    transform: scale(1.1) rotateY(15deg);
    box-shadow: var(--hex-shadow-1);
}

.contact-ultra {
    background: var(--hex-gradient-1);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    transform-style: preserve-3d;
}

.ultra-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: ultraParticles 5s linear infinite;
}

@keyframes ultraParticles {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 20px) rotate(360deg); }
}

.contact-ultra:hover {
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: var(--hex-shadow-ultra);
}

/* Menú móvil hexagonal */
.mobile-toggle.hexagonal {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
    display: none;
}

.hex-burger {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hex-line-1, .hex-line-2, .hex-line-3 {
    width: 25px;
    height: 3px;
    background: var(--hex-gradient-1);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.mobile-toggle.hexagonal.active .hex-line-1 {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.hexagonal.active .hex-line-2 {
    opacity: 0;
}

.mobile-toggle.hexagonal.active .hex-line-3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Búsqueda hexagonal */
.search-bar.hexagonal-search {
    background: linear-gradient(180deg, rgba(5, 15, 25, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: var(--hex-blur-3d);
    border-bottom: 2px solid transparent;
    border-image: var(--hex-gradient-2) 1;
}

.search-hex-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hex-search-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hex-gradient-3);
    opacity: 0.1;
    border-radius: var(--radius-xl);
    animation: searchGlow 8s ease-in-out infinite;
}

@keyframes searchGlow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.search-hex-container input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 1.5rem 2rem;
    color: var(--text-primary);
    font-size: var(--text-lg);
    backdrop-filter: blur(15px);
    transition: var(--transition-normal);
}

.search-hex-container input:focus {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: var(--hex-shadow-1);
    transform: scale(1.02);
}

.search-btn.hex-btn {
    background: var(--hex-gradient-1);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-btn.hex-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--hex-shadow-1);
}

/* ========================== */
/*      HERO HEXAGONAL        */
/* ========================== */
.catalog-hero.hexagonal-hero {
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: calc(80px + 4rem) 0 4rem;
    perspective: var(--hex-perspective);
}

.hero-hex-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.rotating-hexagons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
}

.hex-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: hexRingRotate 20s linear infinite;
}

.ring-1 {
    width: 400px;
    height: 400px;
    animation-direction: normal;
}

.ring-2 {
    width: 500px;
    height: 500px;
    animation-direction: reverse;
    animation-duration: 25s;
}

@keyframes hexRingRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hex-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--hex-gradient-1);
    clip-path: var(--hex-clip-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: var(--text-xl);
    transform-origin: 0 0;
    transform: rotate(var(--rotation)) translateX(180px) rotate(calc(-1 * var(--rotation)));
    animation: hexItemFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--rotation) / 60deg * 0.5s);
}

@keyframes hexItemFloat {
    0%, 100% { transform: rotate(var(--rotation)) translateX(180px) rotate(calc(-1 * var(--rotation))) scale(1); }
    50% { transform: rotate(var(--rotation)) translateX(200px) rotate(calc(-1 * var(--rotation))) scale(1.2); }
}

.hero-content.hexagonal-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-badge.cyber-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px);
    margin-bottom: 3rem;
    overflow: hidden;
}

.badge-hex-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--hex-gradient-3);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0.3;
    animation: badgeHexGlow 4s ease-in-out infinite;
}

@keyframes badgeHexGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.hero-title.hexagonal-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    perspective: var(--hex-perspective);
}

.title-hex {
    display: block;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
}

.hex-word {
    display: inline-block;
    position: relative;
    animation: hexWordAppear 1s ease-out forwards;
    opacity: 0;
    transform: rotateX(90deg) translateZ(100px);
}

.title-hex:nth-child(1) .hex-word { animation-delay: 0.3s; }
.title-hex:nth-child(2) .hex-word { animation-delay: 0.6s; }
.title-hex:nth-child(3) .hex-word { animation-delay: 0.9s; }

@keyframes hexWordAppear {
    to {
        opacity: 1;
        transform: rotateX(0deg) translateZ(0px);
    }
}

.title-hex.golden .hex-word {
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-hex.golden .hex-word::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle.cyber-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.price-glow {
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-family: var(--font-display);
    text-shadow: var(--hex-glow-ultra);
}

.hero-metrics.hexagonal-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.metric.hex-metric {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    transform-style: preserve-3d;
}

.metric-hex-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hex-gradient-1);
    clip-path: var(--hex-clip-1);
    opacity: 0.2;
    transition: var(--transition-normal);
}

.metric-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--hex-gradient-3);
    clip-path: var(--hex-clip-1);
    opacity: 0;
    filter: blur(15px);
    transition: var(--transition-normal);
}

.metric.hex-metric:hover {
    transform: translateY(-15px) rotateX(15deg) scale(1.1);
}

.metric.hex-metric:hover .metric-hex-bg {
    opacity: 0.4;
}

.metric.hex-metric:hover .metric-glow {
    opacity: 0.6;
}

.metric-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* ========================== */
/*      FILTROS HEXAGONALES   */
/* ========================== */
.filters-hexagonal {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(5, 15, 25, 0.95) 100%);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: var(--hex-gradient-1) 1;
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    z-index: var(--z-sticky);
    backdrop-filter: var(--hex-blur-3d);
}

.filters-header.hex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.filters-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-hexagon {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    backdrop-filter: blur(15px);
}

.hex-view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hex-view-btn.active {
    background: var(--hex-gradient-1);
    color: var(--bg-primary);
    box-shadow: var(--hex-shadow-1);
    transform: scale(1.1);
}

.hex-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filter-hex {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: var(--transition-normal);
    transform-style: preserve-3d;
}

.hex-filter-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    clip-path: var(--hex-clip-1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: var(--transition-normal);
    backdrop-filter: blur(15px);
}

.hex-filter-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.filter-hex:hover {
    transform: translateY(-10px) rotateX(15deg) scale(1.1);
}

.filter-hex:hover .hex-filter-bg,
.filter-hex.active .hex-filter-bg {
    background: var(--hex-gradient-1);
    box-shadow: var(--hex-shadow-1);
    border-color: transparent;
}

.filter-hex:hover .hex-filter-content,
.filter-hex.active .hex-filter-content {
    color: var(--bg-primary);
}

.hex-filter-content i {
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
}

.filter-name {
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.5rem;
    font-size: var(--text-xs);
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

.filter-hex.active .filter-count {
    background: rgba(0, 0, 0, 0.3);
}

/* ========================== */
/*     PRODUCTOS HEXAGONALES  */
/* ========================== */
.products-hexagonal {
    padding: 4rem 0;
    position: relative;
}

.products-header.hex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid transparent;
    border-image: var(--hex-gradient-2) 1;
}

.results-hex .results-text {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

.results-count {
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.sort-hexagonal {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(15px);
    transition: var(--transition-normal);
    font-size: var(--text-base);
    min-width: 200px;
}

.sort-hexagonal:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: var(--hex-shadow-1);
}

.sort-hexagonal option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Grid Hexagonal */
.hex-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-hex {
    position: relative;
    width: 100%;
    height: 500px;
    cursor: pointer;
    transition: var(--transition-normal);
    transform-style: preserve-3d;
    perspective: var(--hex-perspective);
}

.hex-product-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    clip-path: var(--hex-clip-2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: var(--transition-normal);
}

.hex-glow-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--hex-gradient-3);
    clip-path: var(--hex-clip-2);
    opacity: 0;
    filter: blur(15px);
    transition: var(--transition-normal);
    z-index: -1;
}

.product-hex:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(5deg) scale(1.05);
}

.product-hex:hover .hex-product-bg {
    background: var(--hex-gradient-1);
    border-color: transparent;
    box-shadow: var(--hex-shadow-ultra);
}

.product-hex:hover .hex-glow-ring {
    opacity: 0.6;
}

.product-hex.featured .hex-product-bg {
    border: 3px solid var(--hex-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
}

.product-hex.featured::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--hex-gradient-3);
    clip-path: var(--hex-clip-2);
    z-index: -1;
    animation: featuredHexGlow 4s ease-in-out infinite;
}

@keyframes featuredHexGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hex-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hex-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    animation: badgeHexFloat 4s ease-in-out infinite;
}

.hex-badge.featured {
    background: var(--hex-gradient-1);
    color: var(--bg-primary);
    box-shadow: var(--hex-shadow-1);
}

.hex-badge.popular {
    background: var(--warning-gradient);
    color: white;
}

.hex-badge.family {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.hex-badge.trending {
    background: var(--info-gradient);
    color: white;
}

.hex-badge.anime {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
}

@keyframes badgeHexFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.hex-product-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hex-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hex-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-hex:hover .hex-image img {
    transform: scale(1.1) rotate(2deg);
}

.hex-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
}

.product-hex:hover .hex-overlay {
    opacity: 1;
}

.hex-quick-btn {
    background: var(--hex-gradient-1);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: var(--bg-primary);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: var(--transition-normal);
}

.hex-quick-btn:hover {
    transform: scale(1.2) rotate(15deg);
    box-shadow: var(--hex-shadow-1);
}

.hex-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hex-category {
    color: var(--hex-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.hex-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hex-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hex-stars {
    display: flex;
    gap: 0.25rem;
}

.hex-stars i {
    color: var(--hex-primary);
    font-size: var(--text-sm);
}

.hex-count {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
}

.hex-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hex-feature {
    background: rgba(0, 212, 255, 0.1);
    color: var(--hex-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.hex-price {
    margin-bottom: 1.5rem;
}

.price-hex {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.current-price {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 900;
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.old-price {
    font-size: var(--text-base);
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.hex-buy-btn {
    position: relative;
    background: var(--hex-gradient-1);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    margin-top: auto;
}

.btn-hex-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition-slow);
}

.hex-buy-btn:hover .btn-hex-glow {
    left: 100%;
}

.hex-buy-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--hex-shadow-ultra);
}

/* ========================== */
/*       CTA HEXAGONAL        */
/* ========================== */
.cta-hexagonal {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(5, 15, 25, 0.95) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-hex-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 107, 0, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.cta-hex-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    backdrop-filter: blur(20px);
}

.cta-hex-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--hex-gradient-1);
    clip-path: var(--hex-clip-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: var(--text-4xl);
}

.icon-hex-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--hex-gradient-3);
    clip-path: var(--hex-clip-1);
    filter: blur(20px);
    opacity: 0.6;
    animation: iconHexGlow 6s ease-in-out infinite;
}

@keyframes iconHexGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.cta-hexagonal h2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--hex-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-hexagonal p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-hex-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-hex-btn {
    position: relative;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.cta-hex-btn.primary {
    background: var(--hex-gradient-1);
    color: var(--bg-primary);
    box-shadow: var(--hex-shadow-1);
}

.cta-hex-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(15px);
}

.hex-btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.cta-hex-btn:hover .hex-btn-glow {
    left: 100%;
}

.cta-hex-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--hex-shadow-ultra);
}

/* ========================== */
/*      WHATSAPP HEXAGONAL    */
/* ========================== */
.whatsapp-hex {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-tooltip);
    width: 80px;
    height: 80px;
}

.whatsapp-hex-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--success-gradient);
    clip-path: var(--hex-clip-1);
    filter: blur(15px);
    opacity: 0.6;
    animation: whatsappHexPulse 3s ease-in-out infinite;
}

@keyframes whatsappHexPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.whatsapp-hex a {
    width: 100%;
    height: 100%;
    background: var(--success-gradient);
    color: white;
    clip-path: var(--hex-clip-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    transition: var(--transition-normal);
    text-decoration: none;
}

.whatsapp-hex:hover a {
    transform: scale(1.1) rotate(15deg);
}

/* ========================== */
/*        RESPONSIVE          */
/* ========================== */
@media (max-width: 768px) {
    .hexagonal-title {
        font-size: clamp(2rem, 8vw, 6rem);
    }
    
    .rotating-hexagons {
        width: 400px;
        height: 400px;
    }
    
    .ring-1 {
        width: 250px;
        height: 250px;
    }
    
    .ring-2 {
        width: 320px;
        height: 320px;
    }
    
    .hex-item {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
        transform: rotate(var(--rotation)) translateX(120px) rotate(calc(-1 * var(--rotation)));
    }
    
    .hex-filters {
        gap: 1rem;
    }
    
    .filter-hex {
        width: 80px;
        height: 80px;
    }
    
    .hex-products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-hex {
        height: 450px;
    }
    
    .cta-hex-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-hex-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .nav.cyber-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 15, 25, 0.98);
        backdrop-filter: var(--hex-blur-3d);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-normal);
        border-bottom: 2px solid transparent;
        border-image: var(--hex-gradient-1) 1;
        z-index: var(--z-dropdown);
    }
    
    .nav.cyber-nav.active {
        transform: translateX(0);
    }
    
    .mobile-toggle.hexagonal {
        display: flex;
    }
    
    .whatsapp-hex {
        bottom: 1rem;
        right: 1rem;
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .hex-filters {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .filter-hex {
        width: 70px;
        height: 70px;
    }
    
    .filter-name {
        font-size: var(--text-xs);
    }
    
    .product-hex {
        height: 400px;
    }
    
    .hex-product-content {
        padding: 1rem;
    }
    
    .hero-metrics.hexagonal-metrics {
        gap: 1.5rem;
    }
    
    .metric.hex-metric {
        width: 100px;
        height: 100px;
    }
}

/* ========================== */
/*    ESTADOS ESPECIALES      */
/* ========================== */
.catalog-hexagonal {
    opacity: 0;
    animation: catalogLoad 2s ease-out forwards;
}

@keyframes catalogLoad {
    to { opacity: 1; }
}

.product-hex.filtered-out {
    display: none !important;
}

.product-hex.filtered-in {
    animation: hexAppear 0.8s ease forwards;
}

@keyframes hexAppear {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(45deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.search-active .product-hex:not(.search-match) {
    opacity: 0.3;
    transform: scale(0.9);
}

.search-active .product-hex.search-match {
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--hex-shadow-ultra);
}

/* ========================== */
/*       EFECTOS ESPECIALES   */
/* ========================== */
.hex-hologram {
    position: relative;
}

.hex-hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hex-gradient-3);
    opacity: 0.1;
    border-radius: inherit;
    clip-path: inherit;
    animation: hologramEffect 4s ease-in-out infinite;
}

@keyframes hologramEffect {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.hex-glitch {
    position: relative;
    animation: hexGlitch 8s ease-in-out infinite;
}

@keyframes hexGlitch {
    0%, 98% { transform: translate(0); }
    99% { transform: translate(2px, -2px); }
    100% { transform: translate(-2px, 2px); }
}

/* Efectos de carga hexagonal */
.hex-loading {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(0, 212, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    background-size: 200% 100%;
    animation: hexShimmer 2s infinite;
}

@keyframes hexShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}