/* ==========================================================================
   STACKYL.DEV — DESIGN SYSTEM & STYLESHEET
   Default: Modern Light Theme | Optional: Dark Developer Theme
   ========================================================================== */

:root,
[data-theme="light"] {
  /* Color Palette - Default Light Theme */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-navbar: rgba(248, 250, 252, 0.88);
  --bg-navbar-scrolled: rgba(255, 255, 255, 0.96);
  --bg-footer: #f1f5f9;
  --bg-pill: #f1f5f9;
  --bg-tag: #f1f5f9;

  /* Borders */
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-highlight: rgba(2, 132, 199, 0.45);
  --border-indigo: rgba(79, 70, 229, 0.35);

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-emphasis: #1e293b;

  /* Brand & Accent Colors */
  --accent-cyan: #0284c7;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --badge-live-bg: rgba(16, 185, 129, 0.12);
  --badge-live-text: #047857;
  --badge-live-border: rgba(16, 185, 129, 0.35);
  --badge-building-bg: rgba(245, 158, 11, 0.14);
  --badge-building-text: #b45309;
  --badge-building-border: rgba(245, 158, 11, 0.35);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #4f46e5 55%, #7c3aed 100%);
  --gradient-btn: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --gradient-btn-hover: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
  --gradient-featured-card: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  --gradient-service-featured: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  --gradient-contact: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  --gradient-cta-card: linear-gradient(145deg, rgba(241, 245, 249, 0.85) 0%, rgba(238, 242, 255, 0.75) 100%);

  /* Grid & Glow */
  --grid-line: rgba(15, 23, 42, 0.045);
  --glow-opacity: 0.32;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Shadows */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-lg: 0 20px 45px -15px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 10px 30px -5px rgba(2, 132, 199, 0.14);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ==========================================================================
   DARK THEME OVERRIDES
   ========================================================================== */
[data-theme="dark"] {
  --bg-base: #060911;
  --bg-surface: #0b101d;
  --bg-card: rgba(15, 23, 42, 0.68);
  --bg-card-hover: rgba(20, 30, 54, 0.88);
  --bg-elevated: #111827;
  --bg-navbar: rgba(6, 9, 17, 0.78);
  --bg-navbar-scrolled: rgba(6, 9, 17, 0.94);
  --bg-footer: rgba(5, 8, 15, 0.95);
  --bg-pill: rgba(30, 41, 59, 0.75);
  --bg-tag: rgba(30, 41, 59, 0.85);

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-highlight: rgba(56, 189, 248, 0.4);
  --border-indigo: rgba(129, 140, 248, 0.38);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-emphasis: #e2e8f0;

  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --badge-live-bg: rgba(16, 185, 129, 0.12);
  --badge-live-text: #34d399;
  --badge-live-border: rgba(16, 185, 129, 0.3);
  --badge-building-bg: rgba(245, 158, 11, 0.12);
  --badge-building-text: #fbbf24;
  --badge-building-border: rgba(245, 158, 11, 0.3);

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 55%, #c084fc 100%);
  --gradient-btn: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
  --gradient-btn-hover: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --gradient-featured-card: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 16, 29, 0.95) 100%);
  --gradient-service-featured: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  --gradient-contact: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(17, 24, 39, 0.96) 100%);
  --gradient-cta-card: linear-gradient(145deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 27, 75, 0.25) 100%);

  --grid-line: rgba(148, 163, 184, 0.045);
  --glow-opacity: 0.45;

  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.22);

  color-scheme: dark;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Prevent CSS Grid & Flex children from blowing out container width */
.hero__grid > *,
.featured-product > *,
.products-grid > *,
.services-grid > *,
.eng-layout > * {
  min-width: 0;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-accent {
  color: var(--accent-cyan);
}

.icon {
  flex-shrink: 0;
}

.inline-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.inline-link:hover {
  color: var(--accent-indigo);
}

/* ==========================================================================
   AMBIENT BACKGROUND EFFECTS
   ========================================================================== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 50%, transparent 100%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: var(--glow-opacity);
}

.bg-glow--top {
  width: min(560px, 100vw);
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(79, 70, 229, 0.14) 60%, transparent 100%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow--middle {
  width: min(500px, 90vw);
  height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.16) 0%, rgba(14, 165, 233, 0.08) 70%, transparent 100%);
  top: 40%;
  right: -120px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  text-align: center;
}

.btn--xs {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.45rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn--primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(14, 165, 233, 0.32);
}

.btn--primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -2px rgba(14, 165, 233, 0.42);
}

.btn--secondary {
  background: var(--bg-pill);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.12);
}

.btn--outline {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-cyan);
  border-color: rgba(2, 132, 199, 0.3);
}

.btn--outline:hover {
  background: rgba(2, 132, 199, 0.16);
  border-color: var(--accent-cyan);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 24px -4px rgba(16, 185, 129, 0.38);
}

.btn--whatsapp:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -4px rgba(16, 185, 129, 0.5);
}

.btn--icon {
  padding: 0.85rem;
  border-radius: 10px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.btn--icon:hover {
  color: var(--accent-cyan);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.badge--live {
  background: var(--badge-live-bg);
  color: var(--badge-live-text);
  border: 1px solid var(--badge-live-border);
}

.badge--building {
  background: var(--badge-building-bg);
  color: var(--badge-building-text);
  border: 1px solid var(--badge-building-border);
}

/* ==========================================================================
   HEADER / NAVBAR & THEME TOGGLE
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 74px;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-navbar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: var(--bg-navbar-scrolled);
  border-bottom-color: var(--border-highlight);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__text {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__name {
  color: var(--text-primary);
}

.brand__domain {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
}

.brand__status {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--badge-live-bg);
  border: 1px solid var(--badge-live-border);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--badge-live-text);
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__mobile-cta {
  display: none;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

/* Show Moon in Light mode, Sun in Dark mode */
[data-theme="light"] .theme-icon--sun {
  display: none;
}
[data-theme="light"] .theme-icon--moon {
  display: block;
}

[data-theme="dark"] .theme-icon--moon {
  display: none;
}
[data-theme="dark"] .theme-icon--sun {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.09);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--accent-cyan);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  max-width: 100%;
}

.eyebrow-badge__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.hero__metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric-item__value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Code Window in Hero (Dark IDE aesthetic in both light and dark modes for contrast) */
.code-window {
  background: #0b101d;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.code-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.code-window__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green { background: #10b981; }

.code-window__tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.code-window__tabs::-webkit-scrollbar {
  display: none;
}

.code-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  color: #94a3b8;
  white-space: nowrap;
  transition: all var(--transition);
}

.code-tab:hover {
  color: #e2e8f0;
}

.code-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.code-window__badge {
  font-size: 0.7rem;
  color: #64748b;
  flex-shrink: 0;
}

.code-window__body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.65;
  overflow-x: auto;
  min-height: 250px;
  color: #e2e8f0;
  max-width: 100%;
}

.code-block {
  display: none;
  margin: 0;
}

.code-block.active {
  display: block;
}

/* Code Syntax Highlighting */
.c-kw { color: #c084fc; font-weight: 500; }
.c-var { color: #38bdf8; }
.c-prop { color: #93c5fd; }
.c-str { color: #34d399; }
.c-bool { color: #fbbf24; }
.c-fn { color: #818cf8; }
.c-arg { color: #fca5a5; }

.code-window__footer {
  padding: 0.9rem 1.15rem;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.code-window__footer .badge--live {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.32);
}

.code-window__footer .btn--outline {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}

.live-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.live-spotlight__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.live-spotlight__title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
}

.live-spotlight__url {
  font-size: 0.73rem;
  color: #38bdf8;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2.75rem;
}

.section__header--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__title-wrap {
  max-width: 680px;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.section__title {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ==========================================================================
   PRODUCT CATALOG SECTION (#productos)
   ========================================================================== */
.catalog-filters {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--bg-surface);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  gap: 0.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  max-width: 100%;
}

.filter-btn {
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

.filter-btn.active .filter-count {
  background: var(--accent-cyan);
  color: #ffffff;
  font-weight: 700;
}

/* Featured Flagship Product Card (FiscoPlus) */
.featured-product {
  background: var(--gradient-featured-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 2.75rem;
  align-items: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.featured-product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.featured-product__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.featured-product__domain {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(2, 132, 199, 0.22);
}

.featured-product__title {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.featured-product__tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-emphasis);
  margin-bottom: 0.9rem;
}

.featured-product__desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 1.35rem;
}

.featured-product__highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1rem;
  margin-bottom: 1.5rem;
}

.featured-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-emphasis);
}

.featured-highlight svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-tag);
  color: var(--text-emphasis);
  border: 1px solid var(--border-subtle);
}

.featured-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Browser Mockup Frame for Product Screenshot */
.browser-frame {
  display: block;
  background: #090d16;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
  transition: transform var(--transition), border-color var(--transition);
}

.featured-product:hover .browser-frame {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.browser-frame__url {
  flex: 1;
  min-width: 0;
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 0.22rem 0.65rem;
  font-size: 0.73rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame__url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame__viewport {
  position: relative;
  background: #0b1120;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.browser-frame__viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.featured-product:hover .browser-frame__viewport img {
  transform: scale(1.02);
}

/* Secondary Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.product-card__domain {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-card__tagline {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-emphasis);
  margin-bottom: 0.65rem;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

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

/* Add New Product / Custom SaaS Card */
.product-card--cta {
  border-style: dashed;
  border-color: var(--border-indigo);
  background: var(--gradient-cta-card);
}

/* ==========================================================================
   SERVICES SECTION (#servicios)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.65rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.15rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  border-color: var(--border-indigo);
  background: var(--gradient-service-featured);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card--featured .service-card__icon {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--accent-indigo);
}

.service-card__num {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 1.4rem;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.85rem;
  flex: 1;
}

.service-card__list li {
  font-size: 0.88rem;
  color: var(--text-emphasis);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.service-card__list li::before {
  content: '▹';
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: bold;
}

.service-card__footer {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.service-card__link:hover {
  color: var(--accent-indigo);
  gap: 0.75rem;
}

/* ==========================================================================
   ENGINEERING & WORKFLOW SECTION (#sobre-mi)
   ========================================================================== */
.eng-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.eng-profile__role {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.eng-profile__lead {
  font-size: 1.06rem;
  color: var(--text-emphasis);
  margin-bottom: 0.95rem;
}

.eng-profile__text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.96rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.15rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.pillar__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 0.35rem;
}

.pillar__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tech-stack__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.tech-stack__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-emphasis);
  font-weight: 500;
}

/* Process & Career Box */
.process-box {
  background: var(--gradient-featured-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.process-box__header {
  margin-bottom: 1.5rem;
}

.process-box__header span,
.process-box__subheader span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.process-box__header h3 {
  font-size: 1.32rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.career-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.career-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.career-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

.career-item__period {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.career-item__role {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.1rem 0 0.2rem;
}

.career-item__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.process-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.65rem 0;
}

.process-box__subheader {
  margin-bottom: 1.25rem;
}

.process-box__subheader h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0.2rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.process-step {
  display: flex;
  gap: 1rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: -16px;
  width: 1px;
  background: var(--border-highlight);
}

.process-step__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step__body h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.process-step__body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT / CONVERSION SECTION (#contacto)
   ========================================================================== */
.contact-card {
  position: relative;
  background: var(--gradient-contact);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact-card__glow {
  position: absolute;
  width: min(480px, 100%);
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-card__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card__title {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-card__desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

.intent-selector {
  margin-bottom: 2rem;
}

.intent-selector__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.intent-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.intent-pill {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.intent-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.intent-pill.active {
  background: rgba(2, 132, 199, 0.14);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.email-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
}

.contact-card__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-footer);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer__brand {
  max-width: 340px;
}

.footer__tagline {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer__heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  word-break: break-word;
}

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

.badge-mini {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--badge-live-bg);
  color: var(--badge-live-text);
  border: 1px solid var(--badge-live-border);
}

.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__built {
  font-size: 0.78rem;
}

/* ==========================================================================
   TOAST NOTIFICATION & SCROLL REVEAL
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 360px;
  margin-left: auto;
  z-index: 200;
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 0.8rem 1.15rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  animation: toastIn 0.25s ease forwards;
}

.toast[hidden] {
  display: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-reveal-ready [data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(18px);
}

.js-reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid,
  .featured-product,
  .eng-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.15rem;
  }

  .navbar {
    height: 66px;
  }

  .hide-mobile,
  .brand__status {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Fix mobile dropdown menu: positioned cleanly below sticky header and hidden when closed */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-navbar-scrolled);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    padding: 1.25rem 1.15rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 99;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__link {
    display: block;
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .nav__link:hover,
  .nav__link.active {
    background: rgba(2, 132, 199, 0.08);
  }

  .nav__link::after {
    display: none;
  }

  .nav__mobile-cta {
    display: block;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav__mobile-cta .btn {
    width: 100%;
  }

  /* Hero Mobile Adjustments */
  .hero {
    padding: 2.25rem 0 2.75rem;
  }

  .eyebrow-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.7rem;
    white-space: normal;
    line-height: 1.35;
    border-radius: 10px;
    margin-bottom: 1.15rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
    line-height: 1.16;
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.65rem;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero__cta-group .btn {
    width: 100%;
    white-space: normal;
  }

  .hero__metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.35rem;
  }

  .metric-divider {
    display: none;
  }

  /* Code Window Mobile Adjustments */
  .code-window__header {
    padding: 0.6rem 0.85rem;
  }

  .code-window__badge {
    display: none;
  }

  .code-window__body {
    padding: 1rem 0.9rem;
    font-size: 0.74rem;
    min-height: auto;
  }

  .code-window__footer {
    padding: 0.8rem 0.9rem;
  }

  .live-spotlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .live-spotlight__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .live-spotlight .btn {
    width: 100%;
  }

  /* Sections & Catalog Mobile */
  .section {
    padding: 3.5rem 0;
  }

  .section__header {
    margin-bottom: 2rem;
    gap: 1.25rem;
  }

  .catalog-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .filter-btn {
    padding: 0.45rem 0.35rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .services-grid,
  .pillars-grid,
  .featured-product__highlights,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .featured-product {
    padding: 1.35rem 1.15rem;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .featured-product__actions {
    flex-direction: column;
    width: 100%;
  }

  .featured-product__actions .btn {
    width: 100%;
  }

  .product-card,
  .service-card,
  .process-box {
    padding: 1.4rem 1.2rem;
  }

  .profile-links {
    flex-direction: column;
  }

  .profile-links .btn {
    width: 100%;
  }

  /* Contact Card Mobile */
  .contact-card {
    padding: 2rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .intent-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .intent-pill {
    width: 100%;
    white-space: normal;
    text-align: center;
    border-radius: 10px;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .contact-actions .btn--whatsapp {
    width: 100%;
  }

  .email-action-group {
    width: 100%;
    display: flex;
  }

  .email-action-group #main-email-btn {
    flex: 1;
    min-width: 0;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-size: 0.88rem;
  }

  #contact-email-display {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Footer Mobile */
  .footer {
    padding: 3rem 0 1.75rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
    width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Extra small phones (<= 400px) */
@media (max-width: 400px) {
  .brand__text {
    font-size: 1.05rem;
  }

  .navbar__actions .btn--primary {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .catalog-filters {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }

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