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

/* ═══════════════════════════════════════════════════════════════
   VIENTO SUR MATERIALES — DESIGN SYSTEM
   Colores oficiales: Terracota #e06f2b · Brown #4b2e24 · Light #f8f8f9
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Paleta Oficial Viento Sur ── */
  --brand-terracota:     #e06f2b;   /* Terracota Viento — acento principal */
  --brand-terracota-dark:#c45e20;   /* Terracota oscura / hover */
  --brand-terracota-deep:#a34d18;   /* Terracota profunda / active */
  --brand-brown:         #4b2e24;   /* Patagonia Brown — primario oscuro */
  --brand-brown-light:   #6b4035;   /* Brown claro */
  --brand-light:         #f8f8f9;   /* Suministro Light — fondo principal */

  /* Glows y tintes de marca */
  --brand-glow:  rgba(224, 111, 43, 0.18);
  --brand-tint:  rgba(224, 111, 43, 0.08);
  --brown-tint:  rgba(75, 46, 36, 0.06);

  /* ── Alias usados en el CSS heredado ── */
  --amber:       var(--brand-terracota);
  --amber-dark:  var(--brand-brown);
  --amber-deep:  var(--brand-terracota-deep);
  --amber-glow:  var(--brand-glow);
  --amber-tint:  var(--brand-tint);

  /* ── Superficies ── */
  --bg-primary:      var(--brand-light);
  --bg-secondary:    #ffffff;
  --bg-tertiary:     #f0efed;
  --bg-grouped:      var(--brand-light);

  /* Glass */
  --glass-bg:        rgba(255,255,255,0.78);
  --glass-bg-strong: rgba(255,255,255,0.92);
  --glass-border:    rgba(75,46,36,0.08);
  --glass-blur:      24px;

  /* ── Tipografía ── */
  --text-primary:    #1c1410;
  --text-secondary:  rgba(75,46,36,0.62);
  --text-tertiary:   rgba(75,46,36,0.35);
  --text-amber:      var(--brand-terracota-dark);

  /* ── Separadores ── */
  --separator:       rgba(75,46,36,0.10);
  --separator-opaque:#d4c4bc;

  /* ── Radios ── */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   22px;
  --r-2xl:  28px;
  --r-pill: 9999px;

  /* ── Sombras ── */
  --shadow-xs:  0 1px 2px rgba(75,46,36,0.05);
  --shadow-sm:  0 2px 8px rgba(75,46,36,0.08), 0 1px 2px rgba(75,46,36,0.04);
  --shadow-md:  0 4px 20px rgba(75,46,36,0.09), 0 2px 6px rgba(75,46,36,0.04);
  --shadow-lg:  0 8px 32px rgba(75,46,36,0.11), 0 2px 8px rgba(75,46,36,0.05);
  --shadow-xl:  0 20px 60px rgba(75,46,36,0.14), 0 4px 16px rgba(75,46,36,0.06);
  --shadow-amber: 0 8px 30px rgba(224,111,43,0.25), 0 2px 8px rgba(224,111,43,0.12);

  /* ── Animaciones ── */
  --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-ios:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Legacy compatibility ── */
  --background:         var(--bg-primary);
  --foreground:         var(--text-primary);
  --card:               var(--bg-secondary);
  --border:             var(--separator);
  --primary:            var(--brand-terracota);
  --primary-foreground: #ffffff;
  --secondary:          var(--bg-tertiary);
  --muted-foreground:   var(--text-secondary);
  --radius:             var(--r-md);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--brand-terracota); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* Antialiasing */
svg, svg * { shape-rendering: geometricPrecision; }
img { image-rendering: -webkit-optimize-contrast; }

/* ── Scroll Progress Indicator ─────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-terracota) 0%, #f0a060 40%, var(--brand-terracota-dark) 100%);
  z-index: 9999;
  transition: width 0.1s;
  box-shadow: 0 0 12px rgba(224,111,43,0.5);
}

/* ── Tipografía ────────────────────────────────────── */
h1 { font-family: 'Outfit', 'Inter', sans-serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; }
h2 { font-family: 'Outfit', 'Inter', sans-serif; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1.08; }
h3 { font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }

.font-mono { font-family: 'JetBrains Mono', 'SF Mono', monospace; }
.text-muted { color: var(--text-secondary); }
.text-amber { color: var(--brand-terracota); }

/* ── Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hidden { display: none !important; }

/* ✨ Topbar ✨ */
.topbar-wrapper {
  background: var(--brand-brown);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 6px 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  position: relative;
}
.topbar-bg {
  position: absolute;
  inset: 0;
  background: rgba(75,46,36,0.95);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left, .topbar-right, .topbar-hours {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.topbar-hours { gap: 8px; }
.topbar-hours-text, .topbar-location, .topbar-email {
  display: flex;
  align-items: center;
  gap: 5px;
}
.icon-sm { width: 14px; height: 14px; }
.topbar-social {
  display: flex;
  gap: 12px;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 1.25rem;
}
.social-link {
  color: rgba(255,255,255,0.9);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover { color: #fff; transform: scale(1.15); }
.topbar-email:hover { color: #fff; }

@media (max-width: 768px) {
  .hide-sm { display: none !important; }
  .topbar-inner { justify-content: center; }
  .topbar-right { display: none !important; } /* Hide social and email on small screens */
}

/* ── Footer Premium ────────────────────────────────── */
.site-footer {
  background: var(--brand-brown);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  max-width: 320px;
}
.footer-logo {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s, transform 0.2s var(--spring);
}
.footer-social a:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ── iOS Glass Card ────────────────────────────────── */
.ios-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease-ios);
  overflow: hidden;
}
.ios-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* ── iOS Grouped List ──────────────────────────────── */
.ios-group {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ios-group-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--separator);
  transition: background 0.15s;
}
.ios-group-row:last-child { border-bottom: none; }
.ios-group-row:hover { background: var(--brown-tint); }

/* ── Botones ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease-ios), background 0.15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn i, .btn svg { transition: transform 0.25s var(--ease-out); }
.btn:hover i, .btn:hover svg { transform: translateX(3px); }

/* Primary — Terracota Viento */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-terracota) 0%, var(--brand-terracota-dark) 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(224,111,43,0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-terracota-dark) 0%, var(--brand-terracota-deep) 100%);
  box-shadow: 0 6px 24px rgba(224,111,43,0.40);
  transform: translateY(-2px) scale(1.02);
}

/* Accent — Patagonia Brown */
.btn-accent {
  background: linear-gradient(135deg, var(--brand-brown-light) 0%, var(--brand-brown) 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(75,46,36,0.22);
}
.btn-accent:hover {
  box-shadow: 0 8px 28px rgba(75,46,36,0.34);
  transform: translateY(-2px) scale(1.02);
}

/* Outline */
.btn-outline {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--separator-opaque);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
}
.btn-outline:hover {
  background: var(--brown-tint);
  border-color: var(--brand-terracota);
  color: var(--brand-terracota-dark);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--brand-terracota);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}
.btn-ghost:hover { background: var(--brand-tint); }

/* ── Badge ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--brown-tint);
  color: var(--text-secondary);
  border: none;
}
.badge-outline {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--separator-opaque);
  color: var(--text-primary);
}
.badge-amber {
  background: var(--brand-tint);
  border: 1px solid rgba(224,111,43,0.25);
  color: var(--brand-terracota-dark);
}

/* ── Navbar ────────────────────────────────────────── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  border-bottom: 1px solid var(--separator);
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  transition: box-shadow 0.3s var(--ease-ios), border-color 0.3s;
}
.nav-header.scrolled {
  box-shadow: 0 1px 20px rgba(75,46,36,0.09);
  border-color: transparent;
}

/* Logo en navbar */
.nav-logo {
  height: 80px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  margin: -16px 0;
  transition: transform 0.3s var(--spring);
  flex-shrink: 0;
}
.nav-logo:hover { transform: scale(1.03); }

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-terracota);
  transition: width 0.3s var(--spring), left 0.3s var(--spring);
}
.nav-link:hover {
  color: var(--brand-terracota-dark);
  background: var(--brand-tint);
}
.nav-link:hover::after {
  width: 80%;
  left: 10%;
}

/* ── Bento Grid ────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.bento-item { grid-column: span 12; }

@media (min-width: 640px) {
  .bento-item-4 { grid-column: span 6; }
  .bento-item-6 { grid-column: span 6; }
  .bento-item-8 { grid-column: span 12; }
}
@media (min-width: 1024px) {
  .bento-item-4 { grid-column: span 4; }
  .bento-item-6 { grid-column: span 6; }
  .bento-item-8 { grid-column: span 8; }
}

/* iOS Bento card — Aurora Border */
.bento-lg {
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease-ios), border-color 0.3s;
  position: relative;
}
.bento-lg::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent 30%, rgba(224,111,43,0.25) 50%, rgba(240,160,96,0.2) 70%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-ios);
  pointer-events: none;
}
.bento-lg:hover::before { opacity: 1; }
@media (min-width: 768px) { .bento-lg { padding: 2rem; } }
.bento-lg:hover {
  transform: translateY(-6px) scale(1.01) rotate(0.5deg);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224,111,43,0.3);
}

/* Featured bento */
.bento-featured {
  background: linear-gradient(135deg, #fdf5ee 0%, #faeade 100%);
  border-color: rgba(224,111,43,0.2);
}
.bento-featured:hover {
  box-shadow: var(--shadow-amber);
  border-color: rgba(224,111,43,0.4);
}

/* ── Category Cards ────────────────────────────────── */
.cat-card {
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease-ios), border-color 0.2s;
}
.cat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224,111,43,0.3);
}
.cat-card-img {
  aspect-ratio: 4 / 3;
  background: transparent;
  overflow: hidden;
  position: relative;
}
.cat-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(224,111,43,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--spring);
  pointer-events: none;
}
.cat-card:hover .cat-card-img::after {
  opacity: 1;
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--spring);
}
.cat-card:hover .cat-card-img img { transform: scale(1.07); }
.cat-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }

.cat-card-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  width: 100%; padding: 0.625rem; border-radius: var(--r-pill);
  background: var(--brown-tint); color: var(--text-primary);
  font-size: 0.8125rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.2s var(--spring);
}
.cat-card-btn:hover {
  background: linear-gradient(135deg, var(--brand-terracota) 0%, var(--brand-terracota-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-amber);
  transform: scale(1.02);
}

/* ── Review Card ───────────────────────────────────── */
.review-card {
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease-ios);
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ── Stars ─────────────────────────────────────────── */
.stars { display: flex; gap: 2px; color: var(--brand-terracota); }

/* ── Contact Icon Box ──────────────────────────────── */
.contact-icon-box {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-tint) 0%, rgba(224,111,43,0.12) 100%);
  border: 1px solid rgba(224,111,43,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-terracota-dark); flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(224,111,43,0.10);
}

/* ── Location Widget ───────────────────────────────── */
.location-widget {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
}

/* ── Swiper Controls ───────────────────────────────── */
.swiper-pagination-bullet { background: var(--separator-opaque) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--brand-terracota) !important; }
.swiper-nav-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--separator-opaque);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--spring);
}
.swiper-nav-btn:hover {
  background: var(--brand-terracota);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-amber);
  transform: scale(1.08);
}

/* ── FAB WhatsApp — Premium Pulse ──────────────────── */
.fab-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 1px 4px rgba(0,0,0,0.08);
  z-index: 100;
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.fab-wa::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(37,211,102,0.4);
  animation: fab-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes fab-ping {
  0% { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(1.35); opacity: 0; }
}
.fab-wa:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.45);
}
.fab-wa:hover::before { animation: none; opacity: 0; }

/* FAB Tooltip */
.fab-wa-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--spring);
}
.fab-wa-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #fff;
  box-shadow: 2px -2px 3px rgba(0,0,0,0.04);
}
.fab-wa:hover .fab-wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Hero decorative line ──────────────────────────── */
.hero-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,111,43,0.5) 40%, rgba(224,111,43,0.5) 60%, transparent);
}

/* ── Stats number ──────────────────────────────────── */
.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.06em;
}

/* ── Code block ────────────────────────────────────── */
.mock-code {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-primary);
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre-wrap;
  tab-size: 2;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.mock-code span.keyword { color: var(--brand-terracota); }
.mock-code span.string  { color: #34c759; }
.mock-code span.comment { color: var(--text-secondary); font-style: italic; }

/* ── Animations ────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.5; transform:scale(1.25); }
}
.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s var(--ease-ios), transform 0.6s var(--spring);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--separator-opaque); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: rgba(75,46,36,0.4); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ══════════════════════════════════════════════════════ */

/* ── Hero Swiper ───────────────────────────────────── */
.hero-swiper {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, var(--brand-brown) 0%, #1c1410 100%);
}
.hero-swiper .swiper-wrapper { height: 100% !important; display: flex; }
.hero-swiper .swiper-slide { height: 100% !important; width: 100% !important; flex-shrink: 0; }

/* Fallback: if Swiper library fails to load/initialize, only show the first slide */
.hero-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none !important;
}

/* ── Responsive Mobile ─────────────────────────────── */
@media (max-width: 480px) {
  /* Logo más grande en mobile */
  .nav-logo {
    height: 60px;
    margin: -10px 0;
  }

  /* Navbar más alto en mobile */
  .nav-container { height: 64px !important; }

  /* Hero text */
  h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); letter-spacing: -0.04em; }
  h2 { font-size: clamp(1.4rem, 6vw, 1.85rem); }

  /* Botones full-width en mobile pequeño */
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Bento ajustado */
  .bento-grid { gap: 0.625rem; }

  /* FAB más pequeño */
  .fab-wa { width: 52px; height: 52px; bottom: 20px; right: 16px; }

  /* Padding secciones */
  .section-pad { padding: 3rem 0 !important; }
}

@media (max-width: 768px) {
  /* Ocultar nav desktop */
  .desktop-nav, .desktop-cta { display: none !important; }
  #mobile-menu-btn { display: flex !important; }

  /* Navbar altura responsiva */
  .nav-logo { height: 64px; margin: -12px 0; }

  /* Columnas en catálogo — 1 por fila en mobile */
  .category-swiper .swiper-slide { width: 80% !important; }

  /* Secciones padding */
  .resp-section { padding: 3.5rem 0 !important; }

  /* Nosotros grid */
  #nosotros-grid { grid-template-columns: 1fr !important; }
  #contact-grid { grid-template-columns: 1fr !important; }

  /* Stats en 2 col en mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Video banner */
  .video-banner { height: 240px !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet */
  .nav-logo { height: 72px; margin: -14px 0; }
  .category-swiper .swiper-slide { width: 45% !important; }
}

@media (min-width: 1025px) {
  /* Desktop full */
  .desktop-nav { display: flex !important; }
  .desktop-cta { display: flex !important; }
  #mobile-menu-btn { display: none !important; }
}

/* ── Mobile Menu ───────────────────────────────────── */
#mobile-menu {
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 1px solid var(--separator);
  z-index: 100;
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 20px 60px rgba(75,46,36,0.10);
}

/* ── Utilidades ────────────────────────────────────── */
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: initial; } }

/* ═ ═ ═  EFECTOS PREMIUM ADICIONALES ═ ═ ═ */

/* ── Live Status dot pulsing ───────────────────────── */
@keyframes status-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(52, 199, 89, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
  }
}
@keyframes status-pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}
.status-dot.status-open {
  background: #34c759 !important;
  animation: status-pulse 2s infinite !important;
}
.status-dot.status-closed {
  background: #ff3b30 !important;
  animation: status-pulse-red 2s infinite !important;
}

/* ── Blueprint Architectural Grid ───────────────────── */
.blueprint-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(224, 111, 43, 0.035) 1.2px, transparent 1.2px),
    linear-gradient(90deg, rgba(224, 111, 43, 0.035) 1.2px, transparent 1.2px);
  background-size: 40px 40px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}
.blueprint-grid > * {
  position: relative;
  z-index: 1;
}

/* ── Ken Burns slider effect ───────────────────────── */
@keyframes kenburns {
  0% {
    transform: scale(1.04) translate(0px, 0px);
  }
  50% {
    transform: scale(1.12) translate(-8px, 4px);
  }
  100% {
    transform: scale(1.04) translate(0px, 0px);
  }
}
/* Apply to all hero-bg-layers so outgoing slides don't abruptly stop and jump during the crossfade */
.hero-swiper .swiper-slide .hero-bg-layer {
  animation: kenburns 14s ease-in-out infinite;
  will-change: transform; /* Optimización GPU */
}

/* ── Noise / Grain Texture (Stripe-like) ───────────── */
.noise-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 1;
}

/* ── Hero Ambient Light Spotlights ─────────────────── */
.hero-spotlight-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(224,111,43,0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.hero-spotlight-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(75,46,36,0.25) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
}

/* ── Footer Top Premium Accent ─────────────────────── */
.footer-top-accent {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-terracota) 0%, #f0a060 50%, var(--brand-brown) 100%);
  width: 100%;
  z-index: 10;
}

/* ── Contact Info Cards ────────────────────────────── */
.contact-card-premium {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-ios), border-color 0.2s;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.contact-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224,111,43,0.25);
}

/* ── Pure CSS Marquee for Reviews ──────────────────── */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1.5rem 0;
}
.marquee-container::before, .marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.marquee-content {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 80s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  /* Se desplaza exactamente la mitad del contenido más la mitad del gap (0.75rem de 1.5rem) para un loop perfecto */
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

.marquee-card {
  width: 320px;
  flex-shrink: 0;
}

/* ── Product Cards & Grid in Home/Catalog ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.product-card {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease-ios), border-color 0.2s;
  position: relative;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224,111,43,0.3);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  height: 120px;
  background: var(--bg-tertiary);
}
@media (min-width: 480px) {
  .product-img-wrap {
    height: 150px;
  }
}
@media (min-width: 768px) {
  .product-img-wrap {
    height: 180px;
  }
}
@media (min-width: 1024px) {
  .product-img-wrap {
    height: 200px;
  }
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-ios);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.cat-badge-card {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 10;
}
@media (min-width: 768px) {
  .cat-badge-card {
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 0.6875rem;
  }
}

.badge-hierros   { background: rgba(60,40,20,0.85); color: #f0c070; }
.badge-cemento   { background: rgba(80,70,50,0.85); color: #e8dcc8; }
.badge-pinturas  { background: rgba(20,60,100,0.85); color: #90c8f8; }
.badge-ladrillos { background: rgba(140,40,20,0.85); color: #f8a090; }
.badge-herramientas { background: rgba(60,60,60,0.85); color: #e0e0e0; }
.badge-chapas    { background: rgba(100,110,120,0.85); color: #d8e4f0; }

.stock-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(52,199,89,0.15);
  border: 1px solid rgba(52,199,89,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 700;
  color: #2f855a;
  z-index: 10;
}
@media (min-width: 768px) {
  .stock-tag {
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 0.6875rem;
  }
}

.stock-dot {
  width: 5px;
  height: 5px;
  background: #34c759;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@media (min-width: 768px) {
  .stock-dot {
    width: 6px;
    height: 6px;
  }
}

.product-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .product-body {
    padding: 1.25rem;
    gap: 0.5rem;
  }
}

.product-brand {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-terracota);
  letter-spacing: 0.05em;
  margin: 0;
}
@media (min-width: 768px) {
  .product-brand {
    font-size: 0.75rem;
  }
}

.product-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .product-name {
    font-size: 1.0625rem;
    line-height: 1.35;
  }
}

.product-spec {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0 0 0.25rem 0;
}
@media (min-width: 768px) {
  .product-spec {
    font-size: 0.8125rem;
    margin: 0 0 0.5rem 0;
  }
}

.btn-wa-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--brown-tint);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s var(--spring);
  margin-top: auto;
}
@media (min-width: 768px) {
  .btn-wa-product {
    gap: 6px;
    padding: 0.75rem;
    font-size: 0.8125rem;
  }
}

.btn-wa-product:hover {
  background: linear-gradient(135deg, var(--brand-terracota) 0%, var(--brand-terracota-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-amber);
  transform: translateY(-2px);
}

