:root {
  /* -- base -- */
  --bg: #f5f5f7; /* Apple system light gray */
  --ink: #1d1d1f; /* Apple primary text */
  --muted: rgba(29, 29, 31, 0.6); /* Apple secondary text */
  --line: rgba(0, 0, 0, 0.08); /* Apple thin line */
  --card-bg: #ffffff;
  --radius: 20px; /* Apple rounding standard */

  /* -- acentos -- */
  --accent-a: #0071e3; /* Apple interactive blue */
  --accent-b: #32ade6; /* Apple cyan/blue accent */

  /* -- nav -- */
  --nav-bg: rgba(255, 255, 255, 0.8); /* Translucent light nav */
  --nav-bg-solid: #ffffff; /* Solid light nav */
  --nav-links-text: rgba(29, 29, 31, 0.8);
  --nav-links-text-hover: #000000;

  /* -- search -- */
  --search-bg: rgba(118, 118, 128, 0.12); /* iOS style search background */
  --nav-overlay-bg: rgba(255, 255, 255, 0.96); /* iOS style menu overlay */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 5vw;
  background: var(--nav-bg-solid);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}

nav.scrolled {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--nav-links-text);
  transition: color .2s ease;
}

.logo:hover {
  color: var(--nav-links-text-hover);
}

.logo .bolt {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--nav-links-text);
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-links-text-hover);
}

/* ==========================================================================
     MENÚ MÓVIL Y BOTÓN HAMBURGUESA (ESTILO APPLE.COM)
     ========================================================================== */

/* Botón hamburguesa (2 líneas) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px;
  z-index: 110;
  outline: none;
  transition: transform 0.2s ease;
}

.menu-toggle:active {
  transform: scale(0.9);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--nav-links-text);
  border-radius: 1px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}

/* Estado activo: transforma las 2 líneas en una X */
nav.nav-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

nav.nav-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Bloquear el scroll del body al abrir el menú */
body.menu-locked {
  overflow: hidden;
}

/* Media query para móviles */
@media (max-width: 720px) {
  nav {
    justify-content: space-between !important;
  }

  .nav-inner {
    width: 100%;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  /* El contenedor de links se convierte en el overlay a pantalla completa */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background: var(--nav-overlay-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 100px 10vw 40px;
    box-sizing: border-box;
    gap: 28px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Mostrar overlay cuando nav está abierto */
  nav.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Estilos de los links en móvil (estilo apple.com) */
  .nav-links a {
    font-size: 1.8rem;
    font-weight: 600;
    width: 100%;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    color: var(--nav-links-text);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--nav-links-text-hover);
  }

  /* Mostrar links animados cuando nav está abierto */
  nav.nav-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Animación staggered para los links */
  nav.nav-open .nav-links a:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav.nav-open .nav-links a:nth-child(2) {
    transition-delay: 0.15s;
  }

  nav.nav-open .nav-links a:nth-child(3) {
    transition-delay: 0.2s;
  }

  nav.nav-open .nav-links a:nth-child(4) {
    transition-delay: 0.25s;
  }

  nav.nav-open .nav-links a:nth-child(5) {
    transition-delay: 0.3s;
  }

  nav.nav-open .nav-links a:nth-child(6) {
    transition-delay: 0.35s;
  }
}

/* ---------- HERO ---------- */
header.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6vw 80px;
  overflow: hidden;
}

.orb-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.55;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-a), transparent 70%);
  animation: float 16s ease-in-out infinite;
}

.orb.b {
  background: radial-gradient(circle at 30% 30%, var(--accent-b), transparent 70%);
  animation-duration: 20s;
  animation-direction: reverse;
}

.orb.c {
  background: radial-gradient(circle at 30% 30%, #a06bff, transparent 70%);
  animation-duration: 24s;
}

.orb1 {
  width: 38vw;
  height: 38vw;
  top: -8%;
  left: -6%;
}

.orb2 {
  width: 32vw;
  height: 32vw;
  top: 20%;
  right: -8%;
}

.orb3 {
  width: 30vw;
  height: 30vw;
  bottom: -10%;
  left: 20%;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(3%, 5%) scale(1.06);
  }

  66% {
    transform: translate(-4%, -3%) scale(0.96);
  }
}

.eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  display: inline-block;
}

h1.hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 40%, var(--accent-a) 75%, var(--accent-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 26px auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.5;
}

.hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 18, 20, 0.18);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-hint .line {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--muted), transparent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: .3;
  }

  50% {
    opacity: 1;
  }
}

/* ---------- CATEGORIES ---------- */
section.categories {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 6vw 140px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-head h2 {
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  padding: 34px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, border-color .4s ease;
  cursor: pointer;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--tint, var(--accent-a)) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(18, 18, 20, 0.10);
  border-color: transparent;
}

.card:hover::before {
  opacity: 0.14;
}

.card:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 10px 20px rgba(18, 18, 20, 0.06);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card .icon {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
  stroke: var(--ink);
}

.card .cat-name {
  position: relative;
  z-index: 1;
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-top: 20px;
}

.card .cat-desc {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
  max-width: 240px;
}

.card .go {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.card .go svg {
  width: 14px;
  height: 14px;
  transition: transform .3s ease;
}

.card:hover .go svg {
  transform: translateX(4px);
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
     ESTILOS UNIFICADOS DE CATEGORÍAS (CATÁLOGOS)
     ========================================================================== */

/* ---------- PAGE HERO ---------- */
header.page-hero {
  position: relative;
  padding: 150px 6vw 60px;
  overflow: hidden;
  text-align: center;
}

h1.page-title {
  position: relative;
  z-index: 1;
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 40%, var(--accent-a) 75%, var(--accent-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-sub {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 18px auto 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- RATE STRIP (COTIZACIÓN) ---------- */
.rate-strip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.rate-strip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.rate-strip.stale .dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.rate-strip strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FILTERS (CHIPS) ---------- */
section.filters-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 6vw; /* Symmetrical and generous padding */
  position: sticky;
  top: 50px; /* Adjusted to sit flush under scrolled navbar */
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg); /* Full-width background without the border line */
  clip-path: inset(0 -100vmax 0 -100vmax); /* Clips shadow vertically, allows horizontal leak */
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0 0; /* Separation from search bar when wrapped on mobile */
  background: transparent;
}

.chip {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  outline: none;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- CATALOG ---------- */
section.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 6vw 140px; /* Increased top padding to give breathing room */
}

.brand-block {
  margin-bottom: 56px;
}

.brand-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.brand-head h2 {
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}

.brand-head .count {
  font-size: 0.82rem;
  color: var(--muted);
}

.series-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}


/* ---------- PRODUCT CARDS ---------- */
.product-card {
  position: relative;
  border-radius: 18px;
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--tint, var(--accent-a)) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 18, 20, 0.10);
  border-color: transparent;
}

.product-card:hover::before {
  opacity: 0.12;
}

.product-card:active {
  transform: translateY(-2px) scale(0.97);
  box-shadow: 0 8px 16px rgba(18, 18, 20, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-name {
  position: relative;
  z-index: 1;
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem; /* Apple HIG Headline */
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink); /* Primary text color */
}

.product-storage {
  position: relative;
  z-index: 1;
  font-size: 0.85rem; /* Apple HIG Subheadline / Footnote */
  font-weight: 400;
  color: var(--muted); /* Secondary text color */
  letter-spacing: -0.01em;
}

.product-price {
  position: relative;
  z-index: 1;
  margin-top: auto; /* ponytail: pushes price/cta to the bottom to align grid items */
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem; /* Balanced price size */
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-cta {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem; /* Apple Callout style */
  font-weight: 600;
  color: var(--tint, var(--accent-a)); /* Interactive accent color using brand tint */
  letter-spacing: 0.01em;
}

.product-cta svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.product-card:hover .product-cta svg {
  transform: translateX(3px);
}

.product-card.unavailable {
  opacity: 0.55;
}

.product-card.unavailable .product-price {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

/* ---------- LOADING SKELETONS ---------- */
.skeleton {
  height: 168px;
  border-radius: 18px;
  background: linear-gradient(100deg, var(--card-bg) 30%, #eeeeee 50%, var(--card-bg) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--line);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ---------- APPLE-STYLE REVEAL ANIMATIONS ---------- */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateX(-40px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- RESPONSIVE PRODUCT GRID & CARDS ---------- */
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    padding: 14px !important;
    gap: 6px !important;
    border-radius: 14px !important;
  }

  .product-name {
    font-size: 0.98rem !important;
  }

  .product-storage {
    font-size: 0.78rem !important;
  }

  .product-price {
    font-size: 0.98rem !important;
    margin-top: auto !important; /* ponytail: preserves vertical alignment on mobile grids */
  }

  .product-cta {
    font-size: 0.75rem !important;
    margin-top: 2px !important;
    gap: 4px !important;
  }

  .skeleton {
    height: 140px !important;
    border-radius: 14px !important;
  }
}

/* ---------- SEARCH BAR ---------- */
.search-container {
  margin-bottom: 8px;
  width: 100%;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: var(--search-bg);
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  height: 42px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.search-box:focus-within {
  background: var(--card-bg);
  box-shadow: 0 0 0 2px var(--accent-a);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-clear {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  margin-left: 8px;
}

.search-clear:hover {
  background: var(--line);
  color: var(--ink);
}

.search-clear svg {
  width: 16px;
  height: 16px;
}

/* Make filter wrapper layout flex on desktop to align search and chips */
@media (min-width: 768px) {
  .filters-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 6vw; /* Symmetrical desktop padding */
  }
  .search-container {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 320px;
  }
  .filters {
    padding: 0; /* Reset mobile padding on desktop */
  }
}

/* ==========================================================================
   FOOTER (ESTILO APPLE - ALINEADO Y CON INSTAGRAM)
   ========================================================================== */
footer {
  width: 100%;
  padding: 40px 6vw 50px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--card-bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-dot {
  opacity: 0.4;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--search-bg);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.88rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.footer-btn svg {
  flex-shrink: 0;
}

.footer-btn:hover {
  transform: translateY(-2px);
}

.footer-maps:hover {
  background: #ffffff;
  color: #1a73e8;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.2);
}

.footer-instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.25);
}

@media (max-width: 640px) {
  footer {
    padding: 32px 5vw 40px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-info {
    justify-content: center;
  }
  .footer-links {
    justify-content: center;
  }
}