/* =========================================================
   BIOMECANET — Landing Page Transaccional
   Estilos base + tema (claro/oscuro) + componentes + responsive
   ========================================================= */

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- Paleta de marca / tokens ---------- */
:root {
  --color-primary: #0A2647;      /* azul oscuro */
  --color-primary-alt: #123a63;
  --color-secondary: #2C74B3;    /* azul claro */
  --color-secondary-soft: #d7e8f7;
  --color-accent: #00b359;       /* verde (conversión) */
  --color-accent-dark: #009148;

  --color-bg: #f4f7fa;
  --color-surface: #ffffff;
  --color-surface-alt: #eef3f8;
  --color-text: #12233c;
  --color-text-muted: #55697f;
  --color-border: #e0e7ee;

  --shadow-sm: 0 1px 2px rgba(10, 38, 71, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 38, 71, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 38, 71, 0.14);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-mono: ui-monospace, 'Cascadia Code', 'Consolas', 'SFMono-Regular', monospace;

  --header-h: 88px;
}

:root[data-theme="dark"] {
  --color-bg: #081527;
  --color-surface: #0e2038;
  --color-surface-alt: #112544;
  --color-text: #eaf1fb;
  --color-text-muted: #9db1c9;
  --color-border: #1c3556;
  --color-secondary-soft: #133358;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
:root[data-theme="dark"] .btn-outline { border-color: var(--color-secondary); color: #fff; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
:root[data-theme="dark"] .btn-outline:hover { background: var(--color-secondary); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.section-heading { max-width: 640px; margin: 0 0 44px; }
.section-heading h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--color-primary); margin-bottom: 10px; }
:root[data-theme="dark"] .section-heading h2 { color: #fff; }
.section-heading p { color: var(--color-text-muted); }
.section-heading-light .eyebrow { color: #7fd3ff; }
.section-heading-light h2, .section-heading-light p { color: #fff; }
.section-heading-light p { color: rgba(255,255,255,0.75); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
/* El logo es cuadrado y lleva el wordmark dentro, así que necesita más altura
   que un logo horizontal para que "BIOMECANET" sea legible. */
.brand-logo { height: 68px; width: auto; }
@media (max-width: 720px) { .brand-logo { height: 54px; } }

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-primary);
}
:root[data-theme="dark"] .theme-toggle { color: #ffd76a; }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
:root[data-theme="dark"] .nav-toggle span { background: #fff; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    radial-gradient(circle at 85% 15%, var(--color-secondary-soft), transparent 55%),
    var(--color-surface);
  padding: 76px 0 90px;
  border-bottom: 1px solid var(--color-border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  color: var(--color-primary);
  margin-bottom: 20px;
}
:root[data-theme="dark"] .hero-copy h1 { color: #fff; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
/* ---------- Buscador del hero ---------- */
.hero-search { margin-bottom: 28px; max-width: 560px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 8px 4px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 179, 89, 0.14);
}
.search-icon {
  width: 20px; height: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.search-box:focus-within .search-icon { color: var(--color-accent); }

#search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  padding: 13px 0;
}
#search-input::placeholder { color: var(--color-text-muted); opacity: 0.85; }
/* quitar la "x" nativa de Chrome/Safari para usar la nuestra */
#search-input::-webkit-search-decoration,
#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-results-button { -webkit-appearance: none; display: none; }

.search-clear {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 1.35rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.search-clear[hidden] { display: none; }
.search-clear:hover { background: var(--color-border); color: var(--color-text); }

.search-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 2;
}
.search-chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-secondary);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.search-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero-visual { display: flex; justify-content: center; }
.hero-visual-card {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary-soft);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { padding: 90px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Con 7 servicios la última fila queda con una sola tarjeta suelta.
   Se centra para que se vea intencional y no como un hueco.
   La regla solo aplica cuando la última tarjeta abre fila (3n+1);
   si algún día son 6 o 9 servicios, no hace nada. */
.services-grid > .service-card:last-child:nth-child(3n + 1) {
  grid-column: 2 / 3;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-secondary-soft);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
:root[data-theme="dark"] .service-icon { color: #7fd3ff; }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; color: var(--color-primary); margin-bottom: 10px; }
:root[data-theme="dark"] .service-card h3 { color: #fff; }
.service-card p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 16px; }
.service-quote {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-accent);
}
.service-quote:hover { text-decoration: underline; }

/* =========================================================
   CATÁLOGO
   ========================================================= */
.catalog { padding: 90px 0; background: var(--color-surface-alt); }

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.catalog-count {
  min-height: 22px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.catalog-count strong { color: var(--color-text); font-weight: 700; }

/* resaltado de coincidencias del buscador */
mark.search-hit {
  background: rgba(0, 179, 89, 0.22);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--color-secondary); color: var(--color-primary); }
:root[data-theme="dark"] .filter-btn:hover { color: #fff; }
.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.product-card.is-featured .product-media { height: 100%; min-height: 280px; }

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
  letter-spacing: 0.02em;
}

.product-media {
  position: relative;
  background: #f5f2eb;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .zoomable {
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.product-card:hover .zoomable { transform: scale(1.04); }

/* Miniaturas de vistas adicionales */
.product-thumbs {
  position: absolute;
  bottom: 10px; left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.product-thumbs .thumb {
  width: 42px; height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.75);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.product-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs .thumb:hover { opacity: 1; transform: translateY(-2px); }
.product-thumbs .thumb.is-active { opacity: 1; border-color: var(--color-accent); }
.product-media-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--color-surface-alt), var(--color-surface-alt) 10px, var(--color-border) 10px, var(--color-border) 20px);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
}
.product-body h3 { font-size: 1.1rem; color: var(--color-primary); }
:root[data-theme="dark"] .product-body h3 { color: #fff; }
.product-desc { color: var(--color-text-muted); font-size: 0.9rem; }

.product-note {
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text);
}
.product-note strong { color: var(--color-secondary); }
.product-note code {
  font-family: var(--font-mono);
  background: var(--color-secondary-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---------- Ficha técnica ---------- */
.product-specs {
  display: grid;
  gap: 6px;
  font-size: 0.83rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.product-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.product-specs span { color: var(--color-text-muted); flex-shrink: 0; }
.product-specs strong {
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.product-card.is-featured .product-specs { grid-template-columns: 1fr 1fr; column-gap: 26px; }

/* ---------- Precio ---------- */
.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
:root[data-theme="dark"] .product-price { color: #fff; }
.product-price::after {
  content: " COP";
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.product-stock {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.product-stock::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.product-body .buy-btn { margin-top: auto; }

.catalog-note {
  margin-top: 32px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  text-align: center;
}
.catalog-note a { color: var(--color-accent); font-weight: 700; }
.catalog-note a:hover { text-decoration: underline; }

.catalog-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0 0;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 12, 24, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  animation: lb-in 0.18s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* =========================================================
   PROCESO DE COMPRA / PAGO
   ========================================================= */
.payment {
  background: var(--color-primary);
  color: #fff;
  padding: 90px 0;
}
.payment-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}
.payment-steps { display: flex; flex-direction: column; gap: 22px; margin: 28px 0 32px; }
.payment-steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.payment-steps h3 { font-size: 1rem; margin-bottom: 4px; color: #fff; }
.payment-steps p { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.payment-qr { display: flex; justify-content: center; }
.qr-card {
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 26px;
  width: min(280px, 100%);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.qr-card img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: var(--radius-sm); }
.qr-card p { margin-top: 14px; font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; }
.qr-fallback {
  aspect-ratio: 1/1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: repeating-linear-gradient(45deg, var(--color-surface-alt), var(--color-surface-alt) 10px, var(--color-border) 10px, var(--color-border) 20px);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.qr-fallback span { font-weight: 700; }
.qr-fallback small { font-family: var(--font-mono); font-size: 0.72rem; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--color-primary-alt); padding: 90px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-item:not(.contact-item-static):hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.contact-item svg { width: 26px; height: 26px; flex-shrink: 0; color: #7fd3ff; }
.contact-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-item span { font-size: 0.85rem; color: rgba(255,255,255,0.72); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.85); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-logo { height: 38px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 0.03em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 0.86rem; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual-card { width: min(240px, 100%); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* A 2 columnas, la tarjeta suelta es la que abre fila impar */
  .services-grid > .service-card:last-child:nth-child(3n + 1) { grid-column: auto; }
  .services-grid > .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.is-featured { grid-column: span 2; grid-template-columns: 1fr; }
  .product-card.is-featured .product-media { min-height: 220px; aspect-ratio: 16 / 9; }
  .product-card.is-featured .product-specs { grid-template-columns: 1fr; }
  .payment-inner { grid-template-columns: 1fr; }
  .payment-qr { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  /* A 1 columna no hay fila incompleta: se anulan los centrados */
  .services-grid > .service-card:last-child:nth-child(3n + 1),
  .services-grid > .service-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
  }
  .product-grid { grid-template-columns: 1fr; }
  .product-card.is-featured { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; padding: 48px 0 32px; }
}
