/* =============================================================
   GBP FERRETERÍA — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy:        #071a42;
  --navy-2:      #0d2456;
  --navy-3:      #163269;
  --navy-soft:   #24417e;
  --paper:       #ffffff;
  --bg-soft:     #f4f6fa;
  --bg-card:     #ffffff;
  --ink:         #0a1330;
  --ink-soft:    #44506c;
  --ink-mute:    #737f9c;
  --orange:      #f79c14;
  --orange-2:    #ffab2e;
  --orange-dark: #c97800;
  --cream:       #f7f4ee;
  --line:        rgba(13, 27, 51, 0.12);
  --line-dark:   rgba(255, 255, 255, 0.14);
  --shadow-sm:   0 2px 10px rgba(13, 27, 51, 0.08);
  --shadow-md:   0 12px 32px rgba(13, 27, 51, 0.14);
  --shadow-lg:   0 24px 60px rgba(13, 27, 51, 0.22);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   26px;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --disp:  "Sora", var(--sans);
  --mono:  "JetBrains Mono", ui-monospace, monospace;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 88px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--disp); }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--navy); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--navy); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section-bg-soft { background: var(--bg-soft); }
.section-bg-navy { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-dark); font-weight: 600; margin-bottom: .9rem;
}
.section-bg-navy .eyebrow { color: var(--orange); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .8rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-bg-navy .section-head p { color: rgba(255,255,255,.72); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 16ch; }
.hero-title em { font-style: normal; color: var(--orange); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 10px 26px rgba(245,146,31,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(245,146,31,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-3px); background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: #05330f; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(37,211,102,.4); }
.btn-icon { width: 18px; height: 18px; flex: none; border-radius: 4px; }

.card { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.badge { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.badge-orange { background: rgba(245,146,31,.14); color: var(--orange-dark); }
.badge-navy { background: rgba(13,27,51,.08); color: var(--navy); }

/* =============================================================
   6.1 Header / Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease-out);
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(13,27,51,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.nav-brand { display: flex; align-items: center; font-family: var(--disp); font-weight: 800; font-size: 1.2rem; color: var(--navy); white-space: nowrap; }
.nav-brand img { height: 48px; width: auto; flex: none; }
@media (min-width: 960px) { .nav-brand img { height: 68px; } }
.nav-links { display: none; align-items: center; gap: 1.9rem; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav-links a { position: relative; padding-block: .4rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .3s var(--ease-out); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-cta-desktop { display: none; }
@media (min-width: 640px) { .nav-cta-desktop { display: inline-flex; } }
.nav-cta-mobile { align-self: flex-start; }
@media (min-width: 960px) { .nav-cta-mobile { display: none; } }
.cart-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); }
.cart-btn:hover { background: var(--line); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--orange); color: var(--navy); font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding-inline: 4px;
}
.nav-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-soft); }

/* =============================================================
   6.2 Hero
   ============================================================= */
.hero {
  position: relative; overflow: clip;
  min-height: clamp(560px, 78vh, 740px);
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 1.4rem); padding-bottom: 1.8rem;
  color: #fff;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s var(--ease-soft);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-slider-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,10,28,.15) 0%, rgba(4,10,28,.1) 55%, rgba(4,10,28,.75) 100%),
    linear-gradient(100deg, rgba(4,10,28,.96) 0%, rgba(4,10,28,.88) 32%, rgba(4,10,28,.5) 56%, rgba(4,10,28,.12) 78%, rgba(4,10,28,0) 92%);
}
@media (max-width: 719px) {
  .hero-slider-overlay {
    background:
      linear-gradient(180deg, rgba(4,10,28,.2) 0%, rgba(4,10,28,.55) 45%, rgba(4,10,28,.94) 100%),
      linear-gradient(100deg, rgba(4,10,28,.97) 0%, rgba(4,10,28,.9) 55%, rgba(4,10,28,.6) 78%, rgba(4,10,28,.3) 100%);
  }
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-slider-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(7,26,66,.5); border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.hero-slider-arrow:hover { background: var(--orange); color: var(--navy); }
.hero-slider-arrow.prev { left: 1rem; }
.hero-slider-arrow.next { right: 1rem; }
.hero-slider-dots { position: absolute; left: 50%; bottom: 1.4rem; z-index: 3; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35);
  transition: all .3s var(--ease-out);
}
.hero-slider-dots button.is-active { background: var(--orange); width: 24px; border-radius: 999px; }
@media (max-width: 719px) { .hero-slider-arrow { display: none; } }
.hero-meta { display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: 1.1rem; letter-spacing: .04em; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero-sub { max-width: 46ch; color: rgba(255,255,255,.82); font-size: 1.12rem; margin-top: .8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.3rem; }
.hero-search {
  margin-top: 1.4rem; max-width: 560px;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.96); border-radius: 999px; padding: .5rem .5rem .5rem 1.3rem;
  box-shadow: var(--shadow-lg);
}
.hero-search input { flex: 1; border: 0; background: transparent; font-size: .98rem; color: var(--ink); padding-block: .5rem; }
.hero-search input::placeholder { color: var(--ink-mute); }
.hero-search button { display: flex; align-items: center; gap: .4rem; background: var(--orange); color: var(--navy); border-radius: 999px; padding: .75rem 1.3rem; font-weight: 700; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 4vw, 3rem); margin-top: 1.6rem; }
.hero-stat strong { display: block; font-family: var(--disp); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--orange); }
.hero-stat span { font-size: .84rem; color: rgba(255,255,255,.68); }

/* =============================================================
   6.2b Trust bar
   ============================================================= */
.trust-bar { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.trust-bar-inner {
  display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; align-items: center; justify-content: center;
  padding-block: .75rem;
}
.trust-item { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.86); font-size: .84rem; font-weight: 600; }
.trust-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(247,156,20,.16);
  display: flex; align-items: center; justify-content: center; color: var(--orange);
}
.trust-icon svg { width: 18px; height: 18px; }

/* =============================================================
   6.2c Marcas
   ============================================================= */
.brands-section { padding-block: clamp(2.4rem, 4.5vw, 3.6rem); }
.brands-section .section-head { margin-bottom: 1.8rem; }
.brands-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem;
}
@media (min-width: 560px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 840px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1140px) { .brands-grid { grid-template-columns: repeat(6, 1fr); } }
.brand-tile {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; height: 84px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.brand-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* =============================================================
   6.3 Sectores
   ============================================================= */
.sectores-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.sector-card { padding: 1.8rem 1.6rem; position: relative; overflow: hidden; }
.sector-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--orange); }
.sector-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--navy); }
.sector-card p { color: var(--ink-soft); font-size: .93rem; }

/* =============================================================
   6.4 Ventajas
   ============================================================= */
.ventajas-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.ventaja { display: flex; gap: 1rem; align-items: flex-start; }
.ventaja-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(245,146,31,.15); display: flex; align-items: center; justify-content: center; color: var(--orange-dark); font-weight: 800; font-family: var(--disp); }
.ventaja h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.ventaja p { color: var(--ink-soft); font-size: .92rem; }

/* =============================================================
   6.5 Tienda
   ============================================================= */
.catalog-card {
  display: flex; align-items: center; gap: 1.3rem; background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 1.1rem 1.5rem 1.1rem 1.1rem; margin-bottom: 2.2rem;
  box-shadow: var(--shadow-md); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  max-width: 640px;
}
.catalog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.catalog-card img { flex: none; width: 74px; height: 96px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.catalog-card-body { display: flex; flex-direction: column; gap: .25rem; }
.catalog-card-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: var(--orange); text-transform: uppercase; }
.catalog-card-body strong { font-size: 1.05rem; }
.catalog-card-cta { font-size: .84rem; color: rgba(255,255,255,.72); }
.tienda-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.tienda-search { flex: 1 1 280px; display: flex; align-items: center; gap: .5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; }
.tienda-search input { flex: 1; border: 0; background: transparent; font-size: .95rem; }
.filtro-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .25s var(--ease-out);
}
.chip.is-active, .chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.tienda-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(2, 1fr); }
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-cat { position: absolute; top: .7rem; left: .7rem; }
.product-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-brand { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-size: .98rem; font-weight: 700; color: var(--navy); line-height: 1.3; min-height: 2.6em; }
.product-unit { font-size: .78rem; color: var(--ink-mute); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .5rem; }
.product-price { font-family: var(--disp); font-weight: 800; font-size: 1.12rem; color: var(--navy); }
.product-price small { display: block; font-family: var(--sans); font-weight: 500; font-size: .68rem; color: var(--ink-mute); }
.add-cart-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; transition: all .3s var(--ease-bounce); }
.add-cart-btn:hover { background: var(--orange); color: var(--navy); transform: scale(1.1) rotate(90deg); }
.tienda-more { text-align: center; margin-top: 2.2rem; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(13,27,51,.55); backdrop-filter: blur(3px); z-index: 900; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); }
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; z-index: 901; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease-out);
  box-shadow: -20px 0 50px rgba(13,27,51,.3);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.1rem; }
.cart-close { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-item { display: flex; gap: .8rem; align-items: center; }
.cart-item img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: .88rem; line-height: 1.25; }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-item-remove { color: var(--ink-mute); font-size: .76rem; text-decoration: underline; margin-top: .3rem; display: inline-block; }
.cart-empty { text-align: center; color: var(--ink-mute); padding: 3rem 1rem; }
.cart-foot { padding: 1.3rem 1.4rem 1.6rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.cart-note { font-size: .76rem; color: var(--ink-mute); }

/* Product spec modal */
.pmodal-overlay { position: fixed; inset: 0; background: rgba(13,27,51,.6); backdrop-filter: blur(3px); z-index: 950; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); }
.pmodal-overlay.is-open { opacity: 1; pointer-events: auto; }
.pmodal {
  position: fixed; top: 50%; left: 50%; z-index: 951; width: min(760px, 92vw); max-height: 88vh;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; overflow-y: auto;
  display: grid; grid-template-columns: 1fr; opacity: 0; pointer-events: none;
  transform: translate(-50%, -48%) scale(.96); transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.pmodal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
@media (min-width: 700px) { .pmodal { grid-template-columns: 300px 1fr; max-height: 82vh; } }
.pmodal-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--navy);
}
.pmodal-media { background: var(--bg-soft); display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1; }
@media (min-width: 700px) { .pmodal-media { aspect-ratio: auto; height: 100%; } }
.pmodal-media img { width: 100%; height: 100%; object-fit: contain; }
.pmodal-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; }
.pmodal-body .badge { align-self: flex-start; margin-bottom: .7rem; }
.pmodal-brand { font-family: var(--mono); font-size: .78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .03em; }
.pmodal-name { font-size: 1.3rem; color: var(--navy); margin: .35rem 0 .4rem; line-height: 1.28; }
.pmodal-unit { font-size: .84rem; color: var(--ink-mute); }
.pmodal-ficha-head { font-weight: 700; color: var(--navy); font-size: .92rem; margin-top: 1.2rem; margin-bottom: .45rem; display: flex; align-items: center; gap: .4rem; }
.pmodal-ficha-head::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--orange); display: inline-block; }
.pmodal-ficha { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.pmodal-foot { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pmodal-price { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.product-media { cursor: pointer; }

/* =============================================================
   6.6 Blog
   ============================================================= */
.blog-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
.blog-card { overflow: hidden; }
.blog-media { aspect-ratio: 3/2; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-body { padding: 1.3rem 1.4rem 1.5rem; }
.blog-date { font-family: var(--mono); font-size: .74rem; color: var(--ink-mute); }
.blog-body h3 { font-size: 1.1rem; margin: .5rem 0 .5rem; color: var(--navy); }
.blog-body p { color: var(--ink-soft); font-size: .9rem; }
.blog-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 700; font-size: .86rem; color: var(--orange-dark); }
.blog-link::after { content: "→"; transition: transform .3s var(--ease-out); }
.blog-card:hover .blog-link::after { transform: translateX(4px); }

/* =============================================================
   6.7 FAQ
   ============================================================= */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; text-align: left; font-weight: 700; color: var(--navy); }
.faq-q .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; transition: transform .35s var(--ease-out); font-weight: 800; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); background: var(--orange); color: var(--navy); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .95rem; }
.faq-item.is-open .faq-a { max-height: 320px; }

/* =============================================================
   6.8 Contacto
   ============================================================= */
.contacto-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contacto-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .25s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); outline: none; }
.contacto-side { display: flex; flex-direction: column; gap: 1rem; }
.contacto-info-card { padding: 1.6rem; }
.contacto-info-card h3 { font-size: 1rem; margin-bottom: .8rem; color: var(--navy); }
.contacto-info-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin-bottom: .7rem; }
.form-status { font-size: .85rem; padding: .7rem 1rem; border-radius: 10px; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(37,211,102,.14); color: #0a6b31; }
.form-status.err { background: rgba(220,60,40,.12); color: #b23a26; }

/* =============================================================
   6.9 Footer
   ============================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,.78); padding-block: 3.5rem 2rem; }

/* --- top grid: brand + link columns --- */
.footer-top { display: grid; gap: 2.4rem 1.6rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2.8rem; }
.footer-brand-col { grid-column: 1 / -1; }
.footer-contact-col { grid-column: 1 / -1; }
.footer-brand { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.footer-brand img { height: 84px; width: auto; }
.footer-tagline { font-size: .92rem; max-width: 34ch; color: rgba(255,255,255,.6); line-height: 1.55; }
.footer-col h4 {
  color: var(--orange); font-size: .82rem; font-weight: 800; margin-bottom: .95rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding-bottom: .6rem; border-bottom: 2px solid rgba(247,156,20,.35);
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.footer-col ul a { color: rgba(255,255,255,.72); }
.footer-col ul li::before { content: "›"; color: var(--orange); font-weight: 700; margin-right: .4rem; }
.footer-col a:hover { color: var(--orange); }

/* --- contact column with icon badges --- */
.footer-contact-list { gap: 1.1rem !important; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .75rem; }
.footer-contact-list li::before { content: none; }
.footer-contact-icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-contact-icon svg { width: 21px; height: 21px; }
.footer-contact-icon--whatsapp,
.footer-contact-icon--instagram { background: none; }
.footer-contact-icon--whatsapp img,
.footer-contact-icon--instagram img { width: 40px; height: 40px; display: block; }
.footer-contact-icon--mail,
.footer-contact-icon--location { background: var(--orange); }
.footer-contact-text { display: flex; flex-direction: column; gap: .15rem; padding-top: .3rem; font-size: .9rem; }
.footer-contact-text a { color: #fff; font-weight: 600; }
.footer-contact-text small { color: rgba(255,255,255,.5); font-size: .78rem; }

/* --- payments + feature strip merged into a single bar --- */
.footer-payments-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line-dark); margin-bottom: 1.3rem;
}
.footer-payments-title { color: var(--orange); font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.footer-secure { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-secure svg { width: 15px; height: 15px; flex: none; }

.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.8rem 2.6rem; padding-bottom: 1.8rem;
}
.footer-payments-row { flex: 1 1 380px; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.pay-badge {
  display: inline-flex; align-items: center; justify-content: center; height: 54px;
}
.pay-badge img { height: 100%; width: auto; border-radius: 6px; display: block; }

.footer-features {
  flex: 1 1 460px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; align-items: center;
}
.footer-feature { display: flex; align-items: center; gap: .8rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.35; }
.footer-feature-icon {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid rgba(247,156,20,.5); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.footer-feature-icon svg { width: 26px; height: 26px; }

.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: center; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); font-size: .8rem; color: rgba(255,255,255,.5); }

@media (min-width: 640px) {
  .footer-features { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1180px) {
  .footer-bar { flex-wrap: nowrap; gap: 1.6rem; align-items: center; }
  .footer-payments-row { flex: 0 0 auto; gap: .5rem; }
  .pay-badge { height: 46px; }
  .footer-features { flex: 1 1 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 1.2rem; }
  .footer-feature { gap: .65rem; }
  .footer-feature-icon { width: 48px; height: 48px; }
  .footer-feature-icon svg { width: 22px; height: 22px; }
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-brand-col { grid-column: auto; }
}
@media (min-width: 960px) {
  .footer-top { grid-template-columns: 1.1fr .8fr .8fr 1.3fr; }
  .footer-contact-col { grid-column: auto; }
}

/* =============================================================
   6.10 AI chat widget
   ============================================================= */
.ai-bubble {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 800;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--orange); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(245,146,31,.45);
  transition: transform .35s var(--ease-bounce);
  font-size: 1.6rem;
}
.ai-bubble:hover { transform: scale(1.08); }
.ai-bubble .ping { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); opacity: .55; animation: aiPing 2.6s ease-out infinite; }
@keyframes aiPing { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.ai-panel {
  position: fixed; right: 1.3rem; bottom: 6rem; z-index: 801;
  width: min(380px, 92vw); max-height: min(560px, 70vh);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none;
  transition: all .35s var(--ease-out);
}
.ai-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.ai-panel-head { background: var(--navy); color: #fff; padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .7rem; }
.ai-panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; }
.ai-panel-head strong { font-size: .95rem; }
.ai-panel-head span { display: block; font-size: .74rem; color: rgba(255,255,255,.65); }
.ai-panel-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.ai-messages { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--bg-soft); }
.ai-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 14px; font-size: .87rem; line-height: 1.45; }
.ai-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .8rem; background: var(--bg-soft); }
.ai-suggestions button { font-size: .76rem; padding: .45rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.ai-suggestions button:hover { border-color: var(--orange); color: var(--orange-dark); }
.ai-input-row { display: flex; gap: .5rem; padding: .9rem 1rem; border-top: 1px solid var(--line); background: #fff; }
.ai-input-row input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; font-size: .88rem; }
.ai-input-row input:focus { border-color: var(--orange); outline: none; }
.ai-send { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.ai-whatsapp-cta { margin: .3rem 1.1rem 1rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(37,211,102,.12); color: #0a6b31; font-size: .82rem; display: flex; align-items: center; gap: .6rem; }

/* =============================================================
   7. Effects
   ============================================================= */
.mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); }
.marquee-track { display: inline-flex; gap: 3rem; animation: marqueeScroll 34s linear infinite; padding-block: .9rem; }
.marquee-track span { font-family: var(--mono); font-size: .82rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tilt { transition: transform .5s var(--ease-out); transform-style: preserve-3d; }

.count-up { font-variant-numeric: tabular-nums; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .sectores-grid { grid-template-columns: repeat(2, 1fr); }
}
.nav-links.is-open {
  display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
  flex-direction: column; background: #fff; padding: 1.2rem 1.25rem 1.6rem;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); gap: 1rem;
}
@media (min-width: 720px) {
  .contacto-grid { grid-template-columns: 1.1fr .9fr; }
  .tienda-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-links.is-open { position: static; flex-direction: row; box-shadow: none; border: 0; padding: 0; background: none; }
  .nav-toggle { display: none; }
  .sectores-grid { grid-template-columns: repeat(4, 1fr); }
  .ventajas-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .tienda-grid { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .hero-title { max-width: 20ch; }
}

/* =============================================================
   8.9 Article (blog post) page
   ============================================================= */
.article-section { padding-block: 2.6rem 4rem; }
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-back {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700;
  color: var(--orange-dark); margin-bottom: 1.4rem;
}
.article-back::before { content: "←"; }
.article-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.article-date { font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); }
.article-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.22; color: var(--navy); margin-bottom: 1.6rem;
}
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 2.2rem; }
.article-cover img { width: 100%; display: block; }
.article-body p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.1rem; font-size: 1rem; }
.article-body h2 {
  font-size: 1.4rem; color: var(--navy); margin: 2.4rem 0 .9rem; padding-bottom: .55rem;
  border-bottom: 2px solid rgba(247,156,20,.3);
}
.article-body h3 { font-size: 1.05rem; color: var(--orange-dark); margin: 1.8rem 0 .5rem; }
.article-body ul { margin: 0 0 1.2rem 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.article-body ul li { color: var(--ink-soft); line-height: 1.65; }
.article-body ul li::marker { color: var(--orange-dark); font-weight: 700; }
.article-body strong { color: var(--navy); }
.check-list {
  list-style: none !important; padding: 1.3rem 1.5rem !important; margin: 0 0 1.4rem !important;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.check-list li {
  position: relative; padding-left: 1.7rem; list-style: none;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  border-radius: var(--radius-md); padding: 2rem; margin: 2.6rem 0 1.4rem; text-align: center;
}
.article-cta-q { font-family: var(--disp); font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.article-cta p:not(.article-cta-q) { color: rgba(255,255,255,.72); margin-bottom: 1.3rem; }
.article-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-related h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); margin-bottom: 1rem; }
.article-related-list { display: flex; flex-direction: column; gap: .7rem; }
.article-related-list a {
  color: var(--navy); font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: .5rem;
}
.article-related-list a::before { content: "›"; color: var(--orange); font-weight: 700; }

/* =============================================================
   9. Reduced-motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .ai-bubble .ping { animation: none; }
  .hero-meta .dot { animation: none; }
}
