/* ============================================================
   MAVISA — Premium Import Store
   CSS Design System v2.0
   Brand Theme: Navy Blue + Red Coral
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand Colors — Crema + Navy (tarjeta de presentación) */
  --color-bg:          #F0EBE0;   /* crema principal */
  --color-bg-2:        #E8E1D4;   /* crema sección alterna */
  --color-surface:     #FFFFFF;   /* blanco superficies/cards */
  --color-card:        #FFFFFF;   /* blanco cards */
  --color-border:      rgba(28,52,97,0.12);
  --color-border-glow: rgba(232,48,63,0.25);

  /* Accent Palette */
  --accent:            #E8303F;          /* Rojo marca — CTAs */
  --accent-dim:        rgba(232,48,63,0.10);
  --accent-glow:       rgba(232,48,63,0.30);
  --accent-2:          #2563A8;
  --accent-3:          #C9A84C;          /* Dorado cálido */
  --navy:              #1C3461;          /* Azul marino exacto del logo */
  --navy-logo:         #1C3461;
  --navy-light:        #2A4E8A;

  /* Gradientes */
  --grad-main:         linear-gradient(135deg, #E8303F 0%, #0D1E3C 100%);
  --grad-hero:         linear-gradient(135deg, rgba(28,52,97,0.08) 0%, rgba(232,48,63,0.06) 100%);
  --grad-card:         linear-gradient(135deg, rgba(28,52,97,0.04) 0%, rgba(232,48,63,0.03) 100%);
  --grad-text:         linear-gradient(135deg, #E8303F 0%, #1C3461 100%);
  --grad-navy:         linear-gradient(135deg, #1C3461 0%, #2A4E8A 100%);

  /* Text — navy sobre crema */
  --text-primary:      #1C3461;   /* navy oscuro */
  --text-secondary:    #4A6080;   /* navy medio */
  --text-muted:        #8A9BB0;   /* navy suave */

  /* Typography */
  --font-body:         'DM Sans', sans-serif;
  --font-heading:      'Raleway', sans-serif;

  /* Sizing */
  --ticker-h:          40px;
  --nav-h:             72px;
  --header-total:      112px; /* ticker + nav */
  --radius-sm:         8px;
  --radius-md:         16px;
  --radius-lg:         24px;
  --radius-xl:         32px;
  --radius-full:       9999px;

  /* Shadows — suaves para fondo claro */
  --shadow-sm:         0 2px 8px rgba(28,52,97,0.08);
  --shadow-md:         0 8px 32px rgba(28,52,97,0.12);
  --shadow-lg:         0 24px 64px rgba(28,52,97,0.16);
  --shadow-accent:     0 8px 32px rgba(232,48,63,0.20);
  --shadow-navy:       0 8px 32px rgba(28,52,97,0.25);
  --shadow-card:       0 4px 24px rgba(28,52,97,0.10);

  /* Transitions */
  --ease-out:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:          0.2s;
  --dur-med:           0.4s;
  --dur-slow:          0.7s;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--navy), var(--accent));
  border-radius: var(--radius-full);
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: rgba(28,52,97,0.15);
  color: var(--navy);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-secondary); }
.text-sm       { font-size: 0.875rem; }
.text-xs       { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}
.section-sm {
  padding: 60px 0;
}
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm  { gap: 12px; }
.gap-md  { gap: 24px; }
.gap-lg  { gap: 40px; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: var(--ticker-h); left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-med) var(--ease-in-out),
              box-shadow var(--dur-med) var(--ease-in-out),
              backdrop-filter var(--dur-med) var(--ease-in-out),
              top 0.3s ease;
}
.nav.ticker-gone {
  top: 0;
}
.nav.scrolled {
  background: rgba(13, 30, 60, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 24px rgba(13,30,60,0.30);
}
/* Nav links se vuelven blancos al hacer scroll */
.nav.scrolled .nav-link {
  color: rgba(255,255,255,0.7);
}
.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav.scrolled .nav-logo span,
.nav.scrolled .nav-logo > span > span {
  color: #fff;
}
/* Logo PNG: navy sobre crema (sin filtro), blanco sobre navy (invertido) */
.nav.scrolled .logo-img {
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-navy);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

/* Logo PNG — navy sobre crema: se ve perfecto sin filtros */
.nav-logo img,
.logo-img {
  mix-blend-mode: multiply;   /* fusiona con fondo crema → navy puro */
  filter: none;
  transition: filter var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
}
.nav-logo:hover .logo-img,
.nav-logo:hover img {
  opacity: 0.85;
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: rgba(28,52,97,0.07);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--accent);          /* rojo marca */
  border-radius: var(--radius-full);
}
/* ── Nav Search ───────────────────────────────────────────── */
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 1 380px;
}
.nav-search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-search-input {
  width: 100%;
  padding: 11px 18px 11px 44px;
  border: 2.5px solid rgba(28,52,97,0.4);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(28,52,97,0.12);
}
.nav-search-input::placeholder { color: var(--text-muted); font-size: 0.875rem; }
.nav-search-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(28,52,97,0.14), 0 3px 12px rgba(28,52,97,0.12);
}
.nav.scrolled .nav-search-input {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.nav.scrolled .nav-search-input::placeholder { color: rgba(255,255,255,0.5); }
.nav.scrolled .nav-search-input:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.nav.scrolled .nav-search-icon { color: rgba(255,255,255,0.6); }

/* ── Live Search Dropdown ─────────────────────────────────── */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid rgba(28,52,97,0.15);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(28,52,97,0.18);
  overflow: hidden;
  z-index: 3000;
  max-height: 380px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(28,52,97,0.07);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(28,52,97,0.05); }
.search-result-emoji {
  width: 38px; height: 38px;
  background: rgba(28,52,97,0.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-cat {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.search-result-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}
.search-result-ver {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s;
}
.search-result-item:hover .search-result-ver { background: var(--accent); }
.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-social-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-main);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  transition: opacity var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: var(--shadow-accent);
}
.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.3);
}

/* Nav icon buttons (WhatsApp, Instagram) */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-icon-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.nav-icon-btn svg { display: block; }

/* WhatsApp icon */
.nav-whatsapp-btn {
  background: #25D366;
  color: #fff;
}
.nav-whatsapp-btn:hover { box-shadow: 0 6px 18px rgba(37,211,102,0.4); }

/* Instagram icon */
.nav-instagram-btn {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}
.nav-instagram-btn:hover { box-shadow: 0 6px 18px rgba(214,36,159,0.35); }

/* Cotizar button */
.nav-cotizar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(28,52,97,0.35);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav-cotizar:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.nav.scrolled .nav-cotizar {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}
.nav.scrolled .nav-cotizar:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background: transparent;
  transition: background 0.18s;
}
.nav-hamburger:hover {
  background: rgba(28,52,97,0.10);
}
.nav-hamburger:hover span {
  background: var(--navy);
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

/* Mobile menu — panel deslizante desde la izquierda estilo JPT */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  z-index: 10000;
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(28,52,97,0.15);
}
.nav-mobile.open {
  transform: translateX(0);
}
/* Overlay oscuro detrás del panel */
.nav-mobile-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;           /* invisible = no intercepta clicks */
  transition: opacity 0.32s ease;
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;           /* sólo bloquea clicks cuando el menú está abierto */
}

/* Header del panel */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(28,52,97,0.08);
}
.nav-mobile-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
}
.nav-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(28,52,97,0.06);
  border: none;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-close:hover { background: rgba(28,52,97,0.12); }

/* Búsqueda dentro del panel */
.nav-mobile-search-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(28,52,97,0.06);
}
.nav-mobile-search-wrap input {
  width: 100%;
  background: rgba(28,52,97,0.05);
  border: 1px solid rgba(28,52,97,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--navy);
  font-family: var(--font-body);
  outline: none;
}
.nav-mobile-search-wrap input::placeholder { color: #8A9BB0; }

/* Sección del menú */
.nav-mobile-section {
  padding: 8px 0;
  border-bottom: 1px solid rgba(28,52,97,0.06);
}
.nav-mobile-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8A9BB0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 20px 4px;
}

/* Links de categoría */
.nav-mobile-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s;
  gap: 12px;
}
.nav-mobile-cat:active { background: rgba(28,52,97,0.04); }
.nav-mobile-cat-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mobile-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(28,52,97,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-mobile-cat-arrow {
  color: #8A9BB0;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Links normales */
.nav-mobile-link {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-mobile-link:active { background: rgba(28,52,97,0.04); }
.nav-mobile-link.active-page { color: var(--navy); font-weight: 700; }

/* Botones de acción dentro del menú */
.nav-mobile-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* Grupo izquierdo (mobile only) */
.nav-left-group {
  display: none;
}

/* Cotizar icon button (mobile only) */
.nav-cotizar-icon {
  display: none;
}

/* Botón de búsqueda en nav (mobile only, hidden desktop) */
.nav-search-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(28,52,97,0.07);
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  color: var(--navy);
}
.nav-search-btn svg { display: block; }
.nav.scrolled .nav-search-btn { color: #fff; background: rgba(255,255,255,0.15); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: all var(--dur-fast) var(--ease-in-out);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,212,255,0.35);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(232,48,63,0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37,211,102,0.4);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ── Badge / Tag ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-new    { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--color-border-glow); }
.badge-hot    { background: rgba(232,48,63,0.18); color: #E8303F; border: 1px solid rgba(232,48,63,0.3); }
.badge-sale   { background: rgba(244,197,66,0.15); color: var(--accent-3); border: 1px solid rgba(244,197,66,0.25); }
.badge-import { background: rgba(28,52,97,0.35); color: #5A8FD4; border: 1px solid rgba(37,99,168,0.35); }

/* ── Card Components ──────────────────────────────────────── */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(232,48,63,0.07);
  border-color: rgba(232,48,63,0.22);
}

/* Product Card */
.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.38s var(--ease-out),
              border-color 0.28s;
  cursor: pointer;
  position: relative;
  will-change: transform;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(232,48,63,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 24px 60px rgba(28,52,97,0.14), 0 0 0 1.5px rgba(232,48,63,0.22), 0 0 60px rgba(232,48,63,0.08);
  border-color: rgba(232,48,63,0.32);
}
.product-card:hover::before {
  opacity: 1;
}
.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f8f6f2 0%, var(--color-surface) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(240,235,224,0.5), transparent);
  pointer-events: none;
}
.product-card-image img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(.22,.68,0,1.2), filter 0.4s;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(28,52,97,0.10));
}
.product-card:hover .product-card-image img {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 16px 28px rgba(28,52,97,0.16));
}
.product-card-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card-actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card-action-btn {
  width: 36px; height: 36px;
  background: rgba(7,7,16,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.product-card-action-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.product-card-body {
  padding: 20px;
}
.product-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-specs {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-card-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.product-card-price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.product-card-btn {
  width: 40px; height: 40px;
  background: var(--grad-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  flex-shrink: 0;
}
.product-card-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-accent);
}

/* ── Category Card ────────────────────────────────────────── */
.category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 4px 20px rgba(28,52,97,0.08);
}
.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(28,52,97,0.16);
}
/* Colored top section */
.category-card-bg {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: height 0.3s var(--ease-out);
  overflow: hidden;
}
.category-card:hover .category-card-bg {
  height: 170px;
}
/* Shine effect on hover */
.category-card-bg::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.12);
  transform: skewX(-20deg) translateX(-100%);
  transition: transform 0.6s ease;
}
.category-card:hover .category-card-bg::after {
  transform: skewX(-20deg) translateX(500%);
}
.category-card-overlay { display: none; }
.category-card-emoji-bg {
  font-size: 5.5rem;
  line-height: 1;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
  transition: transform 0.35s var(--ease-out);
  z-index: 1;
}
.category-card:hover .category-card-emoji-bg {
  transform: scale(1.15) translateY(-4px);
}
/* White bottom section */
.category-card-content {
  padding: 18px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(28,52,97,0.07);
}
.category-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.category-card:hover .category-card-icon {
  transform: scale(1.1);
}
.category-card-text { flex: 1; }
.category-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  line-height: 1.2;
}
.category-card-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
/* Arrow indicator */
.category-card-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(28,52,97,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.category-card:hover .category-card-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(2px);
}

/* ── Glassmorphism — adaptado a fondo claro ───────────────── */
.glass {
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(28,52,97,0.10);
  color: var(--navy);
}
.glass-accent {
  background: rgba(28,52,97,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28,52,97,0.12);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 40px 0;
}

/* ── WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  animation: pulse-whatsapp 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
  50%       { box-shadow: 0 4px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}
.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: #25D366;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: all var(--dur-fast);
}
.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer — navy oscuro como la tarjeta de presentación ── */
.footer {
  background: var(--navy);
  /* patrón diagonal sutil (igual que la tarjeta) */
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.025) 30px,
      rgba(255,255,255,0.025) 60px
    );
  border-top: none;
  padding: 72px 0 32px;
  color: rgba(255,255,255,0.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}
.footer-social {
  color: rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.footer-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.70);
  transition: color var(--dur-fast), transform var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
}
.footer-zofri {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(28,52,97,0.35);
  border: 1px solid rgba(37,99,168,0.35);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5A8FD4;
}

/* ── Form Elements ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.form-input,
.form-textarea,
.form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: rgba(232,48,63,0.04);
  box-shadow: 0 0 0 3px rgba(232,48,63,0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-select option { background: var(--color-surface); }

/* ── Stat / Feature Cards ─────────────────────────────────── */
.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 38px;
  text-align: center;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,48,63,0.22);
}
.stat-card-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.stat-card-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med),
              box-shadow var(--dur-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,48,63,0.22);
  box-shadow: 0 0 40px rgba(232,48,63,0.06);
}
.feature-card-icon {
  width: 56px; height: 56px;
  background: var(--grad-card);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform var(--dur-fast);
}
.feature-card:hover .feature-card-icon { transform: scale(1.1) rotate(-4deg); }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Quick View Modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7,7,16,0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.94) translateY(16px);
  transition: transform var(--dur-med) var(--ease-out);
  position: relative;
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
  z-index: 10;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.modal-gallery {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-gallery-main {
  flex: 1;
  background: var(--color-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 24px;
  overflow: hidden;
}
.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}
.modal-gallery-main:hover img { transform: scale(1.06); }
.modal-thumbnails {
  display: flex;
  gap: 8px;
}
.modal-thumb {
  width: 60px; height: 60px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--dur-fast);
  flex-shrink: 0;
}
.modal-thumb.active,
.modal-thumb:hover { border-color: var(--accent); }
.modal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.modal-info {
  padding: 32px;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.modal-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}
.modal-price {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.modal-specs { margin-bottom: 28px; }
.modal-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.modal-spec-row:last-child { border-bottom: none; }
.modal-spec-label { color: var(--text-secondary); }
.modal-spec-value { font-weight: 600; }
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slide-in-right 0.3s var(--ease-out) forwards,
             slide-out-right 0.3s var(--ease-in-out) forwards 2.7s;
  max-width: 300px;
}
.toast-icon { color: var(--accent); font-size: 1rem; }
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-out-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(24px); }
}

/* ── Announcement / Ticker Bar ────────────────────────────── */
.ticker-bar {
  background: var(--grad-main);
  height: var(--ticker-h);
  padding: 0;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.ticker-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
}
.ticker-item {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ticker-dot {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.page-btn {
  width: 40px; height: 40px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,48,63,0.30);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); font-size: 0.7rem; }
.breadcrumb-current { color: var(--text-secondary); font-weight: 500; }

/* ── Hero Carousel ────────────────────────────────────────── */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide-emoji {
  font-size: 7rem;
  line-height: 1;
}
.hero-slide-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  padding: 0 16px;
}
.hero-slide-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── Hero Steps — segmented control ──────────────────────── */
.hs-wrap { margin-top: 28px; }

.hs-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(28,52,97,0.09);
  border-radius: 18px;
  padding: 5px;
  gap: 2px;
  position: relative;
  box-shadow: 0 2px 14px rgba(28,52,97,0.06);
  overflow: hidden;
}

/* Sliding dark indicator */
.hs-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  background: var(--navy);
  border-radius: 13px;
  box-shadow: 0 4px 18px rgba(28,52,97,0.22);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1),
              width   0.42s cubic-bezier(0.4,0,0.2,1);
}

.hs-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 13px;
  font-family: inherit;
  white-space: nowrap;
  transition: none;
}
.hs-tab:hover:not(.active) .hs-tab-label { color: var(--navy); opacity: 0.75; }
.hs-tab-icon { font-size: 1rem; line-height: 1; }
.hs-tab-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.35s ease;
  letter-spacing: -0.01em;
}
.hs-tab.active .hs-tab-label { color: #fff; }
.hs-tab.active .hs-tab-icon  { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18)); }


/* Description line below */
.hs-desc-wrap {
  margin-top: 12px;
  padding-left: 2px;
  min-height: 18px;
}
.hs-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: opacity 0.22s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hs-desc::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-total) + 60px) 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(28,52,97,0.18) 0%, transparent 60%);
  position: relative;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}
.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-title { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-info { border-left: none; border-top: 1px solid var(--color-border); }
  .section-header { margin-bottom: 40px; }
  .whatsapp-float { bottom: 20px; right: 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}


/* ============================================================
   MAVISA v3.0 — Frontend-Design Skill Enhancements
   Upgraded visual quality: typography, motion, depth, ecommerce
   ============================================================ */

/* Stats row — transparent on navy, cinematic numbers */
.stats-row .stat-card {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  padding: 36px 28px;
  box-shadow: none;
  transition: background 0.3s ease;
}
.stats-row .stat-card:last-child { border-right: none; }
.stats-row .stat-card:hover {
  transform: none;
  background: rgba(255,255,255,0.03);
  border-color: transparent;
}
.stats-row .stat-card-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-weight: 900;
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.stats-row .stat-card-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Value props strip — seamless continuation of navy block */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.value-strip-item {
  padding: 30px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s ease;
  text-decoration: none;
}
.value-strip-item:last-child { border-right: none; }
.value-strip-item:hover { background: rgba(255,255,255,0.03); }
.value-strip-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(232,48,63,0.12);
  border: 1px solid rgba(232,48,63,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.value-strip-item:hover .value-strip-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(232,48,63,0.22);
}
.value-strip-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.value-strip-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.55;
}

/* Category card — stronger hover with scale + glow */
.category-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 28px 72px rgba(28,52,97,0.24), 0 0 0 1.5px rgba(232,48,63,0.2);
}

/* Product card — stronger hover */
.product-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 32px 80px rgba(28,52,97,0.18), 0 0 0 1.5px rgba(232,48,63,0.22);
  border-color: transparent;
}

/* Hero carousel dark style */
.hero-carousel-dark {
  background: linear-gradient(145deg, #0f2347, var(--navy));
  box-shadow: 0 40px 100px rgba(10,18,40,0.65), 0 0 0 1px rgba(232,48,63,0.15);
}
.hero-carousel-dark .hero-slide-name {
  color: rgba(255,255,255,0.9);
}
.hero-carousel-dark .hero-slide-price {
  color: var(--accent);
}
.hero-carousel-dark .hero-dot {
  background: rgba(255,255,255,0.25);
}
.hero-carousel-dark .hero-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-carousel-dark .hero-slide-emoji {
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

/* Grain texture overlay for hero */
.hero-grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* CTA section — deep navy upgrade */
.cta-dark-banner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 80px 56px;
  background: linear-gradient(135deg, #080f1e 0%, #0f1e3c 35%, #1C3461 100%);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}
.cta-dark-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,48,63,0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-dark-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(28,52,97,0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Floating chip upgrade — glassmorphism on dark */
.glass-chip-dark {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.glass-chip-dark .chip-label {
  color: rgba(255,255,255,0.55);
}
.glass-chip-dark .chip-price {
  color: var(--accent);
}

/* Section header editorial upgrade */
.section-title-editorial {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Product card image hover — reveal button overlay */
.product-card-hover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(28,52,97,0.9) 0%, transparent 100%);
  padding: 20px 16px 14px;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card:hover .product-card-hover-overlay {
  transform: translateY(0);
}
.product-card-hover-overlay span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .value-strip-item:nth-child(2) { border-right: none; }
  .value-strip-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .value-strip-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }
  .stats-row .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stats-row .stat-card:last-child { border-bottom: none; }
  .cta-dark-banner { padding: 56px 32px; }
}
@media (max-width: 600px) {
  .value-strip { grid-template-columns: 1fr; }
  .value-strip-item { border-right: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .value-strip-item:first-child { border-top: none; }
}

/* ============================================================
   MAVISA — Mobile Optimization
   Breakpoints: 768px (tablet), 480px (phone), 380px (small)
   ============================================================ */

/* ── Hero — stack en mobile ───────────────────────────────── */
@media (max-width: 768px) {
  /* Hero section padding */
  section.hero, .hero {
    padding-top: calc(var(--nav-h) + 32px) !important;
    padding-bottom: 48px !important;
    min-height: auto !important;
  }

  /* Hero grid: single column, text first */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }

  /* Hero text column: center everything */
  .hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Hero visual: show a smaller version below */
  .hero-visual-col {
    justify-content: center;
  }

  /* Reduce carousel size on mobile */
  #hero-carousel {
    width: 220px !important;
    height: 220px !important;
    border-radius: 28px !important;
  }

  /* Hide floating glow ring */
  .hero-visual-col > div:first-child {
    width: 300px !important;
    height: 300px !important;
  }

  /* Container for carousel: smaller */
  .hero-visual-col > div:last-child {
    width: 260px !important;
    height: 260px !important;
  }

  /* Hide floating product chips — too cramped on mobile */
  .hero-chip {
    display: none !important;
  }

  /* Hero heading */
  .hero-grid h1 {
    font-size: clamp(2.2rem, 8vw, 3rem) !important;
    margin: 16px 0 20px !important;
  }

  /* Hero subtitle */
  .hero-grid p {
    font-size: 1rem !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }

  /* Hero badge/label */
  .hero-grid .section-label {
    font-size: 0.52rem !important;
    padding: 8px 12px !important;
    text-align: center;
    letter-spacing: 0.03em !important;
  }

  /* Hero CTA buttons: stack vertically */
  .hero-grid > div:first-child > div[style*="flex-wrap"] {
    flex-direction: column;
    align-items: center;
    gap: 10px !important;
  }
  .hero-grid .btn-lg {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* hs-pill: center and scale */
  .hs-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
  .hs-pill {
    flex-wrap: nowrap;
  }
  .hs-tab {
    padding: 9px 14px !important;
  }
  .hs-tab-label {
    font-size: 0.78rem !important;
  }
  .hs-desc-wrap {
    text-align: center;
  }

  /* Scroll indicator */
  section.hero > div[style*="bottom:32px"] {
    display: none !important;
  }
}

/* ── Stats row on mobile ──────────────────────────────────── */
@media (max-width: 768px) {
  .stats-row,
  .section-sm .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }
  .stats-row .stat-card {
    border-right: 1px solid rgba(255,255,255,0.07) !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    padding: 24px 16px !important;
  }
  .stats-row .stat-card:nth-child(2),
  .section-sm .grid-4 .stat-card:nth-child(2) {
    border-right: none !important;
  }
  .stats-row .stat-card:nth-child(3),
  .stats-row .stat-card:nth-child(4) {
    border-bottom: none !important;
  }
  .stat-card-number {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
  }
}

/* ── Section spacing ─────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0 !important; }
  .section-sm { padding: 32px 0 !important; }
  .section-title {
    font-size: clamp(1.7rem, 6vw, 2.2rem) !important;
    line-height: 1.15 !important;
  }
  .section-subtitle {
    font-size: 0.9rem !important;
  }
  .section-header {
    margin-bottom: 32px !important;
  }
}

/* ── Category cards ──────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-4.categories-grid,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .category-card {
    padding: 0 !important;
  }
  .category-card-bg {
    height: 130px !important;
  }
  .category-card-emoji-bg {
    font-size: 4rem !important;
  }
  .category-card-content {
    padding: 12px !important;
    gap: 8px !important;
  }
  .category-card-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }
  .category-card-text {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .category-card-name {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .category-card-count {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .category-card-arrow {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
  }
}

/* ── Product cards ───────────────────────────────────────── */
@media (max-width: 768px) {
  .product-card-image {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e1d4 100%) !important;
  }
  .product-card-image img {
    width: 65% !important;
    height: 65% !important;
    object-fit: contain !important;
  }
  /* Fallback: si la imagen no carga, mostrar emoji de categoría */
  .product-card-image img[style*="opacity"] {
    display: none !important;
  }
  .product-card-body {
    padding: 12px !important;
  }
  .product-card-category {
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
  }
  .product-card-name {
    font-size: 0.82rem !important;
    margin-bottom: 4px !important;
    -webkit-line-clamp: 2 !important;
  }
  .product-card-specs {
    display: none !important;
  }
  .product-card-price {
    font-size: 1rem !important;
  }
  .product-card-price-old {
    font-size: 0.72rem !important;
  }
  .product-card-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
  }
  .product-card-footer {
    gap: 6px !important;
    align-items: flex-end !important;
  }
  /* Badge más pequeño */
  .badge {
    font-size: 0.6rem !important;
    padding: 3px 7px !important;
  }
}

/* ── Page heroes (catalogo, contacto) ────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--nav-h) + 32px) 0 40px !important;
    min-height: auto !important;
  }
  .page-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    text-align: center;
  }
  .page-hero-sub {
    font-size: 0.95rem !important;
    text-align: center;
  }
  .breadcrumb {
    justify-content: center !important;
  }
}

/* ── CTA dark banner ─────────────────────────────────────── */
@media (max-width: 768px) {
  .cta-dark-banner {
    padding: 40px 20px !important;
    text-align: center;
  }
  .cta-dark-banner h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
  .cta-dark-banner > div {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .cta-dark-banner .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ── Footer ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
    font-size: 0.78rem !important;
  }
}

/* ── Nav logo on mobile ───────────────────────────────────── */
@media (max-width: 480px) {
  .logo-img { height: 44px !important; }
  .nav-inner { padding: 0 16px !important; }
}

/* ── Contact page ────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-method-card {
    padding: 20px 16px !important;
  }
  .map-embed {
    height: 280px !important;
  }
}

/* ── Modal ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-content {
    margin: 12px !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 20px !important;
  }
  .modal-header {
    padding: 20px 20px 16px !important;
  }
  .modal-body {
    padding: 0 20px 20px !important;
  }
}

/* ── Catalog filters ─────────────────────────────────────── */
@media (max-width: 768px) {
  .catalog-filters {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .filter-btn {
    font-size: 0.8rem !important;
    padding: 7px 14px !important;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ── Small phones (< 380px) ──────────────────────────────── */
@media (max-width: 380px) {
  .catalog-grid,
  .grid-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .btn-lg {
    padding: 13px 22px !important;
    font-size: 0.9rem !important;
  }
  .hs-tab {
    padding: 8px 10px !important;
  }
  .hs-tab-icon {
    display: none;
  }
}

/* ============================================================
   MAVISA — Bottom Mobile Navigation Bar
   Barra inferior fija estilo app — visible solo en mobile
   ============================================================ */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Barra inferior */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid rgba(28,52,97,0.1);
    box-shadow: 0 -4px 24px rgba(28,52,97,0.1);
    height: 64px;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: stretch;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 12px;
    transition: background 0.18s;
    font-family: var(--font-body);
  }

  .mobile-bottom-nav a:active,
  .mobile-bottom-nav button:active {
    background: rgba(28,52,97,0.06);
  }

  .mobile-bottom-nav .mbn-icon {
    font-size: 1.3rem;
    line-height: 1;
  }

  .mobile-bottom-nav .mbn-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #8A9BB0;
    letter-spacing: 0.02em;
    line-height: 1;
  }

  .mobile-bottom-nav a.active .mbn-label,
  .mobile-bottom-nav a.mbn-active .mbn-label {
    color: var(--navy);
  }

  /* WhatsApp tab — destaque verde, mismo tamaño que los otros */
  .mobile-bottom-nav .mbn-wa .mbn-icon {
    background: #25D366;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(37,211,102,0.35);
    margin-top: 0;
  }
  .mobile-bottom-nav .mbn-wa .mbn-label {
    color: #25D366;
    font-weight: 700;
  }

  /* Pad page content so bottom nav doesn't overlap */
  body {
    padding-bottom: 68px;
  }

  /* Ocultar el botón flotante de WhatsApp en mobile (ya está en bottom nav) */
  .whatsapp-float {
    display: none !important;
  }

  /* Ocultar carrusel hero visual en mobile */
  .hero-visual-col {
    display: none !important;
  }

  /* ── Nav superior mobile ─────────────────────────────────── */
  /* Layout: [☰ 🔍 LEFT]  [LOGO center]  [WA IG ✉️ RIGHT]  */

  .nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    position: relative !important;
    height: 56px !important;
  }

  /* ── LAYOUT: nav-inner como flex normal ── */
  .nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    height: 56px !important;
    position: relative !important;
  }

  /* Grupo IZQUIERDO: flex:1 para equilibrar con el derecho */
  .nav-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 0px !important;
    flex: 1 !important;
    justify-content: flex-start !important;
    position: relative !important;
    z-index: 10 !important;
  }

  /* Hamburger con hover animation */
  .nav-hamburger {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: background 0.2s !important;
  }
  .nav-hamburger:hover,
  .nav-hamburger:active {
    background: rgba(28,52,97,0.10) !important;
  }
  .nav-hamburger span {
    width: 20px !important;
    height: 2px !important;
    background: var(--navy) !important;
    border-radius: 2px !important;
    display: block !important;
    transition: background 0.2s !important;
  }
  .nav-hamburger:hover span,
  .nav-hamburger:active span {
    background: var(--navy) !important;
  }

  /* Botón búsqueda — izquierda junto al hamburger */
  .nav-search-btn {
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--navy) !important;
    padding: 0 !important;
    transition: background 0.2s !important;
  }
  .nav-search-btn:hover,
  .nav-search-btn:active {
    background: rgba(28,52,97,0.10) !important;
  }

  /* Logo: centrado absoluto — z-index bajo para no tapar botones */
  .nav-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    white-space: nowrap !important;
  }
  /* Mostrar texto MAVISA junto al logo */
  .nav-logo span {
    display: inline !important;
    font-family: var(--font-heading) !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    color: var(--navy) !important;
    text-transform: uppercase !important;
  }
  /* Sub-span "sa" — mismo color que el resto (navy), no rojo */
  .nav-logo span span { display: inline !important; color: inherit !important; }
  .nav.scrolled .nav-logo span { color: #fff !important; }
  .logo-img {
    height: 38px !important;
    mix-blend-mode: multiply !important;
  }
  .nav.scrolled .logo-img {
    mix-blend-mode: normal !important;
    filter: brightness(0) invert(1) !important;
  }

  /* Ocultar desktop search y links */
  .nav-search { display: none !important; }
  .nav-links  { display: none !important; }

  /* Panel — visible (posicionado fuera de pantalla via transform) */
  .nav-mobile { display: flex; }
  /* overlay ya es display:block globalmente, pointer-events lo controla */

  /* Grupo DERECHO: flex:1 para equilibrar con el izquierdo */
  .nav-cotizar { display: none !important; }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 1 !important;
    justify-content: flex-end !important;
    position: relative !important;
    z-index: 10 !important;
  }
  .nav-social-icons {
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
  }
  /* Íconos WA e IG: círculo con su color de marca */
  .nav-icon-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: opacity 0.2s, transform 0.2s !important;
  }
  .nav-icon-btn:active { opacity: 0.8 !important; transform: scale(0.93) !important; }

  /* WhatsApp — mantener verde */
  .nav-whatsapp-btn {
    background: #25D366 !important;
    color: #fff !important;
  }
  /* Instagram — mantener gradiente */
  .nav-instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: #fff !important;
  }

  /* Cotizar icon — círculo navy */
  .nav-cotizar-icon {
    display: flex !important;
    background: var(--navy) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }
  .nav-cotizar-icon:active { opacity: 0.8 !important; transform: scale(0.93) !important; }

  /* Nav scrolled: conservar colores de marca en los círculos */
  .nav.scrolled .nav-hamburger span { background: #fff !important; }
  .nav.scrolled .nav-hamburger:hover { background: rgba(255,255,255,0.15) !important; }
  .nav.scrolled .nav-search-btn { color: #fff !important; }
  .nav.scrolled .nav-search-btn:hover { background: rgba(255,255,255,0.15) !important; }
  /* Los círculos de marca conservan su color aunque el nav esté oscuro */
  .nav.scrolled .nav-whatsapp-btn  { background: #25D366 !important; }
  .nav.scrolled .nav-instagram-btn { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
  .nav.scrolled .nav-cotizar-icon  { background: var(--accent) !important; }
}

/* ============================================================
   MOBILE SEARCH OVERLAY — pantalla búsqueda full-screen
   ============================================================ */
.mobile-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #fff;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.mobile-search-overlay.open {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .mobile-search-overlay {
    display: flex;
  }
}

/* Header: flecha + input */
.mso-header {
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 56px;
  border-bottom: 1px solid rgba(28,52,97,0.08);
  gap: 4px;
  flex-shrink: 0;
}
.mso-back {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.15s;
}
.mso-back:active { background: rgba(0,0,0,0.06); }
.mso-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: #1a1a1a;
  background: transparent;
  padding: 0 8px;
  caret-color: var(--navy);
}
.mso-input::placeholder { color: #aaa; }

/* Results list */
.mso-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

/* Cada resultado */
.mso-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(28,52,97,0.05);
  transition: background 0.12s;
  cursor: pointer;
}
.mso-item:active { background: rgba(28,52,97,0.04); }

/* Imagen o emoji del producto */
.mso-item-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(28,52,97,0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.mso-item-img img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.mso-item-info {
  flex: 1;
  min-width: 0;
}
.mso-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mso-item-cat {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}
.mso-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  text-align: right;
}

/* Estado vacío */
.mso-empty {
  padding: 40px 24px;
  text-align: center;
  color: #aaa;
  font-size: 0.95rem;
}
.mso-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Fila "ver todos los resultados" */
.mso-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-top: 1px solid rgba(28,52,97,0.08);
}

/* ── Stats Strip — una sola fila compacta ─────────────────── */
.stats-strip {
  padding: 20px 0;
}
.stats-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.stat-strip-item {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
}
.stat-strip-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform 0.2s, color 0.2s;
}
.stat-strip-item:hover .stat-strip-num {
  transform: scale(1.12);
  color: var(--accent);
}
.stat-strip-lbl {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.stat-strip-item:hover .stat-strip-lbl {
  color: rgba(255,255,255,0.9);
}
.stat-strip-sep {
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Animación de entrada — números suben desde abajo */
.stat-strip-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stats-strip.in-view .stat-strip-item { opacity: 1; transform: translateY(0); }
.stats-strip.in-view .stat-strip-item:nth-child(1) { transition-delay: 0s; }
.stats-strip.in-view .stat-strip-item:nth-child(3) { transition-delay: 0.08s; }
.stats-strip.in-view .stat-strip-item:nth-child(5) { transition-delay: 0.16s; }
.stats-strip.in-view .stat-strip-item:nth-child(7) { transition-delay: 0.24s; }
/* separadores no animan */
.stat-strip-sep { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (max-width: 768px) {
  .stats-strip { padding: 14px 0; }
  .stat-strip-num { font-size: 1.35rem; }
  .stat-strip-lbl { font-size: 0.62rem; }
  .stat-strip-item { padding: 6px 4px; }
  .stat-strip-sep { height: 30px; }
}

/* ============================================================
   CONTACT PAGE — rediseño optimizado
   ============================================================ */

/* Hero actions */
.contact-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Info strip — 4 items en fila */
.contact-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}
.contact-strip-inner {
  display: flex;
  align-items: stretch;
}
.contact-strip-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  min-width: 0;
}
a.contact-strip-item:hover { background: rgba(28,52,97,0.04); }
.cs-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cs-text { min-width: 0; flex: 1; }
.cs-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.cs-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cs-divider {
  width: 1px;
  background: var(--color-border);
  margin: 12px 0;
  flex-shrink: 0;
}

/* Main grid */
.contact-main-section { padding-top: 56px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.contact-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.contact-card-sub {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}
.contact-form-inner { display: flex; flex-direction: column; gap: 18px; }

/* WhatsApp CTA card */
.contact-wa-card {
  background: linear-gradient(135deg, #f0faf4 0%, #e6f7ed 100%);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.contact-wa-icon { font-size: 2.8rem; }
.contact-wa-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.contact-wa-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.contact-wa-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Social card */
.contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.contact-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-border);
  transition: opacity 0.15s;
}
.contact-social-row:last-child { border-bottom: none; }
.contact-social-row:hover { opacity: 0.75; }
.contact-social-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-social-info { flex: 1; min-width: 0; }
.contact-social-name { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.contact-social-platform { display: block; font-size: 0.75rem; color: var(--text-muted); }
.contact-location-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.contact-location-text strong { color: var(--text-primary); }

/* Map */
.contact-map-section { background: var(--color-bg-2); border-top: 1px solid var(--color-border); }
.contact-map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 340px;
  position: relative;
}
.contact-map-label {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(7,7,16,0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Strip: 2x2 grid on mobile */
  .contact-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cs-divider { display: none; }
  .contact-strip-item {
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
  }
  .contact-strip-item:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .contact-strip-item:nth-child(5),
  .contact-strip-item:nth-child(6) { border-bottom: none; }
  .cs-value { font-size: 0.78rem; }
  .cs-arrow { display: none; }

  /* Main grid: single column */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Side col: formulario primero en mobile (orden DOM natural) */
  .contact-side-col { order: 1; }
  .contact-wa-card { padding: 24px; }
  .contact-card { padding: 24px; }
  .cf-row-2 { grid-template-columns: 1fr; }
  .contact-hero-actions { gap: 10px; }
  .contact-hero-actions .btn { flex: 1; min-width: 140px; justify-content: center; }

  /* Map smaller */
  .contact-map-wrap { height: 240px; }
}


/* ============================================================
   MAVISA — Responsive System v3.0
   Fluid scaling para todos los dispositivos
   320px → 430px → 768px → 1024px → 1440px+
   ============================================================ */

/* ── Fluid base font ──────────────────────────────────────── */
html {
  font-size: clamp(14px, 1.1vw + 10px, 17px);
}

/* ── Fluid container ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ── Fluid section padding ────────────────────────────────── */
.section {
  padding: clamp(40px, 7vw, 100px) 0;
}

/* ── Fluid headings ───────────────────────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem) !important;
}
.section-subtitle {
  font-size: clamp(0.88rem, 2vw, 1.05rem) !important;
}
h1 { font-size: clamp(1.8rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(1.9rem, 6vw, 4rem) !important;
}
.hero-subtitle {
  font-size: clamp(0.88rem, 2.2vw, 1.1rem) !important;
}
.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Product cards grid ───────────────────────────────────── */
.products-grid,
.featured-grid,
.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 40vw, 280px), 1fr));
}

/* ── Product card internals ───────────────────────────────── */
.product-card-name {
  font-size: clamp(0.82rem, 2vw, 1rem) !important;
}
.product-card-price,
.price-current {
  font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
}

/* ── Stats strip ──────────────────────────────────────────── */
.stat-strip-num {
  font-size: clamp(1.1rem, 3.5vw, 1.9rem) !important;
}
.stat-strip-lbl {
  font-size: clamp(0.62rem, 1.5vw, 0.75rem) !important;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn, .btn-lg, .btn-sm {
  white-space: nowrap;
}
.btn-lg {
  padding: clamp(11px,2vw,16px) clamp(20px,3.5vw,36px) !important;
  font-size: clamp(0.88rem, 2vw, 1rem) !important;
}

/* ── Nav ──────────────────────────────────────────────────── */
:root {
  --nav-h: clamp(58px, 8vw, 72px);
}

/* ── ≤ 768px — mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sections */
  .section { padding: clamp(32px, 6vw, 60px) 0; }

  /* Hero */
  .hero { min-height: clamp(380px, 70vh, 560px); }
  .hero-content { padding: 24px 0 100px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids → 2 columnas en móvil */
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: clamp(10px, 3vw, 16px) !important;
  }
  .grid-2 { grid-template-columns: 1fr !important; }

  /* Products */
  .products-grid,
  .featured-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: clamp(10px, 3vw, 16px) !important;
  }

  /* Product card */
  .product-card-image { aspect-ratio: 1 / 1; }
  .product-card-body { padding: clamp(10px, 3vw, 16px) !important; }
  .product-card-footer { gap: 8px; }
  .product-card-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }

  /* Category tabs */
  .hs-tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
  .hs-tabs::-webkit-scrollbar { display: none; }
  .hs-tab { flex-shrink: 0; font-size: 0.8rem !important; padding: 8px 14px !important; }

  /* Ticker */
  .ticker-wrap { font-size: 0.72rem; }

  /* Footer brand section */
  .footer-brand { max-width: 100% !important; }

  /* Body extra bottom padding for bottom nav */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ── ≤ 430px — small phones (iPhone 14 size) ──────────────── */
@media (max-width: 430px) {
  .container { padding: 0 14px; }

  /* Stats strip — single row, smaller */
  .stats-strip-inner { gap: 0; }
  .stat-strip-sep { height: 28px !important; }
  .stat-strip-item { padding: 0 4px; }

  /* Product card — slightly more compact */
  .product-card-name { font-size: 0.78rem !important; }
  .product-card-specs { display: none; }
  .price-old { display: none; }

  /* Hero adjustments */
  .hero-title { font-size: clamp(1.6rem, 8vw, 2rem) !important; }
  .hero-badge { font-size: 0.72rem !important; }

  /* Nav brand text */
  .nav-logo span { font-size: 1.1rem !important; letter-spacing: 0.1em !important; }

  /* Buttons in hero */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}

/* ── ≤ 375px — iPhone SE / small Androids ─────────────────── */
@media (max-width: 375px) {
  .container { padding: 0 12px; }

  h1, .hero-title { font-size: clamp(1.45rem, 9vw, 1.8rem) !important; }

  /* Stats: hide label text if too tight */
  .stat-strip-lbl { font-size: 0.58rem !important; }

  /* Product cards: 2 col still but tighter */
  .products-grid,
  .catalog-grid,
  .featured-grid {
    gap: 8px !important;
  }

  /* Bottom nav labels */
  .mbn-label { font-size: 0.6rem !important; }

  /* Section titles */
  .section-title { font-size: 1.35rem !important; }
}

/* ── ≤ 320px — very small (Galaxy A series, old iPhones) ──── */
@media (max-width: 320px) {
  .container { padding: 0 10px; }
  .stat-strip-lbl { display: none; }
  .stat-strip-num { font-size: 1rem !important; }
  .nav-logo span { font-size: 0.95rem !important; }
  .logo-img { height: 30px !important; }
  .nav-hamburger, .nav-search-btn { width: 32px !important; height: 32px !important; }
}

/* ── ≥ 1440px — large desktops ────────────────────────────── */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .products-grid,
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Floating WhatsApp Button ──────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px 13px 16px;
  box-shadow: 0 8px 32px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.12);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s, padding 0.25s;
  overflow: hidden;
  max-width: 180px;
}
.wa-float:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.14);
}
.wa-float-label {
  white-space: nowrap;
  transition: opacity 0.2s, max-width 0.3s;
}
.wa-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 768px) {
  .wa-float {
    bottom: 80px;
    right: 16px;
    padding: 12px;
    border-radius: 50%;
    max-width: 52px;
  }
  .wa-float-label { display: none; }
}

/* ── "Lo último en llegar" — vertical scroll container ─────── */
.new-scroll-wrap {
  max-height: 900px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(28,52,97,0.2) transparent;
  padding-right: 4px;
}
.new-scroll-wrap::-webkit-scrollbar { width: 4px; }
.new-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.new-scroll-wrap::-webkit-scrollbar-thumb { background: rgba(28,52,97,0.2); border-radius: 4px; }
@media (max-width: 768px) {
  .new-scroll-wrap { max-height: 700px; }
}

/* ── Utilities ────────────────────────────────────────────── */
img { max-width: 100%; height: auto; }
* { min-width: 0; } /* Fixes grid/flex overflow on small screens */


/* ============================================================
   MAVISA — Footer Responsive Grid
   ============================================================ */

.footer-grid-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Tablet */
@media (max-width: 900px) {
  .footer-grid-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  /* Brand col spans full width */
  .footer-grid-main > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-grid-main > div:first-child > p {
    flex: 1;
    min-width: 180px;
    max-width: 100% !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-grid-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid-main > div:first-child {
    flex-direction: column;
    gap: 12px;
  }
  /* Nav + Contacto side by side on small screens */
  .footer-grid-main > div:nth-child(2),
  .footer-grid-main > div:nth-child(3) {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Very small — nav & contact cols in 2-col layout */
@media (max-width: 600px) and (min-width: 380px) {
  .footer-grid-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid-main > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Contact info — prevent text overflow */
.footer-grid-main a[href^="mailto"] {
  word-break: break-all;
  font-size: clamp(0.72rem, 2.2vw, 0.83rem) !important;
}

/* Bottom bar pill tags — wrap nicely */
footer .container > div:last-child > div {
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Footer bottom bar */
.footer-bottom-bar {
  padding-top: 16px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 600px) {
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom-bar > div {
    width: 100%;
  }
}

/* CTA Banner — mobile */
@media (max-width: 768px) {
  .cta-banner-btns { flex-direction: column !important; }
  .cta-banner-btns .btn { width: 100% !important; justify-content: center !important; }
}

/* Nav overflow fix — prevent icons bleeding outside */
@media (max-width: 768px) {
  .nav { overflow: visible !important; }
  .nav-inner {
    overflow: visible !important;
    padding: 0 clamp(8px, 2.5vw, 14px) !important;
  }
  /* SVGs inside nav icons scale with button */
  .nav-icon-btn svg {
    width: clamp(14px, 3.5vw, 18px) !important;
    height: clamp(14px, 3.5vw, 18px) !important;
  }
}

/* Sidebar catálogo — oculto en móvil */
@media (max-width: 900px) {
  #catalog-sidebar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Reduce hero height and section spacing on mobile */
@media (max-width: 768px) {
  .hero { min-height: clamp(400px, 65vh, 600px) !important; padding-bottom: 80px !important; }
  .section { padding: clamp(28px, 5vw, 56px) 0 !important; }
  .section-header { margin-bottom: 24px !important; }
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  .section-label { font-size: 0.7rem !important; padding: 5px 14px !important; }
}

/* Hero mobile — colapsar grid a 1 col, quitar min-height excesivo */
@media (max-width: 768px) {
  .hero { min-height: auto !important; padding-top: var(--header-total) !important; padding-bottom: 32px !important; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .hero-visual-col { display: none !important; }
  .hero .container { padding-top: 8px !important; padding-bottom: 0 !important; }
}
