/*
 * JK Hive Template
 * Honeycomb-inspired hexagonal design system
 * Author: JK
 * Version: 1.0.0
 */

/* ========================================
   1. CSS VARIABLES & COLOR SYSTEM - CYBERNETIC HIVE
   ======================================== */
:root {
  /* Primary Colors - Electric Blue (Tech & Energy) */
  --jk-primary-blue: #0ea5e9;
  --jk-primary-blue-light: #38bdf8;
  --jk-primary-blue-dark: #0284c7;
  --jk-primary-blue-darker: #075985;
  
  /* Secondary Colors - Cyber Teal (Innovation & Digital) */
  --jk-secondary-green: #14b8a6;
  --jk-secondary-green-light: #2dd4bf;
  --jk-secondary-green-dark: #0d9488;
  
  /* Accent Colors - Metallic Honey (Energy & Alert) */
  --jk-accent-honey: #d4a017;
  --jk-accent-honey-light: #f4c430;
  --jk-accent-honey-dark: #b8860b;
  
  /* Metallic Colors */
  --jk-metal-light: #e2e8f0;
  --jk-metal: #cbd5e1;
  --jk-metal-dark: #94a3b8;
  --jk-metal-darker: #64748b;
  
  /* Dark Tech Colors */
  --jk-tech-darker: #0f172a;
  --jk-tech-dark: #1e293b;
  --jk-tech-medium: #334155;
  --jk-tech-light: #475569;
  
  /* Neutral Colors */
  --jk-white: #ffffff;
  --jk-gray-50: #f8fafc;
  --jk-gray-100: #f1f5f9;
  --jk-gray-200: #e2e8f0;
  --jk-gray-300: #cbd5e1;
  --jk-gray-400: #94a3b8;
  --jk-gray-500: #64748b;
  --jk-gray-600: #475569;
  --jk-gray-700: #334155;
  --jk-gray-800: #1e293b;
  --jk-gray-900: #0f172a;
  
  /* Hexagon Dimensions */
  --hex-size: 80px;
  --hex-size-sm: 50px;
  --hex-size-lg: 120px;
  --hex-size-xl: 160px;
  
  /* Honeycomb Texture Sizes - Centralizado para fácil mantenimiento */
  --honeycomb-size-body: 52px 90px;      /* Tamaño para el fondo general (body) */
  --honeycomb-size-sections: 35px 60px;  /* Tamaño para secciones (hero, etc.) */
  --honeycomb-size-sidebar: 28px 48px;   /* Tamaño para el sidebar */
  --honeycomb-url: url('../img/honeycomb-pattern.svg');
  
  /* Spacing */
  --jk-spacing-xs: 0.25rem;
  --jk-spacing-sm: 0.5rem;
  --jk-spacing-md: 1rem;
  --jk-spacing-lg: 1.5rem;
  --jk-spacing-xl: 2rem;
  
  /* Transitions */
  --jk-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --jk-transition-fast: all 0.15s ease-in-out;
  
  /* Shadows & Glows */
  --jk-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --jk-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --jk-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --jk-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --jk-shadow-honey: 0 0 30px rgba(212, 160, 23, 0.7), 0 0 60px rgba(184, 134, 11, 0.4);
  --jk-glow-blue: 0 0 20px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.3);
  --jk-glow-cyan: 0 0 20px rgba(20, 184, 166, 0.5), 0 0 40px rgba(20, 184, 166, 0.3);
  --jk-glow-neon: 0 0 30px rgba(244, 196, 48, 0.9), 0 0 60px rgba(212, 160, 23, 0.5), 0 0 90px rgba(184, 134, 11, 0.3);
  /* Neon tech para toggles y estados (ON = verde, OFF = rojo) */
  --jk-accent-red-neon: #ef4444;
  --jk-accent-green-neon: #22c55e;
  --jk-glow-red-neon: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4);
  --jk-glow-green-neon: 0 0 20px rgba(34, 197, 94, 0.8), 0 0 40px rgba(34, 197, 94, 0.4);
}

/* ========================================
   2. GLOBAL STYLES - CYBERNETIC
   ======================================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--jk-tech-darker) 0%, var(--jk-tech-dark) 50%, var(--jk-tech-darker) 100%);
  background-attachment: fixed;
  color: var(--jk-metal-light);
  overflow-x: hidden;
  position: relative;
}

/* Pure CSS honeycomb (hexagon wireframe) */
:root {
  --hc-default-hex: 48px;
  --hc-default-line: 1px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* Textura honeycomb usando SVG - tamaño original para el fondo general (cubre todo el sitio automáticamente) */
  background-image: var(--honeycomb-url);
  background-size: var(--honeycomb-size-body);
  background-repeat: repeat;
  background-position: 0 0;
  background-attachment: fixed;
  /* rendimiento */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: background-position;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Animated Circuit Lines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(212, 160, 23, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: techPulse 10s ease-in-out infinite;
}

@keyframes techPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

* {
  box-sizing: border-box;
}

/* ========================================
   3. HEXAGON BASE SHAPE - METALLIC TECH
   ======================================== */
.jkhive-hex {
  position: relative;
  width: var(--hex-size);
  height: calc(var(--hex-size) * 1.1547);
  background: linear-gradient(135deg, var(--jk-tech-medium) 0%, var(--jk-tech-dark) 100%);
  margin: calc(var(--hex-size) * 0.5774) 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: var(--jk-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Borde con box-shadow para que respete clip-path y se vea completo (no a manchas) */
  box-shadow: var(--jk-shadow), inset 0 0 30px rgba(14, 165, 233, 0.1), 0 0 0 1.5px rgba(14, 165, 233, 0.3);
  border: none;
}

/* Metallic Inner Border */
.jkhive-hex::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, var(--jk-tech-dark) 0%, var(--jk-tech-darker) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 0;
}

/* Tech Glow Effect */
.jkhive-hex::after {
  content: '';
  position: absolute;
  inset: -2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.3) 0%, 
    rgba(20, 184, 166, 0.2) 50%,
    rgba(14, 165, 233, 0.3) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--jk-transition);
}

/* Hexagon Sizes */
.jkhive-hex-sm {
  width: var(--hex-size-sm);
  height: calc(var(--hex-size-sm) * 1.1547);
  margin: calc(var(--hex-size-sm) * 0.5774) 0;
}

.jkhive-hex-lg {
  width: var(--hex-size-lg);
  height: calc(var(--hex-size-lg) * 1.1547);
  margin: calc(var(--hex-size-lg) * 0.5774) 0;
}

.jkhive-hex-xl {
  width: var(--hex-size-xl);
  height: calc(var(--hex-size-xl) * 1.1547);
  margin: calc(var(--hex-size-xl) * 0.5774) 0;
}

/* Hexagon with Honey Border */
.jkhive-hex-honey-border {
  border: 3px solid var(--jk-accent-honey);
  box-shadow: var(--jk-shadow-honey);
}

/* Hexagon Hover Effect - Tech Glow: borde iluminado completo vía box-shadow */
.jkhive-hex:hover {
  transform: scale(1.1);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue), 0 0 0 2.5px var(--jk-primary-blue);
  filter: brightness(1.3);
}

/* Excluir modales de mensajería del estilo general */
.jkhive-modal-msgs-vp .jkhive-hex:hover,
.jkhive-modal-msgs-e .jkhive-hex:hover,
.jkhive-msgs-alerts .jkhive-hex:hover {
  transform: inherit !important;
  box-shadow: inherit !important;
  filter: inherit !important;
  border-color: inherit !important;
}

/* ========================================
   Cursor flecha (sin mano): hex o bloque solo informativo / hover
   Nomenclatura JK Hive. Equivalente histórico: .jk-cursor-default (jkhive.work).
   Ojo: si dentro hay enlaces reales, mejor usar .jkhive-hex-gallery-display-only
   en el contenedor de galería o añadir cursor:pointer en el <a>.
   ======================================== */
.jkhive-cursor-default,
.jk-cursor-default {
  cursor: default !important;
}
.jkhive-cursor-default *,
.jk-cursor-default * {
  cursor: inherit !important;
}

/* Excluir botones de acciones en lote del estilo general cyan - MÁXIMA ESPECIFICIDAD */
body .bulk-actions-toolbar .jkhive-hex:hover,
body .bulk-actions-toolbar .jkhive-hex-honey:hover,
body .bulk-actions-toolbar a:hover .jkhive-hex,
body .bulk-actions-toolbar a:hover .jkhive-hex-honey,
body .bulk-actions-toolbar .jkhive-actionbutton-small:hover .jkhive-hex,
body .bulk-actions-toolbar .jkhive-actionbutton-small:hover .jkhive-hex-honey,
body .empty-trash-btn .jkhive-hex:hover,
body .empty-trash-btn .jkhive-hex-honey:hover,
body .empty-trash-btn a:hover .jkhive-hex,
body .empty-trash-btn a:hover .jkhive-hex-honey,
body .empty-trash-btn-small .jkhive-hex:hover,
body .empty-trash-btn-small .jkhive-hex-honey:hover,
body .empty-trash-btn-small a:hover .jkhive-hex,
body .empty-trash-btn-small a:hover .jkhive-hex-honey {
  transform: inherit !important;
  box-shadow: inherit !important;
  filter: inherit !important;
  border-color: inherit !important;
  background: inherit !important;
}

.jkhive-hex:hover::after {
  opacity: 1;
  animation: techGlow 2s ease-in-out infinite;
}

@keyframes techGlow {
  0%, 100% {
    opacity: 0.5;
    filter: blur(10px);
  }
  50% {
    opacity: 1;
    filter: blur(15px);
  }
}

/* Hexagon Content */
.jkhive-hex-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--jk-metal-light);
  padding: var(--jk-spacing-md);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.jkhive-hex-icon {
  font-size: 1.5rem;
  margin-bottom: var(--jk-spacing-xs);
}

.jkhive-hex-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ========================================
   4. HEXAGON COLOR VARIANTS - METALLIC
   ======================================== */
.jkhive-hex-primary {
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-dark) 100%);
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.2);
  border-color: var(--jk-primary-blue-light);
}

.jkhive-hex-primary-light {
  background: linear-gradient(135deg, var(--jk-primary-blue) 0%, var(--jk-primary-blue-light) 50%, var(--jk-primary-blue) 100%);
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(56, 189, 248, 0.2);
}

.jkhive-hex-primary-dark {
  background: linear-gradient(135deg, var(--jk-primary-blue-darker) 0%, var(--jk-primary-blue-dark) 50%, var(--jk-primary-blue-darker) 100%);
  box-shadow: var(--jk-shadow), inset 0 0 20px rgba(14, 165, 233, 0.3);
}

.jkhive-hex-secondary {
  background: linear-gradient(135deg, var(--jk-secondary-green-dark) 0%, var(--jk-secondary-green) 50%, var(--jk-secondary-green-dark) 100%);
  box-shadow: var(--jk-shadow), var(--jk-glow-cyan), inset 0 0 30px rgba(20, 184, 166, 0.2);
  border-color: var(--jk-secondary-green-light);
}

.jkhive-hex-secondary-light {
  background: linear-gradient(135deg, var(--jk-secondary-green) 0%, var(--jk-secondary-green-light) 50%, var(--jk-secondary-green) 100%);
  box-shadow: var(--jk-shadow), var(--jk-glow-cyan), inset 0 0 30px rgba(45, 212, 191, 0.2);
}

.jkhive-hex-secondary-dark {
  background: linear-gradient(135deg, var(--jk-tech-dark) 0%, var(--jk-secondary-green-dark) 50%, var(--jk-tech-dark) 100%);
  box-shadow: var(--jk-shadow), inset 0 0 20px rgba(20, 184, 166, 0.3);
}

.jkhive-hex-accent {
  background: linear-gradient(135deg, var(--jk-accent-honey-dark) 0%, var(--jk-accent-honey) 50%, var(--jk-accent-honey-dark) 100%);
  color: var(--jk-tech-darker);
  box-shadow: var(--jk-shadow), var(--jk-glow-neon), inset 0 0 40px rgba(212, 160, 23, 0.4);
  border-color: var(--jk-accent-honey-light);
}

.jkhive-hex-accent .jkhive-hex-content {
  color: var(--jk-tech-darker);
  text-shadow: 0 0 10px rgba(244, 196, 48, 1), 0 0 20px rgba(212, 160, 23, 0.6);
  font-weight: 700;
}

.jkhive-hex-white {
  background: linear-gradient(135deg, var(--jk-metal) 0%, var(--jk-metal-light) 50%, var(--jk-metal) 100%);
  color: var(--jk-tech-darker);
  border: 2px solid var(--jk-metal-dark);
  box-shadow: var(--jk-shadow), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.jkhive-hex-white .jkhive-hex-content {
  color: var(--jk-tech-darker);
  text-shadow: none;
}

.jkhive-hex-dark {
  background: linear-gradient(135deg, var(--jk-tech-darker) 0%, var(--jk-tech-dark) 50%, var(--jk-tech-darker) 100%);
  box-shadow: var(--jk-shadow-lg), inset 0 0 30px rgba(14, 165, 233, 0.15);
}

/* ========================================
   5. SIDEBAR NAVIGATION - CYBERNETIC
   ======================================== */
/* Los estilos del sidebar se han movido a css/jkhive-sidebar.css para mantenerlos individualizados */

/* Estilos globales del logo (usados en sidebar y otros lugares) */
.jkhive-logo-main {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

/* Cabeza editorial: la barra azul tiene exactamente el ancho del texto superior (JK, HS, OUT, etc.). */
.jkhive-logo-editorial-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.jkhive-logo-editorial-head .jkhive-logo-main {
  text-align: center;
}

.jkhive-logo-editorial-head .jkhive-logo-divider {
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.jkhive-logo-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0ea5e9 20%, #06b6d4 50%, #0ea5e9 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(14, 165, 233, 1), 0 0 20px rgba(6, 182, 212, 0.6);
  margin: 0.2rem 0 0 0;
}

.jkhive-logo-sub {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 0.05rem;
  line-height: 1;
  color: var(--jk-accent-honey-light, #f4c430) !important;
  text-shadow: 0 0 10px rgba(244, 196, 48, 0.8), 0 0 20px rgba(212, 160, 23, 0.6);
}

/* ========================================
   6. MAIN CONTENT AREA
   ======================================== */
.jkhive-main-content {
  margin-left: 140px; /* Exactamente donde termina el sidebar; vértice con la línea lateral y borde del navbar. */
  margin-top: 70px;
  min-height: 100vh;
  padding: var(--jk-spacing-xl);
  box-sizing: border-box;
  max-width: 100%;
}

/* Main content adjustments for public pages */
body.page-public .jkhive-main-content {
  padding: 0 !important;
  margin-top: 70px;
}

/* ========================================
   7. HEXAGON BUTTONS - TECH STYLE
   ======================================== */
.jkhive-btn-hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 120px;
  height: calc(120px * 1.1547);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--jk-tech-medium) 0%, var(--jk-tech-dark) 100%);
  color: var(--jk-metal-light);
  border: none;
  cursor: pointer;
  transition: var(--jk-transition);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--jk-shadow), inset 0 0 20px rgba(14, 165, 233, 0.1);
  text-decoration: none;
  padding: var(--jk-spacing-md);
  text-align: center;
  border: 1px solid rgba(14, 165, 233, 0.3);
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.jkhive-btn-hex:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue);
  filter: brightness(1.3);
  border-color: var(--jk-primary-blue);
}

.jkhive-btn-hex:active {
  transform: scale(1.05) rotate(3deg);
  box-shadow: var(--jk-shadow), inset 0 0 30px rgba(14, 165, 233, 0.3);
}

/* Button Variants */
.jkhive-btn-hex-primary {
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-dark) 100%);
  border: 2px solid var(--jk-primary-blue-light);
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.2);
}

.jkhive-btn-hex-primary:hover {
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue), inset 0 0 40px rgba(14, 165, 233, 0.3);
}

.jkhive-btn-hex-secondary {
  background: linear-gradient(135deg, var(--jk-secondary-green-dark) 0%, var(--jk-secondary-green) 50%, var(--jk-secondary-green-dark) 100%);
  border: 2px solid var(--jk-secondary-green-light);
  box-shadow: var(--jk-shadow), var(--jk-glow-cyan), inset 0 0 30px rgba(20, 184, 166, 0.2);
}

.jkhive-btn-hex-secondary:hover {
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-cyan), inset 0 0 40px rgba(20, 184, 166, 0.3);
}

.jkhive-btn-hex-accent {
  background: linear-gradient(135deg, var(--jk-accent-honey-dark) 0%, var(--jk-accent-honey) 50%, var(--jk-accent-honey-light) 70%, var(--jk-accent-honey) 100%);
  color: var(--jk-tech-darker);
  border: 2px solid var(--jk-accent-honey-light);
  box-shadow: var(--jk-shadow), var(--jk-glow-neon), inset 0 0 40px rgba(212, 160, 23, 0.4);
  text-shadow: 0 0 15px rgba(244, 196, 48, 1), 0 0 30px rgba(212, 160, 23, 0.6);
  font-weight: 900;
}

.jkhive-btn-hex-accent:hover {
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-neon), inset 0 0 50px rgba(244, 196, 48, 0.5);
  color: var(--jk-tech-darker);
}

/* Small Button */
.jkhive-btn-hex-sm {
  width: 80px;
  height: calc(80px * 1.1547);
  font-size: 0.75rem;
}

/* Large Button */
.jkhive-btn-hex-lg {
  width: 160px;
  height: calc(160px * 1.1547);
  font-size: 1.1rem;
}

/* Carousel Button (30% smaller total - 15% + 15%) */
.jkhive-btn-hex-carousel {
  width: 116px;
  height: calc(116px * 1.1547);
  transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
              background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.8rem 0.5rem !important;
  margin: 0 auto;
  flex-direction: column;
  border: none !important;
  vertical-align: middle;
}

.jkhive-btn-hex-carousel #hero-carousel-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* ========================================
   HEXAGONAL GALLERY - HONEYCOMB PATTERN
   ======================================== */

/* Base Gallery Container */
.jkhive-hex-gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-content: center;
  padding: 2rem 0;
}

/* Galería hex sin acción de clic (solo hover / decorativa).
 * Añadir al contenedor: jkhive-hex-gallery jkhive-hex-gallery-display-only
 * No usar en grillas donde cada ítem sea enlace (hub, dashboard, portafolio con <a>). */
.jkhive-hex-gallery.jkhive-hex-gallery-display-only {
  cursor: default !important;
}

.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-gallery-item,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-gallery-hex,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-why-me-item,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-why-me-hex,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-itemgallery-small:not(a),
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-itemgallery-med:not(a),
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-itemgallery-big:not(a),
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-itemgallery-small:not(a) .jkhive-hex,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-itemgallery-med:not(a) .jkhive-hex,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-itemgallery-big:not(a) .jkhive-hex,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-content,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-gallery-icon,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-gallery-title,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-gallery-subtitle {
  cursor: default !important;
}

.jkhive-hex-gallery.jkhive-hex-gallery-display-only a.jkhive-itemgallery-small,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a.jkhive-itemgallery-med,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a.jkhive-itemgallery-big,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a[href] .jkhive-hex,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a[href] .jkhive-hex-gallery-hex,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a[href] .jkhive-hex-content,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a[href] .jkhive-hex-gallery-icon,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a[href] .jkhive-hex-gallery-title,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only a[href] .jkhive-hex-gallery-subtitle,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only button:not(:disabled),
.jkhive-hex-gallery.jkhive-hex-gallery-display-only [role="button"]:not([aria-disabled="true"]),
.jkhive-hex-gallery.jkhive-hex-gallery-display-only input[type="submit"]:not(:disabled),
.jkhive-hex-gallery.jkhive-hex-gallery-display-only input[type="button"]:not(:disabled),
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-gallery-actions a,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-hex-gallery-actions button,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-table-actbttn a,
.jkhive-hex-gallery.jkhive-hex-gallery-display-only .jkhive-table-actbttn button {
  cursor: pointer !important;
}

/* ========================================
   GALLERY BIG - 3 items per row (3-2-3-2) - HEXÁGONOS GRANDES
   ======================================== */
.jkhive-hex-gallery-big {
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 350px);
  gap: 0 5px; /* gap vertical 0, horizontal 5px */
  justify-content: center;
  padding: 30px 20px; /* Padding superior reducido 10px (40px → 30px) */
}

.jkhive-hex-gallery-big .jkhive-hex-gallery-item {
  width: 350px;
  height: 404px;
  margin: 0; /* Sin margin por defecto */
  position: relative;
  transition: transform 0.3s ease, z-index 0s;
}

/* Primera fila (hex 1, 2, 3) - sin margin negativo */
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(3) { grid-column: 3; grid-row: 1; }

/* Todas las filas después de la primera: margin-top negativo para superposición */
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(n+4) {
  margin-top: -96px; /* Reducido 5px más de superposición (-91px → -96px) */
}

/* Segunda fila desplazada (hex 4, 5) - 2 items centrados */
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(4) { 
  grid-column: 1 / 2; 
  grid-row: 2;
  transform: translateX(178.5px); /* Movido 1.5px a la izquierda */
}
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(5) { 
  grid-column: 2 / 3; 
  grid-row: 2;
  transform: translateX(178.5px); /* Movido 1.5px a la izquierda */
}

/* Tercera fila (hex 6, 7, 8) */
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(6) { grid-column: 1; grid-row: 3; }
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(7) { grid-column: 2; grid-row: 3; }
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(8) { grid-column: 3; grid-row: 3; }

/* Cuarta fila desplazada (hex 9, 10) */
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(9) { 
  grid-column: 1 / 2; 
  grid-row: 4;
  transform: translateX(178.5px); /* Movido 1.5px a la izquierda */
}
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(10) { 
  grid-column: 2 / 3; 
  grid-row: 4;
  transform: translateX(178.5px); /* Movido 1.5px a la izquierda */
}

.jkhive-hex-gallery-big .jkhive-hex-gallery-item:hover {
  z-index: 10;
}

/* Hover aumenta el tamaño igual que service-card */
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(5n+4):hover,
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(5n+5):hover {
  transform: translateX(178.5px) scale(1.05);
}

.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(5n+1):hover,
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(5n+2):hover,
.jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(5n+3):hover {
  transform: scale(1.05);
}

/* ========================================
   GALLERY MEDIUM - 5 items per row (5-4) - HEXÁGONOS MEDIANOS
   ======================================== */
.jkhive-hex-gallery-medium {
  max-width: 1600px;
  padding-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, 210px);
  grid-gap: 0;
  justify-content: center;
  align-items: start;
}

/* Separación horizontal para jkhive-itemgallery-med dentro de jkhive-hex-gallery-medium */
.jkhive-hex-gallery-medium:has(.jkhive-itemgallery-med) {
  gap: 0 55px; /* Separación horizontal de 55px entre columnas cuando contiene jkhive-itemgallery-med */
}

/* Separación horizontal para jkhive-why-me-item (mismo sistema que itemgallery-med) */
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item) {
  gap: 0 55px;
}

/* Grid y layout para jkhive-why-me-item - mismas reglas que hex-gallery-item pero para why-me (260px) */
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item) {
  grid-template-columns: repeat(5, 260px);
}
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) {
  grid-template-columns: repeat(4, 260px);
}
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(1),
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(2),
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(3),
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(4) {
  margin-bottom: 0 !important;
  margin-right: 15px !important;
  margin-left: 15px !important;
  margin-top: 0 !important;
  transform: none !important;
}
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.jkhive-hex-gallery-medium:has(.jkhive-why-me-item:nth-child(4):last-child) .jkhive-why-me-item:nth-child(4) { grid-column: 4; grid-row: 1; margin-right: 15px !important; margin-left: 15px !important; }
/* Patrón 5-4 para why-me-item (items 6-9, 15-18...) */
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+6),
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+7),
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+8),
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+9) {
  transform: translateX(106px);
  margin-top: -1px;
}
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+6) { grid-column: 1; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+7) { grid-column: 2; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+8) { grid-column: 3; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+9) { grid-column: 4; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+10),
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+11),
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+12),
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+13),
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+14) {
  transform: none;
  margin-top: 0;
}
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+10) { grid-column: 1; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+11) { grid-column: 2; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+12) { grid-column: 3; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+13) { grid-column: 4; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(9n+14) { grid-column: 5; }
.jkhive-hex-gallery-medium .jkhive-why-me-item:hover { z-index: 10; }
/* Hover layout: mantener translateX donde aplique; el scale lo aplica el hex en ventajas-commitment-style */
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+6):hover,
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+7):hover,
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+8):hover,
.jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(n+6):nth-child(9n+9):hover { transform: translateX(106px); }

.jkhive-hex-gallery-medium .jkhive-hex-gallery-item {
  width: 210px;
  height: 243px;
  margin: 0 15px -60px 15px; /* Separación horizontal de 15px a cada lado (30px total entre hexágonos) */
  position: relative;
  transition: transform 0.3s ease, z-index 0s;
}

/* Patrón completo: Filas pares tienen 4 items (6-9, 15-18, 24-27, etc.) */
/* Fila 2 (items 6-9), Fila 4 (items 15-18), Fila 6 (items 24-27), etc. */
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+6),
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+7),
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+8),
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+9) {
  transform: translateX(106px);
  margin-top: -1px;
}

/* Posicionamiento específico de columnas para filas pares */
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+6) { grid-column: 1; }
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+7) { grid-column: 2; }
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+8) { grid-column: 3; }
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+9) { grid-column: 4; }

/* Fila 3 (items 10-14): resetear para que ocupen columnas 1-5 normalmente */
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+10),
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+11),
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+12),
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+13),
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+14) {
  transform: none;
  margin-top: 0;
}

.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+10) { grid-column: 1; }
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+11) { grid-column: 2; }
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+12) { grid-column: 3; }
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+13) { grid-column: 4; }
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+14) { grid-column: 5; }

.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:hover {
  z-index: 10;
}

/* Tamaños específicos para gallery medium */
.jkhive-hex-gallery-medium .jkhive-hex-gallery-icon {
  width: 1.80625rem; /* 2.125rem - 15% = 1.80625rem */
  height: 1.80625rem;
  margin-top: 15px; /* Desplazado 15px más abajo */
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jkhive-hex-gallery-medium .jkhive-hex-gallery-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jkhive-hex-gallery-medium .jkhive-hex-gallery-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.jkhive-hex-gallery-medium .jkhive-hex-gallery-subtitle {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.jkhive-hex-gallery-medium .jkhive-hex-gallery-actions {
  position: relative; /* Cambiar de absolute a relative para centrarlo */
  bottom: auto;
  left: auto;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* Hover aumenta el tamaño igual que service-card - Filas impares (1, 3, 5...) */
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+1):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+2):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+3):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+4):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+5):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+10):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+11):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+12):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+13):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+14):hover {
  transform: scale(1.05);
}

/* Hover para filas pares (2, 4, 6...) - mantener translateX */
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+6):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+7):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+8):hover,
.jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(9n+9):hover {
  transform: translateX(106px) scale(1.05);
}

/* ========================================
   GALLERY SMALL - 8 items per row (8-7-8-7) - HEXÁGONOS PEQUEÑOS
   ======================================== */
.jkhive-hex-gallery-small {
  max-width: 1600px;
  padding-top: 15px; /* Proporcional al tamaño */
}

.jkhive-hex-gallery-small .jkhive-hex-gallery-item {
  width: 130px;
  height: 150px;
  margin: -38px 1px;
  position: relative;
  transition: transform 0.3s ease, z-index 0s;
}

.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+9),
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+10),
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+11),
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+12),
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+13),
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+14),
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+15) {
  margin-top: 0px;
  transform: translateX(66px);
}

.jkhive-hex-gallery-small .jkhive-hex-gallery-item:hover {
  z-index: 10;
}

/* Hover aumenta el tamaño igual que service-card */
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+9):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+10):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+11):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+12):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+13):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+14):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+15):hover {
  transform: translateX(66px) scale(1.05);
}

.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+1):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+2):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+3):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+4):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+5):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+6):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+7):hover,
.jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(15n+8):hover {
  transform: scale(1.05);
}

/* ========================================
   COMMON ITEM STYLES
   ======================================== */
.jkhive-hex-gallery-item {
  position: relative;
  transition: transform 0.3s ease, z-index 0s;
}

.jkhive-hex-gallery-item:hover {
  z-index: 10;
}

.jkhive-hex-gallery-hex {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.95) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3), 
              inset 0 0 40px rgba(14, 165, 233, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  overflow: visible !important; /* Permitir que el contenido (foto) se vea completo */
}

/* Borde diagonal visible usando filter drop-shadow que respeta clip-path */
.jkhive-hex-gallery-hex {
  filter: drop-shadow(0 0 0 transparent);
}

/* Aplicar borde usando box-shadow en lugar de border para que respete clip-path */
.jkhive-hex-gallery-hex[style*="border"] {
  /* El borde se aplicará mediante el estilo inline, pero necesitamos que sea visible */
  /* Usamos un pseudo-elemento que simule el borde */
}

/* Bordes diagonales visibles - Solución al bug conocido */
.hex-border-yellow::after {
  content: '';
  position: absolute;
  inset: -2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: transparent;
  border: 2px solid rgba(212, 160, 23, 0.4);
  z-index: 0; /* Cambiado de -1 a 0 para que sea visible */
  pointer-events: none;
  transition: border-color 0.3s ease, border-width 0.3s ease, box-shadow 0.3s ease;
}

.hex-border-blue::after {
  content: '';
  position: absolute;
  inset: -2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: transparent;
  border: 2px solid rgba(14, 165, 233, 0.4);
  z-index: 0; /* Cambiado de -1 a 0 para que sea visible */
  pointer-events: none;
  transition: border-color 0.3s ease, border-width 0.3s ease, box-shadow 0.3s ease;
}

/* Glow effect pseudo */
.jkhive-hex-gallery-hex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Hover general para hexágonos de galería - NO aplicar a linkedin-profile */
.jkhive-hex-gallery-item:hover .jkhive-hex-gallery-hex {
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.5), 
              0 0 60px rgba(244, 196, 48, 0.3),
              inset 0 0 60px rgba(14, 165, 233, 0.25);
}

/* EXCEPCIÓN: No aplicar el estilo general a linkedin-profile */
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-hex-gallery-hex {
  box-shadow: none !important; /* Resetear para que el estilo específico funcione */
}

.jkhive-hex-gallery-item:hover .jkhive-hex-gallery-hex::after {
  border-width: 3px;
  opacity: 1;
  z-index: 1 !important; /* Asegurar que el borde esté visible en hover */
}


/* Efecto hover para sección "¿Por qué elegirme?" - solo iluminar bordes */
#ventajas .jkhive-hex-gallery-item:hover .jkhive-hex-gallery-hex {
  transform: scale(1.05) !important;
  /* Mantener el fondo original, solo iluminar borde */
}

#ventajas .jkhive-hex-gallery-item:hover .jkhive-hex-gallery-hex::after {
  border-color: var(--jk-primary-blue-light) !important;
  border-width: 3px !important;
  opacity: 1 !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.8), 0 0 40px rgba(14, 165, 233, 0.4) !important;
  z-index: 1 !important; /* Asegurar que el borde esté visible en hover */
}

.jkhive-hex-gallery-icon {
  width: 2.1675rem; /* 2.55rem - 15% = 2.1675rem */
  height: 2.1675rem;
  margin-top: 15px; /* Desplazado 15px más abajo */
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.8));
  position: relative;
  z-index: 2;
}

.jkhive-hex-gallery-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Asegurar que el contenido esté por encima de los pseudo-elementos */
.jkhive-hex-gallery-hex > * {
  position: relative;
  z-index: 2; /* Aumentado a 2 para estar por encima del ::after que ahora es z-index: 0 */
}

.jkhive-hex-gallery-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--jk-accent-honey);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
  position: relative;
  z-index: 2;
}

.jkhive-hex-gallery-subtitle {
  font-size: 0.9rem;
  color: var(--jk-metal-light);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.jkhive-hex-gallery-badge {
  position: absolute;
  top: 20px;
  right: 30px;
  background: var(--jk-accent-honey);
  color: var(--jk-tech-darker);
  padding: 0.3rem 0.8rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(2rem * 1.1547);
  height: calc(2rem * 1.1547);
}

.jkhive-hex-gallery-badge.disabled {
  background: rgba(150, 150, 150, 0.3);
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Gallery Big - Mobile (2-1-2-1) - Hexágonos grandes */
  .jkhive-hex-gallery-big .jkhive-hex-gallery-item {
    width: 200px;
    height: 231px;
    margin: -58px 1px;
  }
  
  /* Anular margin negativo para todos excepto primera fila */
  .jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(n+3) {
    margin-top: 0px;
  }
  
  /* Segunda fila desplazada (hex 3, 6, 9...) */
  .jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(3n+3) {
    transform: translateX(101px);
  }
  
  .jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(3n+3):hover {
    transform: translateX(101px) scale(1.05);
  }
  
  /* Hover para items SIN translateX */
  .jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(3n+1):hover,
  .jkhive-hex-gallery-big .jkhive-hex-gallery-item:nth-child(3n+2):hover {
    transform: scale(1.05);
  }
  
  /* Gallery Medium - Mobile (3-2-3-2) - Hexágonos medianos */
  /* Grid 3 columnas para medium en mobile */
  .jkhive-hex-gallery-medium {
    grid-template-columns: repeat(3, 130px) !important;
    gap: 0 !important;
    padding-top: 30px !important;
  }
  
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-item {
    width: 130px;
    height: 150px;
    margin: -38px 1px;
  }
  
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(5n+4),
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(5n+5) {
    margin-top: 0px;
    transform: translateX(66px);
  }
  
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(5n+4):hover,
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-item:nth-child(5n+5):hover {
    transform: translateX(66px) scale(1.05);
  }
  
  /* jkhive-why-me-item - mismo patrón 5n+4/5n+5 que hex-gallery-item */
  .jkhive-hex-gallery-medium:has(.jkhive-why-me-item) {
    grid-template-columns: repeat(3, 130px) !important;
    gap: 0 !important;
    padding-top: 30px !important;
  }
  
  .jkhive-hex-gallery-medium .jkhive-why-me-item {
    width: 130px;
    height: 150px;
    margin: -38px 1px !important;
  }
  
  .jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(5n+4),
  .jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(5n+5) {
    margin-top: 0px !important;
    transform: translateX(66px);
  }
  
  .jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(5n+4):hover,
  .jkhive-hex-gallery-medium .jkhive-why-me-item:nth-child(5n+5):hover {
    transform: translateX(66px);
  }
  
  /* Gallery Small - Mobile (4-3-4-3) - Hexágonos pequeños */
  .jkhive-hex-gallery-small .jkhive-hex-gallery-item {
    width: 90px;
    height: 104px;
    margin: -26px 1px;
  }
  
  .jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(7n+5),
  .jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(7n+6),
  .jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(7n+7) {
    margin-top: 0px;
    transform: translateX(46px);
  }
  
  .jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(7n+5):hover,
  .jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(7n+6):hover,
  .jkhive-hex-gallery-small .jkhive-hex-gallery-item:nth-child(7n+7):hover {
    transform: translateX(46px) scale(1.05);
  }
  
  /* Ajustes de tamaño de contenido */
  .jkhive-hex-gallery-big .jkhive-hex-gallery-icon {
    font-size: 2.55rem; /* 3rem - 15% = 2.55rem */
  }
  
  .jkhive-hex-gallery-big .jkhive-hex-gallery-title {
    font-size: 1.1rem;
  }
  
  .jkhive-hex-gallery-big .jkhive-hex-gallery-subtitle {
    font-size: 0.75rem;
  }
  
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-icon {
    font-size: 1.7rem; /* 2rem - 15% = 1.7rem */
  }
  
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-title {
    font-size: 0.8rem;
  }
  
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-subtitle {
    font-size: 0.6rem;
  }
  
  /* Hex interior: evitar elongación en 130×150 - overflow hidden y padding escalado */
  .jkhive-hex-gallery-medium .jkhive-hex-gallery-hex {
    overflow: hidden !important;
    padding: 1rem 0.75rem !important;
  }
  
  .jkhive-hex-gallery-small .jkhive-hex-gallery-icon {
    font-size: 1.275rem; /* 1.5rem - 15% = 1.275rem */
  }
  
  .jkhive-hex-gallery-small .jkhive-hex-gallery-title {
    font-size: 0.65rem;
  }
  
  .jkhive-hex-gallery-small .jkhive-hex-gallery-subtitle {
    font-size: 0.5rem;
  }
}

/* Small Action Button (only emoji, tooltip on hover) */
.jkhive-btn-hex-action {
  width: 70px;
  height: calc(70px * 1.1547);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem !important;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jkhive-btn-hex-action .emoji-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.jkhive-btn-hex-action .tooltip-text {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--jk-accent-honey);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--jk-accent-honey);
}

.jkhive-btn-hex-action:hover .tooltip-text {
  opacity: 1;
  bottom: -40px;
}

.jkhive-btn-hex-action:hover {
  transform: scale(1.05);
}

/* ========================================
   8. HEXAGON CARDS - METALLIC
   ======================================== */
.jk-card-hex {
  position: relative;
  width: 280px;
  height: calc(280px * 1.1547);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--jk-tech-dark) 0%, var(--jk-tech-darker) 100%);
  box-shadow: var(--jk-shadow-md), inset 0 0 40px rgba(14, 165, 233, 0.1);
  transition: var(--jk-transition);
  overflow: hidden;
  border: 2px solid rgba(14, 165, 233, 0.3);
}

.jk-card-hex:hover {
  transform: scale(1.05);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue), inset 0 0 60px rgba(14, 165, 233, 0.2);
  border-color: var(--jk-primary-blue);
}

.jk-card-hex-content {
  padding: var(--jk-spacing-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.jk-card-hex-icon {
  font-size: 3rem;
  color: var(--jk-primary-blue-light);
  margin-bottom: var(--jk-spacing-md);
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
}

.jk-card-hex-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jk-metal-light);
  margin-bottom: var(--jk-spacing-sm);
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.jk-card-hex-text {
  font-size: 0.9rem;
  color: var(--jk-metal);
  line-height: 1.5;
}

/* Card with Image Background */
.jk-card-hex-image {
  position: relative;
}

.jk-card-hex-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

/* ========================================
   9. HEXAGON GRID LAYOUT
   ======================================== */
.jkhive-hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--jk-spacing-md);
  padding: var(--jk-spacing-xl);
  position: relative;
}

.jkhive-hex-grid-item {
  position: relative;
}

/* Honeycomb Pattern Grid */
.jk-honeycomb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--jk-spacing-xl);
  margin: 0 auto;
  max-width: 1200px;
}

.jk-honeycomb-row {
  display: flex;
  justify-content: center;
}

.jk-honeycomb-row:nth-child(even) {
  margin-left: calc(var(--hex-size) * 0.866);
}

.jk-honeycomb-item {
  margin: calc(var(--hex-size) * 0.1) calc(var(--hex-size) * 0.05);
}

/* ========================================
   10. HEXAGON GALLERY
   ======================================== */
.jk-gallery-hex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--jk-spacing-lg);
  padding: var(--jk-spacing-xl);
}

.jk-gallery-item {
  position: relative;
  width: 200px;
  height: calc(200px * 1.1547);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  cursor: pointer;
  transition: var(--jk-transition);
  border: 2px solid rgba(14, 165, 233, 0.5);
  margin: 0 auto;
  box-shadow: var(--jk-shadow), inset 0 0 20px rgba(14, 165, 233, 0.1);
}

.jk-gallery-item:hover {
  transform: scale(1.1);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue);
  z-index: 10;
  border-color: var(--jk-primary-blue-light);
}

.jk-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--jk-transition);
}

.jk-gallery-item:hover img {
  transform: scale(1.1);
}

.jk-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(20, 184, 166, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--jk-transition);
  color: var(--jk-white);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: var(--jk-spacing-md);
  text-shadow: 0 0 15px rgba(14, 165, 233, 1);
  backdrop-filter: blur(5px);
}

.jk-gallery-item:hover .jk-gallery-overlay {
  opacity: 1;
}

/* ========================================
   11. HEXAGON BADGES & LABELS
   ======================================== */
.jk-badge-hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: calc(60px * 1.1547);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--jk-primary-blue);
  color: var(--jk-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--jk-accent-honey);
}

.jk-badge-hex-sm {
  width: 40px;
  height: calc(40px * 1.1547);
  font-size: 0.6rem;
}

.jk-badge-hex-primary {
  background: var(--jk-primary-blue);
}

.jk-badge-hex-secondary {
  background: var(--jk-secondary-green);
}

.jk-badge-hex-accent {
  background: var(--jk-accent-honey);
  color: var(--jk-gray-900);
}

/* ========================================
   12. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  /* Los estilos responsive del sidebar se han movido a css/jkhive-sidebar.css */
  
  .jkhive-main-content {
    margin-left: 101px; /* Exactamente donde termina el sidebar en mobile; vértice con la línea lateral. */
    padding: var(--jk-spacing-md);
    overflow-x: hidden;
  }
  
  .jk-submenu {
    left: 88px; /* Reducido 5% desde 93px (93 * 0.95 ≈ 88) */
    min-width: 160px;
  }
  
  /* Nota: Los estilos responsive de .jkhive-nav-item del sidebar se han movido a css/jkhive-sidebar.css */
  
  .jk-card-hex {
    width: 200px;
    height: calc(200px * 1.1547);
  }
  
  .jk-gallery-item {
    width: 150px;
    height: calc(150px * 1.1547);
  }
}

/* ========================================
   13. UTILITY CLASSES
   ======================================== */
.jk-text-center {
  text-align: center;
}

.jk-mt-1 { margin-top: var(--jk-spacing-xs); }
.jk-mt-2 { margin-top: var(--jk-spacing-sm); }
.jk-mt-3 { margin-top: var(--jk-spacing-md); }
.jk-mt-4 { margin-top: var(--jk-spacing-lg); }
.jk-mt-5 { margin-top: var(--jk-spacing-xl); }

.jk-mb-1 { margin-bottom: var(--jk-spacing-xs); }
.jk-mb-2 { margin-bottom: var(--jk-spacing-sm); }
.jk-mb-3 { margin-bottom: var(--jk-spacing-md); }
.jk-mb-4 { margin-bottom: var(--jk-spacing-lg); }
.jk-mb-5 { margin-bottom: var(--jk-spacing-xl); }

.jk-py-3 {
  padding-top: var(--jk-spacing-md);
  padding-bottom: var(--jk-spacing-md);
}

.jk-py-5 {
  padding-top: var(--jk-spacing-xl);
  padding-bottom: var(--jk-spacing-xl);
}

/* ========================================
   14. ANIMATIONS
   ======================================== */
@keyframes jk-pulse-honey {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
  }
}

.jkhive-animate-pulse {
  animation: jk-pulse-honey 2s infinite;
}

@keyframes jk-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.jkhive-animate-float {
  animation: jk-float 3s ease-in-out infinite;
}

.jkhive-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.jkhive-animate-on-scroll.jkhive-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   15. HEADER COMPONENT - CYBERNETIC
   ======================================== */
.jkhive-header {
  background: linear-gradient(135deg, var(--jk-tech-darker) 0%, var(--jk-tech-dark) 50%, var(--jk-tech-darker) 100%);
  padding: var(--jk-spacing-xl) 0;
  text-align: center;
  color: var(--jk-metal-light);
  border-bottom: 3px solid var(--jk-primary-blue);
  box-shadow: var(--jk-shadow-lg), 0 4px 30px rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.jkhive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.jkhive-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--jk-spacing-sm);
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.8), 0 0 40px rgba(14, 165, 233, 0.4);
  position: relative;
  z-index: 1;
}

.jkhive-header-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  color: var(--jk-metal);
}

/* ========================================
   16. FOOTER COMPONENT - CYBERNETIC
   ======================================== */
.jkhive-footer {
  background: linear-gradient(135deg, var(--jk-tech-darker) 0%, var(--jk-tech-dark) 50%, var(--jk-tech-darker) 100%);
  color: var(--jk-metal-light);
  padding: var(--jk-spacing-xl);
  text-align: center;
  border-top: 3px solid var(--jk-primary-blue);
  box-shadow: 0 -4px 30px rgba(14, 165, 233, 0.2);
  position: relative;
  box-sizing: border-box;
}

/* Footer: ancho = viewport - sidebar cuando es sibling de main (CRM).
   Web: footer está dentro de main, no necesita margin propio.
   Clase real del include: .jkhive-crm-footer (crm-footer.php). */
body.crm-layout .jkhive-footer,
body.crm-layout .jkhive-footer-crm,
body.crm-layout .jkhive-crm-footer {
  margin-left: 140px;
  width: calc(100% - 140px);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  body.crm-layout .jkhive-footer,
  body.crm-layout .jkhive-footer-crm,
  body.crm-layout .jkhive-crm-footer {
    margin-left: 101px;
    width: calc(100% - 101px);
  }
}

.jkhive-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--jk-primary-blue) 50%, transparent 100%);
}

.jkhive-footer-text {
  margin-bottom: var(--jk-spacing-md);
}

.jkhive-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--jk-spacing-lg);
  flex-wrap: wrap;
}

.jkhive-footer-link {
  color: var(--jk-accent-honey);
  text-decoration: none;
  transition: var(--jk-transition-fast);
}

.jkhive-footer-link:hover {
  color: var(--jk-accent-honey-light);
  text-decoration: underline;
}

/* Footer Links - Estilos para links en el footer */
.jkhive-footer .footer-link {
  color: var(--jk-primary-blue-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.jkhive-footer .footer-link:hover {
  color: var(--jk-accent-honey);
  text-shadow: 0 0 10px rgba(244, 196, 48, 0.8);
  text-decoration: underline;
}

.jkhive-footer .small .footer-link {
  color: var(--jk-primary-blue);
  opacity: 0.9;
}

.jkhive-footer .small .footer-link:hover {
  color: var(--jk-accent-honey);
  opacity: 1;
  text-shadow: 0 0 10px rgba(244, 196, 48, 0.8);
}

/* ========================================
   17. TOP NAVBAR - HEXAGONAL
   ======================================== */
.jkhive-navbar {
  position: fixed;
  top: 0;
  left: 140px;
  right: 0;
  height: 70px;
  background: linear-gradient(135deg, var(--jk-tech-darker) 0%, var(--jk-tech-dark) 100%);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--jk-spacing-xl);
  box-shadow: var(--jk-shadow-lg), inset 0 -2px 20px rgba(14, 165, 233, 0.15);
  border-bottom: 2px solid rgba(14, 165, 233, 0.3);
  overflow: visible; /* Allow language selector to overflow */
}

/* Navbar left section (breadcrumb/title) */
.jkhive-navbar-left {
  display: flex;
  align-items: center;
  gap: var(--jk-spacing-md);
}

.jkhive-navbar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jk-metal-light);
  text-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
  margin: 0;
}

.jkhive-navbar-breadcrumb {
  font-size: 0.9rem;
  color: var(--jk-metal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jkhive-navbar-breadcrumb a {
  color: var(--jk-primary-blue-light);
  text-decoration: none;
  transition: var(--jk-transition-fast);
}

.jkhive-navbar-breadcrumb a:hover {
  color: var(--jk-accent-honey);
}

/* Navbar right section (utilities) */
.jkhive-navbar-right {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: visible; /* Allow language selector dropdown to be visible */
}

/* Ocultar userMenuContainer inicialmente para evitar parpadeo - se mostrará después de determinar estado de auth */
#userMenuContainer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

#userMenuContainer.ready {
  opacity: 1;
  visibility: visible;
}

/* Navbar hexagonal items wrapper (for badges) */
.jkhive-navbar-hex-wrapper {
  position: relative;
  display: inline-block;
}

/* Navbar hexagonal items */
.jkhive-navbar-hex-item {
  position: relative;
  width: 38px;
  height: calc(38px * 1.1547);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--jk-tech-medium) 0%, var(--jk-tech-dark) 100%);
  box-shadow: var(--jk-shadow), inset 0 0 15px rgba(244, 196, 48, 0.1), 0 0 0 1px rgba(244, 196, 48, 0.3);
  cursor: pointer;
  transition: var(--jk-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jk-accent-honey, #f4c430);
  font-size: 1.02rem;
  text-shadow: 0 0 8px rgba(244, 196, 48, 0.5);
  z-index: 1;
}

.jkhive-navbar-hex-item:hover {
  z-index: 10;
  transform: scale(1.1);
  box-shadow: var(--jk-shadow-lg), 0 0 20px rgba(6, 182, 212, 0.6), 0 0 0 1px rgba(6, 182, 212, 0.6);
  color: var(--jk-accent-cyan, #06b6d4);
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
  filter: brightness(1.3);
}

/* Notification badge - HEXAGONAL - TAMAÑO PEQUEÑO */
.jkhive-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px; /* Tamaño pequeño */
  height: calc(16px * 1.1547) !important; /* Altura proporcional hexagonal */
  min-width: 16px;
  background: var(--jk-primary-blue) !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important; /* Forma hexagonal */
  border-radius: 0 !important; /* Eliminar border-radius circular */
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  font-size: 0.55rem; /* Texto más pequeño */
  font-weight: 900 !important; /* Negrita extra gruesa para mejor visibilidad */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Fuente más gruesa */
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
  animation: pulse 2s ease-in-out infinite;
  z-index: 1000;
  pointer-events: none;
  line-height: 1;
  text-align: center;
  padding: 0;
  margin: 0;
  text-shadow: 0 0 3px rgba(212, 160, 23, 0.9), 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 6px rgba(244, 196, 48, 0.6);
  letter-spacing: 0.02em; /* Ligero espaciado para mejor legibilidad */
}

.jkhive-notification-badge[style*="display: block"],
.jkhive-notification-badge[style*="display:flex"],
.jkhive-notification-badge[style*="display: flex"] {
  display: flex !important;
}

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

/* ========================================
   18. HEXAGONAL DROPDOWN MENU SYSTEM
   ======================================== 
   
   This system can be reused for: Language Selector, User Menu, Notifications, etc.
   
   STRUCTURE:
   .jk-[type]-selector          → Container (38x38px, grows on open)
     └─ .jk-[type]-hex-container → Inner container (handles overflow)
        └─ .jk-[type]-hex        → Individual hexagon items
   
   HONEYCOMB PATTERN POSITIONS:
   - All hexagons start at: top: 0, left: 11px (centered)
   - When .open, they move to their honeycomb positions:
   
   Row 1 (center):     ES: top: 0,    left: 11px
   Row 2 (right):      EN: top: 34px,  left: 31px
   Row 3 (center):     IT: top: 68px,  left: 11px
   Row 4 (right):      DE: top: 102px, left: 31px
   
   Pattern continues: center → right → center → right (zigzag)
   Vertical spacing: 34px between rows (honeycomb overlap)
   Horizontal offset: 20px from center (31px vs 11px)
   
   ACTIVE STATE:
   - .active class applies metallic honey yellow background
   - Active item is ALWAYS visible (closed or open)
   - Active item maintains honeycomb position when open
   - Non-active items are hidden when closed (opacity: 0, scale: 0)
   
   RESPONSIVE:
   - Container expands downward only (no upward shift)
   - Uses overflow: visible to prevent clipping
   - z-index: 9999 when open to stay above all content
   
   TO REPLICATE FOR OTHER MENUS:
   1. Copy .jkhive-lang-selector structure
   2. Rename classes (e.g., .jk-user-selector, .jk-notif-selector)
   3. Adjust honeycomb positions based on number of items
   4. Keep vertical spacing at 34px for proper honeycomb effect
   5. Keep horizontal offset at ±20px from center
   6. Ensure .active state uses !important for all styles
   
   ======================================== */
.jkhive-lang-selector {
  position: relative;
  width: 38px;
  height: 38px;
  z-index: 1;
  overflow: visible !important; /* CRITICAL: Allow children to overflow */
  align-self: center; /* Align vertically with other navbar hexagons */
  top: -2px; /* Compensate for 2px vertical offset */
}

.jkhive-lang-selector.open {
  z-index: 9999; /* Higher than everything to avoid being covered */
  /* DON'T change width/height - let container expand with overflow visible */
  overflow: visible !important; /* CRITICAL: Allow children to overflow */
}

.jkhive-lang-selector:hover {
  z-index: 10;
}

.jkhive-lang-hex-container {
  position: absolute;
  top: 0; /* Align with selector top */
  left: 0; /* Centered alignment */
  width: 100px; /* Much wider to accommodate zigzag */
  height: 38px;
  z-index: 9999;
  overflow: visible !important; /* Allow hexagons to overflow */
  pointer-events: none; /* Allow clicking through empty areas */
}

.jkhive-lang-selector.open .jkhive-lang-hex-container {
  /* Container expands but selector stays same size */
  height: 140px; /* Compact height to match new spacing (96px top + 44px hex height) */
  width: 100px; /* Wide enough for zigzag pattern */
  top: 0; /* Start from top of selector */
  pointer-events: all; /* Re-enable clicks when open */
}

.jkhive-lang-hex {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: calc(38px * 1.1547);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--jk-accent-honey-dark) 0%, var(--jk-accent-honey) 50%, var(--jk-accent-honey-light) 100%) !important;
  border: 1px solid var(--jk-accent-honey-light) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-neon), inset 0 0 25px rgba(212, 160, 23, 0.3) !important;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jk-tech-darker) !important;
  font-weight: 700;
  font-size: 0.6rem;
  text-shadow: 0 0 8px rgba(244, 196, 48, 0.8) !important;
  user-select: none;
  z-index: 1;
}

/* Active language hexagon - ALWAYS visible with metallic honey yellow (igual que el de notificaciones) */
.jkhive-lang-hex.active {
  background: linear-gradient(135deg, var(--jk-accent-honey-dark) 0%, var(--jk-accent-honey) 50%, var(--jk-accent-honey-light) 100%) !important;
  border-color: var(--jk-accent-honey-light) !important;
  color: var(--jk-tech-darker) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-neon), inset 0 0 25px rgba(212, 160, 23, 0.3) !important;
  text-shadow: 0 0 8px rgba(244, 196, 48, 0.8) !important;
  z-index: 200 !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: all !important;
  display: flex !important;
  visibility: visible !important;
}

/* Inactive language options - hidden by default */
.jkhive-lang-hex:not(.active) {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  visibility: hidden;
}

/* When selector is open, keep active hexagon visible with cyan background */
.jkhive-lang-selector.open .jkhive-lang-hex.active {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: all !important;
  display: flex !important;
  z-index: 10001 !important; /* Slightly higher than inactive ones */
  visibility: visible !important;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* When selector is open, show all options */
.jkhive-lang-selector.open .jkhive-lang-hex:not(.active) {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: all !important;
  display: flex !important;
  z-index: 10000 !important;
  visibility: visible !important;
}

/* Honeycomb pattern - all hexagons start stacked at top */
.jkhive-lang-hex[data-lang="es"],
.jkhive-lang-hex[data-lang="en"],
.jkhive-lang-hex[data-lang="it"],
.jkhive-lang-hex[data-lang="de"] {
  top: 0;
  left: 0; /* Centered in container */
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* When selector is open, arrange in honeycomb zigzag pattern */
/* Fine-tuned alignment based on visual feedback */

/* First hexagon - stays at top center when open - CYAN cuando está abierto */
.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="es"]:not(.active) {
  top: 0;
  left: 0;
  transition-delay: 0s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* Second hexagon - down and to the right (ENG) - CYAN cuando está abierto */
.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="en"]:not(.active) {
  top: 34px; /* Adjusted: 2px down for better alignment */
  left: 20px; /* Adjusted: centered with 20px offset for honeycomb pattern */
  transition-delay: 0.1s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* Third hexagon - down and to the left (Italy) - CYAN cuando está abierto */
.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="it"]:not(.active) {
  top: 68px; /* Adjusted: 2px more down for honeycomb alignment */
  left: 0; /* Aligned with ES center */
  transition-delay: 0.2s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* Fourth hexagon - down and to the right (Germany) - CYAN cuando está abierto */
.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="de"]:not(.active) {
  top: 102px; /* Adjusted: 2px more down for perfect honeycomb alignment */
  left: 20px; /* Centered with 20px offset for honeycomb pattern */
  transition-delay: 0.3s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* Active language keeps its honeycomb position when selector is open - también CYAN cuando está abierto */
.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="es"].active {
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="en"].active {
  top: 34px;
  left: 20px;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="it"].active {
  top: 68px;
  left: 0;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

.jkhive-lang-selector.open .jkhive-lang-hex[data-lang="de"].active {
  top: 102px;
  left: 20px;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* Hover effects */
.jkhive-lang-hex:hover {
  transform: scale(1.05);
  border-color: var(--jk-primary-blue-light);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue);
  filter: brightness(1.3);
  z-index: 300 !important;
}

.jkhive-lang-hex.active:hover {
  transform: scale(1.05);
  border-color: var(--jk-accent-honey-light);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-neon);
}

/* Flag icons inside hexagons */
.jkhive-lang-hex .flag-icon {
  font-size: 1.02rem;
  display: block;
  text-align: center;
  width: 100%;
  line-height: 1;
  margin-top: -4px; /* Ajustar 4px hacia arriba para centrado perfecto */
}

/* Ajustar tamaño de fuente para texto (ENG) para que sea igual al tamaño de los emojis */
.jkhive-lang-hex[data-lang="en"] .flag-icon {
  font-size: 0.75rem; /* Tamaño más pequeño para que coincida visualmente con los emojis */
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ========================================
   NOTIFICATIONS SELECTOR (Hexagonal Menu)
   COPIADO EXACTAMENTE del selector de idiomas - misma estructura y funcionamiento
   ======================================== */
.jkhive-notif-selector {
  position: relative;
  width: 38px;
  height: 38px;
  z-index: 1;
  overflow: visible !important; /* CRITICAL: Allow children to overflow */
  align-self: center; /* Align vertically with other navbar hexagons */
  top: -2px; /* Compensate for 2px vertical offset */
}

.jkhive-notif-selector.open {
  z-index: 9999; /* Higher than everything to avoid being covered */
  /* DON'T change width/height - let container expand with overflow visible */
  overflow: visible !important; /* CRITICAL: Allow children to overflow */
}

.jkhive-notif-selector:hover {
  z-index: 10;
}

.jkhive-notif-hex-container {
  position: absolute;
  top: 0; /* Align with selector top */
  left: 0; /* Centered alignment */
  width: 100px; /* Much wider to accommodate zigzag */
  height: 38px;
  z-index: 9999;
  overflow: visible !important; /* Allow hexagons to overflow */
  pointer-events: none; /* Allow clicking through empty areas */
}

.jkhive-notif-selector.open .jkhive-notif-hex-container {
  /* Container expands but selector stays same size */
  height: 174px; /* Ajustado para el patrón honeycomb (136px último hex + 38px altura) */
  width: 100px; /* Wide enough for zigzag pattern */
  top: 0; /* Start from top of selector */
  pointer-events: all; /* Re-enable clicks when open */
}

.jkhive-notif-hex {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: calc(38px * 1.1547);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--jk-tech-medium) 0%, var(--jk-tech-dark) 100%);
  border: 1px solid var(--jk-primary-blue);
  box-shadow: var(--jk-shadow), inset 0 0 15px rgba(14, 165, 233, 0.1);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jk-metal-light);
  font-weight: 700;
  font-size: 0.6rem;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
  user-select: none;
  z-index: 1;
  text-align: center;
}

/* Active notification hexagon (main bell icon) - ALWAYS visible with metallic honey yellow */
.jkhive-notif-hex.jkhive-notif-main {
  background: linear-gradient(135deg, var(--jk-accent-honey-dark) 0%, var(--jk-accent-honey) 50%, var(--jk-accent-honey-light) 100%) !important;
  border-color: var(--jk-accent-honey-light) !important;
  color: var(--jk-tech-darker) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-neon), inset 0 0 25px rgba(212, 160, 23, 0.3) !important;
  text-shadow: 0 0 8px rgba(244, 196, 48, 0.8) !important;
  z-index: 200 !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: all !important;
  display: flex !important;
  visibility: visible !important;
  font-size: 1.02rem;
}

/* User menu icon - amarillo miel metálico por defecto, cyan cuando está activo */
#userMenuToggle {
  background: linear-gradient(135deg, var(--jk-accent-honey-dark) 0%, var(--jk-accent-honey) 50%, var(--jk-accent-honey-light) 100%) !important;
  border-color: var(--jk-accent-honey-light) !important;
  color: var(--jk-tech-darker) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-neon), inset 0 0 25px rgba(212, 160, 23, 0.3) !important;
  text-shadow: 0 0 8px rgba(244, 196, 48, 0.8) !important;
}

/* User menu icon - cyan cuando el dropdown está activo */
.jkhive-user-menu-wrapper:has(#userMenuDropdown.active) #userMenuToggle,
.jkhive-user-menu-wrapper.active #userMenuToggle {
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* Inactive notification options - hidden by default */
.jkhive-notif-hex:not(.jkhive-notif-main) {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  visibility: hidden;
}

/* When selector is open, keep main hexagon visible with cyan background */
.jkhive-notif-selector.open .jkhive-notif-hex.jkhive-notif-main {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: all !important;
  visibility: visible !important;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* When selector is open, show all options */
.jkhive-notif-selector.open .jkhive-notif-hex:not(.jkhive-notif-main) {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: all !important;
  display: flex !important;
  z-index: 10000 !important; /* Igual que el selector de idiomas */
  visibility: visible !important;
  position: absolute !important; /* Asegurar posicionamiento */
}

/* Honeycomb pattern - all hexagons start stacked at top */
.jkhive-notif-hex[data-notif-type="messages"],
.jkhive-notif-hex[data-notif-type="purchases"],
.jkhive-notif-hex[data-notif-type="donations"],
.jkhive-notif-hex[data-notif-type="users"] {
  top: 0;
  left: 0; /* Centered in container */
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* When selector is open, arrange in honeycomb zigzag pattern - EMPEZAR DESFASADO DESDE EL PRINCIPIO */
/* Todos los hexágonos tienen fondo cyan cuando el menú está abierto */
.jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="messages"]:not(.jkhive-notif-main) {
  top: 34px; /* Desfasado desde el principio (igual que el selector de idiomas) */
  left: 20px; /* Desfasado a la derecha desde el principio */
  transition-delay: 0s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

.jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="purchases"]:not(.jkhive-notif-main) {
  top: 68px; /* Segundo nivel */
  left: 0; /* Centrado */
  transition-delay: 0.1s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

.jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="donations"]:not(.jkhive-notif-main) {
  top: 102px; /* Tercer nivel */
  left: 20px; /* Desfasado a la derecha */
  transition-delay: 0.2s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

.jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="users"]:not(.jkhive-notif-main) {
  top: 136px; /* Cuarto nivel */
  left: 0; /* Centrado */
  transition-delay: 0.3s;
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-light) 100%) !important;
  border-color: var(--jk-primary-blue-light) !important;
  color: var(--jk-white) !important;
  box-shadow: var(--jk-shadow), var(--jk-glow-blue), inset 0 0 30px rgba(14, 165, 233, 0.3) !important;
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.8) !important;
}

/* Hover effects */
.jkhive-notif-hex:hover {
  transform: scale(1.05);
  border-color: var(--jk-primary-blue-light);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue);
  filter: brightness(1.3);
  z-index: 300 !important;
}

.jkhive-notif-hex.jkhive-notif-main:hover {
  transform: scale(1.05);
  border-color: var(--jk-accent-honey-light);
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-neon);
}

/* Icons inside hexagons */
.jkhive-notif-hex svg {
  width: 20px;
  height: 20px;
  color: var(--jk-metal-light);
  display: block;
}

.jkhive-notif-hex.jkhive-notif-main i {
  font-size: 1.02rem;
  display: block;
}

/* Badge for notification counts - HEXAGONAL - TAMAÑO PEQUEÑO - FUERA del clip-path del hexágono */
.jkhive-notif-badge,
.jkhive-notif-badge-main,
.notif-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red !important;
  color: white !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important; /* Forma hexagonal */
  border-radius: 0 !important; /* Eliminar border-radius circular */
  width: 14px; /* Tamaño pequeño */
  height: calc(14px * 1.1547) !important; /* Altura proporcional hexagonal */
  min-width: 14px;
  font-size: 8px; /* Texto más pequeño */
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 900 !important; /* Negrita extra gruesa para mejor visibilidad */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Fuente más gruesa */
  z-index: 100000 !important; /* MUY ALTO para estar por encima de TODO, incluyendo otros elementos del navbar */
  border: none !important; /* Sin bordes para badges hexagonales */
  box-shadow: none !important;
  pointer-events: none;
  letter-spacing: 0.02em; /* Ligero espaciado para mejor legibilidad */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Sombra de texto para mejor contraste */
}

/* Ocultar badges de los hexágonos del menú cuando el selector está cerrado */
.jkhive-notif-selector:not(.open) .jkhive-notif-badge[data-notif-type] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Badge principal (campanita) - posicionado relativo al hexágono principal */
/* El hexágono principal está en left: 0, width: 38px, así que el badge debe estar en left: 30px (38px - 8px) */
.jkhive-notif-badge-main {
  top: -5px; /* -8px + 3px hacia abajo = -5px */
  left: 27px; /* 30px - 3px hacia la izquierda = 27px */
  right: auto;
  z-index: 100001 !important; /* Más alto que el menú abierto (z-index: 10000) */
}

/* Badges de los hexágonos del menú - posicionados según su hexágono correspondiente */
/* Los badges están posicionados relativo al container, calculando desde left del hexágono + width del hexágono - 8px */
.jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="messages"] {
  top: 32px; /* 29px + 3px hacia abajo = 32px */
  left: 42px; /* 47px - 5px hacia la izquierda = 42px */
  right: auto;
  z-index: 100001 !important; /* Más alto que el menú abierto */
  display: flex !important; /* Mostrar cuando el menú está abierto */
  visibility: visible !important;
  opacity: 1 !important;
}

.jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="purchases"] {
  top: 66px; /* 63px + 3px hacia abajo = 66px */
  left: 22px; /* 27px - 5px hacia la izquierda = 22px */
  right: auto;
  z-index: 100001 !important; /* Más alto que el menú abierto */
  display: flex !important; /* Mostrar cuando el menú está abierto */
  visibility: visible !important;
  opacity: 1 !important;
}

.jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="donations"] {
  top: 100px; /* 97px + 3px hacia abajo = 100px */
  left: 42px; /* 47px - 5px hacia la izquierda = 42px */
  right: auto;
  z-index: 100001 !important; /* Más alto que el menú abierto */
  display: flex !important; /* Mostrar cuando el menú está abierto */
  visibility: visible !important;
  opacity: 1 !important;
}

.jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="users"] {
  top: 134px; /* 131px + 3px hacia abajo = 134px */
  left: 22px; /* 27px - 5px hacia la izquierda = 22px */
  right: auto;
  z-index: 100001 !important; /* Más alto que el menú abierto */
  display: flex !important; /* Mostrar cuando el menú está abierto */
  visibility: visible !important;
  opacity: 1 !important;
}

/* Asegurar que los badges de notificaciones sean hexagonales - TAMAÑO PEQUEÑO - reglas adicionales con mayor especificidad */
.jkhive-navbar .jkhive-notif-badge,
.jkhive-navbar .jkhive-notif-badge-main,
.jkhive-navbar .notif-count-badge,
.jkhive-navbar .jkhive-notification-badge,
.jkhive-notif-selector .jkhive-notif-badge,
.jkhive-notif-selector .jkhive-notif-badge-main,
.jkhive-notif-selector .notif-count-badge {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
  border-radius: 0 !important;
}

.jkhive-navbar .jkhive-notif-badge,
.jkhive-navbar .jkhive-notif-badge-main,
.jkhive-navbar .notif-count-badge,
.jkhive-notif-selector .jkhive-notif-badge,
.jkhive-notif-selector .jkhive-notif-badge-main,
.jkhive-notif-selector .notif-count-badge {
  width: 14px !important; /* Tamaño extra pequeño */
  height: calc(14px * 1.1547) !important;
  min-width: 14px !important;
  font-size: 8px !important;
  font-weight: 900 !important; /* Negrita extra gruesa */
  border: none !important; /* Sin bordes para badges hexagonales */
  box-shadow: none !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.jkhive-navbar .jkhive-notification-badge {
  width: 16px !important; /* Tamaño pequeño */
  height: calc(16px * 1.1547) !important;
  min-width: 16px !important;
  font-size: 0.55rem !important;
  font-weight: 900 !important; /* Negrita extra gruesa */
  letter-spacing: 0.02em !important;
}

/* Placeholder styles for future features */
.jkhive-navbar-placeholder {
  opacity: 0.3;
  pointer-events: none;
}

/* Mobile adjustments for navbar and language selector */
@media (max-width: 768px) {
  .jkhive-navbar {
    left: 101px; /* Reducido 5% desde 106px (106 * 0.95 = 100.7 ≈ 101) */
    height: 60px;
    padding: 0 var(--jk-spacing-md);
  }
  
  .jkhive-navbar-right {
    gap: 1px;
  }
  
  .jkhive-navbar-title {
    font-size: 1.2rem;
  }
  
  .jkhive-navbar-hex-item {
    width: 32px;
    height: calc(32px * 1.1547);
    font-size: 0.85rem;
  }
  
  /* SELECTOR DE IDIOMAS MOBILE: NO añadir reglas aquí.
     Fuente única: jkhive-navbar.css (sección SELLADA). */
  
  /* Reducir selector de notificaciones a 32px (igual que otros hexágonos) */
  .jkhive-notif-selector {
    width: 32px !important;
    height: 32px !important;
  }
  
  .jkhive-notif-hex-container {
    width: 85px !important; /* Reducido proporcionalmente desde 100px */
    height: 32px !important; /* Reducido proporcionalmente desde 38px */
  }
  
  .jkhive-notif-selector.open .jkhive-notif-hex-container {
    height: 147px !important; /* Reducido proporcionalmente desde 174px (174 * 32/38 ≈ 147) */
    width: 85px !important;
  }
  
  /* Reducir hexágonos de notificaciones a 32px */
  .jkhive-notif-hex {
    width: 32px !important;
    height: calc(32px * 1.1547) !important;
  }
  
  /* Ajustar tamaño de iconos dentro de hexágonos de notificaciones */
  .jkhive-notif-hex svg {
    width: 17px !important; /* Reducido desde 20px */
    height: 17px !important;
  }
  
  .jkhive-notif-hex.jkhive-notif-main i {
    font-size: 0.86rem !important; /* Reducido desde 1.02rem */
  }
  
  /* Ajustar posiciones del patrón honeycomb para tamaño reducido */
  .jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="messages"]:not(.jkhive-notif-main) {
    top: 29px !important; /* Reducido desde 34px (34 * 32/38 ≈ 29) */
    left: 17px !important; /* Reducido desde 20px (20 * 32/38 ≈ 17) */
  }
  
  .jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="purchases"]:not(.jkhive-notif-main) {
    top: 57px !important; /* Reducido desde 68px (68 * 32/38 ≈ 57) */
    left: 0 !important;
  }
  
  .jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="donations"]:not(.jkhive-notif-main) {
    top: 86px !important; /* Reducido desde 102px (102 * 32/38 ≈ 86) */
    left: 17px !important; /* Reducido desde 20px */
  }
  
  .jkhive-notif-selector.open .jkhive-notif-hex[data-notif-type="users"]:not(.jkhive-notif-main) {
    top: 114px !important; /* Reducido desde 136px (136 * 32/38 ≈ 114) */
    left: 0 !important;
  }
  
  /* Reducir badges de notificaciones */
  .jkhive-notif-badge,
  .jkhive-notif-badge-main,
  .notif-count-badge {
    width: 12px !important; /* Reducido desde 14px */
    height: calc(12px * 1.1547) !important;
    min-width: 12px !important;
    font-size: 7px !important; /* Reducido desde 8px */
    top: -7px !important; /* Ajustado proporcionalmente */
    right: -7px !important;
  }
  
  /* Badge principal (campanita) - ajustado para tamaño 32px */
  /* Hexágono principal está en left: 0, width: 32px, badge en esquina superior derecha */
  .jkhive-notif-badge-main {
    top: -4px !important; /* Ajustado desde -5px */
    left: 23px !important; /* 32px (width) - 6px (offset) - 3px (ajuste) = 23px */
    right: auto !important;
  }
  
  /* Badges de los hexágonos del menú cuando está abierto - ajustados para tamaño 32px */
  /* messages: hexágono en top: 29px, left: 17px, width: 32px */
  .jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="messages"] {
    top: 26px !important; /* 29px (top del hex) - 3px (offset hacia arriba) = 26px */
    left: 43px !important; /* 17px (left del hex) + 32px (width) - 6px (offset) = 43px */
    right: auto !important;
  }
  
  /* purchases: hexágono en top: 57px, left: 0, width: 32px */
  .jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="purchases"] {
    top: 54px !important; /* 57px (top del hex) - 3px (offset hacia arriba) = 54px */
    left: 26px !important; /* 0px (left del hex) + 32px (width) - 6px (offset) = 26px */
    right: auto !important;
  }
  
  /* donations: hexágono en top: 86px, left: 17px, width: 32px */
  .jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="donations"] {
    top: 83px !important; /* 86px (top del hex) - 3px (offset hacia arriba) = 83px */
    left: 43px !important; /* 17px (left del hex) + 32px (width) - 6px (offset) = 43px */
    right: auto !important;
  }
  
  /* users: hexágono en top: 114px, left: 0, width: 32px */
  .jkhive-notif-selector.open .jkhive-notif-badge[data-notif-type="users"] {
    top: 111px !important; /* 114px (top del hex) - 3px (offset hacia arriba) = 111px */
    left: 26px !important; /* 0px (left del hex) + 32px (width) - 6px (offset) = 26px */
    right: auto !important;
  }
  
  .jkhive-main-content {
    margin-top: 60px;
  }
  
  .jkhive-navbar-breadcrumb {
    display: none;
  }
}

/* ========================================
   GALLERY HEXAGON ACTION BUTTONS
   ======================================== */

.jkhive-hex-gallery-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  position: relative;
  z-index: 5;
}

/* ========================================
   LINKEDIN PROFILE HEXAGON - CUSTOM STYLING
   ======================================== */
.jkhive-hex-gallery-centered.jkhive-hex-gallery-big {
  grid-template-columns: 350px !important;
  justify-content: center !important;
}

/* LinkedIn Profile Section Spacing */
#linkedin-profile {
  margin-top: 20px; /* 20px desde hero section */
  margin-bottom: 20px; /* 20px hasta siguiente sección */
  padding: 0;
}

#linkedin-profile .jkhive-hex-gallery {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 auto;
}

/* Profile Photo in Hexagon */
.jkhive-hex-gallery-icon.jkhive-profile-photo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  color: transparent !important;
  filter: none !important;
  padding: 0 !important;
  margin-bottom: 0.75rem;
  width: auto !important;
  height: auto !important;
  min-width: 105px !important; /* Círculo: 81px foto + 24px borde = 105px (20% más que 87px) */
  min-height: 105px !important;
  overflow: visible !important;
  max-width: none !important;
  max-height: none !important;
}

/* Hover effect for LinkedIn Profile Hexagon - EXACTAMENTE igual que carousel (AMARILLO/HONEY) */
#linkedin-profile .jkhive-hex-gallery-item {
  transition: transform 0.3s ease, z-index 0s !important;
  position: relative;
}

#linkedin-profile .jkhive-hex-gallery-item:hover {
  z-index: 10 !important;
}

/* Estado NORMAL: Hexágono grande OSCURO (mantener fondo oscuro por defecto) */
#linkedin-profile .jkhive-hex-gallery-hex.hex-border-yellow {
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.95) 100%) !important; /* FONDO OSCURO por defecto */
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3), 
              inset 0 0 40px rgba(14, 165, 233, 0.15) !important;
}

/* Ocultar el ::before del hexágono de galería para el perfil */
#linkedin-profile .jkhive-hex-gallery-hex.hex-border-yellow::before {
  display: none !important;
}

/* NO mostrar ::after amarillo por defecto - solo en hover */
#linkedin-profile .jkhive-hex-gallery-hex.hex-border-yellow::after {
  display: none !important; /* OCULTO por defecto */
}

/* HOVER: Cambiar FONDO del hexágono GRANDE a AMARILLO - EXACTAMENTE como carousel */
/* COPIAR EXACTAMENTE el estilo del carousel sin modificaciones */
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-hex-gallery-hex.hex-border-yellow {
  background: var(--jk-accent-honey-light) !important; /* CAMBIAR A AMARILLO */
  transform: scale(1.025) !important; /* Mitad del crecimiento (1.025 en lugar de 1.05) */
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(244, 196, 48, 0.8) !important; /* Glow amarillo */
  position: relative !important;
  z-index: 5 !important;
}

/* HOVER: Crear hexágono pequeño OSCURO dentro cuando el grande se vuelve amarillo - igual que carousel */
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-hex-gallery-hex.hex-border-yellow::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1.025) !important;
  width: calc(350px - 6px) !important;
  height: calc((350px - 6px) * 1.1547) !important;
  background: var(--jk-tech-dark) !important; /* OSCURO en hover - igual que carousel */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
  border: none !important;
  transition: background 0.3s ease, transform 0.3s ease !important;
}

/* Asegurar que el contenido esté por encima del ::after (igual que carousel) */
#linkedin-profile .jkhive-hex-gallery-hex.hex-border-yellow > * {
  position: relative !important;
  z-index: 2 !important; /* Por encima del hexágono pequeño (::after con z-index: 1) */
}

/* HOVER: Cambiar colores de texto para contraste - igual que carousel */
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-hex-gallery-title {
  color: var(--jk-primary-blue-light) !important; /* Celeste en hover - igual que carousel */
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6) !important;
}

#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-hex-gallery-subtitle {
  color: var(--jk-metal-light) !important; /* Blanco en hover - igual que carousel */
  opacity: 1 !important;
}

/* HOVER: Cambiar color de la foto/icono también si es necesario */
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-profile-photo img {
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.8)) brightness(1.1) !important;
}

/* HOVER: Cambiar action buttons a celeste para contraste - igual que las letras */
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-actionbutton-small .jkhive-hex {
  background: var(--jk-primary-blue-light) !important; /* CAMBIAR A CELESTE en hover */
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(56, 189, 248, 0.8) !important; /* Glow celeste */
}

#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-actionbutton-small .jkhive-hex::after {
  background: var(--jk-tech-dark) !important; /* Mantener oscuro */
  transform: translate(-50%, -50%) scale(1.05) !important;
}

#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-actionbutton-small .jkhive-hex-icon {
  color: var(--jk-metal-light) !important; /* Cambiar icono a blanco para contraste */
}

/* ========================================
   HOVER EFFECTS PARA GALLERY DE EXPERIENCIA LABORAL
   Aplicar los mismos cambios de color que el hexágono del perfil
   ======================================== */

/* HOVER: Cambiar colores de texto para contraste en todos los items de experiencia */
/* Excluir #linkedin-profile y #ventajas que tienen sus propios estilos */
.jkhive-hex-gallery-item:hover .jkhive-hex-gallery-title {
  color: var(--jk-primary-blue-light) !important; /* Celeste en hover - igual que perfil */
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6) !important;
}

.jkhive-hex-gallery-item:hover .jkhive-hex-gallery-subtitle {
  color: var(--jk-metal-light) !important; /* Blanco en hover - mantener blanco */
  opacity: 1 !important;
}

/* HOVER: Mantener iconos blancos (NO cambiar de color) */
.jkhive-hex-gallery-item:hover .jkhive-hex-gallery-icon {
  color: var(--jk-metal-light) !important; /* Mantener blanco - NO cambiar */
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) brightness(1.1) !important;
}

.jkhive-hex-gallery-item:hover .jkhive-hex-gallery-icon img {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)) brightness(1.2);
}

/* HOVER: Cambiar action buttons a celeste para contraste en gallery de experiencia */
.jkhive-hex-gallery-item:hover .jkhive-actionbutton-small .jkhive-hex {
  background: var(--jk-primary-blue-light) !important; /* CAMBIAR A CELESTE en hover */
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(56, 189, 248, 0.8) !important; /* Glow celeste */
}

.jkhive-hex-gallery-item:hover .jkhive-actionbutton-small .jkhive-hex::after {
  background: var(--jk-tech-dark) !important; /* Mantener oscuro */
  transform: translate(-50%, -50%) scale(1.05) !important;
}

.jkhive-hex-gallery-item:hover .jkhive-actionbutton-small .jkhive-hex-icon {
  color: var(--jk-metal-light) !important; /* Cambiar icono a blanco para contraste */
}

.jkhive-hex-gallery-icon.jkhive-profile-photo img {
  width: 81px !important; /* FOTO: 81px - NO CAMBIAR */
  height: 81px !important; /* FOTO: 81px - NO CAMBIAR */
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30% !important; /* Ajustar posición para mostrar más de la cara */
  border: 12px solid var(--jk-accent-cyan) !important; /* BORDE GRUESO: 81px foto + 24px borde = 105px círculo (20% más que 87px) */
  display: block !important;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.8)) !important;
  position: relative;
  z-index: 3;
  transform: translateY(5px);
  box-sizing: border-box !important;
}

.jkhive-btn-hex-mini {
  width: 40px;
  height: 46px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 2px solid var(--jk-accent-cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
  backdrop-filter: blur(5px);
  text-decoration: none;
}

a.jkhive-btn-hex-mini {
  text-decoration: none;
}

.jkhive-btn-hex-mini .emoji-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.5));
  text-decoration: none;
}

.jkhive-btn-hex-mini:hover:not(:disabled) {
  transform: scale(1.1);
  border-color: var(--jk-accent-honey);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.jkhive-btn-hex-mini:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* ========================================
   INFO BUTTON - SMALL HEXAGON WITH TOOLTIP
   ======================================== */

.jkhive-btn-hex-info {
  position: relative;
  width: 36px; /* Slightly larger to accommodate border */
  height: calc(36px * 1.1547);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--jk-metal-light);
  font-size: 1rem;
  font-weight: 700;
  z-index: 5;
  /* Use box-shadow to create hexagon border effect */
  filter: drop-shadow(0 0 0 2px var(--jk-primary-blue)) 
          drop-shadow(0 4px 15px rgba(14, 165, 233, 0.2));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
  backdrop-filter: blur(5px);
}

.jkhive-btn-hex-info:hover {
  transform: scale(1.15);
  color: var(--jk-accent-honey);
  filter: drop-shadow(0 0 0 2px var(--jk-accent-honey)) 
          drop-shadow(0 6px 25px rgba(212, 160, 23, 0.5));
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.2) 0%, rgba(244, 196, 48, 0.2) 100%);
}

/* Tooltip - appears on hover */
.jkhive-btn-hex-info::before {
  content: attr(data-tooltip);
  position: fixed; /* Use fixed to escape clip-path context */
  bottom: auto;
  left: auto;
  transform: translate(-50%, -100%) scale(0);
  background: linear-gradient(135deg, var(--jk-tech-dark) 0%, var(--jk-tech-darker) 100%);
  color: var(--jk-metal-light);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--jk-primary-blue);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  clip-path: none;
  filter: none;
}

.jkhive-btn-hex-info:hover::before {
  transform: translate(-50%, calc(-100% - 10px)) scale(1);
  opacity: 1;
}

/* ========================================
   SECTION TITLES - Títulos de Sección
   ======================================== */

.jkhive-section-title {
  color: var(--jk-primary-blue);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

/* Línea decorativa inferior (siempre visible) */
.jkhive-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: var(--jk-accent-honey);
  border-radius: 2px;
}

/* Alineación */
.jkhive-section-title.left {
  text-align: left;
  display: block;
  width: auto;
}

.jkhive-section-title.left::after {
  left: 0;
  transform: none;
}

.jkhive-section-title.right {
  text-align: right;
  display: block;
  width: auto;
}

.jkhive-section-title.right::after {
  left: auto;
  right: 0;
  transform: none;
}

/* Iconos dentro de títulos */
.jkhive-section-title i {
  color: var(--jk-accent-honey);
  margin-right: 0.75rem;
}

/* Tamaños alternativos */
.jkhive-section-title.lg {
  font-size: 3rem;
}

.jkhive-section-title.sm {
  font-size: 1.8rem;
}

/* Sin línea decorativa */
.jkhive-section-title.no-underline::after {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .jkhive-section-title {
    font-size: 1.8rem;
  }
  
  .jkhive-section-title.lg {
    font-size: 2.2rem;
  }
  
  .jkhive-section-title.sm {
    font-size: 1.4rem;
  }
  
  .jkhive-section-title::after {
    width: 80%;
  }
}

/* ========================================
   ACTION BUTTONS REUTILIZABLES
   Estructura: jkhive-actionbutton-{size} > a > jkhive-hex > contenido
   Funciona EXACTAMENTE igual que jkhive-nav-item del menú lateral
   
   USO:
   <div class="jkhive-actionbutton-big">
     <a href="url.html">
       <div class="jkhive-hex jkhive-hex-honey"> <!-- jkhive-hex-honey para fondo amarillo inicial -->
         <div class="jkhive-hex-content jkhive-hex-content-editorial">
           <i class="jkhive-hex-icon fas fa-icono"></i>
           <span class="jkhive-hex-text">TEXTO</span>
         </div>
       </div>
     </a>
   </div>
   
   TAMAÑOS DISPONIBLES:
   - jkhive-actionbutton-small (32.58px)
   - jkhive-actionbutton-med (65.17px)
   - jkhive-actionbutton-big (97.75px)
   
   VARIANTES:
   - Sin clase adicional: fondo gris tech (igual que menú lateral)
   - Con clase jkhive-hex-honey: fondo amarillo inicial (para botones de acción/contacto)
   
   HOVER: Mantiene el color amarillo, anima scale (1.05) y agrega glow amarillo
   ======================================== */

/* Contenedor del action button - igual que jkhive-nav-item */
.jkhive-actionbutton-small,
.jkhive-actionbutton-med,
.jkhive-actionbutton-big {
  position: relative;
  margin: 0;
  z-index: 1;
  display: block;
  transform: none !important; /* Sin transforms del honeycomb */
  overflow: visible !important; /* IMPORTANTE: permite que el borde ::after sea visible */
  clip-path: none !important; /* Sin clip-path en el contenedor */
}

.jkhive-actionbutton-small:hover,
.jkhive-actionbutton-med:hover,
.jkhive-actionbutton-big:hover {
  z-index: 10;
}

/* Link dentro del action button */
.jkhive-actionbutton-small > a,
.jkhive-actionbutton-med > a,
.jkhive-actionbutton-big > a {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible !important; /* IMPORTANTE: permite que el borde ::after sea visible */
  position: relative;
  z-index: 10; /* Asegurar que el link esté por encima de otros elementos */
  pointer-events: all !important; /* Asegurar que el link sea clickeable */
  cursor: pointer;
}

/* Mismo contrato que > a: enviar formulario con <button type="submit"> (hex + hover/animación) */
.jkhive-actionbutton-small > button,
.jkhive-actionbutton-med > button,
.jkhive-actionbutton-big > button {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible !important;
  position: relative;
  z-index: 10;
  pointer-events: all !important;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.jkhive-actionbutton-small > button:focus-visible,
.jkhive-actionbutton-med > button:focus-visible,
.jkhive-actionbutton-big > button:focus-visible {
  outline: 2px solid var(--jk-accent-honey, #d4a017);
  outline-offset: 3px;
}

/* Hexágono GRANDE (borde) - TAMAÑO SMALL */
.jkhive-actionbutton-small .jkhive-hex {
  width: 32.58px; /* 97.75px / 3 */
  height: calc(32.58px * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* MISMO COLOR QUE EL BORDE DEL LOGO (--jk-accent-honey-light: #f4c430) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Permitir que los clicks pasen al link padre */
}

/* Hexágono PEQUEÑO (contenido) - TAMAÑO SMALL - 2px más pequeño, SIEMPRE VISIBLE Y CENTRADO */
.jkhive-actionbutton-small .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(32.58px - 4px); /* 2px menos en cada lado = 4px total = borde de 2px */
  height: calc((32.58px - 4px) * 1.1547);
  background: var(--jk-tech-dark) !important; /* Color del fondo de la sección */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-actionbutton-small .jkhive-hex::before {
  display: none !important;
}

/* Hexágono GRANDE (borde) - TAMAÑO MEDIUM */
.jkhive-actionbutton-med .jkhive-hex {
  width: 65.17px; /* 97.75px * 2/3 */
  height: calc(65.17px * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* MISMO COLOR QUE EL BORDE DEL LOGO (--jk-accent-honey-light: #f4c430) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Permitir que los clicks pasen al link padre */
}

/* Color azul para action buttons con clase jkhive-hex-primary */
.jkhive-actionbutton-small .jkhive-hex-primary,
.jkhive-actionbutton-med .jkhive-hex-primary,
.jkhive-actionbutton-big .jkhive-hex-primary {
  background: linear-gradient(135deg, var(--jk-primary-blue-dark) 0%, var(--jk-primary-blue) 50%, var(--jk-primary-blue-dark) 100%) !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.6) !important;
}

/* Botón de enviar mensaje - mismo color que text-primary (azul site) */
.jkhive-actionbutton-med .jkhive-hex-submit {
  background: var(--jk-primary-blue) !important; /* Mismo color que text-primary */
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.6) !important;
}

/* Hover para botón de enviar mensaje - cambia a amarillo miel metálico */
.jkhive-actionbutton-med:hover .jkhive-hex-submit {
  background: linear-gradient(135deg, var(--jk-accent-honey-dark) 0%, var(--jk-accent-honey) 50%, var(--jk-accent-honey-light) 100%) !important;
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(244, 196, 48, 0.9), 0 0 60px rgba(212, 160, 23, 0.6) !important; /* Glow amarillo miel metálico intenso */
  transform: scale(1.05);
  position: relative;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hexágono PEQUEÑO (contenido) - TAMAÑO MEDIUM - 2px más pequeño, SIEMPRE VISIBLE Y CENTRADO */
.jkhive-actionbutton-med .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(65.17px - 4px); /* 2px menos en cada lado = 4px total = borde de 2px */
  height: calc((65.17px - 4px) * 1.1547);
  background: var(--jk-tech-dark) !important; /* Color del fondo de la sección */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-actionbutton-med .jkhive-hex::before {
  display: none !important;
}

/* Hexágono GRANDE (borde) - TAMAÑO BIG */
.jkhive-actionbutton-big .jkhive-hex {
  width: 97.75px; /* Tamaño grande (15% más que 85px del menú) */
  height: calc(97.75px * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* MISMO COLOR QUE EL BORDE DEL LOGO (--jk-accent-honey-light: #f4c430) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Permitir que los clicks pasen al link padre */
}

/* Hexágono PEQUEÑO (contenido) - TAMAÑO BIG - 3px más pequeño, SIEMPRE VISIBLE Y CENTRADO */
.jkhive-actionbutton-big .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(97.75px - 6px); /* 3px menos en cada lado = 6px total = borde de 3px */
  height: calc((97.75px - 6px) * 1.1547);
  background: var(--jk-tech-dark) !important; /* Color del fondo de la sección */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-actionbutton-big .jkhive-hex::before {
  display: none !important;
}

/* Variante CYAN para action buttons - color cyan inicial, hover cambia a amarillo */
.jkhive-hex-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, var(--jk-primary-blue-light) 50%, #06b6d4 100%) !important;
}

.jkhive-actionbutton-small .jkhive-hex-cyan,
.jkhive-actionbutton-med .jkhive-hex-cyan,
.jkhive-actionbutton-big .jkhive-hex-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, var(--jk-primary-blue-light) 50%, #06b6d4 100%) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6) !important;
}

/* Hover para action buttons CYAN - cambia a amarillo */
.jkhive-actionbutton-small:hover .jkhive-hex-cyan,
.jkhive-actionbutton-med:hover .jkhive-hex-cyan,
.jkhive-actionbutton-big:hover .jkhive-hex-cyan {
  background: var(--jk-accent-honey-light) !important; /* CAMBIAR A AMARILLO en hover */
  transform: scale(1.05);
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(244, 196, 48, 0.8) !important; /* Glow amarillo */
  position: relative;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Variante ROJA para action buttons - color rojo inicial, hover cambia a amarillo miel metálico */
.jkhive-hex-red {
  background: #dc2626 !important; /* Rojo */
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6) !important;
}

.jkhive-actionbutton-small .jkhive-hex-red,
.jkhive-actionbutton-med .jkhive-hex-red,
.jkhive-actionbutton-big .jkhive-hex-red {
  background: #dc2626 !important; /* Rojo */
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6) !important;
}

/* Hover para action buttons ROJOS - cambia a amarillo miel metálico */
.jkhive-actionbutton-small:hover .jkhive-hex-red,
.jkhive-actionbutton-med:hover .jkhive-hex-red,
.jkhive-actionbutton-big:hover .jkhive-hex-red {
  background: var(--jk-accent-honey-light) !important; /* CAMBIAR A AMARILLO miel metálico en hover */
  transform: scale(1.05);
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(244, 196, 48, 0.8) !important; /* Glow amarillo */
  position: relative;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Variante VERDE para action buttons - color verde inicial, hover cambia a azul */
.jkhive-hex-green {
  background: #10b981 !important; /* Verde */
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
}

.jkhive-actionbutton-small .jkhive-hex-green,
.jkhive-actionbutton-med .jkhive-hex-green,
.jkhive-actionbutton-big .jkhive-hex-green {
  background: #10b981 !important; /* Verde */
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
}

/* Hover para action buttons VERDES - cambia a azul */
.jkhive-actionbutton-small:hover .jkhive-hex-green,
.jkhive-actionbutton-med:hover .jkhive-hex-green,
.jkhive-actionbutton-big:hover .jkhive-hex-green {
  background: var(--jk-primary-blue-light) !important; /* CAMBIAR A AZUL en hover */
  transform: scale(1.05);
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(56, 189, 248, 0.8) !important; /* Glow azul */
  position: relative;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover para action buttons AMARILLOS (jkhive-hex-honey o sin clase) - cambia a cyan */
/* Estado normal (amarillo) → hover cambia a cyan */
/* EXCLUIR botones del modal de mensajes, bulk actions y vaciar papelera - tienen sus propios estilos específicos */
.jkhive-actionbutton-small:hover .jkhive-hex:not(.jkhive-hex-submit):not(.jkhive-hex-cyan):not(.jkhive-hex-red):not(.jkhive-hex-green),
.jkhive-actionbutton-med:hover .jkhive-hex:not(.jkhive-hex-submit):not(.jkhive-hex-cyan):not(.jkhive-hex-red):not(.jkhive-hex-green),
.jkhive-actionbutton-big:hover .jkhive-hex:not(.jkhive-hex-submit):not(.jkhive-hex-cyan):not(.jkhive-hex-red):not(.jkhive-hex-green) {
  background: var(--jk-primary-blue-light) !important; /* CAMBIAR A CELESTE en hover */
  transform: scale(1.05);
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(56, 189, 248, 0.8) !important; /* Glow celeste */
  position: relative;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* EXCLUIR EXPLÍCITAMENTE botones de bulk actions y vaciar papelera del estilo cyan - MÁXIMA ESPECIFICIDAD */
body .bulk-actions-toolbar .jkhive-actionbutton-small:hover .jkhive-hex,
body .bulk-actions-toolbar .jkhive-actionbutton-small:hover .jkhive-hex-honey,
body .bulk-actions-toolbar .jkhive-actionbutton-small a:hover .jkhive-hex,
body .bulk-actions-toolbar .jkhive-actionbutton-small a:hover .jkhive-hex-honey,
body .empty-trash-btn .jkhive-actionbutton-small:hover .jkhive-hex,
body .empty-trash-btn .jkhive-actionbutton-small:hover .jkhive-hex-honey,
body .empty-trash-btn-small .jkhive-actionbutton-small:hover .jkhive-hex,
body .empty-trash-btn-small .jkhive-actionbutton-small:hover .jkhive-hex-honey {
  background: inherit !important;
  border-color: inherit !important;
  box-shadow: inherit !important;
  filter: inherit !important;
  transform: inherit !important;
}

/* Cuando el hexágono padre tiene hover (action button está cyan), hover sobre action button → amarillo */
.jkhive-hex-gallery-item:hover .jkhive-actionbutton-small:hover .jkhive-hex,
.jkhive-hex-gallery-item:hover .jkhive-actionbutton-med:hover .jkhive-hex,
.jkhive-hex-gallery-item:hover .jkhive-actionbutton-big:hover .jkhive-hex,
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-actionbutton-small:hover .jkhive-hex {
  background: var(--jk-accent-honey-light) !important; /* CAMBIAR A AMARILLO cuando el padre tiene hover */
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(244, 196, 48, 0.8) !important; /* Glow amarillo */
}

/* El hexágono pequeño mantiene su posición centrada y color del fondo en hover */
.jkhive-actionbutton-small:hover .jkhive-hex::after,
.jkhive-actionbutton-med:hover .jkhive-hex::after,
.jkhive-actionbutton-big:hover .jkhive-hex::after {
  background: var(--jk-tech-dark) !important; /* Mantener color del fondo */
  transform: translate(-50%, -50%) scale(1.05); /* Mantener centrado y escalar con el grande */
  transition: background 0.3s ease, transform 0.3s ease !important;
}

/* Cambiar color del icono en hover del action button */
.jkhive-actionbutton-small:hover .jkhive-hex-icon,
.jkhive-actionbutton-med:hover .jkhive-hex-icon,
.jkhive-actionbutton-big:hover .jkhive-hex-icon {
  color: var(--jk-metal-light) !important; /* Icono blanco para contraste */
  transition: color 0.3s ease !important;
}

/* Cuando el padre tiene hover y haces hover sobre el action button, mantener icono blanco */
.jkhive-hex-gallery-item:hover .jkhive-actionbutton-small:hover .jkhive-hex-icon,
.jkhive-hex-gallery-item:hover .jkhive-actionbutton-med:hover .jkhive-hex-icon,
.jkhive-hex-gallery-item:hover .jkhive-actionbutton-big:hover .jkhive-hex-icon,
#linkedin-profile .jkhive-hex-gallery-item:hover .jkhive-actionbutton-small:hover .jkhive-hex-icon {
  color: var(--jk-metal-light) !important; /* Mantener icono blanco */
}

/* Contenido del action button - debe estar por encima del hexágono pequeño */
.jkhive-actionbutton-small .jkhive-hex-content,
.jkhive-actionbutton-med .jkhive-hex-content,
.jkhive-actionbutton-big .jkhive-hex-content {
  position: relative;
  z-index: 2; /* Por encima del hexágono pequeño (::after con z-index: 1) */
  display: flex;
  pointer-events: none; /* Permitir que los clicks pasen al link padre */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Permitir que los clicks pasen al link padre */
}

/* ========================================
   ITEM GALLERY REUTILIZABLES
   Estructura: jkhive-itemgallery-{size} > div > jkhive-hex > contenido
   Misma técnica que action button pero con colores INVERTIDOS:
   - Action button: grande AMARILLO, pequeño OSCURO
   - Item gallery: grande AZUL, pequeño AMARILLO
   
   USO:
   <div class="jkhive-itemgallery-small">
     <div class="jkhive-hex">
       <div class="jkhive-hex-content jkhive-hex-content-editorial">
         <i class="jkhive-hex-gallery-icon fas fa-icono"></i>
         <h3 class="jkhive-hex-gallery-title">TÍTULO</h3>
         <p class="jkhive-hex-gallery-subtitle">Subtítulo</p>
       </div>
     </div>
   </div>
   
   TAMAÑOS DISPONIBLES:
   - jkhive-itemgallery-small (130px ancho)
   - jkhive-itemgallery-med (260px ancho - 2x small)
   - jkhive-itemgallery-big (390px ancho - 3x small)
   
   HOVER: Grande cambia de azul a amarillo, anima scale (1.05) y agrega glow
   ======================================== */

/* Contenedor del item gallery - igual que action button */
.jkhive-itemgallery-small,
.jkhive-itemgallery-med,
.jkhive-itemgallery-big {
  position: relative;
  z-index: 1;
  display: block;
  transform: none !important; /* Sin transforms del honeycomb */
  overflow: visible !important; /* IMPORTANTE: permite que el borde ::after sea visible */
  clip-path: none !important; /* Sin clip-path en el contenedor */
}

/* Márgenes específicos para cada tamaño - calculados desde small (1px cada lado) */
.jkhive-itemgallery-small {
  margin: 0;
}

/* Medium: 2x tamaño de small (260px vs 130px), separación proporcional */
.jkhive-itemgallery-med {
  width: 260px;
  height: calc(260px * 1.1547);
  margin: -75px 0; /* margin-top negativo proporcional, sin margin horizontal (el gap del grid se encarga) */
  transition: transform 0.3s ease, z-index 0s;
}

/* Big: 3x tamaño de small (390px vs 130px), separación proporcional */
.jkhive-itemgallery-big {
  margin: 0; /* El gap del flex container se encarga del espaciado */
}

/* Compatibilidad con grid de galería small - mantener posicionamiento */
.jkhive-hex-gallery-small .jkhive-itemgallery-small {
  width: 130px;
  height: 150px;
  margin: -38px 1px;
  transition: transform 0.3s ease, z-index 0s;
}

.jkhive-hex-gallery-small .jkhive-itemgallery-small:nth-child(15n+9),
.jkhive-hex-gallery-small .jkhive-itemgallery-small:nth-child(15n+10),
.jkhive-hex-gallery-small .jkhive-itemgallery-small:nth-child(15n+11),
.jkhive-hex-gallery-small .jkhive-itemgallery-small:nth-child(15n+12),
.jkhive-hex-gallery-small .jkhive-itemgallery-small:nth-child(15n+13),
.jkhive-hex-gallery-small .jkhive-itemgallery-small:nth-child(15n+14),
.jkhive-hex-gallery-small .jkhive-itemgallery-small:nth-child(15n+15) {
  margin-top: 0px;
  transform: translateX(66px);
}

/* Compatibilidad con grid de galería medium - mantener posicionamiento */
/* Cálculo: Small tiene margin: -38px 1px (1px cada lado = 2px total separación) */
/* Medium es 2x tamaño (260px vs 130px), separación proporcional */
/* Separación horizontal aumentada en 50px adicionales: 2px + 50px = 52px cada lado = 104px total entre hexágonos */
/* margin-top: altura_hexagono_medium * 0.25 = (260px * 1.1547) * 0.25 ≈ 75px (negativo) */


/* Compatibilidad con grid de galería big - mantener posicionamiento */
/* Cálculo: Big es 3x tamaño (390px vs 130px), separación proporcional */
/* Separación duplicada: 4px cada lado = 8px total entre hexágonos */
/* margin-top: altura_hexagono_big * 0.25 = (390px * 1.1547) * 0.25 ≈ 112px (negativo) */
.jkhive-hex-gallery-big .jkhive-itemgallery-big {
  width: 390px;
  height: calc(390px * 1.1547);
  margin: -112px 4px; /* margin-top negativo proporcional, 4px separación horizontal cada lado (8px total entre hexágonos) */
  transition: transform 0.3s ease, z-index 0s;
}


.jkhive-itemgallery-small:hover,
.jkhive-itemgallery-med:hover,
.jkhive-itemgallery-big:hover {
  z-index: 10;
}

/* Hexágono GRANDE (borde azul) - TAMAÑO SMALL - COLORES INVERTIDOS */
.jkhive-itemgallery-small .jkhive-hex {
  width: 130px;
  height: calc(130px * 1.1547);
  background: var(--jk-primary-blue-light) !important; /* AZUL (invertido del amarillo del action button) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hexágono PEQUEÑO (relleno amarillo) - TAMAÑO SMALL - 2px más pequeño, SIEMPRE VISIBLE Y CENTRADO */
.jkhive-itemgallery-small .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(130px - 4px); /* 2px menos en cada lado = 4px total = borde de 2px */
  height: calc((130px - 4px) * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* AMARILLO (invertido del oscuro del action button) */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-itemgallery-small .jkhive-hex::before {
  display: none !important;
}

/* Hexágono GRANDE (borde azul) - TAMAÑO MEDIUM */
.jkhive-itemgallery-med .jkhive-hex {
  width: 260px; /* 2x small */
  height: calc(260px * 1.1547);
  background: var(--jk-primary-blue-light) !important; /* AZUL (invertido del amarillo) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hexágono PEQUEÑO (relleno amarillo) - TAMAÑO MEDIUM */
.jkhive-itemgallery-med .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(260px - 4px); /* 2px menos en cada lado = 4px total = borde de 2px */
  height: calc((260px - 4px) * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* AMARILLO (invertido del oscuro) */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-itemgallery-med .jkhive-hex::before {
  display: none !important;
}

/* Hexágono GRANDE (borde azul) - TAMAÑO BIG */
.jkhive-itemgallery-big .jkhive-hex {
  width: 390px; /* 3x small */
  height: calc(390px * 1.1547);
  background: var(--jk-primary-blue-light) !important; /* AZUL (invertido del amarillo) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hexágono PEQUEÑO (relleno amarillo) - TAMAÑO BIG */
.jkhive-itemgallery-big .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(390px - 6px); /* 3px menos en cada lado = 6px total = borde de 3px */
  height: calc((390px - 6px) * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* AMARILLO (invertido del oscuro) */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-itemgallery-big .jkhive-hex::before {
  display: none !important;
}

/* Hover para item gallery - cambia el hexágono GRANDE de azul a amarillo */
.jkhive-itemgallery-small:hover .jkhive-hex,
.jkhive-itemgallery-med:hover .jkhive-hex,
.jkhive-itemgallery-big:hover .jkhive-hex {
  background: var(--jk-accent-honey-light) !important; /* CAMBIAR A AMARILLO (invertido del hover del action button) */
  transform: scale(1.05);
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(244, 196, 48, 0.8); /* Glow amarillo */
  position: relative;
  z-index: 5;
}

/* El hexágono pequeño mantiene su posición centrada y color amarillo en hover */
.jkhive-itemgallery-small:hover .jkhive-hex::after,
.jkhive-itemgallery-med:hover .jkhive-hex::after,
.jkhive-itemgallery-big:hover .jkhive-hex::after {
  background: var(--jk-tech-dark) !important; /* CAMBIAR A OSCURO EN HOVER (igual que action button) */
  transform: translate(-50%, -50%) scale(1.05); /* Mantener centrado y escalar con el grande */
}

/* Contenido del item gallery - debe estar por encima del hexágono pequeño */
.jkhive-itemgallery-small .jkhive-hex-content,
.jkhive-itemgallery-med .jkhive-hex-content,
.jkhive-itemgallery-big .jkhive-hex-content {
  position: relative;
  z-index: 2; /* Por encima del hexágono pequeño (::after con z-index: 1) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

/* Iconos - TODOS amarillos miel metálico en estado normal */
.jkhive-itemgallery-small .jkhive-hex-gallery-icon,
.jkhive-itemgallery-med .jkhive-hex-gallery-icon,
.jkhive-itemgallery-big .jkhive-hex-gallery-icon {
  color: var(--jk-accent-honey-light) !important; /* Amarillo miel metálico */
  filter: drop-shadow(0 0 10px rgba(244, 196, 48, 0.8));
  transition: color 0.3s ease, filter 0.3s ease;
}

/* Tamaño de iconos reducido 20% para jkhive-itemgallery-med */
.jkhive-itemgallery-med .jkhive-hex-gallery-icon {
  font-size: 2.292rem !important; /* 2.865rem * 0.8 = 2.292rem (reducción del 20%) */
}

/* Títulos - Azul oscuro en estado normal, celeste en hover */
.jkhive-itemgallery-small .jkhive-hex-gallery-title,
.jkhive-itemgallery-med .jkhive-hex-gallery-title,
.jkhive-itemgallery-big .jkhive-hex-gallery-title {
  color: var(--jk-primary-blue-dark) !important; /* Azul oscuro */
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.jkhive-itemgallery-small:hover .jkhive-hex-gallery-title,
.jkhive-itemgallery-med:hover .jkhive-hex-gallery-title,
.jkhive-itemgallery-big:hover .jkhive-hex-gallery-title {
  color: var(--jk-primary-blue-light) !important; /* Celeste en hover */
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

/* Subtítulos - Blanco en estado normal */
.jkhive-itemgallery-small .jkhive-hex-gallery-subtitle,
.jkhive-itemgallery-med .jkhive-hex-gallery-subtitle,
.jkhive-itemgallery-big .jkhive-hex-gallery-subtitle {
  color: var(--jk-metal-light) !important; /* Blanco */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* Iconos y texto - proporcionales al tamaño */
.jkhive-actionbutton-small .jkhive-hex-icon {
  font-size: 0.85rem; /* Proporcional a small */
  margin-bottom: 0.15rem;
  pointer-events: none; /* Permitir que los clicks pasen al link padre */
}

.jkhive-actionbutton-small .jkhive-hex-text {
  font-size: 0.35rem; /* Proporcional a small */
  line-height: 1;
}

.jkhive-actionbutton-med .jkhive-hex-icon {
  font-size: 1.275rem; /* Igual que menú lateral */
  margin-bottom: 0.25rem;
}

.jkhive-actionbutton-med .jkhive-hex-text {
  font-size: 0.5525rem; /* Igual que menú lateral */
  line-height: 1;
}

.jkhive-actionbutton-big .jkhive-hex-icon {
  font-size: 1.5rem; /* Proporcional a big */
  margin-bottom: 0.5rem;
}

.jkhive-actionbutton-big .jkhive-hex-text {
  font-size: 0.65rem; /* Proporcional a big */
  line-height: 1;
  font-weight: 700;
}


/* ========================================
   CARRUSEL ITEMS REUTILIZABLES
   Estructura: jkhive-carouselitem-{size} > a > jkhive-hex > contenido
   Misma técnica que action button e itemgallery pero con colores AZUL (más oscuro):
   - Action button: grande AMARILLO, pequeño OSCURO
   - Item gallery: grande AZUL CLARO, pequeño AMARILLO
   - Carousel item: grande AZUL, pequeño AMARILLO
   
   USO:
   <div class="jkhive-carouselitem-big">
     <a href="url.html">
       <div class="jkhive-hex">
         <div class="jkhive-hex-content jkhive-hex-content-editorial">
           <div class="service-icon"><i class="fas fa-icono"></i></div>
           <h3 class="service-title">TÍTULO</h3>
           <p class="service-description">Descripción</p>
         </div>
       </div>
     </a>
   </div>
   
   TAMAÑOS DISPONIBLES:
   - jkhive-carouselitem-small (260px ancho - más pequeño)
   - jkhive-carouselitem-med (390px ancho - tamaño original que funcionaba)
   - jkhive-carouselitem-big (520px ancho - más grande)
   
   HOVER: Grande cambia de azul a amarillo, anima scale (1.05) y agrega glow
   ======================================== */

/* Contenedor del carousel item - igual que action button e itemgallery */
.jkhive-carouselitem-small,
.jkhive-carouselitem-med,
.jkhive-carouselitem-big {
  position: relative;
  margin: 0;
  z-index: 1;
  display: block;
  transform: none !important; /* Sin transforms del honeycomb */
  overflow: visible !important; /* IMPORTANTE: permite que el borde ::after sea visible */
  clip-path: none !important; /* Sin clip-path en el contenedor */
  flex-shrink: 0; /* Para el carrusel */
}

/* Tamaños específicos para compatibilidad con carrusel */
.jkhive-carouselitem-small {
  width: 260px; /* 2/3 del med (260px) */
  height: calc(260px * 1.1547);
}

.jkhive-carouselitem-med {
  width: 390px; /* Tamaño original que funcionaba (MED) */
  height: calc(390px * 1.1547);
}

.jkhive-carouselitem-big {
  width: 520px; /* 4/3 del med (más grande que el original) */
  height: calc(520px * 1.1547);
}

.jkhive-carouselitem-small:hover,
.jkhive-carouselitem-med:hover,
.jkhive-carouselitem-big:hover {
  z-index: 10;
}

/* Link dentro del carousel item */
.jkhive-carouselitem-small > a,
.jkhive-carouselitem-med > a,
.jkhive-carouselitem-big > a {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible !important;
}

/* Hexágono GRANDE (borde azul oscuro/metálico) - TAMAÑO SMALL */
.jkhive-carouselitem-small .jkhive-hex {
  width: 260px; /* 2/3 del med */
  height: calc(260px * 1.1547);
  background: var(--jk-primary-blue-dark) !important; /* AZUL OSCURO/METÁLICO (más opaco) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hexágono PEQUEÑO (relleno amarillo) - TAMAÑO SMALL - 2px más pequeño, SIEMPRE VISIBLE Y CENTRADO */
.jkhive-carouselitem-small .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(260px - 4px); /* 2px menos en cada lado = 4px total = borde de 2px */
  height: calc((260px - 4px) * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* AMARILLO (mantiene coherencia) */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-carouselitem-small .jkhive-hex::before {
  display: none !important;
}

/* Hexágono GRANDE (borde azul oscuro/metálico) - TAMAÑO MEDIUM */
.jkhive-carouselitem-med .jkhive-hex {
  width: 390px; /* Tamaño original que funcionaba (MED) */
  height: calc(390px * 1.1547);
  background: var(--jk-primary-blue-dark) !important; /* AZUL OSCURO/METÁLICO (más opaco) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hexágono PEQUEÑO (relleno amarillo) - TAMAÑO MEDIUM */
.jkhive-carouselitem-med .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(390px - 6px); /* 3px menos en cada lado = 6px total = borde de 3px */
  height: calc((390px - 6px) * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* AMARILLO */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-carouselitem-med .jkhive-hex::before {
  display: none !important;
}

/* Hexágono GRANDE (borde azul oscuro/metálico) - TAMAÑO BIG */
.jkhive-carouselitem-big .jkhive-hex {
  width: 520px; /* 4/3 del med (más grande que el original) */
  height: calc(520px * 1.1547);
  background: var(--jk-primary-blue-dark) !important; /* AZUL OSCURO/METÁLICO (más opaco) */
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hexágono PEQUEÑO (relleno amarillo) - TAMAÑO BIG */
.jkhive-carouselitem-big .jkhive-hex::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(520px - 8px); /* 4px menos en cada lado = 8px total = borde de 4px */
  height: calc((520px - 8px) * 1.1547);
  background: var(--jk-accent-honey-light) !important; /* AMARILLO */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Ocultar ::before */
.jkhive-carouselitem-big .jkhive-hex::before {
  display: none !important;
}

/* Hover para carousel items - cambia el hexágono GRANDE de azul a amarillo (crecimiento reducido a la mitad) */
.jkhive-carouselitem-small:hover .jkhive-hex,
.jkhive-carouselitem-med:hover .jkhive-hex,
.jkhive-carouselitem-big:hover .jkhive-hex {
  background: var(--jk-accent-honey-light) !important; /* CAMBIAR A AMARILLO */
  transform: scale(1.025); /* Mitad del crecimiento (1.025 en lugar de 1.05) */
  box-shadow: var(--jk-shadow-lg), 0 0 30px rgba(244, 196, 48, 0.8); /* Glow amarillo */
  position: relative;
  z-index: 5;
}

/* El hexágono pequeño mantiene su posición centrada y cambia a oscuro en hover (crecimiento reducido a la mitad) */
.jkhive-carouselitem-small:hover .jkhive-hex::after,
.jkhive-carouselitem-med:hover .jkhive-hex::after,
.jkhive-carouselitem-big:hover .jkhive-hex::after {
  background: var(--jk-tech-dark) !important; /* CAMBIAR A OSCURO EN HOVER (igual que action button) */
  transform: translate(-50%, -50%) scale(1.025); /* Mantener centrado y escalar con el grande (mitad del crecimiento) */
}

/* Contenido del carousel item - debe estar por encima del hexágono pequeño */
.jkhive-carouselitem-small .jkhive-hex-content,
.jkhive-carouselitem-med .jkhive-hex-content,
.jkhive-carouselitem-big .jkhive-hex-content {
  position: relative;
  z-index: 2; /* Por encima del hexágono pequeño (::after con z-index: 1) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

/* Iconos - TODOS amarillos miel metálico en estado normal (proporcionales por tamaño) */
.jkhive-carouselitem-small .service-icon {
  font-size: 2.33rem; /* Proporcional a small (260px) */
  color: var(--jk-accent-honey-light) !important; /* Amarillo miel metálico */
  filter: drop-shadow(0 0 10px rgba(244, 196, 48, 0.8));
  transition: color 0.3s ease, filter 0.3s ease;
  margin-bottom: 0.5rem;
}

.jkhive-carouselitem-med .service-icon {
  font-size: 3.5rem; /* Tamaño original (390px) */
  color: var(--jk-accent-honey-light) !important; /* Amarillo miel metálico */
  filter: drop-shadow(0 0 10px rgba(244, 196, 48, 0.8));
  transition: color 0.3s ease, filter 0.3s ease;
  margin-bottom: 0.75rem;
}

.jkhive-carouselitem-big .service-icon {
  font-size: 4.67rem; /* Proporcional a big (520px) */
  color: var(--jk-accent-honey-light) !important; /* Amarillo miel metálico */
  filter: drop-shadow(0 0 10px rgba(244, 196, 48, 0.8));
  transition: color 0.3s ease, filter 0.3s ease;
  margin-bottom: 1rem;
}

/* Títulos - Azul oscuro más profundo en estado normal, celeste en hover (proporcionales por tamaño) */
.jkhive-carouselitem-small .service-title {
  font-size: 1rem; /* Proporcional a small */
  font-weight: 700;
  color: var(--jk-primary-blue-darker) !important; /* Azul oscuro más profundo */
  text-shadow: 0 0 10px rgba(7, 89, 133, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin-bottom: 0.35rem;
}

.jkhive-carouselitem-med .service-title {
  font-size: 1.5rem; /* Tamaño original (390px) */
  font-weight: 700;
  color: var(--jk-primary-blue-darker) !important; /* Azul oscuro más profundo */
  text-shadow: 0 0 10px rgba(7, 89, 133, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin-bottom: 0.5rem;
}

.jkhive-carouselitem-big .service-title {
  font-size: 2rem; /* Proporcional a big */
  font-weight: 700;
  color: var(--jk-primary-blue-darker) !important; /* Azul oscuro más profundo */
  text-shadow: 0 0 10px rgba(7, 89, 133, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  margin-bottom: 0.67rem;
}

.jkhive-carouselitem-small:hover .service-title,
.jkhive-carouselitem-med:hover .service-title,
.jkhive-carouselitem-big:hover .service-title {
  color: var(--jk-primary-blue-light) !important; /* Celeste en hover (mantener actual) */
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

/* Descripciones - Blanco en estado normal (proporcionales por tamaño) */
.jkhive-carouselitem-small .service-description {
  font-size: 0.67rem; /* Proporcional a small */
  color: var(--jk-metal-light) !important; /* Blanco */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.jkhive-carouselitem-med .service-description {
  font-size: 1rem; /* Tamaño original (390px) */
  color: var(--jk-metal-light) !important; /* Blanco */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.jkhive-carouselitem-big .service-description {
  font-size: 1.33rem; /* Proporcional a big */
  color: var(--jk-metal-light) !important; /* Blanco */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* ========================================
   FORM STYLES
   ======================================== */

.jkhive-form-group {
  margin-bottom: 1.5rem;
}

.jkhive-form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--jk-metal-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.jkhive-form-label i {
  margin-right: 0.5rem;
  color: var(--jk-primary-blue-light);
}

.jkhive-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--jk-tech-dark) 0%, var(--jk-tech-medium) 100%);
  border: 2px solid var(--jk-primary-blue);
  border-radius: 0.5rem;
  color: var(--jk-metal-light);
  font-size: 1rem;
  transition: var(--jk-transition);
  box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.1);
}

.jkhive-form-input:focus {
  outline: none;
  border-color: var(--jk-accent-honey);
  box-shadow: 0 0 15px rgba(212, 160, 23, 0.3), inset 0 0 15px rgba(14, 165, 233, 0.2);
}

.jkhive-form-input::placeholder {
  color: var(--jk-metal-dark);
}

/* ========================================
   SELECT ELEMENTS - ESTILO TECH RECTANGULAR (por defecto)
   Mismo estilo que filtros: rectangular, sin clip-path octogonal/hexagonal.
   EXCEPCIÓN: jkhive-hex-select para componente personalizado.
   ======================================== */

.jkhive-form-input select:not(.jkhive-hex-select),
select.jkhive-form-input:not(.jkhive-hex-select),
select.form-select:not(.jkhive-hex-select),
.jkhive-form-select:not(.jkhive-hex-select) {
  width: 100%;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(14, 165, 233, 0.55);
  color: var(--jk-metal-light);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
  clip-path: none !important;
  border-radius: 4px;
  min-height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23e2e8f0' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px 12px;
  padding-right: 2rem;
}

/* Hover / focus — estilo tech (borde y sombra suave) */
.jkhive-form-input select:not(.jkhive-hex-select):hover,
select.jkhive-form-input:not(.jkhive-hex-select):hover,
select.form-select:not(.jkhive-hex-select):hover,
.jkhive-form-select:not(.jkhive-hex-select):hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}
.jkhive-form-input select:not(.jkhive-hex-select):focus,
select.jkhive-form-input:not(.jkhive-hex-select):focus,
select.form-select:not(.jkhive-hex-select):focus,
.jkhive-form-select:not(.jkhive-hex-select):focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.jkhive-form-input select::before,
select.jkhive-form-input::before,
select.form-select::before,
.jkhive-form-select::before {
  display: none !important;
}

/* Active/Open state */
.jkhive-form-input select:not(.jkhive-hex-select):active,
select.jkhive-form-input:not(.jkhive-hex-select):active,
select.form-select:not(.jkhive-hex-select):active,
.jkhive-form-select:not(.jkhive-hex-select):active {
  transform: translateY(0);
}

/* Flecha dropdown ya definida en bloque principal (estilo tech, 12px, #e2e8f0) */

/* Opciones del select — estilo tech rectangular (sin clip-path) */
.jkhive-form-input select:not(.jkhive-hex-select) option,
select.jkhive-form-input:not(.jkhive-hex-select) option,
select.form-select:not(.jkhive-hex-select) option,
.jkhive-form-select:not(.jkhive-hex-select) option {
  background: var(--jk-tech-dark);
  color: var(--jk-metal-light);
  padding: 0.5rem 0.75rem;
  clip-path: none !important;
  border-radius: 0;
}

.jkhive-form-input select:not(.jkhive-hex-select) option:hover,
select.jkhive-form-input:not(.jkhive-hex-select) option:hover,
select.form-select:not(.jkhive-hex-select) option:hover,
.jkhive-form-select:not(.jkhive-hex-select) option:hover {
  background: var(--jk-primary-blue-dark);
  color: var(--jk-white);
}

.jkhive-form-input select:not(.jkhive-hex-select) option:checked,
select.jkhive-form-input:not(.jkhive-hex-select) option:checked,
select.form-select:not(.jkhive-hex-select) option:checked,
.jkhive-form-select:not(.jkhive-hex-select) option:checked {
  background: var(--jk-primary-blue);
  color: var(--jk-white);
  font-weight: 600;
}

/* Wrapper para el select que intenta dar forma hexagonal al dropdown */
.jkhive-form-input select:not(.jkhive-hex-select),
select.jkhive-form-input:not(.jkhive-hex-select),
select.form-select:not(.jkhive-hex-select),
.jkhive-form-select:not(.jkhive-hex-select) {
  /* Intentar dar forma al dropdown usando overflow y clip-path en el contenedor */
  overflow: visible;
}

/* Estilos para el dropdown cuando está abierto (usando pseudo-clases avanzadas) */
.jkhive-form-input select:not(.jkhive-hex-select):focus,
select.jkhive-form-input:not(.jkhive-hex-select):focus,
select.form-select:not(.jkhive-hex-select):focus,
.jkhive-form-select:not(.jkhive-hex-select):focus {
  /* El dropdown nativo no puede ser completamente controlado, pero podemos mejorar las opciones */
}

/* Selectores: ESTILO TECH RECTANGULAR por defecto (filtros, tablas, formularios, modales).
   Regla JK Hive: todos los <select> usan forma rectangular y estilo tech (fondo oscuro, borde azul, border-radius).
   No usar clip-path octogonal/hexagonal salvo petición explícita. */
.filter-section select:not(.jkhive-hex-select),
.admin-container select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):not(.jkhive-hex-select),
.jkhive-modal select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):not(.jkhive-hex-select) {
  width: 100%;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(14, 165, 233, 0.55);
  color: var(--jk-metal-light);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  overflow: visible;
  clip-path: none !important;
  border-radius: 4px;
  min-height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23e2e8f0' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px 12px;
  padding-right: 2rem;
}

.filter-section select::before,
.admin-container select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *)::before,
.jkhive-modal select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *)::before {
  display: none !important;
}

.filter-section select:hover,
.admin-container select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):hover,
.jkhive-modal select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.filter-section select:focus,
.admin-container select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):focus,
.jkhive-modal select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.filter-section select option,
.admin-container select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *) option,
.jkhive-modal select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *) option {
  background: var(--jk-tech-dark);
  color: var(--jk-metal-light);
  padding: 0.5rem 0.75rem;
  clip-path: none !important;
  border-radius: 0;
}

/* Estilos para select en ebooks.html y otros — estilo tech rectangular (mismas dimensiones que filtros) */
#categoryFilter,
#bookSearch,
.form-select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *) {
  width: 100%;
  max-width: 400px;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(14, 165, 233, 0.55);
  color: var(--jk-metal-light);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  overflow: visible;
  clip-path: none !important;
  border-radius: 4px;
  min-height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23e2e8f0' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px 12px;
  padding-right: 2rem;
}

#categoryFilter option,
#bookSearch option,
.form-select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *) option {
  background: var(--jk-tech-dark);
  color: var(--jk-metal-light);
  padding: 0.5rem 0.75rem;
  clip-path: none !important;
  border-radius: 0;
}

#categoryFilter::before,
#bookSearch::before,
.form-select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *)::before {
  display: none !important;
}

#categoryFilter:hover,
#bookSearch:hover,
.form-select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

#categoryFilter:focus,
#bookSearch:focus,
.form-select:not(.jkhive-lang-selector *):not(.jkhive-notif-selector *):focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.jkhive-form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--jk-primary-blue);
}

/* ========================================
   ALERT STYLES
   ======================================== */

.jkhive-alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid;
  box-shadow: var(--jk-shadow);
}

.jkhive-alert i {
  font-size: 1.25rem;
}

.jkhive-alert-error {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.2) 100%);
  border-color: #dc2626;
  color: #fca5a5;
}

.jkhive-alert-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
  border-color: #22c55e;
  color: #86efac;
}

.jkhive-alert-warning {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(202, 138, 4, 0.2) 100%);
  border-color: #eab308;
  color: #fde047;
}

.jkhive-alert-info {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(2, 132, 199, 0.2) 100%);
  border-color: var(--jk-primary-blue);
  color: var(--jk-primary-blue-light);
}

/* ========================================
   USER MENU DROPDOWN
   ======================================== */

.jkhive-user-menu-wrapper {
  position: relative;
}

.jkhive-user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(135deg, var(--jk-tech-dark) 0%, var(--jk-tech-darker) 100%);
  border: 2px solid var(--jk-primary-blue);
  border-radius: 0.5rem;
  box-shadow: var(--jk-shadow-lg), var(--jk-glow-blue);
  min-width: 200px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.jkhive-user-menu-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jkhive-user-menu-item {
  padding: 0.75rem 1rem;
  color: var(--jk-metal-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--jk-transition);
  border-bottom: 1px solid var(--jk-tech-medium);
}

.jkhive-user-menu-item:last-child {
  border-bottom: none;
}

.jkhive-user-menu-item:hover {
  background: linear-gradient(135deg, var(--jk-tech-medium) 0%, var(--jk-tech-dark) 100%);
  color: var(--jk-accent-honey);
}

.jkhive-user-menu-item i {
  width: 20px;
  text-align: center;
}

.jkhive-user-menu-header {
  padding: 1rem;
  border-bottom: 2px solid var(--jk-primary-blue);
  background: linear-gradient(135deg, var(--jk-tech-medium) 0%, var(--jk-tech-dark) 100%);
}

.jkhive-user-menu-header .user-name {
  font-weight: 700;
  color: var(--jk-metal-light);
  margin-bottom: 0.25rem;
}

.jkhive-user-menu-header .user-email {
  font-size: 0.85rem;
  color: var(--jk-metal-dark);
}

.jkhive-user-menu-header .user-profile {
  font-size: 0.75rem;
  color: var(--jk-accent-honey);
  margin-top: 0.25rem;
  font-weight: 600;
}

/* ========================================
   19. NOTIFICATION DROPDOWN (HEXAGONAL)
   ======================================== */

.jkhive-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 350px;
  max-width: 450px;
  z-index: 10000;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jkhive-notif-dropdown-content {
  background: linear-gradient(135deg, var(--jk-tech-darker) 0%, var(--jk-tech-dark) 100%);
  border: 3px solid var(--jk-primary-blue);
  clip-path: polygon(50% 0%, 100% 15%, 100% 85%, 50% 100%, 0% 85%, 0% 15%);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.4), 
              inset 0 0 60px rgba(14, 165, 233, 0.1);
  padding: 2rem;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.jkhive-notif-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--jk-primary-blue);
}

.jkhive-notif-header h3 {
  color: var(--jk-accent-honey);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
}

.jkhive-notif-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Scrollbar personalizado para el dropdown */
.jkhive-notif-list::-webkit-scrollbar {
  width: 8px;
}

.jkhive-notif-list::-webkit-scrollbar-track {
  background: var(--jk-tech-dark);
  border-radius: 4px;
}

.jkhive-notif-list::-webkit-scrollbar-thumb {
  background: var(--jk-primary-blue);
  border-radius: 4px;
}

.jkhive-notif-list::-webkit-scrollbar-thumb:hover {
  background: var(--jk-primary-blue-light);
}

.jkhive-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.5));
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.jkhive-notif-item:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(51, 65, 85, 0.7));
  border-color: var(--jk-primary-blue);
  transform: translateX(5px);
}

.jkhive-notif-item.unread {
  border-left: 4px solid var(--jk-primary-blue);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(30, 41, 59, 0.5));
}

.jkhive-notif-item.read {
  opacity: 0.7;
}

.jkhive-notif-item-icon {
  font-size: 1.5rem;
  color: var(--jk-primary-blue-light);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.jkhive-notif-item-content {
  flex: 1;
  min-width: 0;
}

.jkhive-notif-item-title {
  color: var(--jk-metal-light);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.jkhive-notif-item.unread .jkhive-notif-item-title {
  color: var(--jk-accent-honey);
}

.jkhive-notif-item-message {
  color: var(--jk-metal);
  font-size: 0.9rem;
  line-height: 1.4;
}

.jkhive-notif-item-dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  background: var(--jk-primary-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
}

/* ========================================
   NOTIFICATIONS - NORMAL DROPDOWN (Sin notificaciones)
   Compacto, minimalista, tecnológico
   ======================================== */

.jkhive-notif-dropdown-normal {
  position: absolute;
  top: calc(100% + 10px);
  right: 40px;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.jkhive-notif-dropdown-normal.active {
  display: block;
  opacity: 1;
}

.jkhive-notif-empty-compact {
  background: linear-gradient(135deg, var(--jk-tech-darker) 0%, var(--jk-tech-dark) 100%);
  border: 1px solid var(--jk-primary-blue);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--jk-metal-medium);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  min-width: 150px;
  text-align: center;
}

/* Responsive dropdowns */
@media (max-width: 768px) {
  .jkhive-notif-dropdown-normal {
    right: 0;
    transform: translateX(0);
  }
  
  .jkhive-cart-dropdown-normal {
    right: 0;
    transform: translateX(0);
  }
  
  .jkhive-notif-empty-compact,
  .jkhive-cart-empty-compact {
    min-width: 120px;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ========================================
   NOTIFICATIONS - HEXAGONAL MENU (Con notificaciones)
   ======================================== */

/* ESTILOS ANTIGUOS DE NOTIFICACIONES - ELIMINADOS */
/* Estos estilos han sido reemplazados por versiones más específicas arriba */
/* para evitar conflictos con otros elementos del navbar */

.jkhive-notif-hex i {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.jkhive-notif-hex .notif-count {
  font-size: 0.5rem;
  background: var(--jk-accent-red);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  margin-top: 0.25rem;
}

.jkhive-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--jk-metal-medium);
}

/* ========================================
   TOOLTIP UNIVERSAL - JK HIVE
   Estilo tecnológico, moderno y minimalista
   Usar con atributo: data-tooltip="Texto del tooltip"
   El tooltip sigue al cursor (requiere tooltip.js)
   ======================================== */

/* Elemento con tooltip */
.jkhive-tooltip,
[data-tooltip] {
  position: relative;
}

/* Cursor help solo si no tiene cursor específico ya definido */
.jkhive-tooltip:not(button):not(a):not([style*="cursor"]),
[data-tooltip]:not(button):not(a):not([style*="cursor"]) {
  cursor: help;
}

/* Ocultar tooltips CSS nativos cuando se usa JavaScript */
[data-tooltip]::before,
[data-tooltip]::after {
  display: none !important;
}

/* Tooltip que sigue al cursor (tooltip.js) — estilo JK Hive, AUTOSUFICIENTE (base + responsive en este bloque) */
.jkhive-tooltip-following {
  position: fixed !important;
  background: linear-gradient(135deg, var(--jk-tech-dark, #1e293b) 0%, var(--jk-tech-darker, #0f172a) 100%) !important;
  color: var(--jk-metal-light, #e2e8f0) !important;
  padding: 0.2rem 0.65rem !important;
  border-radius: 6px !important;
  border: 1px solid var(--jk-primary-blue, #0ea5e9) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  box-shadow: var(--jk-shadow, 0 4px 6px -1px rgba(0,0,0,0.3)), 0 0 16px rgba(14, 165, 233, 0.35) !important;
  z-index: 9999999 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  transition: opacity 0.15s ease !important;
  backdrop-filter: blur(6px) !important;
}

/* Mobile: tooltip más pequeño y compacto (mismo bloque = autosuficiente) */
@media (max-width: 768px) {
  .jkhive-tooltip-following {
    font-size: 0.58rem !important;
    padding: 0.14rem 0.45rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    border-radius: 4px !important;
  }
}

/* Tooltip a la izquierda */
.jkhive-tooltip-left::before,
[data-tooltip-left]::before {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-8px) scale(0.95);
}

.jkhive-tooltip-left::after,
[data-tooltip-left]::after {
  left: auto;
  right: 12px;
  transform: translateX(0) translateY(-2px);
}

.jkhive-tooltip-left:hover::before,
[data-tooltip-left]:hover::before {
  transform: translateX(0) translateY(-12px) scale(1);
}

.jkhive-tooltip-left:hover::after,
[data-tooltip-left]:hover::after {
  transform: translateX(0) translateY(-6px);
}

/* Tooltip a la derecha */
.jkhive-tooltip-right::before,
[data-tooltip-right]::before {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-8px) scale(0.95);
}

.jkhive-tooltip-right::after,
[data-tooltip-right]::after {
  left: auto;
  right: 12px;
  transform: translateX(0) translateY(-2px);
}

.jkhive-tooltip-right:hover::before,
[data-tooltip-right]:hover::before {
  transform: translateX(0) translateY(-12px) scale(1);
}

.jkhive-tooltip-right:hover::after,
[data-tooltip-right]:hover::after {
  transform: translateX(0) translateY(-6px);
}

/* Tooltip abajo */
.jkhive-tooltip-bottom::before,
[data-tooltip-bottom]::before {
  bottom: auto;
  top: 100%;
  transform: translateX(-50%) translateY(8px) scale(0.95);
}

.jkhive-tooltip-bottom::after,
[data-tooltip-bottom]::after {
  bottom: auto;
  top: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--jk-primary-blue, #0ea5e9);
  transform: translateX(-50%) translateY(2px);
}

.jkhive-tooltip-bottom:hover::before,
[data-tooltip-bottom]:hover::before {
  transform: translateX(-50%) translateY(12px) scale(1);
}

.jkhive-tooltip-bottom:hover::after,
[data-tooltip-bottom]:hover::after {
  transform: translateX(-50%) translateY(6px);
}

/* ========================================
   CRM ADMIN - MOBILE RESPONSIVE (45% REDUCTION)
   Reglas generales para todos los elementos del CRM en pantalla chica
   ======================================== */

@media (max-width: 768px) {
  /* Admin Container - Reducir padding 45% */
  .admin-container {
    padding: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
  }
  
  /* Admin Header - Reducir márgenes 45% */
  .admin-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem !important; /* Reducido 45% desde 2rem base (2 * 0.55 = 1.1) */
    padding-bottom: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
  }
  
  .admin-header h1 {
    font-size: 1.1rem !important; /* Reducido 45% desde tamaño normal (asumiendo ~2rem base) */
  }
  
  /* Tabs - Reducir tamaño 45% */
  .tab {
    padding: 0.614rem 1.228rem !important; /* Reducido 45% desde tamaño original (0.85 * 0.55 = 0.468, 1.7 * 0.55 = 0.935) */
    font-size: 0.468rem !important; /* Reducido 45% desde 0.85rem base (0.85 * 0.55 = 0.468) */
  }
  
  /* Section Title Editor - Reducir 45% */
  .tab-content .section-title-editor,
  .section-title-editor {
    padding: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
    gap: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    margin-bottom: 1.1rem !important; /* Reducido 45% desde 2rem base (2 * 0.55 = 1.1) */
    flex-wrap: nowrap;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  .section-title-editor-left {
    width: 70%;
    flex-shrink: 0;
    flex-wrap: wrap;
    min-width: 0;
    gap: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  .section-title-editor-right {
    width: 30%;
    flex-shrink: 0;
    min-width: 0;
  }
  
  .section-title-editor label {
    min-width: 66px !important; /* Reducido 45% desde 120px base (120 * 0.55 = 66) */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    flex-shrink: 0;
  }
  
  .section-title-editor input {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    padding: 0.413rem !important; /* Reducido 45% desde 0.75rem base (0.75 * 0.55 = 0.413) */
  }
  
  .section-title-editor .gallery-size-selector {
    gap: 0.055rem !important; /* Reducido 45% desde 0.1rem base (0.1 * 0.55 = 0.055) */
    flex-shrink: 0;
  }
  
  .section-title-editor .gallery-size-selector label {
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    min-width: auto !important;
    margin-right: 0 !important;
  }
  
  .section-title-editor .gallery-size-selector select {
    font-size: 0.495rem !important; /* Reducido 45% desde 0.9rem base (0.9 * 0.55 = 0.495) */
    padding: 0.275rem !important; /* Reducido 45% desde 0.5rem base (0.5 * 0.55 = 0.275) */
  }
  
  .section-title-editor .gallery-size-selector .size-unlock-btn {
    font-size: 0.495rem !important; /* Reducido 45% desde 0.9rem base (0.9 * 0.55 = 0.495) */
    padding: 0.138rem !important; /* Reducido 45% desde 0.25rem base (0.25 * 0.55 = 0.138) */
  }
  
  .section-title-editor .gallery-size-selector::before {
    display: none !important; /* Ocultar separador vertical en móvil */
  }
  
  .section-title-editor .jkhive-hex-badge {
    transform: scale(0.55) !important; /* Reducido 45% desde 1 base (1 * 0.55 = 0.55) */
    flex-shrink: 0;
  }
  
  .section-title-editor-right .visibility-counter-badge {
    position: absolute !important;
    top: -12px !important;
    right: -1.1px !important; /* Reducido 45% desde -2px base (-2 * 0.55 = -1.1) */
    font-size: 0.347rem !important; /* Reducido 45% desde 0.63rem base (0.63 * 0.55 = 0.347) */
    padding: 0.173rem 0.322rem !important; /* Reducido 45% desde 0.315rem 0.585rem base */
    letter-spacing: 0.248px !important; /* Reducido 45% desde 0.45px base (0.45 * 0.55 = 0.248) */
    border-radius: 0.138rem !important; /* Reducido 45% desde 0.25rem base (0.25 * 0.55 = 0.138) */
  }
  
  .section-title-editor-right .jkhive-bttn-med {
    transform: scale(0.55) !important; /* Reducido 45% desde 1 base */
  }
  
  /* Items Table - Reducido 45% + 10% adicional = 50.5% total */
  .tab-content .items-table,
  .items-table {
    font-size: 0.495rem !important; /* Reducido 10% adicional desde 0.55rem (0.55 * 0.9 = 0.495) */
    min-width: 396px !important; /* Reducido 10% adicional desde 440px (440 * 0.9 = 396) */
  }
  
  .tab-content .items-table th,
  .tab-content .items-table td,
  .items-table th,
  .items-table td {
    padding: 0.495rem !important; /* Reducido 10% adicional desde 0.55rem (0.55 * 0.9 = 0.495) */
    font-size: 0.495rem !important; /* Reducido 10% adicional desde 0.55rem (0.55 * 0.9 = 0.495) */
  }
  
  .tab-content .items-table .jkhive-bttn-table,
  .items-table .jkhive-bttn-table {
    transform: scale(0.495) !important; /* Reducido 10% adicional desde 0.55 (0.55 * 0.9 = 0.495) */
  }
  
  .tab-content .items-table td.actions-cell,
  .items-table td.actions-cell {
    padding: 0.495rem !important; /* Reducido 10% adicional desde 0.55rem */
  }
  
  .tab-content .items-table td.description-cell,
  .items-table td.description-cell {
    min-width: 149px !important; /* Reducido 10% adicional desde 165px (165 * 0.9 = 148.5 ≈ 149) */
    max-width: 297px !important; /* Reducido 10% adicional desde 330px (330 * 0.9 = 297) */
  }
  
  .tab-content .items-table td.orden-cell,
  .items-table td.orden-cell {
    width: 40px !important; /* Reducido 10% adicional desde 44px (44 * 0.9 = 39.6 ≈ 40) */
  }
  
  /* Table Wrapper - Reducir margin 45% */
  .tab-content .table-wrapper,
  .table-wrapper {
    margin-bottom: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
  }
  
  /* Empty State - Reducir 45% */
  .tab-content .empty-state,
  .empty-state {
    padding: 1.65rem !important; /* Reducido 45% desde 3rem base (3 * 0.55 = 1.65) */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
  }
  
  /* Log Table (audit-logs.php) - Reducir 50.5% (45% + 10% adicional) */
  .log-table {
    font-size: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
  }
  
  .log-table th,
  .log-table td {
    padding: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
    font-size: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
  }
  
  .log-table-container {
    margin-bottom: 0.825rem !important; /* Reducido 45% desde 1.5rem base */
  }
  
  /* Log Filters - Reducir 45% */
  .log-filters {
    gap: 0.275rem !important; /* Reducido 45% desde 0.5rem base (0.5 * 0.55 = 0.275) */
    margin-bottom: 1.1rem !important; /* Reducido 45% desde 2rem base (2 * 0.55 = 1.1) */
  }
  
  .log-filter-btn {
    padding: 0.275rem 0.55rem !important; /* Reducido 45% desde 0.5rem 1rem base */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (asumiendo 1rem) */
  }
  
  /* Pagination - Reducir 45% */
  .pagination {
    gap: 0.275rem !important; /* Reducido 45% desde 0.5rem base */
    margin-top: 1.1rem !important; /* Reducido 45% desde 2rem base */
  }
  
  .pagination a {
    padding: 0.275rem 0.55rem !important; /* Reducido 45% desde 0.5rem 1rem base */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (asumiendo 1rem) */
  }
  
  /* Loading Indicator - Reducir 45% */
  .loading-indicator {
    padding: 1.1rem !important; /* Reducido 45% desde 2rem base (2 * 0.55 = 1.1) */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  /* Profiles Table (profiles.php) - Reducir 50.5% (45% + 10% adicional) */
  .profiles-table {
    font-size: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
  }
  
  .profiles-table th,
  .profiles-table td {
    padding: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
    font-size: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
  }
  
  /* Botones dentro de la tabla de perfiles - Reducir 50.5% (45% + 10% adicional) */
  .profiles-table .jkhive-bttn-table {
    transform: scale(0.495) !important; /* Reducido 50.5% desde 1 base (0.55 * 0.9 = 0.495) */
  }
  
  .profiles-table td.actions-cell > div {
    gap: 0.248rem !important; /* Reducido 50.5% desde 0.5rem base (0.5 * 0.495 = 0.248) */
  }
  
  /* Search Section - Reducir 45% */
  .search-section {
    margin-bottom: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
    padding: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    gap: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  .search-section input {
    padding: 0.413rem !important; /* Reducido 45% desde 0.75rem base (0.75 * 0.55 = 0.413) */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  /* Badges - Reducir 45% */
  .badge {
    padding: 0.138rem 0.275rem !important; /* Reducido 45% desde 0.25rem 0.5rem base */
    font-size: 0.468rem !important; /* Reducido 45% desde 0.85rem base (0.85 * 0.55 = 0.468) */
    min-width: calc(1.1rem * 1.1547) !important; /* Reducido 45% desde 2rem base (2 * 0.55 = 1.1) */
    height: calc(1.1rem * 1.1547) !important;
  }
  
  /* Permissions Section - Reducir 45% */
  .permissions-section {
    margin-top: 1.1rem !important; /* Reducido 45% desde 2rem base (2 * 0.55 = 1.1) */
    padding: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
  }
  
  .permissions-section h3 {
    margin-bottom: 0.55rem !important; /* Reducido 45% desde 1rem base */
    font-size: 0.66rem !important; /* Reducido 45% desde 1.2rem base (1.2 * 0.55 = 0.66) */
  }
  
  .permissions-category {
    margin-bottom: 1.1rem !important; /* Reducido 45% desde 2rem base */
  }
  
  .permissions-category h4 {
    margin-bottom: 0.55rem !important; /* Reducido 45% desde 1rem base */
    padding-bottom: 0.275rem !important; /* Reducido 45% desde 0.5rem base */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (asumiendo 1rem) */
  }
  
  .permissions-grid {
    gap: 0.55rem !important; /* Reducido 45% desde 1rem base */
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)) !important; /* Reducido 45% desde 250px base (250 * 0.55 = 137.5 ≈ 138) */
  }
  
  .permission-item {
    gap: 0.275rem !important; /* Reducido 45% desde 0.5rem base */
    padding: 0.275rem !important; /* Reducido 45% desde 0.5rem base */
  }
  
  .permission-item label {
    font-size: 0.495rem !important; /* Reducido 45% desde 0.9rem base (0.9 * 0.55 = 0.495) */
  }
  
  /* Users Table (users.php) - Reducir 50.5% (45% + 10% adicional) */
  .users-table {
    font-size: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
  }
  
  .users-table th,
  .users-table td {
    padding: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
    font-size: 0.495rem !important; /* Reducido 50.5% desde 1rem base */
  }
  
  /* Botones dentro de la tabla de usuarios - Reducir 50.5% (45% + 10% adicional) */
  .users-table .jkhive-bttn-table {
    transform: scale(0.495) !important; /* Reducido 50.5% desde 1 base (0.55 * 0.9 = 0.495) */
  }
  
  .users-table td.actions-cell > div {
    gap: 0.248rem !important; /* Reducido 50.5% desde 0.5rem base (0.5 * 0.495 = 0.248) */
  }
  
  /* Action Buttons - Reducir 45% */
  .jkhive-actionbutton-small {
    transform: scale(0.55) !important; /* Reducido 45% desde 1 base (1 * 0.55 = 0.55) */
  }
  
  .jkhive-actionbutton-med {
    transform: scale(0.55) !important; /* Reducido 45% desde 1 base (1 * 0.55 = 0.55) */
  }
  
  .jkhive-actionbutton-big {
    transform: scale(0.55) !important; /* Reducido 45% desde 1 base (1 * 0.55 = 0.55) */
  }
  
  /* Modals - Reducir elementos 45% */
  .jkhive-modal-content {
    max-width: 90vw !important; /* Asegurar que no se salga de la pantalla */
  }
  
  .jkhive-modal-header {
    padding: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
  }
  
  .jkhive-modal-title {
    font-size: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
  }
  
  .jkhive-modal-subtitle {
    font-size: 0.495rem !important; /* Reducido 45% desde 0.9rem base (0.9 * 0.55 = 0.495) */
  }
  
  .jkhive-modal-body {
    padding: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  .jkhive-modal-footer {
    padding: 0.825rem !important; /* Reducido 45% desde 1.5rem base */
  }
  
  .jkhive-modal-actions {
    gap: 0.275rem !important; /* Reducido 45% desde 0.5rem base */
  }
  
  .jkhive-form-group {
    margin-bottom: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  .jkhive-form-label {
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base */
    margin-bottom: 0.275rem !important; /* Reducido 45% desde 0.5rem base */
  }
  
  .jkhive-form-input {
    padding: 0.413rem !important; /* Reducido 45% desde 0.75rem base (0.75 * 0.55 = 0.413) */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  .jkhive-form-input textarea {
    min-height: 1.1rem !important; /* Reducido 45% desde 2rem base */
  }
  
  .jkhive-modal-header-icon {
    font-size: 1.65rem !important; /* Reducido 45% desde 3rem base (3 * 0.55 = 1.65) */
  }
  
  .jkhive-modal-close {
    font-size: 0.825rem !important; /* Reducido 45% desde 1.5rem base */
    width: 1.65rem !important; /* Reducido 45% desde 3rem base */
    height: 1.65rem !important; /* Reducido 45% desde 3rem base */
  }
}

@media (max-width: 480px) {
  /* Admin Container - Reducir padding adicional en móvil pequeño */
  .admin-container {
    padding: 0.75rem !important;
  }
  
  /* Admin Header - Reducir márgenes adicionales */
  .admin-header {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
  }
  
  /* Section Title Editor - Ajustes adicionales para móvil pequeño */
  .section-title-editor {
    padding: 0.825rem !important; /* Reducido 45% desde 1.5rem base (1.5 * 0.55 = 0.825) */
    gap: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  .section-title-editor-left {
    width: 70% !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    gap: 0.55rem !important; /* Reducido 45% desde 1rem base */
  }
  
  .section-title-editor-right {
    width: 30% !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    position: relative !important;
    align-items: flex-start !important;
  }
  
  .section-title-editor label {
    min-width: 66px !important; /* Reducido 45% desde 120px base (120 * 0.55 = 66) */
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    flex-shrink: 0 !important;
  }
  
  .section-title-editor input {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    padding: 0.413rem !important; /* Reducido 45% desde 0.75rem base (0.75 * 0.55 = 0.413) */
  }
  
  .section-title-editor .gallery-size-selector {
    gap: 0.055rem !important; /* Reducido 45% desde 0.1rem base (0.1 * 0.55 = 0.055) */
    flex-shrink: 0 !important;
  }
  
  .section-title-editor .gallery-size-selector label {
    font-size: 0.55rem !important; /* Reducido 45% desde 1rem base (1 * 0.55 = 0.55) */
    min-width: auto !important;
    margin-right: 0 !important;
  }
  
  .section-title-editor .gallery-size-selector select {
    font-size: 0.495rem !important; /* Reducido 45% desde 0.9rem base (0.9 * 0.55 = 0.495) */
    padding: 0.275rem !important; /* Reducido 45% desde 0.5rem base (0.5 * 0.55 = 0.275) */
  }
  
  .section-title-editor .gallery-size-selector .size-unlock-btn {
    font-size: 0.495rem !important; /* Reducido 45% desde 0.9rem base (0.9 * 0.55 = 0.495) */
    padding: 0.138rem !important; /* Reducido 45% desde 0.25rem base (0.25 * 0.55 = 0.138) */
  }
  
  .section-title-editor .gallery-size-selector::before {
    display: none !important; /* Ocultar separador vertical */
  }
  
  .section-title-editor .jkhive-hex-badge {
    transform: scale(0.55) !important; /* Reducido 45% desde 1 base (1 * 0.55 = 0.55) */
    flex-shrink: 0 !important;
  }
  
  .section-title-editor-right .visibility-counter-badge {
    position: absolute !important;
    top: -0.825rem !important; /* Compensar el padding del contenedor .section-title-editor */
    right: -1.1px !important; /* Reducido 45% desde -2px base (-2 * 0.55 = -1.1) */
    font-size: 0.347rem !important; /* Reducido 45% desde 0.63rem base (0.63 * 0.55 = 0.347) */
    padding: 0.173rem 0.322rem !important; /* Reducido 45% desde 0.315rem 0.585rem base */
    letter-spacing: 0.248px !important; /* Reducido 45% desde 0.45px base (0.45 * 0.55 = 0.248) */
    border-radius: 0.138rem !important; /* Reducido 45% desde 0.25rem base (0.25 * 0.55 = 0.138) */
    z-index: 10 !important;
    margin: 0 !important;
    border: 1px solid rgba(6, 182, 212, 0.6) !important;
  }
  
  .section-title-editor-right .jkhive-bttn-med {
    transform: scale(0.55) !important; /* Reducido 45% desde 1 base */
  }
}

