/*
Theme Name: Antigravity Theme
Theme URI: https://findy.mx
Author: Findy Ecosystem
Author URI: https://findy.mx
Description: Tema premium para el Ecosistema Findy.
Version: 1.0
Text Domain: antigravity-theme
*/

/* ==========================================================================
   Design System Findy - App Layout (Dark Theme + SVG Icons)
   ========================================================================== */
:root {
    --bg-base: #1C1A19;       /* Fondo general muy oscuro */
    --bg-surface: #242220;    /* Fondo de sidebars y tarjetas */
    --primary: #B1885E;       /* Terracota para botones y active states */
    --primary-gradient: linear-gradient(135deg, #C2966A, #9A724A);
    --text-primary: #EBEBEB;  /* Blanco roto */
    --text-secondary: #9E9E9E;/* Gris claro */
    --border-color: #33312E;  /* Bordes sutiles */
    
    --font-ui: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body.light-mode {
    --bg-base: #F5F2EC;       /* Crema arena cálido */
    --bg-surface: #FFFFFF;    /* Blanco puro para contraste de tarjetas */
    --primary: #A27245;       /* Terracota ligeramente más intenso */
    --primary-gradient: linear-gradient(135deg, #B1885E, #8C6138);
    --text-primary: #1C1A19;  /* Texto oscuro (el bg-base original) */
    --text-secondary: #6B625C;/* Gris topo cálido */
    --border-color: #E6DFD6;  /* Bordes sutiles oscuros */
}

/* Ajustes de transparencias y gradientes para modo claro */
body.light-mode .cine-overlay {
    background: linear-gradient(to right, rgba(245,242,236,1) 0%, rgba(245,242,236,0.85) 40%, transparent 100%);
}
body.light-mode .cine-overlay.heavy {
    background: linear-gradient(to top, rgba(245,242,236,1) 10%, transparent 100%) !important;
}
body.light-mode .sticky-tabs {
    background: rgba(245,242,236, 0.85);
    backdrop-filter: blur(15px);
}
body.light-mode .topbar {
    background: rgba(245,242,236, 0.8);
    backdrop-filter: blur(20px);
}
body.light-mode .left-sidebar {
    background-color: rgba(245, 242, 236, 0.75) !important;
    border-right: 1px solid rgba(0,0,0,0.05);
}
body.light-mode .product-card,
body.light-mode .meta-card,
body.light-mode .stat-card {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(0,0,0,0.05) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
}
body.light-mode .cine-overlay[style*="to top"],
body.light-mode .cine-overlay[style*="rgba(0,0,0,0.9)"] {
    background: linear-gradient(to top, rgba(255,255,255,1), transparent) !important;
}
body.light-mode .toggle-switch::after {
    background: var(--bg-base);
}
body.light-mode .toggle-switch {
    background: var(--primary);
}

/* Ambient glow fix para evitar anillos grises sucios */
body.light-mode .ambient-glow {
    background: radial-gradient(circle, rgba(162, 114, 69, 0.15) 0%, rgba(245, 242, 236, 0) 70%) !important;
}
body.light-mode .ambient-glow.secondary {
    background: radial-gradient(circle, rgba(177, 136, 94, 0.12) 0%, rgba(245, 242, 236, 0) 70%) !important;
}

/* Sobreescritura MUY agresiva de estilos inline oscuros */
body.light-mode [style*="color"], 
body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4,
body.light-mode p,
body.light-mode span {
    color: var(--text-primary);
}

/* PERO restaurar color blanco sobre las imágenes hero y de tarjetas cuadradas! */
body.light-mode .cine-hero h1,
body.light-mode .cine-hero h2,
body.light-mode .cine-hero h3,
body.light-mode .cine-hero p,
body.light-mode .cine-hero span:not([style*="color: var(--primary)"]),
body.light-mode .card-image h1,
body.light-mode .card-image h2,
body.light-mode .card-image h3,
body.light-mode .card-image p,
body.light-mode .card-image span,
body.light-mode .card-image [style*="color"] {
    color: #ffffff !important;
}

/* Y convertir los gradientes oscuros de las tarjetas estilo Netflix a modo claro premium */
body.light-mode .netflix-card-overlay[style*="rgba(28,26,25,0.95)"] {
    background: linear-gradient(to top, rgba(245,242,236,1) 0%, rgba(245,242,236,0.6) 40%, transparent 100%) !important;
}
body.light-mode .netflix-card-title,
body.light-mode .netflix-card-desc {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

body.light-mode .cine-badge, 
body.light-mode .btn-cine-primary,
body.light-mode .btn-primary {
    color: #fff !important; /* Excepción para botones que siguen teniendo fondo de color */
}
body.light-mode .card-icons span,
body.light-mode .card-icons i,
body.light-mode .meta-icon,
body.light-mode .text-secondary {
    color: var(--text-secondary) !important;
}
body.light-mode [style*="background: rgba(0,0,0,0.6)"] {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(0,0,0,0.05) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 14px;
    position: relative;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

/* 1. TEXTURA DE RUIDO SUTIL (NOISE) */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. GRADIENTES DINÁMICOS AMBIENTALES */
.ambient-glow {
    position: fixed;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(177, 136, 94, 0.08) 0%, rgba(28, 26, 25, 0) 70%);
    top: -20vh; left: -10vw;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    animation: floatGlow 15s ease-in-out infinite alternate;
}
.ambient-glow.secondary {
    top: auto; bottom: -20vh; left: auto; right: -10vw;
    background: radial-gradient(circle, rgba(194, 150, 106, 0.05) 0%, rgba(28, 26, 25, 0) 70%);
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 10vh) scale(1.1); }
    100% { transform: translate(-5vw, 5vh) scale(0.9); }
}

/* 3. CLASES DE ANIMACIÓN (SCROLL REVEAL) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base styles for Lucide Icons */
.lucide {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   LEFT SIDEBAR
   ========================================================================== */
.left-sidebar {
    width: 260px;
    background-color: rgba(18, 17, 16, 0.75); /* Dark translucent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0; top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* SIDEBAR COLLAPSED STATE (DESKTOP) */
@media (min-width: 1025px) {
    body.sidebar-collapsed .left-sidebar {
        transform: translateX(-100%);
    }
    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }
    body.sidebar-collapsed .topbar {
        width: 100%;
    }
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    cursor: pointer;
}

.logo-area {
    padding: 1rem 1.5rem 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
}
.isotipo {
    color: var(--primary);
    display: inline-block;
}
.brand-logo-container svg {
    width: clamp(40px, 4vw, 55px); /* Responsive sizing for desktop sidebar */
    height: auto;
    fill: currentColor;
    filter: drop-shadow(0 0 5px rgba(177, 136, 94, 0.2));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}
.brand-logo-container:hover svg {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 15px rgba(177, 136, 94, 0.6));
}

/* MOBILE BRAND LOGO (Topbar) */
.mobile-brand-logo {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.mobile-brand-logo svg {
    width: 38px;
    height: auto;
    fill: currentColor;
    transition: transform 0.3s ease;
}
@media (max-width: 1024px) {
    .mobile-brand-logo {
        display: flex;
    }
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
}
.nav-menu ul {
    list-style: none;
    padding: 0 1rem;
}
.nav-menu li {
    margin-bottom: 0.2rem;
}
.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.nav-menu a .lucide {
    color: var(--text-secondary);
    transition: 0.2s;
}
.nav-menu a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
}
.nav-menu a:hover .lucide {
    color: var(--text-primary);
}
.nav-menu li.active a {
    background-color: rgba(177, 136, 94, 0.15);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}
.nav-menu li.active a .lucide {
    color: var(--primary);
}

.nav-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 1.5rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}
.social-icons .lucide {
    width: 18px; height: 18px;
    cursor: pointer;
    transition: color 0.2s;
}
.social-icons .lucide:hover {
    color: var(--text-primary);
}
.theme-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 20px;
}
.toggle-switch {
    width: 30px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 10px;
    position: relative;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease;
}
body.light-mode .toggle-switch::after {
    transform: translateX(14px);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* TOPBAR (Fixed con Glassmorphism) */
.topbar {
    display: flex;
    flex-direction: row; /* HTML order is now correct: Menu, Search, Actions */
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 260px); /* 100% menos el sidebar izquierdo */
    background: rgba(28, 26, 25, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}
/* STICKY TABS (Glassmorphism) */
.sticky-tabs {
    background: rgba(18, 17, 16, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 70px; /* Match Desktop Topbar height */
    z-index: 90;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar-search-container {
    display: flex;
    align-items: center;
}
.search-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    width: 600px;
    max-width: 45vw;
}
.search-bar .lucide-search {
    color: #888;
}
.search-bar input {
    border: none;
    outline: none;
    margin-left: 0.5rem;
    font-family: var(--font-ui);
    width: 100%;
    font-size: 16px; /* Evita zoom automático en iOS/iPhone */
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.topbar-right-container {
    display: flex;
    align-items: center;
}
.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}
.link-inscribirse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}
.icon-cart {
    color: var(--primary);
    cursor: pointer;
}
.user-avatar {
    width: 35px; height: 35px;
    background-color: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* HERO BANNER */
.hero-banner {
    margin: 0 2rem;
    background: url('https://images.unsplash.com/photo-1542640244-7e672d6cb461?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center center/cover;
    height: 250px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
}
.hero-banner > * {
    position: relative;
    z-index: 1;
}
.hero-icon {
    width: 32px; height: 32px;
    margin-bottom: 0.5rem;
    color: #fff;
}
.hero-banner h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.hero-banner p {
    font-size: 0.85rem;
    color: #ccc;
    max-width: 600px;
}

/* TABS */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}
.tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.tab.active {
    background: var(--bg-surface);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* CONTENT BODY (Grid + Right Sidebar) */
.content-body {
    display: flex;
    padding: 0 2rem 2rem;
    gap: 2rem;
}

/* PRODUCTS GRID */
.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-image {
    height: 350px;
    background-color: #333;
    position: relative;
    background-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1606760227091-3dd870d97f1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80');
    background-size: cover;
    background-position: center;
}
.badge-nuevo {
    position: absolute;
    top: 1rem; left: 1rem;
    background-color: rgba(177, 136, 94, 0.8);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}
.badge-tag {
    position: absolute;
    top: 1rem; right: 1rem;
    background-color: #fff;
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}
.icon-tag-badge {
    width: 14px; height: 14px;
    color: var(--bg-surface);
}

.card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.card-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.creator-avatar {
    width: 30px; height: 30px;
    background-color: var(--border-color);
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
}
.creator-avatar .lucide { width: 14px; height: 14px; }
.card-icons {
    display: flex;
    gap: 0.8rem;
    color: var(--text-secondary);
}
.card-icons .lucide {
    width: 18px; height: 18px;
    cursor: pointer;
    transition: color 0.2s;
}
.card-icons .lucide:hover { color: var(--text-primary); }

.btn-ver {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
}

/* RIGHT SIDEBAR */
.right-sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.filter-section, .share-section {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 1.5rem;
}
.filter-section h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.filter-section ul {
    list-style: none;
}
.filter-section li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.filter-section li .lucide {
    width: 18px; height: 18px;
}
.filter-section li.active {
    background-color: rgba(177, 136, 94, 0.2);
    color: var(--text-primary);
}
.filter-section li.active .lucide {
    color: var(--primary);
}
.dot-red {
    margin-left: auto;
    color: #e74c3c;
    font-size: 1.2rem;
}

.btn-compartir {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.share-icons {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}
.share-icons .lucide {
    width: 20px; height: 20px;
    cursor: pointer;
    transition: color 0.2s;
}
.share-icons .lucide:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   EXPLORAR VIEW (Cultura, Mapa, Rutas)
   ========================================================================== */
.explorar-map {
    background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center center/cover;
    height: 400px;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.explorar-map::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
}
.map-overlay-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.map-overlay-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.btn-mapa {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.rutas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.ruta-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    height: 220px;
}
.ruta-image {
    width: 40%;
    background-size: cover;
    background-position: center;
}
.ruta-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ruta-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.ruta-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
/* ==========================================================================
   SINGLE PRODUCT VIEW (Trazabilidad)
   ========================================================================== */
.single-product-container {
    display: flex;
    gap: 3rem;
    padding-top: 1rem;
}
.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    background-color: var(--bg-surface);
}
.thumbnail-list {
    display: flex;
    gap: 1rem;
}
.thumb {
    width: 80px; height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.thumb:hover { border-color: var(--primary); }

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-details h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.product-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.trazabilidad-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}
.trazabilidad-card h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.creator-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.creator-pic {
    width: 50px; height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}
.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}
.info-label { color: var(--text-secondary); display:flex; align-items:center; gap: 0.4rem; }
.info-value { font-weight: 500; }

/* ==========================================================================
   NETFLIX-STYLE CAROUSELS (HOME OASIS)
   ========================================================================== */
.netflix-section {
    margin-bottom: 3rem;
    position: relative;
}
.netflix-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Netflix Rows (Flickity Powered) */
.netflix-row {
    width: 100%;
    padding-bottom: 3rem;
    padding-top: 1rem;
    /* Flickity will handle the layout and scrolling */
}

/* Flickity Navigation Styling */
.netflix-row .flickity-button {
    background: rgba(28, 26, 25, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary);
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
}
.netflix-row .flickity-button:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}
.netflix-row .flickity-button-icon {
    fill: currentColor;
}
.netflix-row .flickity-prev-next-button.previous { left: 1rem; }
.netflix-row .flickity-prev-next-button.next { right: 1rem; }

/* The cards */
.netflix-card {
    height: clamp(240px, 40vw, 420px);
    margin-right: 1.5rem; /* Gap between slides for Flickity */
    flex-shrink: 0;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    scroll-snap-align: start;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.netflix-card.wide {
    width: auto;
    aspect-ratio: 16 / 9;
}
.netflix-card.square {
    width: auto;
    aspect-ratio: 1 / 1;
}
.netflix-card.reel {
    width: auto;
    aspect-ratio: 3 / 4;
}
.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
    z-index: 0;
}
.netflix-card:hover .card-bg {
    transform: scale(1.1);
    filter: brightness(0.9) !important;
}
.netflix-card:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 10px 30px rgba(177, 136, 94, 0.3);
    z-index: 10;
}
.netflix-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}
.netflix-card:hover .netflix-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(177, 136, 94, 0.4) 100%);
}
.netflix-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.netflix-card:hover .netflix-card-title {
    transform: translateY(0);
}
.netflix-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.netflix-card:hover .netflix-card-desc {
    opacity: 1;
    transform: translateY(0);
    color: #fff;
}
.netflix-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}
.netflix-card:hover .netflix-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--primary);
    border-color: var(--primary);
}

/* ==========================================================================
   FASE 9: CINE SECTIONS (NORMALIZED FLOW)
   ========================================================================== */
.cine-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
    margin-bottom: 2rem;
}
.category-section {
    margin-bottom: clamp(3rem, 10vw, 7rem);
}
.cine-hero {
    min-height: 85vh;
    padding-top: 150px;
}
.cine-hero h1, .cine-title, .netflix-card-title {
    /* Sombras eliminadas por petición de compatibilidad con modo claro */
}
.cine-hero p, .cine-desc {
    /* Sombras eliminadas por petición de compatibilidad con modo claro */
}

/* ==========================================================================
   FASE 10: SINGLE NEGOCIO PROFILE
   ========================================================================== */
.negocio-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.negocio-story {
    flex: 2;
    min-width: 300px;
}
.negocio-meta {
    flex: 1;
    min-width: 300px;
}
.meta-card {
    background: rgba(28,26,25, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 100px; /* Sticks under the topbar */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.meta-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}
.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.meta-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.meta-list li strong {
    color: #fff;
    font-weight: 500;
}

/* ==========================================================================
   FASE 14: HIGH-END AGENCY STYLES (MASKING & BLUR)
   ========================================================================== */

/* Fade Up Clásico */
.fade-up-line {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.fade-up-line.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Masking Reveal (Texto emerge de la nada) */
.reveal-mask {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    width: 100%;
}
.reveal-mask-inner {
    display: block;
    padding-bottom: 0.25em; /* Previene corte en letras como la 'y' o 'g' */
    margin-bottom: -0.25em;
    transform: translateY(120%) scale(1.05); /* Escala sutil para mayor drama */
    transition: transform 2.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}
.reveal-mask.is-visible .reveal-mask-inner {
    transform: translateY(0) scale(1);
}

/* Blur Reveal */
.reveal-mask.blur-in .reveal-mask-inner {
    transform: translateY(60px) scale(1.02);
    opacity: 0;
    filter: blur(20px);
    transition: transform 2.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 2.5s ease, filter 2.5s ease;
}
.reveal-mask.blur-in.is-visible .reveal-mask-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

/* ==========================================================================
   CINEMATIC GLOWS (Lighting)
   ========================================================================== */
.cinematic-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    animation: pulse-glow 10s infinite alternate ease-in-out;
}
.cinematic-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(184, 134, 11, 0.15); /* Tono dorado/cobre sutil */
    top: -200px;
    left: -200px;
}
.cinematic-glow-2 {
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.05); /* Tono frío sutil */
    bottom: -300px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.2) translate(50px, -50px); opacity: 0.6; }
}

/* Sticky Stack */
.sticky-stack {
    position: sticky;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

/* Base Styles adjustments */
.text-huge {
    letter-spacing: -0.03em;
}

/* Parallax Background */
.parallax-bg-slow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* Extra height for scrolling */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Simple Parallax CSS */
    z-index: 1;
}

/* ==========================================================================
   FASE 11: RESPONSIVE DESIGN (MOBILE & IPAD)
   ========================================================================== */

/* Topbar Toggle Button (Visible on Desktop for collapsing sidebar) */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}
.mobile-menu-toggle:hover {
    color: var(--primary);
}
.topbar-left {
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .app-layout {
        flex-direction: column;
    }
    
    /* Sidebar becomes an off-canvas menu */
    .left-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    .left-sidebar.is-open {
        left: 0;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .topbar {
        width: 100%;
        left: 0;
        padding: 0 1.25rem; /* Standard mobile padding */
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    /* Hero Text Adjustments */
    .cine-title {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
    }
    .cine-desc {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    /* Topbar Search Bar Fix */
    .sticky-tabs {
        top: 120px; /* Match Mobile Topbar height exactly */
    }
    
    .content-body {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        flex-direction: column; /* Force grid and right sidebar to stack */
    }
    
    /* Convertir Right Sidebar (Filtros) en un slider horizontal */
    .right-sidebar {
        width: 100%;
        order: -1; /* Mover filtros arriba de la cuadrícula */
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
    }
    .right-sidebar::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .filter-section, .share-section {
        min-width: 280px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .tabs-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile Topbar 1-Row Layout (Aligned as requested) */
    .topbar {
        padding: 0.75rem 1rem;
        height: 70px;
        display: flex;
        flex-direction: row; /* Everything in one row */
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: rgba(15, 14, 13, 0.95) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .topbar-search-container {
        flex: 1; /* Takes up remaining space in the middle */
        display: flex;
        justify-content: center;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        color: #ffffff !important;
        flex-shrink: 0;
    }
    .mobile-menu-toggle svg {
        width: 26px;
        height: 26px;
    }
    .icon-cart, .user-avatar {
        color: var(--primary) !important;
    }
    .user-avatar svg, .icon-cart svg {
        width: 22px;
        height: 22px;
    }
    .topbar-actions {
        width: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .topbar-left {
        width: auto;
        margin-right: 0;
    }
    
    /* Glassmorphic Search Bar on Mobile - Squeezed version */
    .search-bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.4rem 0.8rem;
        display: flex;
        align-items: center;
    }
    .search-bar input {
        -webkit-appearance: none;
        appearance: none;
        background: transparent !important;
        color: #ffffff !important;
        border-radius: 0;
        width: 100%;
        border: none;
        font-size: 0.85rem;
        padding-left: 5px;
        outline: none;
        margin-left: 0.5rem;
    }
    .search-bar input::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    .search-bar .lucide-search {
        color: #ffffff !important;
    }


    /* Single Negocio Layout */
    .negocio-layout {
        flex-direction: column;
    }
    .meta-card {
        position: relative;
        top: 0;
    }

    /* Netflix Rows Mobile Fixes */
    .netflix-card {
        min-width: 240px;
        height: 340px;
    }
    
    .netflix-card.square {
        min-width: 240px;
        height: 240px;
    }

    .netflix-card.wide {
        min-width: calc(100vw - 4rem); /* Ajuste perfecto con el padding de 2rem */
        height: 250px;
    }
    
    .netflix-card.reel {
        min-width: 200px;
        height: 360px;
    }
    
    .netflix-row {
        gap: 1rem;
        padding-bottom: 2rem;
    }

    /* Make the Hero Action buttons wrap */
    .cine-actions {
        flex-direction: column;
        width: 100%;
    }
    .cine-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   CINE CONTAINER (STRICT ALIGNMENT)
   ========================================================================== */
.cine-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}


.cine-bg.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Native CSS Parallax */
    z-index: 1;
    transition: transform 10s ease-out, filter 1s ease;
}

.cine-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-base) 0%, rgba(28,26,25,0.4) 60%, rgba(28,26,25,0.8) 100%);
    z-index: 2;
}
.cine-overlay.heavy {
    background: linear-gradient(to bottom, var(--bg-base) 0%, rgba(28,26,25,0.7) 40%, var(--bg-base) 100%);
}

.cine-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cine-content-full {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 10vh;
}

/* Typography for Cinematic Sections */
.cine-label {
    color: var(--primary); font-weight: 600; letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 1rem; display: flex; align-items: center; gap:0.5rem; text-transform: uppercase;
}
.cine-title {
    font-size: clamp(3rem, 6vw, 5.5rem); font-family: var(--font-heading); line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 2px 2px 30px rgba(0,0,0,0.9);
}
.cine-desc {
    font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 600px; color: #EBEBEB; text-shadow: 1px 1px 15px rgba(0,0,0,0.9); line-height: 1.6;
}
.cine-section-title {
    font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 2rem; padding-left: 2rem; color: #fff; display: flex; flex-direction: column; text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}
.cine-subtitle {
    font-family: var(--font-ui); font-size: 1rem; color: var(--text-secondary); font-weight: 400; margin-top: 0.5rem; text-shadow: none;
}

/* Actions */
.cine-actions {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.btn-cine-primary {
    padding: 1rem 2.5rem; font-size: 1rem; background: #fff; color: #000; font-weight: 700; border: none; border-radius: 4px; box-shadow: 0 4px 15px rgba(255,255,255,0.2); cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cine-primary:hover {
    transform: scale(1.05); box-shadow: 0 10px 25px rgba(255,255,255,0.4);
}
.btn-cine-secondary {
    background: rgba(100,100,100,0.3); backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 30px; padding: 1rem 2.5rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: background 0.3s, border-color 0.3s;
}
.btn-cine-secondary:hover {
    background: rgba(100,100,100,0.6); border-color: #fff;
}

/* Advanced Reveals */
.reveal-blur {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.05) translateY(40px);
    transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-blur.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
}

/* Cinematic Cards specific styling */
.cinematic-row .cine-card {
    border-radius: 12px;
    height: 55vh;
    min-height: 400px;
}
.cine-card-link {
    margin-top: 1rem; color: var(--primary); font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; display: inline-block;
}
.netflix-card:hover .cine-card-link {
    opacity: 1; transform: translateY(0);
}
.cine-badge {
    position: absolute; top: 1rem; right: 1rem; background: var(--primary-gradient); color: #fff; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Navigation Icons & Tabs */
.elite-category-btn { background: transparent; border: none; display: flex; flex-direction: column; align-items: center; gap: 1rem; cursor: pointer; opacity: 0.85; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); flex-shrink: 0; min-width: 140px; }
.elite-category-btn.active, .elite-category-btn:hover { opacity: 1; }
.elite-category-btn .icon-wrapper { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); position: relative; overflow: visible; }
.elite-category-btn.active .icon-wrapper { border-color: var(--primary); color: var(--primary); background: rgba(177, 136, 94, 0.1); box-shadow: 0 0 25px rgba(177, 136, 94, 0.25); }
.elite-category-btn:hover .icon-wrapper { transform: translateY(-8px) scale(1.05); border-color: rgba(177, 136, 94, 0.6); color: var(--primary); background: rgba(177, 136, 94, 0.15); }

/* Powerful Geometric SVG Animation */
.ancestral-icon { width: 32px; height: 32px; transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); filter: drop-shadow(0 0 0px rgba(177,136,94,0)); }
.elite-category-btn:hover .ancestral-icon { transform: scale(1.15) rotate(45deg); filter: drop-shadow(0 0 8px rgba(177,136,94,0.6)); stroke-width: 1.5px; }
.elite-category-btn.active .ancestral-icon { transform: scale(1.1); filter: drop-shadow(0 0 5px rgba(177,136,94,0.4)); stroke-width: 1.5px; }

/* Excepciones de rotación para formas específicas */
.elite-category-btn:hover .no-rotate { transform: scale(1.2) translateY(-2px); }

.elite-category-btn .category-name { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-primary); transition: transform 0.4s ease; text-align: center; line-height: 1.4; }
.elite-category-btn:hover .category-name { transform: translateY(3px); color: var(--primary); text-shadow: 0 0 10px rgba(177,136,94,0.3); }

/* Hide scrollbar for webkit */
.tabs-container::-webkit-scrollbar { display: none; }

/* Flex Safari Bug Fix */
.tabs-container { min-height: 120px; align-items: flex-start; }

/* CSS-Only Hero Animations (Failsafe for Safari/Mac) */
@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-animated {
    /* No opacity 0 by default to prevent elements staying invisible if animation fails */
    animation: heroFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-animated {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* CUSTOM CURSOR (Cinematic) */
@media (pointer: fine) {
    /* Hide native cursor globally on desktop */
    body, a, button, input, textarea, .netflix-card, .btn-primary, .tab {
        cursor: none !important;
    }
}
@media (pointer: coarse) {
    /* Hide custom cursor completely on mobile/touch */
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    mix-blend-mode: difference;
}
.custom-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(177, 136, 94, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background-color 0.3s ease;
    /* Smooth JS trailing will be handled via requestAnimationFrame */
}
/* Hover Interactions */
.custom-cursor.is-hovering {
    width: 12px; height: 12px;
    background: transparent;
    border: 2px solid var(--primary);
    mix-blend-mode: normal;
}
.custom-cursor-follower.is-hovering {
    width: 56px; height: 56px;
    border-color: var(--primary);
    background: rgba(177, 136, 94, 0.1);
    backdrop-filter: blur(2px);
}

/* Organic Blink Effect */
.custom-cursor.is-blinking,
.custom-cursor-follower.is-blinking {
    transform: translate(-50%, -50%) scaleY(0.05) !important;
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ==========================================================================
   FASE 20: REFINAMIENTO UX (OFFCANVAS, MOBILE, HOVER, VIBRATION)
   ========================================================================== */

/* 1. Offcanvas Lateral Derecho */
.offcanvas-right-sidebar {
    position: fixed;
    right: -380px;
    top: 0;
    bottom: 0;
    width: 350px;
    max-width: 100vw;
    background: rgba(12,12,12,0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.9);
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.05);
}
.offcanvas-right-sidebar.is-open {
    right: 0;
}

/* 2. Geolocalización Móvil (Píldora Flotante Eliminada en Fase 22) */

/* 3. Hover Card Metadatos */
.card-info {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.business-card:hover .card-metadata-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
.business-card:hover .card-info {
    opacity: 0.1;
    filter: blur(8px);
}

/* 4. Vibración de Energía Hero (Efecto Sin Sombras) */
@keyframes subtle-pulse-vibrate {
    0%, 100% { transform: scale(1) translateY(0); opacity: 1; letter-spacing: -0.02em; }
    50% { transform: scale(1.01) translateY(-2px); opacity: 0.85; letter-spacing: 0.01em; }
}
.hero-monumental h1, #hero-dynamic-title {
    animation: subtle-pulse-vibrate 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 5. Search Bar Filter Button (Phase 23) */
.search-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}
.search-filter-btn:hover {
    color: var(--primary);
    background: rgba(177, 136, 94, 0.1);
    transform: scale(1.05);
}

/* 6. Portfolio Bento Grid (Phase 26) */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.portfolio-filter-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
    background: var(--primary);
    color: var(--bg-base);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(177, 136, 94, 0.2);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
    perspective: 2000px; /* Enhanced 3D Perspective */
}
.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, opacity 0.4s ease;
    transform-style: preserve-3d; /* Required for 3D Tilt */
    will-change: transform;
}
.bento-item.hidden {
    display: none;
}
.bento-item:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    border-color: rgba(177, 136, 94, 0.5);
    z-index: 2;
    /* The transform translateY(-5px) is removed from CSS because JS will control the transform */
}
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.6) contrast(1.1);
}
.bento-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8) contrast(1.1);
}
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 50%, transparent 100%);
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-item:hover .bento-content {
    transform: translateY(0);
    opacity: 1;
}
.bento-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 600;
}
.bento-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.bento-metrics {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}
.bento-item:hover .bento-metrics {
    opacity: 1;
    transform: translateY(0);
}
.metric-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 500;
}
.metric-item i {
    color: var(--primary);
}

/* Span configurations for Bento Layout */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.bento-tall { grid-column: span 1; grid-row: span 2; }
.bento-square { grid-column: span 1; grid-row: span 1; }

.bento-large .bento-title { font-size: 2.8rem; }
.bento-tall .bento-title { font-size: 2rem; }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large, .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 1; }
}
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 350px; }
    .bento-large, .bento-wide, .bento-tall, .bento-square { grid-column: span 1; grid-row: span 1; }
    .bento-large .bento-title { font-size: 2rem; }
    .bento-content { transform: translateY(0); opacity: 1; }
    .bento-metrics { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   EVENT TICKET CARDS (Alta Gamma)
   ========================================================================== */
.events-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}
.event-ticket-card {
    aspect-ratio: 3 / 4;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}
.event-ticket-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}
.event-ticket-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 20px rgba(177, 136, 94, 0.2);
    border-color: rgba(177, 136, 94, 0.4);
}
.event-ticket-card:hover::before {
    opacity: 1;
}
.event-ticket-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.7) contrast(1.1);
}
.event-ticket-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.4) contrast(1.2);
}
.event-ticket-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, transparent 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.event-ticket-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.event-ticket-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.event-ticket-card:hover .event-ticket-title {
    transform: translateY(0);
}
.event-ticket-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    height: 0;
    overflow: hidden;
}
.event-ticket-card:hover .event-ticket-metrics {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}
.event-metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #ccc;
}
.event-metric-item i {
    width: 14px; height: 14px;
    color: var(--primary);
}
.event-ticket-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
}
.event-ticket-card:hover .event-ticket-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.event-ticket-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}
}

/* ==========================================================================
   NOTIFICATIONS HUB (Alta Gamma)
   ========================================================================== */
.notifications-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}
.notification-sidebar {
    position: sticky;
    top: 100px;
}
.notif-filter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}
.notif-filter-btn i {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
.notif-filter-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.notif-filter-btn.active {
    background: rgba(177, 136, 94, 0.1);
    color: var(--primary);
}
.notif-filter-btn.active i {
    opacity: 1;
}
.notif-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.notif-filter-btn.active .notif-badge {
    background: var(--primary);
    color: #000;
}
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.btn-mark-read:hover {
    opacity: 0.8;
}
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.notification-card {
    display: flex;
    gap: 1.5rem;
    background: rgba(20, 18, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    animation: slideUpFade 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.notification-card:nth-child(1) { animation-delay: 0.1s; }
.notification-card:nth-child(2) { animation-delay: 0.2s; }
.notification-card:nth-child(3) { animation-delay: 0.3s; }
.notification-card:nth-child(4) { animation-delay: 0.4s; }
.notification-card:nth-child(5) { animation-delay: 0.5s; }
.notification-card:nth-child(6) { animation-delay: 0.6s; }
.notification-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(30, 28, 26, 0.9);
    border-color: rgba(177, 136, 94, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(177, 136, 94, 0.05);
    z-index: 10;
}
@keyframes unreadPulse {
    0% { box-shadow: 0 0 10px rgba(177, 136, 94, 0.5); }
    50% { box-shadow: 0 0 20px rgba(177, 136, 94, 0.9); }
    100% { box-shadow: 0 0 10px rgba(177, 136, 94, 0.5); }
}
.notification-card.unread {
    background: rgba(177, 136, 94, 0.08);
    border-color: rgba(177, 136, 94, 0.3);
}
.notification-card.unread::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    animation: unreadPulse 2s infinite ease-in-out;
}
.notif-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.notif-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.notif-icon-wrapper i {
    width: 24px;
    height: 24px;
}
.tx-icon { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.community-icon { color: #f1c40f; background: rgba(241, 196, 15, 0.1); }
.security-icon { color: #ff4757; background: rgba(255, 71, 87, 0.1); }
.system-icon { color: var(--primary); background: rgba(177, 136, 94, 0.1); }

.notif-content {
    flex: 1;
}
.notif-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}
.notif-category {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary);
}
.notif-time {
    color: var(--text-secondary);
}
.notif-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}
.notif-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.notif-actions {
    display: flex;
    gap: 1rem;
}
.notif-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.notif-btn.primary {
    background: var(--primary);
    color: #000;
}
.notif-btn.primary:hover {
    opacity: 0.9;
}
.notif-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.notif-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
}
.notif-btn.warning {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}
.notif-btn.warning:hover {
    background: #ff4757;
    color: #fff;
}
.notif-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.notification-card:hover .notif-close-btn {
    opacity: 1;
}
.notif-close-btn:hover {
    color: #ff4757;
}

@media (max-width: 1024px) {
    .notifications-layout {
        grid-template-columns: 1fr;
    }
    .notification-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    .notification-card {
        flex-direction: column;
        gap: 1rem;
    }
    .notif-close-btn {
        opacity: 1;
        top: 1rem;
        right: 1rem;
    }
}

/* 7. Debate Interface (Town Hall) (Phase 28) */
.debate-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Sidebar Left (Pillars) */
.debate-sidebar-left {
    position: sticky;
    top: 100px;
}
.debate-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.debate-nav-list li {
    margin-bottom: 0.5rem;
}
.debate-nav-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}
.debate-nav-list a:hover, .debate-nav-list a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.debate-nav-list a.active {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, rgba(177, 136, 94, 0.1) 0%, transparent 100%);
}
.debate-nav-list i {
    color: var(--primary);
}

/* Center Feed */
.debate-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.debate-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
}
.debate-card:hover {
    transform: translateY(-3px);
    border-color: rgba(177, 136, 94, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.04);
}
.debate-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(177, 136, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(177, 136, 94, 0.4);
}
.debate-avatar i {
    color: var(--primary);
}
.debate-content {
    flex-grow: 1;
}
.debate-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.debate-category-tag {
    background: rgba(177, 136, 94, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.debate-author {
    color: #fff;
    font-weight: 600;
}
.debate-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}
.debate-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.debate-actions {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}
.debate-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}
.debate-action-btn:hover {
    color: #fff;
}
.debate-action-btn.fire:hover {
    color: #ff6b6b;
}
.debate-action-btn.fire i {
    transition: transform 0.3s ease;
}
.debate-action-btn.fire:hover i {
    transform: scale(1.2);
}

/* Sidebar Right (Pulse) */
.debate-sidebar-right {
    position: sticky;
    top: 100px;
}
.debate-widget {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.debate-widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.debate-widget-title i {
    color: var(--primary);
}
.hot-topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-topic-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.hot-topic-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hot-topic-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}
.hot-topic-link:hover {
    color: var(--primary);
}
.hot-topic-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1200px) {
    .debate-layout {
        grid-template-columns: 200px 1fr;
    }
    .debate-sidebar-right {
        display: none; /* Hide pulse on tablets to give feed space */
    }
}
@media (max-width: 768px) {
    .debate-layout {
        grid-template-columns: 1fr;
    }
    .debate-sidebar-left {
        position: static;
        margin-bottom: 2rem;
    }
    .debate-nav-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        gap: 0.5rem;
        scrollbar-width: none;
    }
    .debate-nav-list::-webkit-scrollbar {
        display: none;
    }
    .debate-nav-list a {
        white-space: nowrap;
        background: rgba(255,255,255,0.05);
    }
    .debate-nav-list a.active {
        border-left: none;
        border-bottom: 2px solid var(--primary);
    }
    .debate-card {
        flex-direction: column;
        padding: 1.5rem;
    }
    .debate-avatar {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   20. WOOCOMMERCE ELITE STYLES (Phase 29)
   ========================================================================== */

.woocommerce-container .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.woocommerce-container .product {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce-container .product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(177, 136, 94, 0.2);
    border-color: rgba(177, 136, 94, 0.4);
    z-index: 2;
}

.woocommerce-container .product img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.8) contrast(1.1);
}

.woocommerce-container .product:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.woocommerce-container .product > a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.woocommerce-container .product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin: 1.5rem 1.5rem 0.5rem;
}

.woocommerce-container .product .price {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 1.5rem 1.5rem;
}

/* WooCommerce Add to Cart Button */
.woocommerce-container .product .button {
    display: block;
    margin: 0 1.5rem 1.5rem;
    padding: 1rem;
    text-align: center;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(177, 136, 94, 0.4);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.woocommerce-container .product .button:hover {
    background: var(--primary);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(177, 136, 94, 0.4);
}

/* Single Product Page basic styles */
.woocommerce-container div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.woocommerce-container div.product .images img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.woocommerce-container div.product .product_title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.woocommerce-container div.product .price {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
}

.woocommerce-container div.product .woocommerce-product-details__short-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.woocommerce-container div.product form.cart {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.woocommerce-container div.product form.cart .qty {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    width: 80px;
    font-size: 1.1rem;
}

.woocommerce-container div.product form.cart .single_add_to_cart_button {
    background: var(--primary);
    color: var(--bg-base);
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-container div.product form.cart .single_add_to_cart_button:hover {
    box-shadow: 0 0 20px rgba(177, 136, 94, 0.6);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .woocommerce-container div.product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   21. ADVANCED SEARCH UI (Phase 30)
   ========================================================================== */

/* Search Filters Dropdown (Glassmorphism) */
.search-filters-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.search-filters-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-filters-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-filters-dropdown .styled-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

/* Typing search placeholder effect */
.typing-search::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .search-filters-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* ==========================================================================
   22. FINDY STUDIO & PRICING (Phase 31)
   ========================================================================== */

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center; /* Center to allow middle card to pop up */
}

.pricing-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(177, 136, 94, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.recommended {
    border-color: rgba(177, 136, 94, 0.5);
    box-shadow: 0 0 30px rgba(177, 136, 94, 0.1);
    transform: scale(1.05);
    z-index: 2;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(177, 136, 94, 0.2);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-base);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(177, 136, 94, 0.4);
}

.pricing-header h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.pricing-header .price {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1;
}

.pricing-header .price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    min-height: 65px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.features-list li {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--primary);
    width: 18px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .pricing-card.recommended {
        transform: none;
    }
    .pricing-card.recommended:hover {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   23. CINEMATIC ANIMATIONS (Phase 32)
   ========================================================================== */

@keyframes iconPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(177, 136, 94, 0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(177, 136, 94, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(177, 136, 94, 0)); }
}

@keyframes iconFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 10px 10px rgba(177, 136, 94, 0.4)); }
    100% { transform: translateY(0); }
}

@keyframes iconSpinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-pulse {
    animation: iconPulse 3s infinite ease-in-out;
}

.icon-float {
    animation: iconFloat 4s infinite ease-in-out;
}

.icon-spin-slow {
    animation: iconSpinSlow 15s infinite linear;
}

.icon-glow-persistent {
    filter: drop-shadow(0 0 10px rgba(177, 136, 94, 0.8));
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
