/* =========================================================
   GRUPO FIBRATEX — Sistema de diseño
   Paleta tomada del logotipo: azul #1075BC · verde #7DC445 ·
   gris #878787, sobre neutros fríos.
   ========================================================= */

:root {
  /* Marca */
  --azul: #1075bc;
  --azul-oscuro: #0b5a92;
  --azul-suave: #e3f0fa;
  --verde: #7dc445;
  --verde-oscuro: #5fa32e;
  --verde-suave: #edf7e4;
  --gris: #878787;

  /* Neutros */
  --fondo: #f6f8fb;
  --fondo-2: #eaeff5;
  --fondo-3: #dfe6ee;
  --ink: #1b2430;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --white: #fff;

  /* Semánticos */
  --wa: #1fa855;
  --ok: #1e8e4a;
  --ok-suave: #e6f6ec;
  --error: #b42318;
  --error-suave: #fdeceb;
  --aviso: #8a5b12;
  --aviso-suave: #fdf4e3;

  /* Tipografía */
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);

  /* Escala */
  --step--1: clamp(0.8rem, 0.78rem + 0.15vw, 0.88rem);
  --step-0: clamp(0.96rem, 0.93rem + 0.16vw, 1.04rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.34vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.68vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);

  /* Ritmo */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(27, 36, 48, 0.05), 0 4px 14px rgba(27, 36, 48, 0.05);
  --shadow-md: 0 2px 6px rgba(27, 36, 48, 0.06), 0 16px 40px rgba(27, 36, 48, 0.1);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--azul); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--fondo-2); }
.section--white { background: var(--white); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.eyebrow {
  font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--azul); font-weight: 700; margin-bottom: 0.6rem;
}
.eyebrow--verde { color: var(--verde-oscuro); }
.section-title { font-size: var(--step-3); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.6; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--azul); --btn-fg: var(--white); --btn-bd: var(--azul);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: 999px; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer; text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); --btn-bg: var(--azul-oscuro); --btn-bd: var(--azul-oscuro); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--azul); --btn-bd: var(--fondo-3); }
.btn--ghost:hover { --btn-bg: var(--azul-suave); --btn-bd: var(--azul); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--azul); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--azul-suave); --btn-bd: var(--azul-suave); }
.btn--verde { --btn-bg: var(--verde); --btn-bd: var(--verde); --btn-fg: #163000; }
.btn--verde:hover { --btn-bg: var(--verde-oscuro); --btn-bd: var(--verde-oscuro); --btn-fg: var(--white); }
.btn--wa { --btn-bg: var(--wa); --btn-bd: var(--wa); }
.btn--wa:hover { --btn-bg: #178f47; --btn-bd: #178f47; }
.btn--block { width: 100%; padding-inline: 0.85rem; font-size: 0.8rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(27, 36, 48, 0.05); }

.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.brand img { width: auto; height: 40px; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.8rem); }
.nav a {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink); padding-block: 0.35rem; position: relative; transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--verde); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--azul); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--azul); }
.nav a.nav-destacado { color: var(--verde-oscuro); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav > .btn { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; transition: background 0.2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fondo); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.6rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .nav a::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 1.4rem; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(90% 70% at 80% 10%, var(--azul-suave) 0%, transparent 60%),
    radial-gradient(60% 55% at 5% 95%, var(--verde-suave) 0%, transparent 55%),
    var(--fondo);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.02fr 0.98fr; } }

.hero-title { font-size: var(--step-4); margin-bottom: 1.2rem; }
.hero-title em { font-style: normal; color: var(--azul); }
.hero-text { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; background: var(--azul-suave);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: clamp(0.9rem, 2vw, 1.4rem); bottom: clamp(0.9rem, 2vw, 1.4rem);
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  padding: 0.7rem 1.05rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
}
.hero-badge img { width: 26px; height: 26px; object-fit: contain; }

.hero-marks {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted);
}
.hero-marks span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-marks svg { width: 1.1em; height: 1.1em; color: var(--verde-oscuro); flex: none; }

/* ---------- Grid de categorías ---------- */
.cat-grid { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--fondo-2); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 36, 48, 0.78) 0%, rgba(27, 36, 48, 0.1) 45%, transparent 70%);
}
.cat-card-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.1rem 1.2rem; color: var(--white); }
.cat-card-label strong { display: block; font-size: var(--step-2); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.cat-card-label small { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-top: 0.25rem; }

/* ---------- Grid de productos ---------- */
.product-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.9rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--fondo-3); box-shadow: var(--shadow-md); }

.card-media {
  position: relative; aspect-ratio: 1; background: var(--fondo-2); overflow: hidden;
  border: 0; padding: 0; cursor: zoom-in; width: 100%; display: block;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }

.card-tag {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: rgba(255, 255, 255, 0.92); color: var(--azul);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.32rem 0.65rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.card-tag--verde { color: var(--verde-oscuro); }

.card-body { display: flex; flex-direction: column; flex: 1; gap: 0.55rem; padding: 1.05rem 1.1rem 1.2rem; }
.card-title { font-size: var(--step-1); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.card-desc {
  font-size: 0.88rem; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-meta span {
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.45rem; color: var(--muted);
}
.card-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; }

.price { font-size: var(--step-2); font-weight: 800; color: var(--azul); letter-spacing: -0.02em; }
.price small { font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 0.25rem; }
.price--ask { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.card-actions { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.pay-note { font-size: 0.72rem; color: var(--muted); text-align: center; letter-spacing: 0.02em; }

/* Selector de talla (tarjeta y modal) */
.tallas { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.talla {
  min-width: 2.3rem; padding: 0.3rem 0.55rem; border: 1px solid var(--line); background: var(--white);
  border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s var(--ease);
}
.talla:hover { border-color: var(--azul); color: var(--azul); }
.talla[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--white); }
.tallas-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }

/* ---------- Filtros de tienda ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--azul); color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--white); }

.search-field { position: relative; flex: 1 1 220px; max-width: 320px; }
.search-field svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.9rem; }
.search-field input:focus { outline: none; border-color: var(--azul); }
.result-count { font-size: 0.85rem; color: var(--muted); }

/* ---------- Estados ---------- */
.state { padding: clamp(2.5rem, 8vw, 5rem) 1rem; text-align: center; color: var(--muted); }
.state h3 { font-size: var(--step-2); color: var(--ink); margin-bottom: 0.6rem; }
.state p { max-width: 46ch; margin-inline: auto; }
.state .btn { margin-top: 1rem; }

.spinner { width: 30px; height: 30px; margin: 0 auto 1.1rem; border: 2px solid var(--fondo-3); border-top-color: var(--azul); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--white); }
.skeleton-media { aspect-ratio: 1; background: linear-gradient(100deg, var(--fondo-2) 30%, var(--fondo-3) 50%, var(--fondo-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
.skeleton-line { height: 12px; margin: 1rem 1.1rem 0; border-radius: 6px; background: var(--fondo-2); }
.skeleton-line:last-child { width: 45%; margin-bottom: 1.4rem; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split-media { order: 2; } }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; background: var(--azul-suave); }
.split-media--wide { aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body > * + * { margin-top: 1.1rem; }
.split-body p { color: var(--muted); }

/* ---------- Franja de valores ---------- */
.values { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.value { text-align: left; }
.value-ico {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--white); color: var(--azul); margin-bottom: 0.9rem; box-shadow: var(--shadow-sm);
}
.value-ico svg { width: 21px; height: 21px; }
.value h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.value p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Proceso (pasos numerados) ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: paso; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem; counter-increment: paso;
}
.step::before {
  content: counter(paso, decimal-leading-zero);
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--verde-oscuro); background: var(--verde-suave); padding: 0.25rem 0.6rem; border-radius: 6px; margin-bottom: 0.9rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step ul { padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; display: grid; gap: 0.3rem; }

/* ---------- Pilares (servicios) ---------- */
.pillars { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar h3 { font-size: var(--step-2); }
.pillar p { color: var(--muted); font-size: 0.94rem; }
.pillar .btn { align-self: flex-start; margin-top: auto; }
.pillar--destacado { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%); color: var(--white); border-color: transparent; }
.pillar--destacado p { color: rgba(255, 255, 255, 0.82); }
.pillar--destacado .value-ico { background: rgba(255, 255, 255, 0.14); color: var(--white); box-shadow: none; }
.pillar--destacado .eyebrow { color: var(--verde); }

.segmentos { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 0.4rem; }
.segmento { background: var(--fondo); border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.88rem; }
.segmento strong { display: block; margin-bottom: 0.2rem; color: var(--ink); }

/* ---------- Galería ---------- */
.gallery { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 196, 69, 0.35) 0%, transparent 70%); pointer-events: none;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin-top: 0.6rem; max-width: 48ch; }
.cta-band .btn { --btn-bg: var(--white); --btn-fg: var(--azul); --btn-bd: var(--white); position: relative; }
.cta-band .btn:hover { --btn-bg: var(--verde); --btn-bd: var(--verde); --btn-fg: #163000; }
.cta-band .eyebrow { color: var(--verde); }
.cta-band--verde { background: linear-gradient(135deg, var(--verde-oscuro) 0%, #47851f 100%); }
.cta-band--verde .btn { --btn-fg: var(--verde-oscuro); }
.cta-band--verde .btn:hover { --btn-bg: var(--azul); --btn-bd: var(--azul); --btn-fg: var(--white); }
.cta-band--verde .eyebrow { color: #d9f0c4; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .value-ico { margin-bottom: 0.4rem; }
.contact-card h3 { font-size: var(--step-1); }
.contact-card p { font-size: 0.9rem; color: var(--muted); }
.contact-card .link {
  color: var(--azul); font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere;
  border-bottom: 1px solid var(--fondo-3); align-self: flex-start; margin-top: auto; padding-top: 0.4rem;
  transition: border-color 0.2s var(--ease);
}
.contact-card:hover .link { border-color: var(--azul); }
/* Segunda línea de la tarjeta (teléfono alterno, correo general): mismo
   sitio que `.link` pero sin protagonismo — no es la vía principal. */
.contact-card .link--alt {
  color: var(--muted); font-weight: 500; margin-top: 0; padding-top: 0.25rem; border-bottom-color: transparent;
}
.contact-card:hover .link--alt { border-color: transparent; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--fondo-2); aspect-ratio: 16 / 7; min-height: 260px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.faq { display: grid; gap: 0.7rem; max-width: 780px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.3rem; }
.faq summary { cursor: pointer; font-size: var(--step-1); font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--azul); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- Pagos ---------- */
.pay-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pay-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--white); color: var(--muted); padding: 0.35rem 0.75rem; border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer h4 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; font-weight: 700; }
.site-footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--white); }
.footer-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-brand img { width: auto; height: 44px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; line-height: 1.6; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; transition: all 0.2s var(--ease); }
.socials a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.socials svg { width: 17px; height: 17px; }
.footer-pay .pay-pill { background: transparent; border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.7); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; padding-top: 1.8rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: var(--white);
  box-shadow: 0 6px 24px rgba(31, 168, 85, 0.4); transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------- Modal producto ----------
   Dos columnas: la foto manda a la izquierda y la ficha a la derecha, con el
   botón de compra anclado abajo. Ojo con `min-width: 0` en las celdas: sin él
   la foto (que es cuadrada) reclama tanto ancho como alto tenga la fila y
   estruja la columna del texto. */
.modal {
  --modal-h: min(88dvh, 720px);
  margin: auto; max-width: 100%; border: 0; padding: 0;
  width: min(980px, calc(100vw - 2rem)); max-height: var(--modal-h);
  border-radius: var(--radius-lg); background: var(--white); color: var(--ink);
  overflow: hidden; box-shadow: 0 24px 70px rgba(27, 36, 48, 0.28);
}
.modal::backdrop { background: rgba(27, 36, 48, 0.6); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in 0.28s var(--ease) both; }
.modal[open]::backdrop { animation: modal-fade 0.28s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
@keyframes modal-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal[open], .modal[open]::backdrop { animation: none; } }

.modal-inner:focus { outline: none; }
.modal-inner { display: grid; grid-template-columns: minmax(0, 1fr); max-height: var(--modal-h); overflow-y: auto; }

.modal-media { position: relative; min-width: 0; aspect-ratio: 4 / 3; background: var(--fondo-2); }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-media .card-tag { top: 1rem; left: 1rem; }

.modal-body { min-width: 0; display: flex; flex-direction: column; background: var(--white); }
.modal-scroll { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0.85rem; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.3rem, 2.8vw, 2rem) 1.2rem; }
.modal-titulo { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; padding-right: 2.6rem; text-wrap: balance; }
.modal-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; }
.modal-minimo { font-size: 0.78rem; color: var(--muted); }
.modal-minimo strong { color: var(--ink); font-weight: 700; }
.modal-desc { font-size: 0.92rem; line-height: 1.6; color: var(--muted); white-space: pre-line; }
.modal-bloque { padding-top: 0.2rem; }

/* Selector de color (tarjeta y modal): círculo + nombre, mismo contrato que
   las tallas (`aria-pressed`). Como <li> es solo informativo. */
.swatches { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.swatch {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.22rem 0.6rem 0.22rem 0.35rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--muted); background: var(--white);
  font-family: inherit; line-height: 1.4; transition: border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.swatch i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(27, 36, 48, 0.18); flex: none; }
button.swatch { cursor: pointer; }
button.swatch:hover { border-color: var(--azul); color: var(--azul); }
button.swatch[aria-pressed="true"] { border-color: var(--azul); color: var(--ink); box-shadow: 0 0 0 1px var(--azul); }
/* Versión compacta de la tarjeta: solo el círculo; el nombre va en la etiqueta.
   Sin borde en reposo para que el único anillo visible sea el del elegido. */
.swatch--punto { padding: 2px; gap: 0; border-color: transparent; background: transparent; }
.swatch--punto i { width: 16px; height: 16px; }
button.swatch--punto:hover { border-color: var(--fondo-3); box-shadow: none; }
button.swatch--punto[aria-pressed="true"], button.swatch--punto[aria-pressed="true"]:hover { border-color: var(--azul); box-shadow: 0 0 0 1px var(--azul); }
.swatches--puntos { gap: 0.3rem; }
.tallas-label [data-color-nombre] { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Barra de compra: pegada abajo aunque la ficha sea larga. El degradado de
   arriba insinúa que todavía queda ficha por leer. */
.modal-cta {
  position: sticky; bottom: 0; z-index: 1; flex: none; display: grid; gap: 0.5rem;
  padding: 1rem clamp(1.3rem, 2.8vw, 2rem) clamp(1.1rem, 2.4vw, 1.5rem);
  background: var(--white); border-top: 1px solid var(--line);
}
.modal-cta::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.modal-cta .btn--block { font-size: var(--step--1); padding-block: 0.9rem; }
.modal-ficha { font-size: 0.75rem; text-align: center; }
.modal-ficha a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.modal-ficha a:hover { color: var(--azul); }

@media (min-width: 760px) {
  .modal-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(540px, 78dvh); overflow: hidden; }
  .modal-media { aspect-ratio: auto; height: 100%; }
  .modal-body { max-height: var(--modal-h); }
  .modal-scroll { overflow-y: auto; }
}
@media (max-width: 759px) {
  .modal { width: min(560px, calc(100vw - 1.2rem)); --modal-h: min(92dvh, 900px); }
}

.modal-close {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; z-index: 3; font-size: 1.1rem; line-height: 1;
  color: var(--muted); transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.modal-close:hover { background: var(--white); color: var(--ink); border-color: var(--fondo-3); }

/* ---------- Avisos ---------- */
.notice { background: var(--azul-suave); border: 1px solid #b9d7ef; border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.88rem; color: var(--ink); margin-bottom: 1.8rem; }
.notice strong { color: var(--azul); }
.notice--aviso { background: var(--aviso-suave); border-color: #e8d3a4; }
.notice--aviso strong { color: var(--aviso); }
.notice--aviso a { color: var(--azul); text-decoration: underline; font-weight: 600; }

/* ---------- Reveal on scroll ----------
   Solo se esconde si `js/anim.js` marcó <html class="js">. Sin JavaScript
   (o si el script falla) el contenido se muestra tal cual: nunca queda una
   sección invisible por una animación que no llegó a ejecutarse. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Carrito ---------- */
.carrito-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.carrito-btn:hover { border-color: var(--azul); color: var(--azul); }
.carrito-btn svg { width: 19px; height: 19px; }
.carrito-badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; background: var(--verde); color: #163000; border-radius: 999px; font-size: 0.68rem; font-weight: 800; line-height: 1;
}

.carrito {
  max-width: 100%; margin: 0 0 0 auto; border: 0; padding: 0; width: min(470px, 100%);
  height: 100dvh; max-height: 100dvh; background: var(--fondo); color: var(--ink); box-shadow: var(--shadow-md);
}
.carrito::backdrop { background: rgba(27, 36, 48, 0.5); backdrop-filter: blur(3px); }
.carrito-inner { display: flex; flex-direction: column; height: 100dvh; }
.carrito-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.carrito-head h2 { font-size: var(--step-2); }
.carrito-head .modal-close { position: static; }
.carrito-body { flex: 1; overflow-y: auto; padding: 1.2rem var(--gutter) 2rem; }

.carrito-aviso { background: var(--aviso-suave); border: 1px solid #e8d3a4; color: var(--aviso); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.85rem; margin-bottom: 1rem; }
.carrito-lista { list-style: none; padding: 0; display: grid; gap: 1rem; }
.carrito-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 0.8rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.carrito-item img, .carrito-img-vacia { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; background: var(--fondo-2); display: block; }
.carrito-item-info { display: grid; gap: 0.3rem; min-width: 0; }
.carrito-item-info strong { font-size: 0.98rem; font-weight: 700; line-height: 1.2; }
.carrito-unit { font-size: 0.8rem; color: var(--muted); }
.carrito-item-total { font-weight: 700; white-space: nowrap; }
.carrito-diseno { font-size: 0.74rem; color: var(--verde-oscuro); font-weight: 600; }
.carrito-minimo { font-size: 0.74rem; color: var(--aviso); font-weight: 600; }
.carrito-diseno a { text-decoration: underline; }

.qty { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 6px; cursor: pointer; font-size: 0.95rem; line-height: 1; }
.qty button:hover { border-color: var(--azul); color: var(--azul); }
.qty span { min-width: 22px; text-align: center; font-size: 0.9rem; }
.qty .carrito-quitar { width: auto; height: auto; border: 0; background: none; color: var(--muted); font-size: 0.78rem; text-decoration: underline; margin-left: 0.3rem; padding: 0.2rem; }
.qty .carrito-quitar:hover { color: var(--error); }

.carrito-bloque { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin-top: 1.4rem; background: var(--white); }
.carrito-bloque legend { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azul); padding-inline: 0.4rem; }
.carrito-bloque label { display: block; font-size: 0.85rem; margin-top: 0.7rem; }
.carrito-bloque input[type="text"], .carrito-bloque input[type="tel"], .carrito-bloque input[type="email"], .carrito-bloque textarea {
  width: 100%; margin-top: 0.25rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--fondo); font-size: 0.92rem;
}
.carrito-bloque input:focus, .carrito-bloque textarea:focus { outline: none; border-color: var(--azul); }

.radio, .check { display: flex !important; align-items: flex-start; gap: 0.6rem; margin-top: 0.6rem !important; cursor: pointer; }
.radio input, .check input { margin-top: 0.25rem; flex: none; accent-color: var(--azul); }
.radio small, .check span { display: block; }
.radio small { color: var(--muted); font-size: 0.78rem; }
.radio--off { opacity: 0.55; cursor: not-allowed; }
.check span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.check a { color: var(--azul); text-decoration: underline; }

.carrito-totales { margin-top: 1.4rem; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.carrito-totales > div { display: flex; justify-content: space-between; gap: 1rem; }
.carrito-total { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.7rem; margin-top: 0.3rem; border-top: 1px solid var(--line); font-size: var(--step-2); font-weight: 800; color: var(--azul); }
.carrito-error { margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--error-suave); border: 1px solid #f0b8b4; color: var(--error); font-size: 0.85rem; }
.carrito-body .btn { margin-top: 1.2rem; }
.carrito-body .pay-note { margin-top: 0.6rem; }
.carrito-confirmar h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.carrito-resumen { list-style: none; padding: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.carrito-resumen li { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 560px) {
  .carrito { margin: auto 0 0; width: 100%; max-width: 100%; height: auto; max-height: 92dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .carrito-inner { height: auto; max-height: 92dvh; }
}

[hidden] { display: none !important; }

/* ---------- Páginas legales ---------- */
.legal { margin-top: 2.4rem; }
.legal h2 { font-size: var(--step-2); margin: 2.2rem 0 0.7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { color: var(--muted); margin-bottom: 0.8rem; }
.legal ul { color: var(--muted); padding-left: 1.2rem; margin-bottom: 1rem; display: grid; gap: 0.35rem; }
.legal a { color: var(--azul); border-bottom: 1px solid var(--fondo-3); }
.legal a:hover { border-color: var(--azul); }
.legal strong { color: var(--ink); }

/* ---------- Franja de logos / marcas ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 1.1em; height: 1.1em; color: var(--verde-oscuro); }

/* ---------- Ficha de producto (/producto/<sku>, servida por el Worker) ---------- */
.migas { padding-block: 1.1rem 0; font-size: var(--step--1); color: var(--muted); }
.migas a { color: var(--muted); text-decoration: none; }
.migas a:hover { color: var(--azul); text-decoration: underline; }
.migas [aria-current] { color: var(--ink); font-weight: 600; }

.ficha { display: grid; gap: clamp(1.5rem, 4vw, 3.2rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .ficha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.ficha-media {
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: var(--white); aspect-ratio: 1; display: grid; place-items: center;
}
.ficha-media img { width: 100%; height: 100%; object-fit: cover; }

.ficha-info { display: flex; flex-direction: column; gap: 0.75rem; }
.ficha-titulo { font-size: var(--step-3); line-height: 1.15; margin: 0; }
.ficha-precio { font-size: var(--step-2); font-weight: 800; color: var(--azul); margin: 0.2rem 0 0; }
.ficha-precio--cotizar { color: var(--ink); font-size: var(--step-1); }
.ficha-unidad { font-size: var(--step-0); font-weight: 600; color: var(--muted); }

.ficha-estado {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 0.4rem;
  margin: 0; padding: 0.28rem 0.7rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 700;
  color: var(--ok); background: var(--ok-suave);
}
.ficha-estado--agotado { color: var(--aviso); background: var(--aviso-suave); }

.ficha-desc { color: var(--muted); line-height: 1.65; margin: 0.5rem 0 0; }

.ficha-datos { display: grid; gap: 0.55rem; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.ficha-dato { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.6rem; font-size: var(--step-0); }
.ficha-dato dt { color: var(--muted); }
.ficha-dato dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .ficha-dato { grid-template-columns: 1fr; gap: 0.1rem; } }

.ficha-acciones { margin-top: 1.4rem; }

/* .card-media pasó de <button> a <a> (enlace a la ficha): mismo aspecto. */
a.card-media { display: block; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--azul); }
