/* ==================================================================
   jByte Modernist & Professional Web Stylesheet (main.css)
   Aesthetics: Sleek Glassmorphism, Micro-interactions & Parallax
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient Background Meshes */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--gradient-light-mesh);
  opacity: 0.85;
}

:root[data-theme="dark"] body::before {
  background: var(--gradient-dark-mesh);
  opacity: 1;
}

:root[data-theme="dark"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(41, 182, 246, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 182, 246, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  color: var(--highlight);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--paper);
  margin-bottom: 1rem;
}

strong, b {
  color: var(--highlight);
  font-weight: 600;
}

a {
  color: var(--pulse);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--pulse-bright);
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Utilities */
.text-highlight { color: var(--highlight) !important; }
.text-muted { color: var(--paper-muted) !important; opacity: 0.9; }
.text-primary { color: var(--pulse) !important; }
.text-accent { color: var(--fill) !important; }
.text-white { color: #ffffff !important; }

.bg-void { background-color: var(--void) !important; }
.bg-abyss { background-color: var(--abyss) !important; }
.bg-surface { background-color: var(--surface) !important; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Badges & Chips */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--pulse-soft);
  color: var(--pulse);
  border: 1px solid var(--edge-hover);
  transition: all 0.25s ease;
}

.badge-chip.accent {
  background: var(--fill-soft);
  color: var(--fill);
  border-color: rgba(246, 105, 41, 0.3);
}

.badge-chip i {
  font-size: 0.85rem;
}

/* ==============================================================
   PARALLAX / FIXED BACKGROUND SECTIONS
   ============================================================== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 5.5rem 0;
  overflow: hidden;
  z-index: 1;
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.92) 0%, rgba(2, 136, 209, 0.82) 100%);
  z-index: -1;
  transition: background 0.35s ease;
}

:root[data-theme="dark"] .parallax-section::before {
  background: linear-gradient(135deg, rgba(7, 13, 24, 0.94) 0%, rgba(11, 19, 38, 0.9) 100%);
}

.parallax-section.banner-cta {
  background-image: url('../img/banner_img_01.jpg');
}

.parallax-section.banner-services {
  background-image: url('../img/banner_img_02.jpg');
}

.parallax-section.banner-tech {
  background-image: url('../img/banner_img_03.jpg');
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.parallax-content h2,
.parallax-content h1,
.parallax-content p,
.parallax-content span {
  color: #FFFFFF !important;
}

/* ==============================================================
   SUBTLE ANIMATIONS & SCROLL REVEAL
   ============================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Pulse Glow & Shimmer */
@keyframes softPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(41, 182, 246, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(41, 182, 246, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(41, 182, 246, 0); }
}

@keyframes floatGentle {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: floatGentle 5s ease-in-out infinite;
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-modern:hover::after {
  left: 140%;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px 0 rgba(2, 136, 209, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(2, 136, 209, 0.45);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px 0 rgba(246, 105, 41, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(246, 105, 41, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--highlight) !important;
  border-color: var(--edge);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--pulse);
  color: var(--pulse) !important;
  background: var(--pulse-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================================
   HEADER & NAVBAR
   ============================================================== */
.topbar {
  background: #03070D;
  color: #94A3B8;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar a:hover {
  color: var(--pulse-bright);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.topbar-socials {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--edge);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link-item {
  position: relative;
}

.nav-link-item a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--paper);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link-item a:hover {
  color: var(--pulse);
  background: var(--pulse-soft);
}

.nav-link-item.active a {
  color: var(--pulse);
  font-weight: 600;
  background: var(--pulse-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--edge);
  background: var(--surface);
  color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--pulse);
  color: var(--pulse);
  transform: rotate(18deg);
  background: var(--pulse-soft);
}

/* Quote Button / Badge */
.quote-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--edge);
  color: var(--highlight);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quote-nav-btn:hover {
  border-color: var(--fill);
  color: var(--fill);
  background: var(--fill-soft);
  transform: translateY(-1px);
}

.quote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--fill);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--highlight);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==============================================================
   HERO BANNER
   ============================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-content h1 span.gradient-text {
  background: var(--gradient-brand-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--paper-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 2;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 51, 102, 0.2));
  animation: floatGentle 5s ease-in-out infinite;
}

.hero-glow-circle {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(41, 182, 246, 0.25) 0%, rgba(246, 105, 41, 0.15) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Hero Stats Pill */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--edge);
}

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--highlight);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--paper-muted);
  margin-bottom: 0;
}

/* ==============================================================
   SECTION HEADERS
   ============================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header.text-start {
  text-align: start;
  margin-left: 0;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-top: 0.75rem;
  margin-bottom: 0.9rem;
}

.section-header p {
  color: var(--paper-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ==============================================================
   CATEGORY CARDS (BENTO STYLE)
   ============================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--edge-hover);
  box-shadow: var(--shadow-lg);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--pulse-soft);
  color: var(--pulse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.cat-card:hover .cat-icon-box {
  background: var(--gradient-cyan);
  color: #FFFFFF;
  transform: scale(1.08);
}

.cat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cat-card p {
  color: var(--paper-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.cat-card .cat-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pulse);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-card:hover .cat-link {
  color: var(--fill);
  transform: translateX(4px);
}

/* ==============================================================
   PRODUCT CARDS & GRID
   ============================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--edge-hover);
  box-shadow: var(--shadow-xl);
}

.product-img-wrap {
  position: relative;
  background: #FFFFFF;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--edge-subtle);
}

.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.tag-stock {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-stock.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.3);
}

.tag-stock.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pulse);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: var(--highlight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.product-title:hover {
  color: var(--pulse);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--paper-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--edge-subtle);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--highlight);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==============================================================
   SHOP LAYOUT (SIDEBAR & MAIN)
   ============================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.shop-sidebar {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 96px;
  box-shadow: var(--card-shadow);
}

.sidebar-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-nav-item > a:hover {
  background: var(--surface-subtle);
  color: var(--highlight);
}

/* Seleccionado: fondo suave + contorno completo + negrita; el texto conserva alto contraste */
.category-nav-item.active > a {
  background: var(--pulse-soft);
  color: var(--highlight);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--edge-hover);
}
.category-nav-item.active > a:hover { background: var(--pulse-soft); }
.category-nav-item > a:focus-visible,
.subcategory-list li a:focus-visible { outline: 2px solid var(--pulse); outline-offset: -2px; }

/* Search bar component */
.search-box-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--surface-subtle);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--pulse);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--pulse-soft);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper-muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--paper-muted);
  cursor: pointer;
  padding: 0.25rem;
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
}

.shop-breadcrumb {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--highlight);
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--edge);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--pulse);
  color: var(--pulse);
  background: var(--pulse-soft);
}

.page-btn.active {
  background: var(--pulse);
  border-color: var(--pulse);
  color: #FFFFFF;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==============================================================
   PRODUCT DETAIL PAGE
   ============================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 96px;
}

.detail-main-img {
  background: #FFFFFF;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.detail-main-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.detail-thumb-item {
  width: 78px;
  height: 78px;
  background: #FFFFFF;
  border: 2px solid var(--edge);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.detail-thumb-item:hover,
.detail-thumb-item.active {
  border-color: var(--pulse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.detail-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.detail-brand-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pulse);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.detail-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--edge-subtle);
  border-bottom: 1px solid var(--edge-subtle);
  margin-bottom: 1.5rem;
}

.detail-price {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--highlight);
}

.detail-shipping-badge {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.detail-specs-box {
  margin: 1.5rem 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin-top: 0.75rem;
}

.specs-item {
  background: var(--surface-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid var(--edge-subtle);
}

.specs-item strong {
  color: var(--highlight);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

/* Stepper Quantity */
.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  overflow: hidden;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--highlight);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.stepper-btn:hover {
  background: var(--pulse-soft);
  color: var(--pulse);
}

.stepper-value {
  width: 50px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--highlight);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==============================================================
   SERVICES PAGE
   ============================================================== */
.services-hero-mosaic {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--edge-hover);
  box-shadow: var(--shadow-xl);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--pulse-soft);
  color: var(--pulse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
  background: var(--gradient-cyan);
  color: #FFFFFF;
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--paper-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* ==============================================================
   ABOUT PAGE (DE BYTE A JOTTABYTE & VALUES)
   ============================================================== */
.scale-visualizer {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin: 3.5rem 0;
  box-shadow: var(--card-shadow);
}

.scale-steps-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.scale-node {
  background: var(--surface-subtle);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center;
  min-width: 64px;
  transition: all 0.25s ease;
}

.scale-node:hover:not(.highlight) {
  border-color: var(--pulse);
  transform: translateY(-2px);
}

.scale-node .unit {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.1rem;
  color: var(--highlight);
}

.scale-node .desc {
  font-size: 0.68rem;
  color: var(--paper-muted);
}

.scale-node .eq {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--paper-muted);
  white-space: nowrap;
}

.scale-node.highlight .eq {
  color: #E0F2FE;
  font-size: 0.8rem;
}

.scale-node.highlight {
  background: var(--gradient-cyan);
  color: #FFFFFF;
  border-color: transparent;
  padding: 1.4rem 2.2rem;
  border-radius: var(--radius-lg);
  min-width: 170px;
  transform: scale(1.15);
  box-shadow: 0 12px 28px -4px rgba(2, 136, 209, 0.45);
  margin-left: 0.75rem;
  position: relative;
  z-index: 2;
}

.scale-node.highlight:hover {
  transform: scale(1.18) translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(2, 136, 209, 0.55);
}

.scale-node.highlight .unit {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.scale-node.highlight .desc {
  color: #E0F2FE;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.value-box {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--highlight);
}

.value-box p {
  color: var(--paper-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==============================================================
   CONTACT PAGE & MAP
   ============================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--pulse-soft);
  color: var(--pulse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.95rem;
  color: var(--paper-muted);
  margin-bottom: 0;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.schedule-table tr {
  border-bottom: 1px solid var(--edge-subtle);
}

.schedule-table td {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--paper);
}

.schedule-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--highlight);
  font-weight: 500;
}

.map-container {
  height: 360px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
}

/* ==============================================================
   COTIZADOR DRAWER / MODAL
   ============================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border-left: 1px solid var(--edge);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xl);
}

.drawer-backdrop.show .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--paper-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.drawer-close:hover {
  color: var(--highlight);
}

.drawer-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--edge);
  background: var(--surface-subtle);
}

.quote-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--edge-subtle);
}

.quote-item-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--highlight);
}

.quote-item-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--paper-muted);
}

.quote-item-subtotal {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--highlight);
  text-align: right;
}

/* ==============================================================
   SERVICES MODAL
   ============================================================== */
.modal-custom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-custom.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-custom.show .modal-card {
  transform: scale(1);
}

.modal-header-custom {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body-custom {
  padding: 2rem;
  overflow-y: auto;
}

.modal-items-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.modal-items-list li {
  padding: 0.75rem 1rem;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid var(--edge-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==============================================================
   FOOTER
   ============================================================== */
.main-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--pulse-bright);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--pulse-bright);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #64748B;
}

/* ==============================================================
   TOAST NOTIFICATION
   ============================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  background: var(--surface);
  border: 1px solid var(--edge-hover);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-xl);
  color: var(--highlight);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item i {
  color: var(--color-semantic-success);
  font-size: 1.1rem;
}

/* ==============================================================
   RESPONSIVE QUERIES
   ============================================================== */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--edge);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-grid,
  .shop-layout,
  .detail-grid,
  .services-hero-mosaic,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }
}

/* ==================================================================
   UX v3 — Cotizar por WhatsApp, soporte destacado, reseñas, necesidades
   ================================================================== */

/* Aviso "sin compra en línea" */
.sales-notice {
  background: var(--pulse-soft);
  border-bottom: 1px solid var(--edge);
  font-size: 0.88rem;
  color: var(--paper);
}
.sales-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  text-align: center;
}
.sales-notice i { color: var(--pulse); flex-shrink: 0; }
.sales-notice p { margin: 0; line-height: 1.4; }
.sales-notice a { color: var(--pulse); font-weight: 700; text-decoration: underline; }

/* Botón "Cotizar por WhatsApp" del header */
.quote-nav-btn--wa {
  background: #15803D;
  border-color: #15803D;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.28);
}
.quote-nav-btn--wa:hover {
  background: #166534;
  border-color: #166534;
  color: #FFFFFF;
}
.quote-nav-btn--wa i { font-size: 1.1rem; }

/* "Soporte técnico" resaltado en el menú */
.nav-link-item.nav-link-support a {
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(246, 105, 41, 0.28);
}
.nav-link-item.nav-link-support a:hover {
  color: #FFFFFF;
  background: var(--gradient-accent);
  transform: translateY(-1px);
}
.nav-link-item.nav-link-support i { margin-right: 0.3rem; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0 1.1rem 0 1rem;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float i { font-size: 1.8rem; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }

/* Franja de soporte técnico (home) */
.support-strip {
  padding: 2.25rem 0;
  background: var(--gradient-primary);
  color: #FFFFFF;
}
.support-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.support-strip-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #FFFFFF;
}
.support-strip h2 {
  color: #FFFFFF;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 0 0 0.35rem;
}
.support-strip p { margin: 0; opacity: 0.92; line-height: 1.55; }
.support-strip-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-light-outline {
  background: transparent;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-light-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* Reseñas */
.reviews-section {
  padding: 4.5rem 0;
  background: var(--surface-subtle);
  border-top: 1px solid var(--edge);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-card-head { display: flex; align-items: center; gap: 0.9rem; }
.review-brand {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.review-brand--google { background: #EA4335; }
.review-brand--facebook { background: #1877F2; }
.review-card-head h3 { margin: 0; font-size: 1.15rem; }
.review-score { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.review-score strong { font-size: 1.8rem; font-family: var(--font-display); color: var(--highlight); }
.review-stars { color: #F59E0B; letter-spacing: 2px; }
.review-quote {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--pulse);
  background: var(--pulse-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.review-quote footer { margin-top: 0.4rem; font-size: 0.82rem; color: var(--paper-muted); }
.review-card .btn-modern { margin-top: auto; align-self: flex-start; }

/* Por necesidad (servicios) */
.needs-section { margin: 0 0 4rem; scroll-margin-top: 96px; }
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.need-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.need-card:hover { transform: translateY(-3px); border-color: var(--edge-hover); }
.need-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--pulse-soft);
  color: var(--pulse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.need-card h3 { margin: 0; font-size: 1.15rem; }
.need-card p { margin: 0; color: var(--paper-muted); font-size: 0.93rem; line-height: 1.55; }
.need-card .btn-modern { margin-top: auto; white-space: normal; }
.need-form-field { margin-bottom: 1.1rem; }
.need-form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--highlight);
}

/* Marcador del mapa con logo */
.jbyte-pin { position: relative; width: 84px; height: 98px; }
.jbyte-pin-bubble {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--color-brand-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.jbyte-pin-bubble img { width: 68px !important; max-width: 68px !important; height: auto !important; max-height: none !important; display: block; }
.jbyte-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid var(--color-brand-primary);
}
.leaflet-container .leaflet-popup-content a.btn-modern { color: #FFFFFF; }

/* ---- Responsivo ---- */
@media (max-width: 992px) {
  .needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-strip-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .support-strip-actions { justify-content: center; }
  .nav-link-item.nav-link-support a { display: block; text-align: center; }
}

@media (max-width: 640px) {
  .sales-notice { font-size: 0.8rem; }
  .sales-notice-inner { align-items: flex-start; text-align: left; }
  .quote-nav-btn--wa .quote-label { display: none; }
  .quote-nav-btn--wa { min-width: 44px; min-height: 40px; justify-content: center; }
  .reviews-grid, .needs-grid { grid-template-columns: 1fr; }
  .reviews-section { padding: 3rem 0; }
  .wa-float { right: 12px; bottom: 12px; padding: 0; width: 56px; justify-content: center; }
  .wa-float span { display: none; }
  .btn-modern { white-space: normal; }
  .hero-cta .btn-modern, .support-strip-actions .btn-modern { width: 100%; }
  .modal-card { margin: 0.75rem; max-height: calc(100vh - 1.5rem); overflow-y: auto; }
}

.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--paper-muted); }
.hero-note i { color: var(--pulse); margin-right: 0.3rem; }
.hero-note a { color: var(--pulse); font-weight: 600; }

/* Responsivo: evita que el contenido mínimo ensanche columnas únicas */
@media (max-width: 992px) {
  .hero-grid, .shop-layout, .detail-grid, .services-hero-mosaic, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-gallery { position: static; }
}
@media (max-width: 640px) {
  .detail-main-img { height: 300px; padding: 1.25rem; }
  .process-bento { padding: 2rem 1.25rem !important; margin-top: 3rem !important; }
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ==================================================================
   Tienda: menú de familias/subfamilias con scroll propio
   ================================================================== */
.shop-sidebar {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}
.shop-sidebar .search-box-wrap,
.shop-sidebar .sidebar-title,
.shop-sidebar .sidebar-note { flex-shrink: 0; }
.sidebar-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--edge);
}
.category-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -0.75rem;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--edge-hover) transparent;
}
.category-scroll::-webkit-scrollbar { width: 6px; }
.category-scroll::-webkit-scrollbar-thumb { background: var(--edge-hover); border-radius: 6px; }

.category-nav-item > a { gap: 0.5rem; }
.category-nav-item .cat-meta { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  color: var(--paper);
  font-weight: 600;
}
.category-nav-item.active > a .cat-count,
.subcategory-list li.active a .cat-count {
  background: var(--surface);
  color: var(--highlight);
  box-shadow: inset 0 0 0 1px var(--pulse);
}
.cat-chevron { font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s ease; }
.category-group.open > a .cat-chevron { transform: rotate(180deg); }
/* Familia abierta con una subfamilia elegida: solo se resalta el texto */
.category-group.has-active > a { color: var(--highlight); font-weight: 600; }

.subcategory-list {
  list-style: none;
  display: none;
  margin: 0.25rem 0 0.4rem 0.9rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--edge);
  flex-direction: column;
  gap: 0.15rem;
}
.category-group.open > .subcategory-list { display: flex; }
.subcategory-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
  color: var(--paper-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.subcategory-list li a:hover { background: var(--surface-subtle); color: var(--highlight); }
.subcategory-list li.active a {
  background: var(--pulse-soft);
  color: var(--highlight);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--edge-hover);
}
.subcategory-list li.active a:hover { background: var(--pulse-soft); }

@media (max-width: 992px) {
  .shop-sidebar { position: static; max-height: none; }
  .category-scroll { max-height: 340px; flex: none; }
}

/* Reseñas: lista con scroll propio dentro de cada tarjeta (más reciente primero) */
.review-quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--edge-hover) transparent;
}
.review-quotes::-webkit-scrollbar { width: 6px; }
.review-quotes::-webkit-scrollbar-thumb { background: var(--edge-hover); border-radius: 6px; }
.review-quotes:focus-visible { outline: 2px solid var(--pulse); outline-offset: 3px; border-radius: var(--radius-sm); }
.review-quotes .review-quote { margin: 0; }
/* En pantallas amplias, las reseñas van de dos en dos (una al lado de la otra) */
@media (min-width: 1100px) {
  .review-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.review-card { min-width: 0; }
