/* ============================================================
   MEDISEG · REDISEÑO 2026
   Capa que moderniza: categorías (home), páginas de categoría,
   página Productos, modal de producto, Nosotros y Contacto.
   Respeta el branding: navy + teal, Sora / Manrope / JetBrains Mono.
   Se carga DESPUÉS de styles.css y mediseg-pages.css.
   ============================================================ */

:root {
  --ink: #081a2b;
  --ink-2: #0b2237;
  --teal-d: #0e7c7a;
  --teal-l: #5cc8c5;
  --line-2: #e3eceb;
  --r-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* acentos por línea */
  --pastas-1: #e64a9c;
  --pastas-2: #5b27a8;
  --pastas-3: #16267f;
  --cepillos-1: #86e3ef;
  --cepillos-2: #36a7c9;
  --cepillos-3: #0b6782;
  --insumos-1: #4d8dff;
  --insumos-2: #3d5470;
  --insumos-3: #263a52;
  --gold: #e8b84b;
}

/* ============================================================
   ANIMACIONES GSAP — estado inicial (failsafe)
   ============================================================ */
[data-anim] { opacity: 0; }
[data-anim="up"]    { transform: translateY(34px); }
[data-anim="left"]  { transform: translateX(-40px); }
[data-anim="right"] { transform: translateX(40px); }
[data-anim="scale"] { transform: scale(0.92); }
[data-anim="fade"]  { transform: none; }
.is-shown[data-anim] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HERO INTERNO v2 — mejor distribución
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  padding: clamp(92px, 10vw, 132px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(20, 163, 160, 0.10), rgba(20, 163, 160, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #eef6f6 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 26, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 26, 43, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%);
}
/* acentos por página de categoría */
.ph--pastas {
  --accent: var(--pastas-1);
  --accent-1: var(--pastas-1); --accent-2: var(--pastas-2); --accent-3: var(--pastas-3);
  background:
    radial-gradient(80% 120% at 88% 0%, color-mix(in srgb, var(--pastas-1) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f1f7 100%);
}
.ph--cepillos {
  --accent: var(--cepillos-3);
  --accent-1: var(--cepillos-1); --accent-2: var(--cepillos-2); --accent-3: var(--cepillos-3);
  background:
    radial-gradient(80% 120% at 88% 0%, color-mix(in srgb, var(--cepillos-2) 18%, transparent), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef7f9 100%);
}
.ph--insumos {
  --accent: var(--insumos-1);
  --accent-1: var(--insumos-1); --accent-2: var(--insumos-2); --accent-3: var(--insumos-3);
  background:
    radial-gradient(80% 120% at 88% 0%, color-mix(in srgb, var(--insumos-1) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
}
.ph--insumos .ph-kicker, .ph--pastas .ph-kicker, .ph--cepillos .ph-kicker { color: var(--accent); }
.ph .container { position: relative; z-index: 2; }
.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}
.ph-copy { max-width: 600px; }
.ph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  padding: 8px 15px 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-2);
  box-shadow: 0 6px 18px rgba(8, 26, 43, 0.05);
  color: var(--teal-d);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ph-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 163, 160, 0.18);
}
.ph h1 {
  margin: 0;
  color: var(--ink-2);
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -2px;
  text-wrap: balance;
}
.ph h1 .hl { color: var(--teal); }
.ph h1 .accent { color: var(--accent, var(--teal)); }
.ph-lead {
  margin: 24px 0 0;
  max-width: 520px;
  color: var(--muted, #41566b);
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  line-height: 1.66;
  text-wrap: pretty;
}
.ph .actions { margin-top: 32px; }
.ph .btn { min-height: 56px; border-radius: 999px; }

/* breadcrumb */
.ph-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted-2, #7a8fa0);
  text-transform: uppercase;
}
.ph-crumbs a { color: var(--muted-2, #7a8fa0); transition: color 0.2s; }
.ph-crumbs a:hover { color: var(--teal-d); }
.ph-crumbs .sep { opacity: 0.5; }
.ph-crumbs .here { color: var(--ink-2); }

/* stats strip */
.ph-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 46px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.ph-stat b {
  display: block;
  font-family: Sora, sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: -1px;
  line-height: 1;
}
.ph-stat span {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted-2, #7a8fa0);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- Stage del hero (producto/collage flotante) ---------- */
.ph-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 42vw, 520px);
  padding: clamp(26px, 4vw, 46px);
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(56% 56% at 50% 52%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 66%),
    radial-gradient(72% 44% at 50% 88%, color-mix(in srgb, var(--accent, var(--teal)) 16%, transparent), transparent 72%);
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}
.ph-stage.is-accent {
  border-color: transparent;
  background:
    radial-gradient(110% 90% at 30% 12%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 60%),
    linear-gradient(150deg, var(--accent-1, #4e217d) 0%, var(--accent-2, #142d82) 55%, var(--accent-3, #07154a) 100%);
  box-shadow: 0 40px 90px color-mix(in srgb, var(--accent-3, #07154a) 50%, transparent);
}
.ph-stage::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, var(--teal)) 14%, transparent), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.ph-stage .ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--accent, var(--teal)) 18%, transparent);
  pointer-events: none;
}
.ph-stage.is-light .ring { border-color: color-mix(in srgb, var(--accent, #14a3a0) 28%, transparent); }
.ph-stage img {
  position: relative;
  z-index: 2;
  max-width: min(96%, 720px);
  max-height: clamp(320px, 38vw, 500px);
  object-fit: contain;
  filter: drop-shadow(0 34px 44px rgba(4, 17, 31, 0.22));
}
.ph-stage.is-light img { filter: drop-shadow(0 28px 38px rgba(8, 26, 43, 0.18)); }

.ph-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 34px rgba(4, 17, 31, 0.22);
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink-2);
}
.ph-chip { display: none; }
.ph-chip b { font-family: "JetBrains Mono", monospace; color: var(--teal-d); font-size: 11.5px; }
.ph-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.ph-chip--tl { top: 22px; left: 22px; }
.ph-chip--br { bottom: 22px; right: 22px; }
.ph-chip--bl { bottom: 26px; left: 24px; }

/* Heroes internos: deben entrar completos en el primer viewport.
   No toca el hero del index ni el hero especial de pastas. */
.ms-page .ph:not(.ph--pastas) {
  align-items: flex-start;
  height: calc(100svh - 77px);
  min-height: 560px;
  padding: clamp(18px, 3.2svh, 30px) 0 clamp(18px, 3svh, 28px);
}
.ms-page .ph:not(.ph--pastas) .ph-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 3.2vw, 48px);
}
.ms-page .ph:not(.ph--pastas) .ph-copy { max-width: 640px; }
.ms-page .ph:not(.ph--pastas) .ph-crumbs {
  margin-bottom: clamp(12px, 2svh, 18px);
}
.ms-page .ph:not(.ph--pastas) .ph-kicker {
  margin-bottom: clamp(12px, 2svh, 16px);
  padding: 7px 13px 7px 11px;
  font-size: 10.5px;
}
.ms-page .ph:not(.ph--pastas) h1 {
  font-size: clamp(2.45rem, 4.55vw, 4.35rem);
  line-height: 0.98;
}
.ms-page .ph:not(.ph--pastas) .ph-lead {
  margin-top: clamp(14px, 2.2svh, 20px);
  max-width: 590px;
  font-size: clamp(0.96rem, 1.18vw, 1.08rem);
  line-height: 1.5;
}
.ms-page .ph:not(.ph--pastas) .actions {
  margin-top: clamp(16px, 2.7svh, 24px);
}
.ms-page .ph:not(.ph--pastas) .ph-stats {
  margin-top: clamp(18px, 3svh, 28px);
  padding-top: clamp(14px, 2.4svh, 20px);
  gap: 20px 34px;
}
.ms-page .ph:not(.ph--pastas) .ph-stat b {
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}
.ms-page .ph:not(.ph--pastas) .ph-stat span {
  margin-top: 6px;
  font-size: 10px;
}
.ms-page .ph:not(.ph--pastas) .ph-stage {
  min-height: min(430px, calc(100svh - 142px));
  padding: clamp(10px, 2vw, 24px);
}
.ms-page .ph:not(.ph--pastas) .ph-stage img {
  max-height: min(420px, calc(100svh - 168px));
  max-width: min(100%, 720px);
}

.about-logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(520px, calc(100svh - 142px));
  overflow: hidden;
  isolation: isolate;
}
.about-logo-stage::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0 28%, rgba(255, 255, 255, 0.4) 42%, rgba(20, 163, 160, 0.12) 62%, transparent 76%);
  filter: blur(2px);
}
.about-logo-stage::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(20, 163, 160, 0.28);
  box-shadow:
    0 0 0 80px rgba(20, 163, 160, 0.035),
    0 0 90px rgba(20, 163, 160, 0.22);
}
.about-logo-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.about-logo-orbit.orbit-a {
  inset: 3%;
  opacity: 0.72;
}
.about-logo-orbit.orbit-b {
  inset: 14%;
  border-style: dashed;
  border-color: rgba(20, 163, 160, 0.24);
}
.about-logo-orbit.orbit-c {
  inset: 27%;
  border-color: rgba(20, 163, 160, 0.18);
  box-shadow: inset 0 0 48px rgba(20, 163, 160, 0.08);
}
.about-logo-icon {
  position: relative;
  z-index: 2;
  width: min(58%, 420px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(20, 163, 160, 0.28));
  transform-origin: center;
  animation: logoHeartbeat 2.8s ease-in-out infinite;
}
.about-logo-stage .orbit-b {
  animation: orbitPulse 2.8s ease-in-out infinite;
}
.about-logo-stage .orbit-c {
  animation: orbitPulse 2.8s ease-in-out infinite 0.18s;
}
@keyframes logoHeartbeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 24px 36px rgba(20, 163, 160, 0.24));
  }
  14% {
    transform: scale(1.055);
    filter: drop-shadow(0 30px 48px rgba(20, 163, 160, 0.34));
  }
  28% { transform: scale(0.99); }
  42% { transform: scale(1.025); }
  58% { transform: scale(1); }
}
@keyframes orbitPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }
  22% {
    transform: scale(1.035);
    opacity: 1;
  }
  48% {
    transform: scale(1);
    opacity: 0.64;
  }
}

/* ============================================================
   HOME · SECCIÓN CATEGORÍAS v2  ("Nuestras líneas")
   ============================================================ */
.lineas-section {
  position: relative;
  z-index: 2;
  padding: clamp(52px, 6vw, 82px) 0;
  background: var(--paper);
  overflow: hidden;
}
.lineas-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.lineas-head h2 {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -1.6px;
  text-wrap: balance;
}
.lineas-head h2 span { color: var(--teal); }
.lineas-head-aside p {
  margin: 0 0 22px;
  color: var(--muted, #41566b);
  font-size: 16px;
  line-height: 1.62;
  text-wrap: pretty;
}
.lineas-head-aside .lineas-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-d);
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 14.5px;
}
.lineas-head-aside .lineas-link span {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #e7f4f3;
  transition: transform 0.26s var(--r-ease), background 0.26s, color 0.26s;
}
.lineas-head-aside .lineas-link:hover span { background: var(--teal); color: #fff; transform: translateX(4px); }

.lineas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
}
.linea-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(380px, 32vw, 430px);
  padding: 28px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(155deg, var(--c2) 0%, var(--c3) 100%);
  box-shadow: 0 30px 70px rgba(8, 26, 43, 0.16);
  transition: transform 0.4s var(--r-ease), box-shadow 0.4s var(--r-ease);
}
.linea-card:hover { transform: none; box-shadow: 0 30px 70px rgba(8, 26, 43, 0.16); }
.linea-card:focus-visible { outline: 3px solid rgba(20, 163, 160, 0.5); outline-offset: 3px; }

/* mesh de color animado */
.linea-card .mesh {
  position: absolute;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(40% 40% at 26% 22%, color-mix(in srgb, var(--c1) 75%, transparent), transparent 60%),
    radial-gradient(36% 36% at 82% 16%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 55%);
  filter: blur(8px);
  opacity: 0.9;
  animation: meshDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
.linea-card .grain {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 26, 43, 0) 38%, rgba(5, 12, 24, 0.62) 100%);
  pointer-events: none;
}

.linea-card .linea-prod {
  position: absolute;
  top: 6%;
  left: 50%;
  z-index: 2;
  width: 86%;
  max-height: 58%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 38px rgba(4, 12, 26, 0.5));
  transition: none;
  will-change: auto;
}
.linea-card:hover .linea-prod { transform: translateX(-50%); }

.linea-top {
  position: absolute;
  top: 24px; left: 26px; right: 26px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: space-between;
}
.linea-brand {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.linea-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
}
.linea-body { position: relative; z-index: 3; }
.linea-body h3 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.8px;
}
.linea-body p {
  margin: 11px 0 0;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.6px;
  line-height: 1.5;
}
.linea-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  color: #fff;
}
.linea-cta .arr {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
  transition: transform 0.28s var(--r-ease), background 0.28s;
}
.linea-card:hover .linea-cta .arr { background: rgba(255, 255, 255, 0.95); color: var(--ink-2); transform: translateX(4px); }

.linea-card.linea-pastas   { --c1: var(--pastas-1);   --c2: var(--pastas-2);   --c3: var(--pastas-3); }
.linea-card.linea-cepillos { --c1: var(--cepillos-1); --c2: var(--cepillos-2); --c3: var(--cepillos-3); }
.linea-card.linea-insumos  { --c1: var(--insumos-1);  --c2: var(--insumos-2);  --c3: var(--insumos-3); }
.linea-card.linea-insumos .linea-cta .arr { border-color: rgba(232, 184, 75, 0.5); }

/* ============================================================
   PRODUCTOS / CATEGORÍAS · grid de tarjetas v2
   ============================================================ */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: clamp(24px, 3vw, 36px) 0 clamp(26px, 3.4vw, 38px);
}
.pill-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(8, 26, 43, 0.06);
}
.pill-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 19px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 13.6px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
  white-space: nowrap;
}
.pill-filters button small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.5;
}
.pill-filters button:hover { background: #e7f4f3; color: var(--teal-d); }
.pill-filters button.active { background: var(--ink-2); color: #fff; }
.pill-filters button.active small { opacity: 0.7; color: #fff; }
.catalog-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted-2, #7a8fa0);
}
.catalog-count b { color: var(--ink-2); }

.pcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  cursor: pointer;
  transition: transform 0.3s var(--r-ease), box-shadow 0.3s var(--r-ease), border-color 0.3s var(--r-ease);
}
.pcard:hover { transform: none; box-shadow: 0 24px 56px rgba(8, 26, 43, 0.12); border-color: #bfe0de; }
.pcard-media {
  position: relative;
  height: 252px;
  display: grid;
  place-items: center;
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 6%, #ffffff, #eef6f6 100%);
  border-bottom: 1px solid var(--line-2);
}
.pcard-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 26, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 26, 43, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
  opacity: 0.7;
}
.pcard-media img {
  position: relative;
  max-width: 84%;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(8, 26, 43, 0.16));
  transition: none;
}
.pcard:hover .pcard-media img { transform: none; }
.pcard-badge {
  position: absolute;
  top: 15px; left: 15px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.badge-pastas   { background: var(--pastas-1); }
.badge-cepillos { background: var(--cepillos-3); }
.badge-insumos  { background: var(--ink-2); }
.pcard-new {
  position: absolute;
  top: 15px; right: 15px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pcard-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 22px 24px;
  flex: 1;
}
.pcard-brand {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-2, #7a8fa0);
}
.pcard-body h3 {
  margin: 0;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.3px;
}
.pcard-desc {
  margin: 0;
  color: var(--muted, #41566b);
  font-size: 13.4px;
  line-height: 1.55;
  flex: 1;
}
.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.pcard-foot .spec {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted-2, #7a8fa0);
}
.pcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-d);
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.pcard-btn span {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e7f4f3;
  transition: transform 0.26s var(--r-ease), background 0.26s, color 0.26s;
}
.pcard:hover .pcard-btn span { transform: translateX(3px); background: var(--teal); color: #fff; }

/* ============================================================
   MODAL DE PRODUCTO v2
   ============================================================ */
.pm {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.pm.open { display: flex; }
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.6);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pm.open .pm-backdrop { opacity: 1; }
.pm-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.12fr;
  width: min(1140px, calc(100vw - 44px));
  height: min(700px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 60px 140px rgba(4, 12, 24, 0.5);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s var(--r-ease), opacity 0.4s ease;
}
.pm.open .pm-panel { transform: none; opacity: 1; }

/* lado visual */
.pm-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, var(--accent-2, #142d82) 0%, var(--accent-3, #07154a) 100%);
}
.pm-visual::before {
  content: attr(data-product-name);
  position: absolute;
  z-index: 1;
  top: 26px;
  right: 24px;
  max-width: 76%;
  color: rgba(255, 255, 255, 0.13);
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(3.2rem, 5.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-align: right;
  pointer-events: none;
  text-wrap: balance;
}
.pm-visual .mesh {
  position: absolute;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(38% 38% at 28% 22%, color-mix(in srgb, var(--accent-1, #e64a9c) 70%, transparent), transparent 60%),
    radial-gradient(34% 34% at 80% 80%, color-mix(in srgb, var(--accent-1, #e64a9c) 40%, transparent), transparent 55%);
  filter: blur(6px);
  animation: meshDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.pm-visual .ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  z-index: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  animation: spin 26s linear infinite;
}
.pm-visual .ring.r2 { width: 60%; border-color: rgba(255, 255, 255, 0.12); animation-duration: 38s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.pm-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  perspective: 1200px;
}
.pm-stage img {
  max-width: 88%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 36px 44px rgba(4, 12, 24, 0.5));
  transform-style: preserve-3d;
  will-change: transform;
}
.pm-floatchip {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 30px rgba(4, 12, 24, 0.3);
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-2);
}
.pm-floatchip b { font-family: "JetBrains Mono", monospace; color: var(--teal-d); font-size: 10.5px; }
.pm-floatchip--tl { top: 26px; left: 26px; }
.pm-floatchip--br { bottom: 26px; right: 26px; }

/* lado contenido */
.pm-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(30px, 3.2vw, 44px);
  overflow: hidden;
  scrollbar-gutter: stable;
}
.pm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-d);
}
.pm-eyebrow .bar { width: 26px; height: 2px; background: currentColor; }
.pm-content h2 {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.6px;
}
.pm-desc {
  margin: 15px 0 0;
  color: var(--muted, #41566b);
  font-size: 14.8px;
  line-height: 1.62;
}
.pm-spec-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pm-spec-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.pm-specs {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 4px 2px 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 171, 171, 0.35) transparent;
}
.pm-specs li {
  position: relative;
  min-height: 60px;
  padding: 14px 14px 14px 40px;
  border-radius: 13px;
  background: #f6fbfa;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.pm-specs li::before {
  content: "";
  position: absolute;
  left: 15px; top: 17px;
  width: 13px; height: 13px;
  border-radius: 5px;
  background: #e7f4f3;
  box-shadow: inset 0 0 0 2px var(--teal);
}
.pm-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
}
.pm-actions .btn { flex: 1; min-width: 150px; min-height: 54px; border-radius: 14px; }
.btn-ficha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex: 1;
  width: 100%;
  min-width: 200px;
  min-height: 54px;
  padding: 15px 24px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(8, 26, 43, 0.28);
  transition: transform 0.2s var(--r-ease), box-shadow 0.2s;
}
.btn-ficha:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(8, 26, 43, 0.34); }
.btn-ficha svg { width: 18px; height: 18px; }
.btn-ficha .ficha-meta {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pm-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-2);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.pm-close:hover { transform: rotate(90deg); background: var(--ink-2); color: #fff; }

body.modal-open { overflow: hidden; }

@media (max-height: 720px) and (min-width: 901px) {
  .pm { padding: 4px; }
  .pm-panel {
    height: calc(100vh - 8px);
    max-height: calc(100vh - 8px);
  }
  .pm-visual { padding: 30px; }
  .pm-stage img { max-height: 310px; }
  .pm-content { padding: 26px 38px 22px; }
  .pm-content h2 { margin-top: 10px; }
  .pm-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.52;
  }
  .pm-spec-title { margin: 18px 0 12px; }
  .pm-specs { gap: 9px; }
  .pm-specs li {
    min-height: 56px;
    padding: 12px 12px 12px 38px;
    font-size: 12.6px;
    line-height: 1.38;
  }
  .pm-specs li::before {
    left: 14px;
    top: 15px;
  }
  .pm-actions {
    margin-top: 16px;
    padding-top: 14px;
  }
  .pm-actions .btn,
  .btn-ficha {
    min-height: 54px;
    padding: 13px 16px;
  }
  .btn-ficha { gap: 8px; }
}

/* acentos del modal por categoría */
.pm[data-cat="pastas"]   { --accent-1: var(--pastas-1);   --accent-2: var(--pastas-2);   --accent-3: var(--pastas-3); }
.pm[data-cat="cepillos"] { --accent-1: var(--cepillos-1); --accent-2: var(--cepillos-2); --accent-3: var(--cepillos-3); }
.pm[data-cat="insumos"]  { --accent-1: var(--insumos-1);  --accent-2: var(--insumos-2);  --accent-3: var(--insumos-3); }

/* toast ficha técnica */
.ms-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--ink-2);
  color: #fff;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 24px 60px rgba(4, 12, 24, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--r-ease);
}
.ms-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ms-toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-l); box-shadow: 0 0 0 4px rgba(92, 200, 197, 0.25); }

/* ============================================================
   PÁGINA DE CATEGORÍA · banda "por qué esta línea"
   ============================================================ */
.cat-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(30px, 4vw, 46px);
}
.cat-why article {
  padding: 30px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: transform 0.28s var(--r-ease), box-shadow 0.28s var(--r-ease), border-color 0.28s;
}
.cat-why article:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(8, 26, 43, 0.1); border-color: #bfe0de; }
.cat-why .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--teal-d);
}
.cat-why h4 {
  margin: 14px 0 8px;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}
.cat-why p { margin: 0; color: var(--muted, #41566b); font-size: 14px; line-height: 1.58; }
@media (max-width: 860px) {
  .cat-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cat-why { grid-template-columns: 1fr; }
}

/* cinta de marcas dentro de página de categoría */
.cat-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 22px;
}
.cat-ribbon .chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-2);
}
.cat-ribbon .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--teal)); }

/* ============================================================
   HOME - cobertura nacional con mapa animado
   ============================================================ */
.national-section {
  position: relative;
  padding: clamp(64px, 7vw, 104px) 0;
  background:
    radial-gradient(70% 100% at 86% 18%, rgba(20, 163, 160, 0.14), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #eef7f7 100%);
  overflow: hidden;
}
.national-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}
.national-copy h2 {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -1.8px;
}
.national-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 520px;
  color: var(--muted, #41566b);
  font-size: 1.05rem;
  line-height: 1.68;
}
.national-map {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(20, 163, 160, 0.22);
  background: #dff3f3;
  box-shadow: 0 34px 84px rgba(8, 26, 43, 0.14);
}
.national-map video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============================================================
   NOSOTROS - mision y vision
   ============================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.mission-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(80% 90% at 86% 0%, rgba(20, 163, 160, 0.12), transparent 64%),
    #fff;
  box-shadow: 0 22px 60px rgba(8, 26, 43, 0.08);
}
.mission-card h2 {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}
.mission-card p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted, #41566b);
  line-height: 1.65;
}

/* ============================================================
   Footer profesional
   ============================================================ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(20, 163, 160, 0.16), transparent 58%),
    #071827;
  color: rgba(255, 255, 255, 0.78);
}
.footer .container {
  padding-top: 56px;
  padding-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .brand strong { color: #fff; }
.footer .brand small { color: rgba(255, 255, 255, 0.54); letter-spacing: 0; text-transform: none; }
.footer-col--brand p {
  margin-top: 16px;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.6;
}
.footer-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 14px;
}
.footer-col--nav,
.footer-col--contact {
  display: flex;
  flex-direction: column;
}
.footer-col--nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.18s;
}
.footer-col--nav a:hover { color: #14a3a0; }
.footer-col--contact p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  margin: 4px 0 0;
}
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25d366;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: opacity 0.18s;
}
.footer-wa:hover { opacity: 0.8; }
.footer-wa svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom p {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

/* ============================================================
   PASTAS · hero interactivo por sabor
   Inspirado en el cambio de producto/elementos del CodePen,
   adaptado solo a pastas.html.
   ============================================================ */
.ph:has([data-pasta-hero]),
.ph--pastas:has([data-pasta-hero]) {
  --hero-a: #ff2ca3;
  --hero-b: #103ed4;
  --hero-c: #071a70;
  --hero-soft: #ffe4f4;
  min-height: calc(100svh - 78px);
  height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  padding: clamp(42px, 6svh, 66px) 0 clamp(2px, 0.8svh, 10px);
  background:
    linear-gradient(rgba(8, 26, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 26, 43, 0.025) 1px, transparent 1px),
    radial-gradient(58% 80% at 80% 18%, color-mix(in srgb, var(--hero-a) 22%, transparent), transparent 68%),
    radial-gradient(46% 62% at 62% 86%, color-mix(in srgb, var(--hero-b) 16%, transparent), transparent 66%),
    linear-gradient(135deg, #fffafa 0%, var(--hero-soft) 100%);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  transition: background 0.65s var(--r-ease);
}

/* Colores por defecto del hero de cepillos (JS los sobreescribe por slide). */
body[data-cat="cepillos"] .ph--cepillos:has([data-pasta-hero]) {
  --hero-a: #3aa7e0;
  --hero-b: #1763c4;
  --hero-c: #08306e;
  --hero-soft: #e4f1ff;
}

.ph:has([data-pasta-hero])::before,
.ph--pastas:has([data-pasta-hero])::before { opacity: 0; }

.ph:has([data-pasta-hero]) .container,
.ph--pastas:has([data-pasta-hero]) .container {
  width: min(100% - clamp(36px, 6vw, 104px), 1600px);
  margin-inline: auto;
}

.ph:has([data-pasta-hero]) .ph-grid,
.ph--pastas:has([data-pasta-hero]) .ph-grid {
  grid-template-columns: minmax(360px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(18px, 2.4vw, 38px);
  min-height: auto;
  height: 100%;
  align-items: center;
}

.ph:has([data-pasta-hero]) .ph-copy,
.ph--pastas:has([data-pasta-hero]) .ph-copy {
  align-self: center;
  max-width: 640px;
  transform: translateY(clamp(-54px, -6svh, -24px));
}

.ph:has([data-pasta-hero]) .ph-crumbs {
  display: none;
}

.ph:has([data-pasta-hero]) .ph-kicker {
  margin-bottom: clamp(8px, 1.5svh, 14px);
}

.ph:has([data-pasta-hero]) h1 {
  font-size: clamp(2.9rem, min(5.65vw, 9.2svh), 5.65rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.ph:has([data-pasta-hero]) .ph-lead {
  max-width: 580px;
  margin-top: clamp(12px, 1.9svh, 20px);
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.5;
}

.ph:has([data-pasta-hero]) .actions {
  margin-top: clamp(18px, 2.4svh, 26px);
}

.ph:has([data-pasta-hero]) .cat-ribbon {
  margin-top: clamp(8px, 1.25svh, 14px);
  gap: 10px 16px;
}

.ph:has([data-pasta-hero]) .cat-ribbon[data-anim] {
  opacity: 1;
  transform: none;
}

.ph:has([data-pasta-hero]) .cat-ribbon .chip {
  padding: 8px 13px;
  font-size: 10px;
}

.pasta-hero-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: visible;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pasta-ambient {
  position: absolute;
  inset: -12% -10% -8% -16%;
  z-index: 0;
  background:
    radial-gradient(34% 30% at 42% 22%, rgba(255, 255, 255, 0.8), transparent 72%),
    radial-gradient(28% 28% at 80% 42%, color-mix(in srgb, var(--hero-a) 24%, transparent), transparent 74%),
    radial-gradient(42% 24% at 56% 92%, color-mix(in srgb, var(--hero-b) 18%, transparent), transparent 72%);
  filter: blur(18px);
  opacity: 0.78;
  animation: pastaAmbient 12s ease-in-out infinite alternate;
}

@keyframes pastaAmbient {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.pasta-orbit {
  position: absolute;
  z-index: 1;
  left: 23%;
  top: 7%;
  width: min(58%, 56svh);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--hero-b) 18%, transparent);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.12);
  animation: spin 52s linear infinite;
  opacity: 0.5;
}

.pasta-ghost-name {
  position: absolute;
  z-index: 1;
  right: max(3vw, 16px);
  top: clamp(-54px, -6.5svh, -30px);
  max-width: 64%;
  color: color-mix(in srgb, var(--hero-a) 28%, rgba(6, 26, 112, 0.12));
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(4.2rem, min(9vw, 15svh), 10rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0;
  text-align: right;
  pointer-events: none;
  user-select: none;
}

.pasta-product-wrap {
  position: absolute;
  top: clamp(-34px, -4.8svh, -16px);
  right: 22%;
  bottom: auto;
  left: 25%;
  height: calc(100% - clamp(38px, 6svh, 64px));
  z-index: 4;
  display: grid;
  place-items: start center;
  perspective: 1100px;
}

.pasta-product {
  width: auto;
  height: min(78%, 470px, 68svh);
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 38px 32px rgba(3, 14, 45, 0.24));
  transform-origin: 50% 78%;
  will-change: transform, opacity;
}

/* Cepillos DESKTOP: cajas verticales -> stage con alto minimo y producto
   centrado con flexbox. Solo desktop; el movil se maneja aparte. */
@media (min-width: 1001px) {
  body[data-cat="cepillos"] .pasta-hero-stage {
    min-height: min(62svh, 520px);
  }
  body[data-cat="cepillos"] .pasta-product-wrap {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  body[data-cat="cepillos"] .pasta-product {
    height: min(94%, 510px, 62svh);
    width: auto;
    transform-origin: 50% 50%;
  }
  body[data-cat="cepillos"] .ph--cepillos:has([data-pasta-hero]) {
    height: auto;
    min-height: 0;
    padding-top: clamp(32px, 5svh, 64px);
    padding-bottom: clamp(32px, 5svh, 64px);
  }
  body[data-cat="cepillos"] .ph--cepillos .ph-copy {
    transform: none;
  }
  body[data-cat="cepillos"] .pasta-ghost-name {
    top: clamp(6px, 2svh, 30px);
  }
}

.pasta-elements {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pasta-piece {
  position: absolute;
  width: var(--piece-w, 120px);
  max-width: 38%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(3, 14, 45, 0.18));
  will-change: transform, opacity;
}

.piece-a { --piece-w: clamp(70px, min(8vw, 13svh), 140px); left: 14%; top: 31%; transform: rotate(-12deg); }
.piece-b { --piece-w: clamp(76px, min(8vw, 14svh), 140px); right: 7%; top: 15%; transform: rotate(10deg); }
.piece-c { --piece-w: clamp(128px, min(14vw, 22svh), 260px); left: 9%; bottom: 17%; transform: rotate(6deg); }
.piece-d { --piece-w: clamp(60px, min(7vw, 11svh), 118px); right: 16%; bottom: 28%; transform: rotate(-8deg); }

.pasta-copy-pill,
.pasta-controls,
.pasta-dots {
  position: absolute;
  z-index: 6;
}

.pasta-copy-pill {
  display: none;
  top: clamp(4px, 1svh, 14px);
  right: clamp(10px, 2vw, 22px);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 36px rgba(3, 14, 45, 0.08);
}

.pasta-copy-pill span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.78;
}

.pasta-copy-pill b {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.pasta-controls {
  right: clamp(54px, 6vw, 86px);
  bottom: clamp(12px, 2.2svh, 24px);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(3, 14, 45, 0.05);
  opacity: 0.72;
}

.pasta-nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.22s var(--r-ease), background 0.22s, opacity 0.22s;
}

.pasta-nav:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.54);
}

.pasta-nav svg { width: 17px; height: 17px; }

.pasta-dots {
  left: clamp(42%, 47vw, 52%);
  bottom: clamp(30px, 4.8svh, 44px);
  display: flex;
  gap: 7px;
  opacity: 0.68;
}

.pasta-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hero-c) 20%, #fff);
  transition: width 0.28s var(--r-ease), background 0.28s;
}

.pasta-dots button.is-active {
  width: 24px;
  background: var(--hero-a);
}

/* ============================================================
   NOSOTROS v2 · refinamientos
   ============================================================ */
.us-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
  padding: clamp(36px, 4vw, 56px);
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(150deg, #11344f 0%, #081a2b 70%);
  box-shadow: 0 40px 90px rgba(8, 26, 43, 0.3);
}
.us-feature .blob {
  position: absolute;
  width: 460px; height: 460px;
  right: -8%; top: -30%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 163, 160, 0.34), rgba(20, 163, 160, 0) 66%);
  pointer-events: none;
}
.us-feature > * { position: relative; z-index: 1; }
.us-feature .eyebrow { color: var(--teal-l); }
.us-feature h2 {
  margin: 16px 0 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -1.2px;
  color: #fff;
  text-wrap: balance;
}
.us-feature p { margin: 18px 0 0; max-width: 460px; color: #c8d8e4; font-size: 16px; line-height: 1.68; }
.us-feature .actions { margin-top: 28px; }
.us-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.us-metric {
  padding: 26px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.us-metric b {
  display: block;
  font-family: Sora, sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
}
.us-metric b .small { font-size: 1rem; color: var(--teal-l); }
.us-metric span {
  display: block;
  margin-top: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9db4c5;
}

/* línea de proceso v2 con conector */
.us-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: clamp(34px, 4vw, 52px);
}
.us-flow::before {
  content: "";
  position: absolute;
  top: 44px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-l) 0 8px, transparent 8px 16px);
  opacity: 0.5;
  z-index: 0;
}
.us-step {
  position: relative;
  z-index: 1;
  padding: 26px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: transform 0.28s var(--r-ease), box-shadow 0.28s var(--r-ease), border-color 0.28s;
}
.us-step:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(8, 26, 43, 0.1); border-color: #bfe0de; }
.us-step .ix {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #e7f4f3;
  color: var(--teal-d);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}
.us-step h4 { margin: 0 0 7px; color: var(--ink-2); font-family: Sora, sans-serif; font-size: 1.02rem; font-weight: 700; }
.us-step p { margin: 0; color: var(--muted, #41566b); font-size: 13.4px; line-height: 1.5; }

/* ============================================================
   CONTACTO v2
   ============================================================ */
.ct-section {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 7vw, 90px);
  background: var(--soft);
}
.ct-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: stretch;
}
.ct-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ct-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: transform 0.26s var(--r-ease), box-shadow 0.26s, border-color 0.26s;
}
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(8, 26, 43, 0.1); border-color: #bfe0de; }
.ct-card .ico {
  display: grid; place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: #e7f4f3;
  color: var(--teal-d);
}
.ct-card .ico svg { width: 22px; height: 22px; }
.ct-card h4 { margin: 0 0 5px; color: var(--ink-2); font-family: Sora, sans-serif; font-size: 14.5px; font-weight: 700; }
.ct-card p { margin: 0; color: var(--muted, #41566b); font-size: 14px; line-height: 1.5; }
.ct-card a { color: var(--teal-d); font-weight: 700; }

.ct-form {
  padding: clamp(30px, 3.4vw, 44px);
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px rgba(8, 26, 43, 0.08);
}
.ct-form h3 {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-family: Sora, sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.6px;
}
.ct-form .sub { margin: 0 0 24px; color: var(--muted, #41566b); font-size: 14.5px; }
.ct-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field.full { grid-column: 1 / -1; }
.ct-field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2, #7a8fa0);
}
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line-2);
  border-radius: 13px;
  background: #f8fbfb;
  color: var(--ink-2);
  font-family: Manrope, sans-serif;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ct-field textarea { resize: vertical; min-height: 116px; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 163, 160, 0.14);
}
.ct-form .btn { width: 100%; margin-top: 18px; min-height: 56px; border-radius: 14px; }

/* Formulario próximamente */
.ct-pronto-wrap { display: flex; align-items: center; }
.ct-pronto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}
.ct-pronto-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(20, 163, 160, 0.10);
  color: var(--teal-d);
}
.ct-pronto-icon svg { width: 26px; height: 26px; }
.ct-pronto-label {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--teal-d);
}
.ct-pronto h3 {
  margin: 0;
  color: var(--ink-2);
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.ct-pronto > p {
  margin: 0;
  color: var(--muted, #41566b);
  font-size: 15px;
  line-height: 1.65;
  max-width: 440px;
}
.ct-pronto-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.ct-pronto-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  /* En movil se desactivan los reveals de scroll: todo el contenido visible
     siempre (evita botones/tarjetas que "no aparecen"). */
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .ph-grid,
  .ms-page .ph:not(.ph--pastas) .ph-grid { grid-template-columns: 1fr; gap: 40px; }
  .ph-stage { order: -1; min-height: 340px; }
  .about-logo-stage { order: 0; min-height: 230px; }
  .about-logo-stage .about-logo-icon { width: 150px; height: 150px; }
  /* Heroes no-carrusel: altura natural en movil (sin hueco vacio), centrados. */
  .ms-page .ph:not(.ph--pastas) {
    height: auto;
    min-height: 0;
    align-items: center;
    padding-top: clamp(24px, 4svh, 44px);
    padding-bottom: clamp(28px, 5svh, 52px);
  }
  .ms-page .ph:not(.ph--pastas) .ph-stage {
    min-height: 300px;
  }
  .national-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .ph:has([data-pasta-hero]) {
    height: auto;
    min-height: 0;
    padding-top: 96px;
    padding-bottom: clamp(28px, 5svh, 48px);
  }
  .ph:has([data-pasta-hero]) .ph-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: clamp(18px, 3svh, 28px);
  }
  .ph:has([data-pasta-hero]) .ph-copy {
    max-width: 720px;
  }
  .ph:has([data-pasta-hero]) h1 {
    font-size: clamp(2.7rem, 9vw, 5.2rem);
  }
  /* Texto primero, producto despues (orden de lectura como en PC). */
  .pasta-hero-stage { order: 0; height: auto; min-height: 400px; }
  .pasta-ghost-name { display: none; }
  .pasta-orbit { display: none; }
  /* Sin ghost, el pill es la etiqueta del modelo (nombre + contador). */
  .pasta-copy-pill { display: flex; }
  .pasta-product-wrap {
    inset: 60px 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
  }
  .pasta-product {
    position: static;
    height: auto;
    width: auto;
    max-height: min(300px, 40svh);
    max-width: 74%;
  }
  .lineas-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .lineas-grid { grid-template-columns: 1fr 1fr; }
  .linea-card.linea-insumos { grid-column: 1 / -1; min-height: 400px; }
  .pcards { grid-template-columns: 1fr 1fr; }
  /* En movil el panel se apila y hace scroll como bloque entero;
     los specs dejan de "flexar" para mostrarse completos. */
  .pm-panel { grid-template-columns: 1fr; height: auto; max-height: calc(100vh - 36px); overflow-y: auto; }
  .pm-visual { min-height: 320px; padding: 30px; }
  .pm-stage img { max-height: 250px; }
  .pm-content { overflow: visible; }
  .pm-specs { flex: none; min-height: 0; overflow: visible; }
  .us-feature { grid-template-columns: 1fr; }
  .us-flow { grid-template-columns: repeat(2, 1fr); }
  .us-flow::before { display: none; }
  .ct-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .ph:has([data-pasta-hero]) {
    padding-top: 104px;
  }
  .ph:has([data-pasta-hero]) .container {
    width: min(100% - 28px, 1600px);
  }
  .ph:has([data-pasta-hero]) .ph-grid {
    gap: 18px;
  }
  .ph:has([data-pasta-hero]) .ph-copy {
    text-align: left;
  }
  .ph:has([data-pasta-hero]) h1 {
    font-size: clamp(2.25rem, 13vw, 3.7rem);
  }
  .ph:has([data-pasta-hero]) .ph-lead {
    font-size: 0.98rem;
  }
  .pasta-hero-stage {
    height: auto;
    min-height: 410px;
    border-radius: 24px;
  }
  .pasta-product-wrap { inset: 60px 0 12px; }
  .pasta-product { max-height: min(300px, 40svh); max-width: 74%; }
  .pasta-copy-pill {
    top: 16px;
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }
  .pasta-controls { right: 16px; bottom: 16px; }
  .pasta-dots { left: 18px; bottom: 28px; }
  .piece-a { --piece-w: 92px; left: 2%; top: 20%; }
  .piece-b { --piece-w: 92px; right: 2%; top: 18%; }
  .piece-c { --piece-w: 138px; left: 0; bottom: 19%; }
  .piece-d { --piece-w: 64px; right: 10%; bottom: 22%; }
  .lineas-grid { grid-template-columns: 1fr; }
  .linea-card, .linea-card.linea-insumos { min-height: 400px; }
  .national-section { padding: 54px 0; }
  .national-map { border-radius: 22px; }
  .mission-card { border-radius: 20px; }
  .pcards { grid-template-columns: 1fr; }
  .pcard-media { height: 280px; }
  .pm { padding: 0; align-items: flex-end; }
  .pm-panel { width: 100%; max-height: 94vh; border-radius: 26px 26px 0 0; }
  .pm-specs { grid-template-columns: 1fr; }
  .pm-actions { flex-direction: column; }
  .pm-actions .btn, .btn-ficha { width: 100%; }
  .us-metrics { grid-template-columns: 1fr 1fr; }
  .us-flow { grid-template-columns: 1fr; }
  .ct-fields { grid-template-columns: 1fr; }
  .ph-stats { gap: 22px 32px; }
}
