/* ==========================================================================
   Blue AI Observatory - Minimalist Custom CSS
   ========================================================================== */

/* Google Fonts: Plus Jakarta Sans preconnected and loaded in <head> for PageSpeed */

:root {
  --color-bg: #FFFFFF; /* Pure white */
  --color-text-main: #000000; /* Absolute black */
  --color-text-muted: #666666; /* Elegant gray */
  --color-accent: #000000; /* Black accent */
  --color-accent-hover: #333333;
  --color-border: #EAEAEA; /* Ultra light gray lines */
  --color-surface: #FFFFFF; /* Pure white */
  --color-primary: #000000; /* Absolute black */
  --color-primary-hover: #222222;
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  
  --spacing-xs: 1rem;
  --spacing-sm: 2rem;
  --spacing-md: 4rem;
  --spacing-lg: 8rem;
  --spacing-xl: 12rem;
  
  --radius-md: 0px; /* Sharp editorial */
  --radius-lg: 0px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

input, button, select, textarea, optgroup {
  font-family: var(--font-main);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4 {
  color: var(--color-text-main);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
h2 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-lg) 0;
}

.section-hero {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  text-align: center;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Spotlight Search */
.spotlight-input:focus {
    box-shadow: 0 30px 60px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05) !important;
    border-color: var(--color-text-main) !important;
}
.spotlight-btn:hover {
    background: #333 !important;
    transform: translateY(-50%) scale(1.02) !important;
}

/* Components */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
}

/* Floating Canvas System */
.floating-container {
    display: flex;
    flex-direction: column;
    gap: 8rem; /* Massive gaps between items */
    padding: var(--spacing-xl) 0;
}

.floating-item {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.floating-item:hover {
    transform: translateY(-15px);
    opacity: 0.6;
}

/* Alignments */
.align-left { align-self: flex-start; }
.align-center { align-self: center; text-align: center; align-items: center; }
.align-right { align-self: flex-end; text-align: right; align-items: flex-end; }

/* Typographic hierarchy for floating items */
.size-normal .float-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text-main);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.size-mega .float-title {
    font-size: clamp(4.5rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.06em; /* tighter tracking on larger sizes */
    color: var(--color-text-main);
    line-height: 0.9;
    margin-bottom: var(--spacing-xs);
}

.float-desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 500px;
    line-height: 1.5;
    margin-top: var(--spacing-sm);
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-trigger {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.dropdown-trigger:hover {
    color: var(--color-text-main);
    border-color: var(--color-text-main);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}
.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}
.dropdown-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background: rgba(0,0,0,0.03);
    color: var(--color-text-main);
}
.dropdown-item.active {
    background: var(--color-text-main);
    color: var(--color-surface);
}
.dropdown-item.active svg {
    stroke: var(--color-surface);
}

/* View Toggles */
.view-toggles {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.view-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: var(--color-text-main);
    border-color: var(--color-text-main);
}

.view-btn.active {
    background: var(--color-text-main);
    color: var(--color-surface);
    border-color: var(--color-text-main);
}

/* Dense Table */
.dense-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dense-table th, .dense-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.dense-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 700;
}

.dense-table tr:hover td {
    background: rgba(0,0,0,0.02);
}

.table-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tag {
  display: inline-block;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-label {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px; /* Pill buttons for editorial style */
  background: var(--color-surface);
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--color-text-main);
  color: var(--color-surface);
}

.btn-primary {
  background: var(--color-text-main);
  color: var(--color-surface);
  border-color: var(--color-text-main);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #FFFFFF;
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  /* Organic bouncy easing curve like Asana */
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Text Reveal */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.in-view .split-word {
  opacity: 1;
  transform: translateY(0);
}

/* Blob Background Animation Removed for Minimalism */

/* AI Logo Card Animation */
.card .ai-logo-wrapper {
  transition: transform 0.3s ease;
}
.card:hover .ai-logo-wrapper {
  transform: scale(1.1);
}

/* Blue Logo Header Animation */
.logo span {
  color: var(--color-accent);
  display: inline-block;
  transition: transform 0.3s ease;
}
.logo:hover span {
  transform: scale(1.3) rotate(15deg);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}
.floating-wa svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Header & Nav */
header {
  padding: var(--spacing-sm) 0;
  position: absolute;
  width: 100%;
  top: 0;
  background: transparent;
  z-index: 99999 !important;
}

.header-inner {
  width: 100%;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: transform 0.2s ease;
}

.header-search-btn:hover {
  transform: scale(1.1);
}

.logo {
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 2.0rem);
  color: var(--color-text-main);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.logo span {
  color: var(--color-accent);
}

nav a {
  margin-left: var(--spacing-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
nav a:hover {
  color: var(--color-text-main);
}


/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-text-main);
  color: var(--color-surface);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-text-muted);
  transform: translateY(-3px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Hamburger Menu */
.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 101;
}
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    transition: all 0.3s ease;
}
.hamburger-btn:hover span {
    background: var(--color-text-muted);
}

.mobile-menu {
    display: none;
    align-items: center;
    gap: 1.75rem;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}
.mobile-menu.from-sticky {
    position: static;
}
.mobile-menu.active {
    display: flex;
    animation: menuFadeSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes menuFadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.mobile-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}
.mobile-menu a:hover {
    color: var(--color-text-main);
    transform: none;
}
.mobile-menu a.btn-consultoria {
    background: #000000;
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.mobile-menu a.btn-consultoria:hover {
    background: #222222;
    border-color: #222222;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   Premium UI Enhancements
   ========================================================================== */

/* Dotted Matrix Background */
body {
    background-color: var(--color-bg);
}

body::before {
    content: "";
    position: fixed;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(#d1d1d1 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    animation: pan-dots 10s linear infinite, pulse-dots 5s ease-in-out infinite;
}

@keyframes pan-dots {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -40px); }
}

@keyframes pulse-dots {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Staggered Slide Up Fade */
.animate-stagger-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor Halo */
body {
    cursor: default; /* Optional: hide default cursor if desired, but user said "flota detrás de tu flecha normal" so we keep default */
}

.cursor-halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 999999 !important;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.cursor-halo.active {
    width: 70px;
    height: 70px;
    background: #ffffff;
    mix-blend-mode: difference;
    box-shadow: none;
}

/* ==========================================================================
   Sticky Nav & Marquee Enhancements
   ========================================================================== */

/* Sticky Nav for Icons */
#sticky-icon-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

#sticky-icon-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 4rem !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    
    /* Grid layout ONLY when sticky to ensure logo at far left, actions at far right */
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
}

/* Hide extra sticky elements by default */
.sticky-logo, .sticky-actions {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show them when sticky using Grid positioning */
#sticky-icon-nav.is-sticky .sticky-logo {
    display: block !important;
    opacity: 1 !important;
    margin: 0 !important;
    justify-self: start !important;
}

#sticky-icon-nav.is-sticky .sticky-icons-wrapper {
    justify-self: center !important;
}

#sticky-icon-nav.is-sticky .sticky-actions {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    opacity: 1 !important;
    margin: 0 !important;
    justify-self: end !important;
}

/* Icon Size Reduction and Compression when sticky */
#sticky-icon-nav.is-sticky .sticky-icons-wrapper {
    max-width: 850px !important;
    transition: max-width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open #sticky-icon-nav.is-sticky {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 4rem !important;
}

body.menu-open #sticky-icon-nav.is-sticky .sticky-icons-wrapper {
    display: none !important;
}

body.menu-open #sticky-icon-nav.is-sticky .sticky-actions {
    margin-left: auto !important;
}

#sticky-icon-nav.is-sticky .sticky-icon-btn > span:first-child {
    transform: scale(0.6);
    transition: transform 0.3s ease;
}

#sticky-icon-nav.is-sticky .sticky-icon-btn:hover > span:first-child {
    transform: scale(0.8);
}

#sticky-icon-nav.is-sticky .sticky-icon-btn {
    margin: 0 -0.5rem; /* pull them closer together */
    transform: none !important; /* avoid scaling the whole button */
}

/* Tooltip (Banderita) */
.sticky-icon-btn {
    position: relative;
}

.icon-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--color-text-main);
    color: var(--color-bg);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2000;
}

.icon-tooltip::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent var(--color-text-main) transparent;
}

.sticky-icon-btn:hover .icon-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hero Carousel Swipe Hint - Oculto por defecto en escritorio */
.hero-carousel-hint {
    display: none;
}

/* Infinite Marquee Ticker */
.marquee-container {
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.marquee-content {
    display: inline-block;
    font-size: 14vw;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(0, 0, 0, 0.02);
    text-transform: uppercase;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-content span {
    padding-right: 2rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* VS Hero Header */
.vs-hero-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}
.vs-hero-col {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.vs-hero-img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    object-fit: cover;
}
.vs-hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.vs-badge {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-text-main, #000000);
    letter-spacing: -0.04em;
    font-style: italic;
}

/* ==========================================================================
   Tablet Optimization (769px - 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem !important;
    }
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .header-inner {
        padding: 0 2rem !important;
    }
    #sticky-icon-nav:not(.is-sticky) {
        padding: 0 2rem !important;
    }
    .hub-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .hub-analysis-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    .hub-verdict-card {
        position: static !important;
    }
    .mobile-menu {
        gap: 1.1rem !important;
    }
    .mobile-menu a {
        font-size: 0.86rem !important;
    }
    .mobile-menu a.btn-consultoria {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.82rem !important;
    }
}

/* ==========================================================================
   Mobile Optimization (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* General Layout on Mobile */
    .container {
        padding: 0 1.25rem !important;
    }
    .header-inner {
        padding: 0 1.25rem !important;
    }
    .logo {
        font-size: clamp(1.35rem, 5.2vw, 1.6rem) !important;
        letter-spacing: -0.04em !important;
    }
    .header-actions {
        gap: 0.75rem !important;
    }
    .section {
        padding: 3.5rem 0 !important;
    }
    .section:first-of-type {
        padding-top: 5.5rem !important;
    }
    .section-hero {
        min-height: auto !important;
        padding: 9.5rem 0 3rem !important;
    }
    .card {
        padding: 1.25rem !important;
    }
    .grid {
        gap: 1.25rem !important;
    }
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    .btn {
        padding: 0.85rem 1.4rem !important;
        font-size: 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        text-align: center !important;
    }
    h1 {
        font-size: clamp(1.75rem, 6.5vw, 2.5rem) !important;
        line-height: 1.15 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    h2, .vs-hero-title {
        font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
        line-height: 1.2 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    h3 {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem) !important;
        line-height: 1.25 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* Floating Canvas on Mobile */
    .floating-container {
        gap: 3rem !important;
        padding: 2rem 0 !important;
    }
    .floating-item {
        align-self: flex-start !important;
        text-align: left !important;
        align-items: flex-start !important;
    }
    .size-normal .float-title {
        font-size: clamp(1.75rem, 7vw, 2.75rem) !important;
    }
    .size-mega .float-title {
        font-size: clamp(2rem, 8vw, 3.25rem) !important;
    }
    .float-desc {
        font-size: 1rem !important;
        margin-top: 0.5rem !important;
    }

    /* Dynamic Category Label in Hero */
    #dynamic-category-label {
        font-size: clamp(1.1rem, 4.2vw, 1.85rem) !important;
        height: auto !important;
        min-height: 2.75rem !important;
        padding: 0 1rem !important;
        text-align: center !important;
        line-height: 1.25 !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
    }

    /* VS Engine on Mobile */
    .vs-hero-header {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 2.5rem !important;
    }
    .vs-badge {
        font-size: 2.25rem !important;
        margin: 0.25rem 0 !important;
        color: var(--color-text-main, #000000) !important;
    }
    .vs-hero-title {
        font-size: 1.75rem !important;
    }
    .vs-hero-img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 16px !important;
    }

    /* Mobile Menu Override */
    .sticky-nav-menu {
        display: none !important;
    }

    .mobile-menu {
        position: fixed !important;
        top: 4.5rem !important;
        right: 1rem !important;
        left: 1rem !important;
        flex-direction: column !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        padding: 2.25rem 1.5rem 1.75rem 1.5rem !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        z-index: 100002 !important;
    }
    
    .mobile-menu.from-sticky {
        position: fixed !important;
        top: 4.25rem !important;
    }

    .mobile-menu:not(.active) {
        display: none !important;
    }

    .mobile-menu.active {
        display: flex !important;
        animation: mobileMenuDropIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

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

    .mobile-menu a {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        padding: 0.6rem 1rem !important;
        text-align: center !important;
    }

    .mobile-menu a.btn-consultoria {
        width: 100% !important;
        margin-top: 0.75rem !important;
        text-align: center !important;
        padding: 0.85rem 1.5rem !important;
    }

    /* Header layout lock */
    header {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    .header-inner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 1.25rem !important;
    }

    /* Hide tooltips on touch devices */
    .icon-tooltip {
        display: none !important;
    }

    /* Prevent sticky nav placeholder from expanding page width */
    #sticky-nav-placeholder {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Override inline padding on mobile before scroll */
    #sticky-icon-nav:not(.is-sticky) {
        padding: 0 !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Transform the icon grid into a swipeable carousel with subtle edge fade gradients and visual scroll cues */
    #sticky-icon-nav:not(.is-sticky) .sticky-icons-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 0.65rem !important;
        padding: 0.5rem 1.75rem 0.5rem 1.75rem !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    #sticky-icon-nav:not(.is-sticky) .sticky-icons-wrapper::-webkit-scrollbar {
        display: none !important;
    }

    .sticky-icon-btn {
        flex: 0 0 auto !important;
        scroll-snap-align: center;
        padding: 0.4rem !important;
    }

    /* Visual Swipe Hint for Mobile */
    .hero-carousel-hint {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--color-text-muted);
        margin: 0.25rem auto 1rem auto;
        opacity: 0.75;
    }

    /* Completely hide the icons ONLY when the nav becomes sticky */
    #sticky-icon-nav.is-sticky .sticky-icons-wrapper {
        display: none !important;
    }

    /* Adjust sticky layout for mobile to act as a normal fixed header */
    #sticky-icon-nav.is-sticky {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding: 0.75rem 1.25rem !important;
    }

    /* Show the logo on the left */
    #sticky-icon-nav.is-sticky .sticky-logo {
        display: block !important;
        position: static !important;
        margin: 0 !important;
        font-size: clamp(1.25rem, 4.8vw, 1.45rem) !important;
        flex-shrink: 0 !important;
    }

    /* Show actions on the far right */
    #sticky-icon-nav.is-sticky .sticky-actions {
        display: flex !important;
        position: static !important;
        align-items: center !important;
        gap: 1.25rem !important;
        margin: 0 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* Mobile form wrapping & table scrolling */
    form {
        max-width: 100%;
    }
    form[style*="display: flex"], form.inline-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    form[style*="display: flex"] input, form.inline-form input {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    form[style*="display: flex"] button, form.inline-form button {
        width: 100% !important;
    }
    
    #view-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        padding-bottom: 1rem !important;
    }
    table.dense-table {
        display: table !important;
        width: 100% !important;
        min-width: 520px !important;
        border-collapse: collapse !important;
    }

    /* Footer Mobile Margin */
    footer.section {
        margin-top: 3.5rem !important;
        padding: 3rem 0 2rem 0 !important;
    }

    /* Alpha buttons touch targets */
    .alpha-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Specific Breakpoints for Small Phones (<= 640px) */
@media (max-width: 640px) {
    .hero-actions-container {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 1rem !important;
        gap: 0.75rem !important;
        box-sizing: border-box !important;
    }
    .hero-action-btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 0.95rem !important;
        box-sizing: border-box !important;
    }
    .profesion-modal-overlay {
        padding: 1rem !important;
    }
    .profesion-modal-card {
        padding: 2rem 1.25rem !important;
        border-radius: 18px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    .profesion-modal-close {
        top: 1rem !important;
        right: 1rem !important;
    }
    #profesion-modal-form div[style*="display: flex"] {
        flex-direction: column !important;
        width: 100% !important;
    }
    #profesion-modal-form div[style*="display: flex"] > div {
        min-width: 100% !important;
        width: 100% !important;
    }
    #profesion-modal-submit {
        width: 100% !important;
        justify-content: center !important;
    }
    #close-search-btn {
        top: 1.25rem !important;
        right: 1.25rem !important;
    }
    .search-overlay-content {
        padding: 0 1.25rem !important;
    }
    #search-input-field {
        font-size: clamp(1.4rem, 5.5vw, 2.2rem) !important;
        padding: 0.75rem 2.5rem 0.75rem 0 !important;
    }
    .hub-prompt-body, pre, code {
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
}

/* Specific Breakpoints for Very Narrow Phones (<= 480px) */
@media (max-width: 480px) {
    .header-inner {
        padding: 0 0.85rem !important;
    }
    .logo {
        font-size: 0.98rem !important;
    }
    .header-actions {
        gap: 0.5rem !important;
    }
    #sticky-icon-nav.is-sticky {
        padding: 0.75rem 0.85rem !important;
    }
    #sticky-icon-nav.is-sticky .sticky-logo {
        font-size: 0.98rem !important;
    }
    #sticky-icon-nav.is-sticky .sticky-actions {
        gap: 0.5rem !important;
    }
    .prof-quick-tag {
        font-size: 0.76rem !important;
        padding: 0.3rem 0.65rem !important;
    }
    .vs-hero-img {
        width: 70px !important;
        height: 70px !important;
    }
    .vs-badge {
        font-size: 1.85rem !important;
    }
    .vs-hero-title {
        font-size: 1.45rem !important;
    }
    #search-box-wrapper {
        padding: 0.65rem 1rem !important;
    }
    #profesion-search-input {
        font-size: 0.95rem !important;
    }
}

/* Search Overlay Live Autocomplete */
.search-tag-pill {
    font-size: 0.8rem;
    background: #F4F4F5;
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    transition: all 0.2s ease;
}
.search-tag-pill:hover {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}
.search-live-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: background 0.15s ease;
}
.search-live-item:hover, .search-live-item.selected {
    background: #F4F4F5;
}
.search-live-item img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: #000000;
    flex-shrink: 0;
}
.search-live-item-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text-main);
}
.search-live-item-cat {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   Hero Action Buttons & Profesion Lightbox Modal
   ========================================================================== */
.hero-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.85rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    white-space: nowrap;
}

.hero-action-btn-primary {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-action-btn-primary:hover {
    background: #27272a;
    border-color: #27272a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-action-btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e4e4e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-action-btn-secondary:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-action-btn-secondary svg,
.hero-action-btn-primary svg {
    transition: transform 0.2s ease;
}

.hero-action-btn-secondary:hover svg {
    transform: translate(2px, -2px);
}

.hero-action-btn-primary:hover svg {
    transform: scale(1.1);
}

/* Profesion Lightbox Modal */
.profesion-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profesion-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.profesion-modal-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    max-width: 620px;
    width: 100%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    text-align: left;
}

.profesion-modal-overlay.open .profesion-modal-card {
    transform: scale(1) translateY(0);
}

.profesion-modal-card h2,
#profesion-modal-title {
    color: #000000 !important;
    font-size: clamp(1.65rem, 3.5vw, 2.25rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.15 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.profesion-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.profesion-modal-close:hover {
    background: #f4f4f5;
    transform: rotate(90deg);
}

.prof-quick-tag {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: var(--color-text-main);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.prof-quick-tag:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

.prof-suggestion-item {
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f5;
    transition: all 0.15s ease;
    color: var(--color-text-main);
    font-weight: 500;
}

.prof-suggestion-item:last-child {
    border-bottom: none;
}

.prof-suggestion-item:hover,
.prof-suggestion-item.active {
    background: #f4f4f5;
    color: #000000;
    padding-left: 1.5rem;
}


