/* =====================================================================
   TARPI — Nutrición Animal
   Design tokens + base styles
   ===================================================================== */

:root {
  /* Brand palette extracted from logo gradient (teal → verde) */
  --tarpi-teal:        #1B9E8F;
  --tarpi-teal-deep:   #137168;
  --tarpi-green:       #4AB965;
  --tarpi-green-deep:  #2F8E47;
  --tarpi-leaf:        #0F4D3A;

  /* Neutrals */
  --ink-900: #1A1D1F;
  --ink-800: #2D3033;   /* wordmark grey */
  --ink-600: #4A4F54;
  --ink-500: #6B7074;
  --ink-400: #9DA3A8;
  --ink-300: #C8CDD1;
  --ink-200: #E4E7EA;
  --ink-100: #EEF1F3;
  --bg-cream: #F6F4EE;
  --bg-off:   #FAFAF7;
  --white:    #FFFFFF;

  /* Line accents — calibrated to each brochure */
  /* RUMAX brochure: dark forest green + bright leaf green */
  --rumax-bg:    #0E2A1E;
  --rumax-deep:  #163E2A;
  --rumax-fg:    #2F8E47;
  --rumax-light: #5DC97E;
  --rumax-tint:  #E8F1EB;

  /* OVOMAX brochure: warm yolk gold + dark espresso */
  --ovomax-bg:    #1F1A14;
  --ovomax-deep:  #2B221A;
  --ovomax-fg:    #D9A441;
  --ovomax-light: #F2C566;
  --ovomax-tint:  #FAF2DF;

  /* Type */
  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --font-serif:   "Cormorant Garamond", "Instrument Serif", Georgia, serif;
  --font-body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Scale */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-scale: 1;
}

* { box-sizing: border-box; }
*::selection { background: var(--tarpi-green); color: white; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-800);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: var(--ink-900);
  text-wrap: balance;
}
.display-xl { font-size: clamp(48px, 8.5vw, 140px); }
.display-lg { font-size: clamp(40px, 6vw, 96px); }
.display-md { font-size: clamp(32px, 4.5vw, 64px); }
.display-sm { font-size: clamp(26px, 3vw, 44px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tarpi-teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-600);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 60ch;
}

.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(95deg, var(--tarpi-teal) 0%, var(--tarpi-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), padding 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  padding: 12px var(--gutter);
  border-bottom-color: var(--ink-200);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.4s var(--ease-out);
}
.nav-logo img {
  height: 84px;
  width: auto;
  transition: height 0.4s var(--ease-out);
}
.nav.scrolled .nav-logo img { height: 66px; }
.nav-logo:hover { transform: scale(1.02); }

/* ====== NAV INVERTED over any dark hero ====== */
body.has-dark-hero .nav:not(.scrolled) {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 100%);
  border-bottom-color: transparent;
}
body.has-dark-hero .nav:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}
body.has-dark-hero .nav:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.92);
}
body.has-dark-hero .nav:not(.scrolled) .nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.12);
}
body.has-dark-hero .nav:not(.scrolled) .nav-link.has-dropdown > span {
  color: rgba(255,255,255,0.92);
}
body.has-dark-hero .nav:not(.scrolled) .nav-cta {
  background: white;
  color: var(--ink-900);
}
body.has-dark-hero .nav:not(.scrolled) .nav-cta:hover {
  background: var(--bg-cream);
  color: var(--ink-900);
}
body.has-dark-hero .nav:not(.scrolled) .nav-cta .quote-count {
  background: var(--tarpi-green);
  color: white;
}
body.has-dark-hero .nav:not(.scrolled) .nav-burger { color: white; }

/* Dropdown */
.nav-link.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.15);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  z-index: 110;
}
.nav-link.has-dropdown:hover .nav-dropdown,
.nav-link.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-dropdown a:hover { background: var(--bg-cream); }
.nav-dropdown a .dd-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  flex-shrink: 0;
}
.nav-dropdown a .dd-mark.r { background: var(--rumax-fg); }
.nav-dropdown a .dd-mark.o { background: var(--ovomax-fg); color: var(--ovomax-bg); }
.nav-dropdown a .dd-mark.q { background: var(--ink-300); }
.nav-dropdown a .dd-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 2px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--ink-900); background: var(--ink-100); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 20px;
  border-radius: 999px;
  background: var(--ink-900);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.nav-cta:hover { background: var(--tarpi-teal-deep); transform: translateY(-1px); }
.nav-cta .quote-count {
  background: var(--tarpi-green);
  color: white;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ===== MOBILE BURGER + DRAWER ===== */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-900);
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.nav-burger:hover { background: var(--ink-100); }
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-burger { display: inline-flex; }
  .nav-cta span:not(.quote-count) { display: none; }
  .nav-cta { padding: 10px 12px; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: white;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-head {
  padding: 22px var(--gutter) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-200);
  background: linear-gradient(180deg, var(--bg-cream) 0%, white 100%);
  position: relative;
}
.mobile-menu-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tarpi-green) 50%, transparent);
  opacity: 0.4;
}
.mobile-menu-head a { display: flex; }
.mobile-menu-head img {
  height: 76px;
  width: auto;
  filter: drop-shadow(0 6px 24px rgba(15, 77, 58, 0.18));
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.open .mobile-menu-head img {
  animation: mmenuLogoIn 0.7s var(--ease-out) backwards;
}
@keyframes mmenuLogoIn {
  from { opacity: 0; transform: scale(0.8) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (max-width: 540px) {
  .mobile-menu-head { padding: 18px 24px 22px; }
  .mobile-menu-head img { height: 64px; }
}
.mobile-menu-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:hover { background: var(--ink-200); }
.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}
.mobile-menu-link {
  padding: 22px var(--gutter);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-100);
  transition: padding-left 0.3s var(--ease-out), color 0.2s;
}
.mobile-menu-link:hover, .mobile-menu-link.active {
  padding-left: calc(var(--gutter) + 16px);
  color: var(--tarpi-teal-deep);
}
.mobile-menu-link .arrow { width: 22px; height: 22px; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.mobile-menu-link:hover .arrow { opacity: 1; transform: translateX(4px); }
.mobile-menu-link .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 4px;
}
.mobile-menu-foot {
  padding: 24px var(--gutter) 32px;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--ink-200);
}
.mobile-menu-foot .channel {
  border-top: 0;
  border-bottom: 0;
  padding: 0;
  grid-template-columns: 24px 1fr;
}
.mobile-menu-foot .channel .icon { color: var(--tarpi-teal-deep); }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,29,31,0.55);
  backdrop-filter: blur(6px);
  z-index: 399;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px var(--gutter) 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(74, 185, 101, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(27, 158, 143, 0.10), transparent 60%),
    var(--bg-off);
}

/* Hero photo collage (right side) */
.hero-photo-stack {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  width: min(38vw, 480px);
  aspect-ratio: 3/4;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: heroPhotoIn 1.6s var(--ease-out) 0.5s forwards;
}
@keyframes heroPhotoIn {
  from { opacity: 0; transform: translate(40px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}
.hero-photo-stack .photo {
  position: absolute;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 77, 58, 0.35);
}
.hero-photo-stack .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.hero-photo-stack .photo-main {
  inset: 0;
  z-index: 2;
}
.hero-photo-stack .photo-accent {
  width: 50%;
  aspect-ratio: 1;
  bottom: -8%;
  left: -18%;
  z-index: 3;
  box-shadow: 0 20px 40px -16px rgba(15, 77, 58, 0.45);
}
.hero-photo-stack .photo-tag {
  position: absolute;
  top: 8%;
  left: -12%;
  z-index: 4;
  background: white;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-700);
  box-shadow: 0 14px 32px -12px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-photo-stack .photo-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tarpi-green);
  box-shadow: 0 0 0 4px rgba(74,185,101,0.2);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 1080px) {
  .hero-photo-stack { width: 35vw; opacity: 0.3; }
  .hero-photo-stack .photo-tag { display: none; }
  @keyframes heroPhotoIn {
    from { opacity: 0; } to { opacity: 0.3; }
  }
}
@media (max-width: 760px) {
  .hero-photo-stack { display: none; }
}
.hero::before {
  /* subtle grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-grid {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: flex;
  gap: 24px;
  align-items: center;
}
.hero-meta span { display: inline-flex; gap: 6px; align-items: center; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tarpi-green); animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 170px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin: 0;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.4s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-bottom {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 880px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
}

.hero-description {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-600);
  max-width: 48ch;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-900);
  color: white;
}
.btn-primary:hover { background: var(--tarpi-teal-deep); transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(19, 113, 104, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border: 1px solid var(--ink-300);
}
.btn-ghost:hover { border-color: var(--ink-900); background: var(--ink-100); }
.btn-light {
  background: white;
  color: var(--ink-900);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(0,0,0,0.3); }
.btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Hero floating mark */
.hero-mark {
  position: absolute;
  top: 50%;
  right: -14%;
  transform: translateY(-50%);
  width: min(50vw, 640px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  animation: markIn 1.4s var(--ease-out) 0.5s forwards;
}
@keyframes markIn {
  from { opacity: 0; transform: translate(40px, -50%) scale(0.9); }
  to { opacity: 0.55; transform: translate(0, -50%) scale(1); }
}

@media (max-width: 880px) {
  .hero-mark { right: -25%; width: 90vw; opacity: 0.35; }
  @keyframes markIn { from { opacity: 0; } to { opacity: 0.35; } }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink-400), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--tarpi-green), transparent);
  transform: translateY(-100%);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* =====================================================================
   SECTION CHROME
   ===================================================================== */
section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}

.section-head {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-600); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }

/* =====================================================================
   ABOUT / NOSOTROS
   ===================================================================== */
.about {
  background: var(--bg-cream);
  overflow: hidden;
}
.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tarpi-teal-deep), var(--tarpi-green-deep));
  box-shadow: 0 40px 80px -32px rgba(15, 77, 58, 0.35);
}
.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 1.2s var(--ease-out);
}
.about-visual:hover img { transform: scale(1.04); }
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,77,58,0.05), rgba(15,77,58,0.3) 80%);
  pointer-events: none;
}
.about-visual .placeholder-text { display: none; }

.about-stats {
  position: absolute;
  inset: auto 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  padding: 24px;
  z-index: 2;
}
.about-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.about-stats .stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.3;
}

.about-text h2 { margin: 16px 0 24px; }
.about-text .lede { margin-bottom: 36px; }
.about-pillars {
  display: grid;
  gap: 1px;
  background: var(--ink-200);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.pillar {
  background: var(--bg-cream);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tarpi-teal-deep);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.pillar h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.pillar p { margin: 0; font-size: 14px; color: var(--ink-600); line-height: 1.5; }

/* =====================================================================
   TECNOLOGÍA
   ===================================================================== */
.tech {
  background: var(--ink-900);
  color: white;
  overflow: hidden;
}
.tech .eyebrow { color: var(--tarpi-green); }
.tech .display { color: white; }
.tech .section-head p { color: var(--ink-300); }

.tech-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech-card {
  position: relative;
  padding: 36px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  overflow: hidden;
}
.tech-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--tarpi-green);
  transform: translateY(-4px);
}
.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(74, 185, 101, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.tech-card:hover::before { opacity: 1; }

.tech-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--tarpi-green);
}
.tech-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: white;
}
.tech-card p { margin: 0; color: var(--ink-300); font-size: 15px; line-height: 1.55; }
.tech-card .badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tarpi-green);
  padding: 4px 10px;
  border: 1px solid rgba(74, 185, 101, 0.4);
  border-radius: 999px;
}

.tech-banner {
  max-width: var(--container);
  margin: 80px auto 0;
  padding: 48px;
  border-radius: 8px;
  background: linear-gradient(110deg, var(--tarpi-teal-deep), var(--tarpi-green-deep));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) {
  .tech-banner { grid-template-columns: 1fr; padding: 32px; }
}
.tech-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}
.tech-banner h3 {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: white;
}
.tech-banner p { position: relative; margin: 0; color: rgba(255,255,255,0.85); font-size: 16px; max-width: 50ch; }
.tech-banner .btn-light { position: relative; justify-self: end; }
@media (max-width: 880px) {
  .tech-banner .btn-light { justify-self: start; }
}

/* =====================================================================
   LÍNEAS (Product lines)
   ===================================================================== */
.lines {
  background: var(--white);
  padding-top: clamp(120px, 14vw, 200px);
}

.lines-stack {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.line-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  min-height: 580px;
  box-shadow: 0 20px 60px -30px rgba(15, 77, 58, 0.4);
}
@media (max-width: 880px) {
  .line-card { grid-template-columns: 1fr; min-height: auto; }
}

.line-card.rumax {
  background: linear-gradient(135deg, var(--rumax-bg), var(--rumax-deep));
  color: white;
}
.line-card.ovomax {
  background: linear-gradient(135deg, var(--ovomax-bg), var(--ovomax-deep));
  color: white;
}
.line-card.coming {
  background: var(--bg-cream);
  color: var(--ink-700);
  border: 1px dashed var(--ink-300);
  box-shadow: none;
}

.line-card .line-content {
  padding: clamp(40px, 5.5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.line-logo-mark {
  margin-bottom: 20px;
  max-width: 280px;
  height: auto;
}
.line-logo-mark img,
.line-logo-mark svg { width: 100%; height: auto; }

.line-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  width: fit-content;
  opacity: 0.8;
}
.line-card.rumax .line-tag { color: var(--tarpi-green); }
.line-card.ovomax .line-tag { color: var(--ovomax-fg); }
.line-card.coming .line-tag { color: var(--ink-500); }

.line-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin: 16px 0 0;
}
.line-card.rumax .line-name { color: white; }
.line-card.ovomax .line-name { color: white; }
.line-card.coming .line-name { color: var(--ink-300); }

.line-subtitle {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 14px 0 0;
  opacity: 0.7;
  font-weight: 500;
}

.line-description {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  margin: 0;
  max-width: 42ch;
  opacity: 0.85;
}

.line-stats {
  display: flex;
  gap: 32px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.line-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  display: block;
  line-height: 1;
}
.line-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 6px;
  display: block;
}

.line-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s;
}
.line-card.rumax .line-cta { background: var(--tarpi-green); color: white; }
.line-card.rumax .line-cta:hover { background: var(--tarpi-green-deep); transform: translateY(-2px); }
.line-card.ovomax .line-cta { background: var(--ovomax-fg); color: var(--ovomax-bg); }
.line-card.ovomax .line-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.line-card.coming .line-cta { background: var(--ink-200); color: var(--ink-500); cursor: not-allowed; }

.line-visual {
  position: relative;
  overflow: hidden;
}
.line-card.rumax .line-visual { background: linear-gradient(135deg, #163E2A, #0A1F14); }
.line-card.ovomax .line-visual { background: linear-gradient(135deg, #2B221A, #0F0C0A); }
.line-card.coming .line-visual { background: linear-gradient(135deg, #E8E5DD, #D5D2CA); }

.line-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.line-card:hover .line-visual img { transform: scale(1.05); }

.line-card.rumax .line-visual::after,
.line-card.ovomax .line-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.line-card.rumax .line-visual::after {
  background: linear-gradient(110deg, rgba(14,42,30,0.6) 0%, rgba(14,42,30,0.1) 50%, transparent 100%);
}
.line-card.ovomax .line-visual::after {
  background: linear-gradient(110deg, rgba(31,26,20,0.6) 0%, rgba(31,26,20,0.1) 50%, transparent 100%);
}

.line-visual .visual-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-visual .visual-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.line-card.coming .line-visual .visual-grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
}

/* Small product preview chips floating over line visual */
.line-product-chips {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.line-product-chip {
  padding: 8px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.line-product-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.line-card.rumax .line-product-chip .dot { background: var(--rumax-fg); }
.line-card.ovomax .line-product-chip .dot { background: var(--ovomax-fg); }

/* Coming soon overlay */
.coming-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 220px; height: 220px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--ink-400);
  border-radius: 50%;
  animation: ringPulse 3.5s ease-out infinite;
}
.coming-pulse:nth-child(2) { animation-delay: 1.2s; }
.coming-pulse:nth-child(3) { animation-delay: 2.4s; }
@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; border-color: var(--tarpi-teal); }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; border-color: var(--ink-400); }
}

/* =====================================================================
   CATÁLOGO
   ===================================================================== */
.catalog {
  background: var(--bg-off);
  position: relative;
}
.catalog-toolbar {
  max-width: var(--container);
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-200);
}
.catalog-tabs {
  display: flex;
  gap: 4px;
  background: var(--ink-100);
  padding: 5px;
  border-radius: 999px;
}
.catalog-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.catalog-tab.active {
  background: white;
  color: var(--ink-900);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.1);
}
.catalog-tab:hover:not(.active) { color: var(--ink-900); }

.catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-chip {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-600);
  border: 1px solid var(--ink-200);
  background: white;
  border-radius: 999px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip:hover { border-color: var(--ink-400); }
.filter-chip.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}
.filter-chip .count {
  font-size: 10px;
  opacity: 0.6;
  font-family: var(--font-mono);
}

.catalog-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
}

.product-card {
  position: relative;
  background: white;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--ease-out), background 0.3s;
  cursor: pointer;
  min-height: 420px;
}
.product-card:hover { transform: translateY(-2px); background: #FDFCF8; }

.product-card .product-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tarpi-teal-deep);
}
.product-card.line-rumax .product-line { color: var(--tarpi-green-deep); }
.product-card.line-ovomax .product-line { color: #B8862C; }

.product-bag {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-bag svg { height: 100%; width: auto; }

.product-info { margin-top: auto; }
.product-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  line-height: 1.1;
}
.product-cat {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0 0 16px;
  line-height: 1.4;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-200);
}
.product-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.product-add {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-700);
  transition: all 0.2s;
}
.product-add:hover { background: var(--ink-900); color: white; transform: rotate(90deg); }
.product-add.added { background: var(--tarpi-green); color: white; }

/* Product detail panel (modal-like) */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 29, 31, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.product-detail-overlay.open { opacity: 1; pointer-events: auto; }

.product-detail {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(820px, 100vw);
  background: white;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.product-detail.open { transform: translateX(0); }

.product-detail-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-200);
  z-index: 2;
}
.product-detail-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.product-detail-close:hover { background: var(--ink-200); }
.product-detail-content { padding: 40px; flex: 1; }
@media (max-width: 600px) {
  .product-detail-header, .product-detail-content { padding-left: 24px; padding-right: 24px; }
}

.product-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-200);
}
@media (max-width: 720px) {
  .product-detail-hero { grid-template-columns: 1fr; }
}

.product-detail-hero .bag-large {
  background: var(--bg-cream);
  aspect-ratio: 4/5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.product-detail-hero .bag-large svg { max-height: 100%; max-width: 100%; }

.product-detail-hero h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink-900);
}
.product-detail-hero .line-name-small {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.product-detail-hero .product-detail-cat {
  margin: 18px 0 24px;
  font-size: 16px;
  color: var(--ink-600);
  line-height: 1.5;
}

.product-detail-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--ink-200);
}
.product-detail-section h4 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tarpi-teal-deep);
  font-weight: 500;
}
.product-detail-section p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-700); }
.product-detail-section ul { padding-left: 20px; margin: 0; }
.product-detail-section li { font-size: 14px; line-height: 1.6; color: var(--ink-600); margin-bottom: 6px; }

.spec-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: 4px;
  overflow: hidden;
}
.spec-cell {
  background: white;
  padding: 16px;
  text-align: center;
}
.spec-cell .spec-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.spec-cell .spec-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.spec-cell .spec-unit {
  font-size: 11px;
  color: var(--ink-500);
  margin-left: 2px;
}

.product-detail-cta {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--ink-200);
  padding: 20px 40px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .product-detail-cta { padding: 16px 24px; flex-direction: column-reverse; }
  .product-detail-cta .btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   QUOTE CART
   ===================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 29, 31, 0.5);
  backdrop-filter: blur(8px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100vw);
  background: white;
  z-index: 301;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.2);
  overflow: hidden;
}
.cart.open { transform: translateX(0); }

.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  -webkit-overflow-scrolling: touch;
}

/* Targeted SVG sizing (avoids global cart svg leak) */
.cart-header svg,
.cart-item-remove svg,
.qty-controls svg { width: 18px; height: 18px; }
.cart-empty svg { width: 64px; height: 64px; }
.cart-submit svg { width: 18px; height: 18px; flex-shrink: 0; }
.cart-form .form-field input,
.cart-form .form-field textarea,
.cart-form .form-field select { width: 100%; }
.cart-form svg { width: 16px; height: 16px; }
.cart-success-circle {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--tarpi-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px -8px rgba(74,185,101,0.5);
  animation: successPop 0.6s var(--ease-out);
}
.cart-success-circle svg { width: 36px; height: 36px; }
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
  .cart { width: 100vw; }
  .cart-header { padding: 20px 20px; }
  .cart-header h3 { font-size: 20px; }
  .cart-item { padding: 14px 20px; grid-template-columns: 56px 1fr auto; gap: 12px; }
  .cart-item-bag { width: 56px; height: 56px; }
  .cart-form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
}

.cart-header {
  padding: 22px 28px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink-200);
  flex-shrink: 0;
}
.cart-header > div { flex: 1; }
.cart-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

/* Stepper */
.cart-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.cart-stepper .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-400);
  transition: color 0.3s;
}
.cart-stepper .step.active { color: var(--ink-900); }
.cart-stepper .step.done { color: var(--tarpi-green-deep); }
.cart-stepper .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-500);
  transition: all 0.3s;
}
.cart-stepper .step.active .step-num {
  background: var(--ink-900);
  color: white;
}
.cart-stepper .step.done .step-num {
  background: var(--tarpi-green);
  color: white;
}
.cart-stepper .step-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cart-stepper .step-divider {
  flex: 1;
  height: 1px;
  background: var(--ink-200);
  max-width: 32px;
  margin: 0 2px;
}

.cart-step-help {
  margin: 4px 28px 16px;
  padding: 12px 14px;
  background: var(--bg-cream);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.4;
  border-left: 3px solid var(--tarpi-teal);
}

/* Foot — sticky bottom */
.cart-foot {
  flex-shrink: 0;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--ink-200);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cart-summary-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.cart-summary-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}
.cart-summary-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cart-line-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.cart-line-tag.rumax { background: var(--rumax-tint); color: var(--rumax-fg); }
.cart-line-tag.ovomax { background: var(--ovomax-tint); color: #B8862C; }

/* Wizard form */
.cart-form-wizard {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-list-summary {
  display: block;
  padding: 20px 28px 16px;
}
.cart-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.cart-back-btn:hover { background: var(--ink-100); color: var(--ink-900); }
.cart-back-btn svg { width: 14px; height: 14px; }

.cart-recap {
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: linear-gradient(110deg, var(--bg-cream), var(--ink-100));
  border-radius: 6px;
}
.cart-recap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.cart-recap span {
  font-size: 12px;
  color: var(--ink-600);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.cart-form-title {
  margin: 24px 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tarpi-teal-deep);
  font-weight: 500;
}
.cart-form-title:first-of-type { margin-top: 0; }

.qty-controls .qty-unit {
  font-size: 11px;
  color: var(--ink-500);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-left: 6px;
}
.cart-empty {
  padding: 80px 32px;
  text-align: center;
  color: var(--ink-500);
}
.cart-empty svg { width: 60px; height: 60px; margin: 0 auto 20px; opacity: 0.4; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 16px 32px;
  align-items: center;
}
.cart-item + .cart-item { border-top: 1px solid var(--ink-100); }
.cart-item-bag {
  width: 64px;
  height: 64px;
  background: var(--bg-cream);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.cart-item-bag svg { max-width: 100%; max-height: 100%; }
.cart-item-bag .cart-item-photo { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.cart-item-name { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink-900); }
.cart-item-line { font-size: 12px; color: var(--ink-500); font-family: var(--font-mono); letter-spacing: 0.05em; }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-controls button {
  width: 24px; height: 24px;
  border-radius: 4px;
  background: var(--ink-100);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
}
.qty-controls button:hover { background: var(--ink-200); }
.qty-controls input {
  width: 48px;
  border: 1px solid var(--ink-200);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
  text-align: center;
  font-family: var(--font-mono);
}
.cart-item-remove {
  color: var(--ink-400);
  width: 28px; height: 28px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.cart-item-remove:hover { color: #DC2626; background: #FEE2E2; }

.cart-form {
  padding: 24px 32px;
  border-top: 1px solid var(--ink-200);
  background: var(--bg-cream);
}
.cart-form h4 { margin: 0 0 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tarpi-teal-deep); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 11px; color: var(--ink-500); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--ink-200);
  background: white;
  padding: 12px 14px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--tarpi-teal);
  box-shadow: 0 0 0 3px rgba(27, 158, 143, 0.15);
}
.cart-submit {
  width: 100%;
  padding: 16px;
  background: var(--ink-900);
  color: white;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s;
}
.cart-submit:hover { background: var(--tarpi-teal-deep); transform: translateY(-1px); }

/* =====================================================================
   CONTACTO / FOOTER
   ===================================================================== */
.contact {
  background: var(--ink-900);
  color: white;
  padding: clamp(80px, 12vw, 140px) var(--gutter) 60px;
}
.contact .display { color: white; }
.contact-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
.contact-head h2 { margin: 24px 0; max-width: 14ch; }
.contact-head p { margin: 0; color: var(--ink-300); max-width: 50ch; font-size: 17px; line-height: 1.55; }

.contact-channels { margin-top: 60px; display: grid; gap: 24px; }
.channel {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.channel:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.channel .icon { width: 24px; height: 24px; color: var(--tarpi-green); }
.channel .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-400); display: block; margin-bottom: 4px; }
.channel .value { font-size: 17px; color: white; font-weight: 500; }
.channel .value a:hover { color: var(--tarpi-green); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 32px;
}
.contact-form .form-field input,
.contact-form .form-field textarea,
.contact-form .form-field select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: white;
}
.contact-form .form-field label { color: var(--ink-400); }
.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder { color: var(--ink-500); }

footer.foot {
  max-width: var(--container);
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-400);
}
footer.foot a:hover { color: white; }
footer.foot .links { display: flex; gap: 24px; }

/* =====================================================================
   MODERN SLIDER HERO
   ===================================================================== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink-900);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s var(--ease-out);
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 80px;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Stagger entry animations for slide content */
.slide .slide-text > *,
.slide .slide-meta {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.slide.active .slide-text > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.slide.active .slide-meta {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.slide.active .slide-text > *:nth-child(1) { transition-delay: 0.15s; }
.slide.active .slide-text > *:nth-child(2) { transition-delay: 0.30s; }
.slide.active .slide-text > *:nth-child(3) { transition-delay: 0.45s; }
.slide.active .slide-text > *:nth-child(4) { transition-delay: 0.60s; }
.slide.active .slide-meta { transition-delay: 0.55s; }

/* Slide meta cells staggered too */
.slide .slide-meta-cell {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.slide.active .slide-meta-cell { opacity: 1; transform: scale(1); }
.slide.active .slide-meta-cell:nth-child(1) { transition-delay: 0.70s; }
.slide.active .slide-meta-cell:nth-child(2) { transition-delay: 0.78s; }
.slide.active .slide-meta-cell:nth-child(3) { transition-delay: 0.86s; }
.slide.active .slide-meta-cell:nth-child(4) { transition-delay: 0.94s; }

/* Monogram slide-in */
.slide .slide-monogram {
  opacity: 0;
  transform: translate(40px, -50%);
  transition: opacity 1.6s var(--ease-out), transform 1.6s var(--ease-out);
}
.slide.active .slide-monogram { opacity: 0.06; transform: translate(0, -50%); transition-delay: 0.2s; }

.slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.slide-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.slide.active .slide-bg img {
  animation: kenburns 8s ease-out forwards;
}
@keyframes kenburns {
  0% { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1%, -1%); }
}
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(14, 22, 18, 0.78) 0%, rgba(14, 22, 18, 0.5) 50%, rgba(14, 22, 18, 0.2) 100%);
}
.slide-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 880px) {
  .slide-content { grid-template-columns: 1fr; gap: 32px; }
}

.slide-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.slide-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.slide-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.slide-eyebrow .badge {
  padding: 4px 10px;
  background: var(--tarpi-green);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.slide-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  color: white;
  text-wrap: balance;
  max-width: 18ch;
}
.slide-title .serif-italic { font-weight: 400; }

.slide-description {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 46ch;
  margin: 0;
}

.slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.slide .btn-primary {
  background: white;
  color: var(--ink-900);
}
.slide .btn-primary:hover { background: var(--bg-cream); transform: translateY(-2px); }
.slide .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.slide .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: white; }

/* Side meta panel */
.slide-meta {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 880px) { .slide-meta { justify-self: stretch; max-width: none; } }
.slide-meta-cell {
  padding: 18px 20px;
  background: rgba(0,0,0,0.25);
}
.slide-meta-cell .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  display: block;
}
.slide-meta-cell .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: white;
  line-height: 1.1;
  display: block;
}

/* Slider controls */
.slider-chrome {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 10;
  padding: 0 var(--gutter) 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.slider-progress {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 520px;
}
.slider-progress-item {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: height 0.2s;
  position: relative;
}
.slider-progress-item:hover { height: 4px; }
.slider-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: white;
  transition: width 0.2s linear;
}
.slider-progress-item.active .slider-progress-fill { animation: progressFill var(--slide-duration, 6s) linear forwards; }
.slider-progress-item.done .slider-progress-fill { width: 100%; }
@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

.slider-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.slider-counter strong { color: white; font-size: 18px; font-weight: 500; }

.slider-arrows {
  display: flex;
  gap: 8px;
}
.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.slider-arrow:hover { background: white; color: var(--ink-900); border-color: white; }
.slider-arrow:active { transform: scale(0.92); }

/* Floating brand monogram (top corner) */
.slide-monogram {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  user-select: none;
  width: clamp(320px, 48vw, 720px);
}
.slide-monogram img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================================
   INSTAGRAM SECTION
   ===================================================================== */
.ig-section {
  padding: clamp(80px, 10vw, 130px) var(--gutter);
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}
.ig-head {
  max-width: var(--container);
  margin: 0 auto 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.ig-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 16ch;
}
.ig-handle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-700);
}
.ig-handle .ig-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}
.ig-handle a { color: var(--ink-900); font-weight: 500; }
.ig-handle a:hover { text-decoration: underline; text-underline-offset: 4px; }

.ig-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 980px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

.ig-post {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink-300);
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out);
}
.ig-post:hover { transform: translateY(-3px); }
.ig-post img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.3s;
}
.ig-post:hover img { transform: scale(1.06); }
.ig-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.ig-post:hover::after { opacity: 1; }
.ig-post-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  z-index: 2;
  color: white;
  font-size: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.ig-post:hover .ig-post-meta { opacity: 1; transform: translateY(0); }
.ig-post-meta span { display: inline-flex; gap: 4px; align-items: center; }

.ig-cta {
  max-width: var(--container);
  margin: 36px auto 0;
  text-align: center;
}
.ig-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink-900);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.ig-cta-btn:hover { transform: translateY(-2px); background: var(--tarpi-teal-deep); }
.ig-cta-btn .ig-icon { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); display: inline-flex; align-items: center; justify-content: center; }

/* ── Smash Balloon Instagram Feed integration ── */
.ig-feed-wrap {
  max-width: var(--container);
  margin: 0 auto;
}
/* Forzar grid de 6 columnas sin bordes ni padding extra del plugin */
.ig-feed-wrap .sbi_feedtheme_default,
.ig-feed-wrap #sbi_images {
  padding: 0 !important;
}
.ig-feed-wrap .sbi_item {
  border-radius: 12px;
  overflow: hidden;
}
/* Quitar branding y encabezado del plugin que desactivamos por shortcode */
.ig-feed-wrap .sbi_header,
.ig-feed-wrap .sbi_follow_btn_outside,
.ig-feed-wrap .sbi_load_btn_link { display: none !important; }

/* Hide old hero photo stack now that we use slider */
.hero-photo-stack, .hero-mark, .scroll-cue { display: none !important; }

/* =====================================================================
   MARQUEE BAND (between sections)
   ===================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: white;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.marquee-item .serif-italic {
  background: linear-gradient(95deg, var(--tarpi-teal), var(--tarpi-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.05em;
}
.marquee-item .star {
  width: 20px;
  height: 20px;
  color: var(--tarpi-green);
  flex-shrink: 0;
}

/* =====================================================================
   FEATURED PRODUCTS (hero strip before catalog)
   ===================================================================== */
.featured {
  padding: clamp(80px, 10vw, 120px) var(--gutter) 0;
  background: var(--bg-off);
}
.featured-head {
  max-width: var(--container);
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  flex-wrap: wrap;
}
.featured-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 14ch;
  line-height: 1.05;
}
.featured-head p {
  margin: 0;
  color: var(--ink-600);
  max-width: 36ch;
}

.featured-rail {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .featured-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .featured-rail { grid-template-columns: 1fr; } }

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ink-200);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  cursor: pointer;
  min-height: 360px;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -32px rgba(15, 77, 58, 0.4);
}
.featured-card .featured-visual {
  position: relative;
  aspect-ratio: 1.1;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.featured-card.rumax .featured-visual { background: linear-gradient(135deg, #163E2A, #0A1F14); }
.featured-card.ovomax .featured-visual { background: linear-gradient(135deg, #2B221A, #0F0C0A); }

.featured-card .featured-bag {
  height: 75%;
  position: relative;
  z-index: 2;
  transition: transform 0.6s var(--ease-out);
}
.featured-card:hover .featured-bag {
  transform: translateY(-6px) rotate(-2deg);
}
.featured-card .featured-bag svg { height: 100%; width: auto; }

.featured-card .featured-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.6s var(--ease-out);
  padding: 8px;
}
.featured-card:hover .featured-photo { transform: translateY(-6px) scale(1.04); }

.featured-card .featured-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.featured-card .featured-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.featured-card.rumax .featured-line { color: var(--tarpi-green-deep); }
.featured-card.ovomax .featured-line { color: #B8862C; }
.featured-card .featured-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.featured-card .featured-meta {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.featured-card .featured-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease-out);
}
.featured-card:hover .featured-arrow {
  background: var(--ink-900);
  color: white;
  transform: translateX(4px);
}
/* =====================================================================
   LINE PAGE (RUMAX / OVOMAX dedicated pages)
   ===================================================================== */

/* Themed hero — full-bleed line color */
.line-page-hero {
  position: relative;
  min-height: 80vh;
  padding: 160px var(--gutter) 80px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: end;
}
.line-page-hero.rumax {
  background:
    radial-gradient(ellipse 80% 80% at 80% 0%, rgba(93, 201, 126, 0.12), transparent 60%),
    linear-gradient(180deg, var(--rumax-bg), var(--rumax-deep));
}
.line-page-hero.ovomax {
  background:
    radial-gradient(ellipse 80% 80% at 80% 0%, rgba(242, 197, 102, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ovomax-bg), var(--ovomax-deep));
}
.line-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.line-page-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.line-page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.line-page-hero.rumax .line-page-hero-image::after,
.line-page-hero.ovomax .line-page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
}
.line-page-hero.rumax .line-page-hero-image::after {
  background: linear-gradient(180deg, rgba(14,42,30,0.7) 0%, rgba(14,42,30,0.95) 100%);
}
.line-page-hero.ovomax .line-page-hero-image::after {
  background: linear-gradient(180deg, rgba(31,26,20,0.7) 0%, rgba(31,26,20,0.95) 100%);
}

.line-page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 880px) { .line-page-hero-content { grid-template-columns: 1fr; gap: 32px; } }

.line-page-hero .lp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.line-page-hero.rumax .lp-eyebrow { color: var(--rumax-light); }
.line-page-hero.ovomax .lp-eyebrow { color: var(--ovomax-light); }
.line-page-hero .lp-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.line-page-hero-logo {
  margin: 32px 0 0;
  max-width: 520px;
}
.line-page-hero-logo img { width: 100%; }
.line-page-hero-logo svg { width: 100%; height: auto; }

.line-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 32px 0 24px;
  color: white;
  max-width: 16ch;
  text-wrap: balance;
}
.line-page-hero p {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin: 0;
  max-width: 52ch;
}

.line-page-hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.lp-stat {
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.lp-stat .lp-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.lp-stat .lp-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: white;
}
.line-page-hero.rumax .lp-stat .lp-stat-value { color: var(--rumax-light); }
.line-page-hero.ovomax .lp-stat .lp-stat-value { color: var(--ovomax-light); }

.line-page-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.line-page-hero .btn-primary { background: white; color: var(--ink-900); }
.line-page-hero .btn-primary:hover { background: var(--bg-cream); }
.line-page-hero .btn-ghost { border-color: rgba(255,255,255,0.3); color: white; }
.line-page-hero .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Quick category jump bar */
.line-cat-jump {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-200);
  padding: 14px var(--gutter);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.line-cat-jump a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-600);
  transition: background 0.2s, color 0.2s;
  border: 1px solid var(--ink-200);
}
.line-cat-jump a:hover { background: var(--ink-900); color: white; border-color: var(--ink-900); }
.line-cat-jump a .count { opacity: 0.5; margin-left: 4px; }

/* Line page sections */
.line-page-intro {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: white;
}
.line-page-intro.rumax-bg { background: var(--rumax-tint); }
.line-page-intro.ovomax-bg { background: var(--ovomax-tint); }
.line-page-intro-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .line-page-intro-grid { grid-template-columns: 1fr; gap: 32px; } }
.line-page-intro-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0 0;
}
.line-page-intro-grid .body p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0 0 18px;
}

/* Category cards (sub-categories within line) */
.line-cat-cards {
  max-width: var(--container);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .line-cat-cards { grid-template-columns: 1fr; } }
.line-cat-cards.two { grid-template-columns: repeat(2, 1fr); }

.line-cat-card {
  position: relative;
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  min-height: 200px;
}
.line-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
}
.line-rumax-themed .line-cat-card:hover { border-color: var(--rumax-fg); }
.line-ovomax-themed .line-cat-card:hover { border-color: var(--ovomax-fg); }

.line-cat-card .cat-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-500);
}
.line-rumax-themed .line-cat-card .cat-num { color: var(--rumax-fg); }
.line-ovomax-themed .line-cat-card .cat-num { color: #B8862C; }
.line-cat-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.line-cat-card p { margin: 0; color: var(--ink-600); font-size: 14px; line-height: 1.5; }
.line-cat-card .cat-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
  font-size: 13px;
  color: var(--ink-600);
}
.line-cat-card .cat-meta strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }

/* Products list (row layout) */
.line-page-products {
  background: var(--bg-off);
  padding: clamp(60px, 10vw, 120px) var(--gutter) 80px;
}
.line-cat-block {
  max-width: var(--container);
  margin: 0 auto 60px;
}
.line-cat-block:last-child { margin-bottom: 0; }
.line-cat-head {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-200);
  flex-wrap: wrap;
}
.line-cat-head h3 { margin: 8px 0 0; }
.line-rumax .line-cat-head .eyebrow { color: var(--rumax-fg); }
.line-ovomax .line-cat-head .eyebrow { color: #B8862C; }

.line-products-list {
  display: grid;
  gap: 18px;
}

/* GRID view (default): 4 cards across on wide screens */
.line-page-products.view-grid .line-products-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .line-page-products.view-grid .line-products-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .line-page-products.view-grid .line-products-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* LIST view: 1 product per row, horizontal layout */
.line-page-products.view-list .line-products-list {
  grid-template-columns: 1fr;
  gap: 14px;
}
.line-page-products.view-list .line-product-row {
  grid-template-rows: auto;
  grid-template-columns: 140px minmax(0, 1.4fr) minmax(180px, 1fr) 200px;
  gap: 28px;
  padding: 22px 26px;
  align-items: center;
}
.line-page-products.view-list .lpr-bag {
  height: 130px;
}
.line-page-products.view-list .lpr-info { gap: 6px; }
.line-page-products.view-list .lpr-name { font-size: 20px; }
.line-page-products.view-list .lpr-desc {
  font-size: 13px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-page-products.view-list .lpr-specs {
  align-content: center;
}
.line-page-products.view-list .lpr-actions {
  flex-direction: column;
  align-items: stretch;
  border-top: 0;
  padding-top: 0;
  gap: 8px;
}
.line-page-products.view-list .lpr-btn { padding: 11px 14px; }
.line-page-products.view-list .lpr-btn-compare {
  width: 100%;
  padding: 10px 12px;
}
.line-page-products.view-list .lpr-btn-compare span { display: inline; }

/* View toolbar (toggle) */
.line-view-toolbar {
  max-width: var(--container);
  margin: 0 auto 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.line-view-toolbar-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.line-view-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.line-view-toggle {
  display: inline-flex;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.line-view-toggle .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  transition: background 0.2s, color 0.2s;
}
.line-view-toggle .view-btn:hover { color: var(--ink-900); }
.line-view-toggle .view-btn.active {
  background: var(--ink-900);
  color: white;
}
.line-view-toggle .view-btn svg { display: block; }

.line-product-row {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 22px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--ink-200);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}
.line-product-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.22);
}
.line-product-row.line-rumax:hover { border-color: var(--rumax-fg); }
.line-product-row.line-ovomax:hover { border-color: var(--ovomax-fg); }

.lpr-bag {
  width: 100%;
  height: 200px;
  background: var(--bg-cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform 0.5s var(--ease-out);
}
.lpr-bag svg { max-height: 100%; max-width: 100%; }
.lpr-bag .lpr-photo { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.line-product-row:hover .lpr-bag { transform: scale(1.02); }
.line-product-row.line-rumax .lpr-bag { background: linear-gradient(135deg, #163E2A, #0A1F14); }
.line-product-row.line-ovomax .lpr-bag { background: linear-gradient(135deg, #2B221A, #0F0C0A); }

.lpr-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lpr-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.line-product-row.line-rumax .lpr-cat { color: var(--rumax-fg); }
.line-product-row.line-ovomax .lpr-cat { color: #B8862C; }
.lpr-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  line-height: 1.15;
}
.lpr-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lpr-stage {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
  align-items: center;
  flex-wrap: wrap;
}
.lpr-stage .dot { color: var(--ink-400); }

.lpr-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.lpr-spec-chip {
  padding: 5px 9px;
  background: var(--ink-100);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-700);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lpr-actions {
  display: flex;
  gap: 6px;
  align-items: stretch;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
}
.lpr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: white;
  color: var(--ink-700);
  transition: all 0.2s;
  white-space: nowrap;
  justify-content: center;
  flex: 1 1 auto;
}
.lpr-btn:hover { border-color: var(--ink-900); color: var(--ink-900); }
.lpr-btn svg { width: 14px; height: 14px; }
.lpr-btn-add {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
  flex: 2 1 auto;
}
.lpr-btn-add:hover { background: var(--tarpi-teal-deep); color: white; }
.lpr-btn-add.active { background: var(--tarpi-green); border-color: var(--tarpi-green); }
.lpr-btn-compare {
  flex: 0 0 auto;
  width: 40px;
  padding: 10px;
}
.lpr-btn-compare span { display: none; }
.lpr-btn-compare::before {
  content: "";
  width: 14px; height: 14px;
}
.lpr-btn-compare.active {
  background: var(--ink-100);
  border-color: var(--ink-700);
  color: var(--ink-900);
}
.lpr-btn-view { display: none; }
.lpr-btn-view::after { display: none; }

@media (max-width: 880px) {
  .line-product-row {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .lpr-specs, .lpr-actions {
    grid-column: 1 / -1;
  }
  .lpr-actions { flex-direction: row; align-items: stretch; }
  .lpr-bag { height: 90px; }
}

/* =====================================================================
   PRODUCT DETAIL PAGE (producto.html)
   ===================================================================== */
.pdp-hero {
  position: relative;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
  color: white;
}
.pdp-hero.rumax { background: linear-gradient(180deg, var(--rumax-bg), var(--rumax-deep)); }
.pdp-hero.ovomax { background: linear-gradient(180deg, var(--ovomax-bg), var(--ovomax-deep)); }
.pdp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pdp-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.28;
}
.pdp-hero.rumax .pdp-hero-bg::after,
.pdp-hero.ovomax .pdp-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}
.pdp-hero.rumax .pdp-hero-bg::after { background: linear-gradient(180deg, rgba(14,42,30,0.6), rgba(14,42,30,0.95)); }
.pdp-hero.ovomax .pdp-hero-bg::after { background: linear-gradient(180deg, rgba(31,26,20,0.6), rgba(31,26,20,0.95)); }

.pdp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
}

.pdp-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 48px;
}
.pdp-breadcrumbs a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.pdp-breadcrumbs a:hover { color: white; }
.pdp-breadcrumbs span { color: rgba(255,255,255,0.3); }

.pdp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) { .pdp-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Escenario del producto (hero izquierda) ── */
.pdp-bag-stage {
  position: relative;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  overflow: hidden;
  /* Glassmorphism */
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 16px 48px rgba(0,0,0,.3),
    0 4px 12px rgba(0,0,0,.2);
}
/* Con galería: dar más espacio vertical */
.pdp-bag-stage.pdp-bag-stage--gallery {
  aspect-ratio: 2/3;
  justify-content: flex-start;
}

/* Textura de cuadrícula sutil */
.pdp-bag-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Gradiente de pedestal en la base */
.pdp-bag-stage::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.28) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Acento de color por línea en la base */
.pdp-hero.rumax .pdp-bag-stage::after {
  background: linear-gradient(to top, rgba(14,42,30,.6) 0%, rgba(47,142,71,.08) 50%, transparent 100%);
}
.pdp-hero.ovomax .pdp-bag-stage::after {
  background: linear-gradient(to top, rgba(43,34,26,.6) 0%, rgba(185,133,31,.08) 50%, transparent 100%);
}

/* Reflejo/brillo en la esquina superior */
.pdp-bag-stage > .pdp-bag-shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
  pointer-events: none;
  z-index: 0;
  border-radius: 24px 24px 0 0;
}

@keyframes bagFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.pdp-bag-wrap svg { height: 100%; width: auto; max-width: 100%; }

/* Sombra dinámica bajo el producto */
.pdp-bag-shadow {
  position: absolute;
  bottom: 18%;
  left: 20%;
  right: 20%;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 1;
  animation: shadowPulse 5.5s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1);    opacity: .55; }
  50%       { transform: scaleX(.78); opacity: .32; }
}

/* Badge de comparador */
.pdp-bag-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  color: var(--ink-900);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* ── Strip de thumbnails dentro del stage ── */
.pdp-bag-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bagFloat 5.5s ease-in-out infinite;
  padding: 20px 20px 16px;
  min-height: 0;
}
/* Con imagen real: sin padding extra, la imagen se escala sola */
.pdp-bag-wrap.has-real-image {
  padding: 12px;
  animation: none;
  cursor: zoom-in;
}
/* Con galería, el wrap no flota */
.pdp-bag-stage--gallery .pdp-bag-wrap { animation: none; }

.pdp-stage-thumbs {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.38) 0%, transparent 100%);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-stage-thumbs::-webkit-scrollbar { display: none; }

.pdp-stage-thumb {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
  cursor: pointer;
  padding: 0;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pdp-stage-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3px;
  display: block;
}
.pdp-stage-thumb:hover {
  border-color: rgba(255,255,255,.65);
  transform: scale(1.08);
}
.pdp-stage-thumb.is-active {
  border-color: var(--tarpi-green);
  box-shadow: 0 0 0 3px rgba(74,185,101,.35);
}

/* Hint de zoom sobre la imagen */
.pdp-stage-zoom {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.pdp-real-img-hero:hover .pdp-stage-zoom { opacity: 1; }

/* Thumbnails en el lightbox */
.pdp-lightbox-thumbs {
  position: absolute;
  bottom: 16px;
  left: 50%; transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.pdp-lightbox-thumb {
  width: 44px; height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  cursor: pointer;
  padding: 0;
  transition: border-color .14s, transform .14s;
  flex-shrink: 0;
}
.pdp-lightbox-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-lightbox-thumb:hover { border-color: rgba(255,255,255,.6); transform: scale(1.07); }
.pdp-lightbox-thumb.is-active {
  border-color: var(--tarpi-green);
  box-shadow: 0 0 0 2px rgba(74,185,101,.5);
}

.pdp-hero-info { display: flex; flex-direction: column; gap: 20px; }
.pdp-hero-info h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 8px 0 0;
  color: white;
}
.pdp-tagline {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0;
  max-width: 52ch;
}

.pdp-stage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 540px) { .pdp-stage-row { grid-template-columns: 1fr; gap: 12px; } }
.pdp-meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.pdp-meta-val {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: white;
  line-height: 1.3;
}

.pdp-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-pill {
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: white;
}
.pdp-hero.rumax .pdp-pill { background: rgba(74, 185, 101, 0.12); border-color: rgba(93, 201, 126, 0.3); }
.pdp-hero.ovomax .pdp-pill { background: rgba(242, 197, 102, 0.12); border-color: rgba(242, 197, 102, 0.3); }

.pdp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp-hero-actions .btn-primary {
  background: white;
  color: var(--ink-900);
}
.pdp-hero-actions .btn-primary:hover { background: var(--bg-cream); }
.pdp-hero-actions .btn-ghost.light {
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.pdp-hero-actions .btn-ghost.light:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Details body */
/* ── DETALLES DEL PRODUCTO v2 ── */

/* Nav de secciones sticky */
.pdp-snav {
  position: sticky;
  top: 64px;
  z-index: 80;
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  box-shadow: 0 2px 12px rgba(15,77,58,.06);
}
.pdp-snav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 50px;
  align-items: center;
}
.pdp-snav__inner::-webkit-scrollbar { display: none; }
.pdp-snav__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  background: transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.pdp-snav__pill:hover {
  border-color: var(--tarpi-green);
  color: var(--tarpi-leaf);
  background: rgba(74,185,101,.06);
}
.pdp-snav__pill svg { flex-shrink: 0; }

/* Bloques de detalle — padding reducido */
.pdp-details-wrap { }
.pdp-det-block {
  padding: clamp(28px,3.5vw,44px) var(--gutter);
  border-bottom: 1px solid var(--ink-100);
}
.pdp-det-block--white { background: var(--white); }
.pdp-det-block--cream  { background: var(--bg-cream); }

.pdp-det-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* Cabecera compacta */
.pdp-det-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-100);
}
.pdp-det-num-wrap {
  flex-shrink: 0;
}
.pdp-det-num-bg {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--tarpi-teal-deep);
  background: rgba(27,158,143,.08);
  border: 1px solid rgba(27,158,143,.18);
  border-radius: 999px;
  padding: 3px 9px;
  display: block;
  white-space: nowrap;
}
.pdp-det-heading { flex: 1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-det-title {
  font-family: var(--font-display);
  font-size: clamp(16px,1.6vw,20px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0;
}
.pdp-det-sub {
  font-size: 12.5px;
  color: var(--ink-400);
  line-height: 1.45;
  margin: 0;
}

/* ── Specs v2: lista compacta con barras ── */
.pdp-specs-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 28px;
}
.pdp-spec-v2 {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
  transition: border-color .15s;
}
.pdp-spec-v2:hover { border-color: var(--tarpi-teal); }
.pdp-spec-v2__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.pdp-spec-v2__label {
  font-size: 12.5px;
  color: var(--ink-600);
  line-height: 1.3;
}
.pdp-spec-v2__val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
  white-space: nowrap;
  flex-shrink: 0;
}
.pdp-spec-v2__unit {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-500);
}
.pdp-spec-v2__bar-track {
  height: 3px;
  background: var(--ink-200);
  border-radius: 2px;
  overflow: hidden;
}
.pdp-spec-v2__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tarpi-teal), var(--tarpi-green));
  border-radius: 2px;
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}

/* ── Uso del producto ── */
.pdp-use-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 10px;
  padding: 18px 22px;
  border: 1px solid var(--ink-200);
}
.pdp-use-accent {
  flex-shrink: 0;
  width: 3px;
  align-self: stretch;
  background: linear-gradient(180deg, var(--tarpi-green), var(--tarpi-teal));
  border-radius: 2px;
  min-height: 32px;
}
.pdp-use-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-700);
  margin: 0;
}

/* ── Cards de metadatos ── */
.pdp-meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.pdp-meta-card {
  background: var(--bg-cream);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s, box-shadow .15s;
}
.pdp-meta-card:hover {
  border-color: var(--tarpi-teal);
  box-shadow: 0 3px 10px rgba(27,158,143,.06);
}
.pdp-meta-card__ico {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(74,185,101,.12), rgba(27,158,143,.08));
  display: grid;
  place-items: center;
  color: var(--tarpi-leaf);
  margin-bottom: 2px;
}
.pdp-meta-card__ico svg { width: 15px !important; height: 15px !important; }
.pdp-meta-card__lbl {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-400);
}
.pdp-meta-card__val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.35;
}

/* ── Restricciones ── */
.pdp-restrictions-v2 {
  background: rgba(217,164,65,.07);
  border: 1px solid rgba(217,164,65,.25);
  border-radius: 10px;
  padding: 14px 18px;
}
.pdp-restrictions-v2__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #8a5a00;
  margin-bottom: 8px;
}
.pdp-restrictions-v2__head svg { flex-shrink: 0; color: #b9851f; width: 14px !important; height: 14px !important; }
.pdp-restrictions-v2__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0;
}

/* ── Formatos v2 ── */
.pdp-formats-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.pdp-format-v2 {
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pdp-format-v2:hover {
  border-color: var(--tarpi-green);
  box-shadow: 0 4px 14px rgba(15,77,58,.08);
  transform: translateY(-1px);
}
.pdp-format-v2__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.pdp-format-v2__icon { color: var(--tarpi-teal-deep); opacity: .65; }
.pdp-format-v2__icon svg { width: 20px !important; height: 20px !important; }
.pdp-format-v2__stock {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .03em;
}
.pdp-format-v2__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
  line-height: 1.2;
}
.pdp-format-v2__detail {
  font-size: 12px;
  color: var(--ink-600);
}
.pdp-format-v2__sku { font-size: 11px; color: var(--ink-400); }
.pdp-format-v2__sku code {
  font-family: var(--font-mono);
  background: var(--bg-cream);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
}

/* Backward compat */
.pdp-details { padding: clamp(40px,5vw,64px) var(--gutter); background: white; }
.pdp-details-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.pdp-section { display: flex; flex-direction: column; gap: 14px; }
.pdp-section-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-display); font-size: clamp(18px,2vw,24px); font-weight: 600; letter-spacing: -.02em; color: var(--ink-900); }
.pdp-section-title .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; font-weight: 600; color: var(--tarpi-teal-deep); padding: 3px 8px; border: 1px solid var(--ink-200); border-radius: 999px; }
.pdp-section-lede { margin: 0; color: var(--ink-600); font-size: 14px; line-height: 1.5; max-width: 60ch; }
.pdp-section p { margin: 0; color: var(--ink-700); font-size: 14px; line-height: 1.6; max-width: 65ch; }
.pdp-specs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 1px; background: var(--ink-200); border: 1px solid var(--ink-200); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.pdp-spec { background: white; padding: 16px 14px; text-align: center; transition: background .2s; }
.pdp-spec:hover { background: var(--bg-cream); }
.pdp-spec-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 7px; line-height: 1.3; }
.pdp-spec-value { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink-900); line-height: 1; }
.pdp-spec-unit { font-size: 10px; color: var(--ink-500); font-family: var(--font-mono); margin-left: 2px; font-weight: 400; }
.pdp-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .pdp-twocol { grid-template-columns: 1fr; gap: 24px; } }

@media (max-width: 768px) {
  .pdp-det-header { gap: 10px; }
  .pdp-det-sub { display: none; }
  .pdp-specs-v2 { grid-template-columns: 1fr; gap: 0; }
  .pdp-meta-cards { grid-template-columns: repeat(2, 1fr); }
  .pdp-formats-v2 { grid-template-columns: 1fr 1fr; }
  .pdp-use-block { padding: 14px 16px; gap: 12px; }
}

.pdp-related {
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: var(--bg-cream);
}
.pdp-related-head {
  max-width: var(--container);
  margin: 0 auto 36px;
}
.pdp-related-head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.pdp-related-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .pdp-related-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   COMPARATOR (comparador.html)
   ===================================================================== */
.cmp-hero {
  padding: 140px var(--gutter) 60px;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--ink-200);
}
.cmp-hero-inner { max-width: var(--container); margin: 0 auto; }
.cmp-hero h1 { margin: 16px 0 24px; max-width: 18ch; }
.cmp-hero .lede { max-width: 65ch; margin-bottom: 28px; }
.cmp-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-600);
}
.cmp-hero-meta strong { color: var(--ink-900); font-size: 16px; font-weight: 600; }
.cmp-clear {
  font-size: 12px;
  color: var(--ink-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cmp-clear:hover { color: #DC2626; }

/* Empty state */
.cmp-empty {
  padding: 120px var(--gutter);
  background: var(--bg-off);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cmp-empty-inner {
  text-align: center;
  max-width: 480px;
}
.cmp-empty-inner svg { margin: 0 auto 24px; }
.cmp-empty-inner h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink-900);
}
.cmp-empty-inner p { margin: 0 0 28px; color: var(--ink-600); }
.cmp-empty-shortcuts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Table */
.cmp-table-wrap {
  padding: 40px var(--gutter) 60px;
  background: var(--bg-off);
}
.cmp-table-scroll {
  max-width: var(--container);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: white;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.cmp-table th, .cmp-table td {
  padding: 16px 20px;
  vertical-align: top;
  border-right: 1px solid var(--ink-200);
}
.cmp-table th:last-child, .cmp-table td:last-child { border-right: 0; }

.cmp-table thead th {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--ink-200);
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 5;
  min-width: 220px;
}
.cmp-th.line-rumax { background: linear-gradient(180deg, #163E2A, #0E2A1E); color: white; }
.cmp-th.line-ovomax { background: linear-gradient(180deg, #2B221A, #1F1A14); color: white; }
.cmp-th-label { background: var(--ink-900) !important; width: 220px; min-width: 220px; }

.cmp-th { position: relative; padding: 20px !important; }
.cmp-th-bag {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cmp-th-bag svg { max-height: 100%; max-width: 100%; }
.cmp-th-bag .cmp-th-photo { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.cmp-th-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}
.cmp-th h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: white;
}
.cmp-th-species {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 14px;
}
.cmp-quote-btn {
  width: 100%;
  font-size: 12px;
  padding: 10px 14px;
  background: white;
  color: var(--ink-900);
  justify-content: center;
}
.cmp-quote-btn:hover { background: var(--bg-cream); }
.cmp-quote-btn.in-cart { background: var(--tarpi-green); color: white; }

.cmp-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.cmp-remove:hover { background: rgba(255,255,255,0.3); }

.cmp-th-add {
  background: transparent !important;
  border: 1px dashed var(--ink-300) !important;
  text-align: center;
  vertical-align: middle !important;
}
.cmp-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  color: var(--ink-500);
  transition: color 0.2s;
}
.cmp-add-btn:hover { color: var(--ink-900); }
.cmp-add-btn span { font-size: 14px; font-weight: 500; }
.cmp-add-sub { font-size: 11px !important; font-family: var(--font-mono); color: var(--ink-400); letter-spacing: 0.1em; }

.cmp-section-row td {
  background: var(--ink-900);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 20px !important;
  border-right: 0 !important;
}

.cmp-row-label {
  background: var(--bg-cream);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-700);
  white-space: nowrap;
}
.cmp-row-unit {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-500);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.cmp-cell {
  font-size: 14px;
  color: var(--ink-800);
  line-height: 1.5;
}
.cmp-cell-text { max-width: 320px; }
.cmp-cell-spec { text-align: center; }
.cmp-spec-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.cmp-spec-unit {
  margin-left: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-500);
}
.cmp-spec-badge {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cmp-cell.cmp-max { background: linear-gradient(180deg, rgba(74,185,101,0.08), transparent); }
.cmp-cell.cmp-max .cmp-spec-badge { color: var(--tarpi-green-deep); }
.cmp-cell.cmp-max .cmp-spec-num { color: var(--tarpi-green-deep); }
.cmp-cell.cmp-min { background: linear-gradient(180deg, rgba(0,0,0,0.04), transparent); }
.cmp-cell.cmp-min .cmp-spec-badge { color: var(--ink-500); }
.cmp-cell-empty { color: var(--ink-300); text-align: center; }

.cmp-action-bar {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Picker */
.cmp-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,29,31,0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cmp-picker {
  background: white;
  width: 100%;
  max-width: 680px;
  max-height: 84vh;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
}
.cmp-picker-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink-200);
}
.cmp-picker-head h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.cmp-picker-toolbar {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink-200);
}
.cmp-picker-search {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--ink-200);
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.cmp-picker-search:focus { border-color: var(--tarpi-teal); }
.cmp-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.cmp-picker-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  text-align: left;
  transition: background 0.2s;
  border-bottom: 1px solid var(--ink-100);
}
.cmp-picker-item:hover { background: var(--bg-cream); }
.cmp-picker-bag {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.cmp-picker-bag svg { max-width: 100%; max-height: 100%; }
.cmp-picker-bag .cmp-picker-photo { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.cmp-picker-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cmp-picker-item.line-rumax .cmp-picker-meta { color: var(--rumax-fg); }
.cmp-picker-item.line-ovomax .cmp-picker-meta { color: #B8862C; }
.cmp-picker-name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  margin: 2px 0;
}
.cmp-picker-sub { display: block; font-size: 12px; color: var(--ink-500); }

@media print {
  /* Reset background colors for clean print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html, body { background: white !important; overflow: visible !important; max-width: none !important; }

  /* Hide chrome */
  .nav, .marquee, footer, .contact,
  .cmp-hero, .cmp-action-bar,
  .twk-fab, .twk-panel,
  .cursor-dot, .scroll-progress,
  .page-loader, .page-curtain,
  .mobile-menu, .mobile-menu-overlay,
  .cmp-remove, .cmp-th-add,
  .cmp-quote-btn { display: none !important; }

  /* Hide React drawers/overlays */
  .cart, .cart-overlay,
  .product-detail, .product-detail-overlay { display: none !important; }

  /* Print page setup */
  @page {
    size: A4 landscape;
    margin: 14mm 12mm;
  }

  /* Comparator wrap */
  .cmp-table-wrap {
    padding: 0 !important;
    background: white !important;
  }
  .cmp-table-scroll {
    overflow: visible !important;
    border: 1px solid #D9DBDE !important;
    border-radius: 6px !important;
    page-break-inside: auto;
  }
  .cmp-table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 10pt;
  }

  /* Print header (injected on print only) */
  .print-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12pt;
    margin: 0 0 14pt;
    border-bottom: 2pt solid var(--ink-900);
    page-break-after: avoid;
  }
  .print-header-brand {
    display: flex;
    align-items: center;
    gap: 14pt;
  }
  .print-header-brand img {
    height: 56pt;
    width: auto;
  }
  .print-header-brand .meta {
    display: flex;
    flex-direction: column;
    gap: 2pt;
  }
  .print-header-brand h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18pt;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    line-height: 1.05;
  }
  .print-header-brand p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 8pt;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-500);
  }
  .print-header-info {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 8pt;
    letter-spacing: 0.1em;
    color: var(--ink-600);
    line-height: 1.5;
  }
  .print-header-info strong {
    display: block;
    color: var(--ink-900);
    font-family: var(--font-display);
    font-size: 14pt;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 4pt;
  }

  /* Table header */
  .cmp-table thead th {
    position: static !important;
    background: white !important;
    padding: 8pt !important;
    border-bottom: 1pt solid var(--ink-300) !important;
    page-break-inside: avoid;
  }
  .cmp-th.line-rumax {
    background: #0E2A1E !important;
    color: white !important;
  }
  .cmp-th.line-ovomax {
    background: #1F1A14 !important;
    color: white !important;
  }
  .cmp-th-bag {
    height: 80pt !important;
    margin-bottom: 6pt !important;
  }
  .cmp-th h4 { font-size: 12pt !important; margin-bottom: 4pt !important; }
  .cmp-th-tag, .cmp-th-species { font-size: 7pt !important; }

  /* Body rows */
  .cmp-table tbody tr {
    page-break-inside: avoid;
  }
  .cmp-section-row td {
    background: var(--ink-900) !important;
    color: white !important;
    font-size: 8pt !important;
    padding: 6pt 8pt !important;
  }
  .cmp-row-label {
    background: var(--bg-cream) !important;
    font-size: 9pt !important;
    padding: 6pt 8pt !important;
    color: var(--ink-700) !important;
  }
  .cmp-cell { font-size: 9pt !important; padding: 6pt 8pt !important; line-height: 1.4 !important; }
  .cmp-spec-num { font-size: 12pt !important; }
  .cmp-spec-unit { font-size: 8pt !important; }
  .cmp-spec-badge { font-size: 7pt !important; }
  .cmp-cell.cmp-max { background: rgba(74,185,101,0.1) !important; }
  .cmp-cell.cmp-min { background: rgba(0,0,0,0.04) !important; }

  /* Print footer */
  .print-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 14pt;
    padding-top: 10pt;
    border-top: 1pt solid var(--ink-300);
    font-family: var(--font-mono);
    font-size: 7pt;
    letter-spacing: 0.1em;
    color: var(--ink-500);
    page-break-inside: avoid;
  }
  .print-footer .legend {
    display: flex;
    gap: 14pt;
    align-items: center;
  }
  .print-footer .legend span {
    display: inline-flex;
    align-items: center;
    gap: 4pt;
  }
  .print-footer .legend .swatch {
    width: 10pt; height: 10pt;
    border-radius: 2pt;
    display: inline-block;
  }
  .print-footer .legend .max { background: rgba(74,185,101,0.4); border: 1pt solid var(--tarpi-green-deep); }
  .print-footer .legend .min { background: rgba(0,0,0,0.06); border: 1pt solid var(--ink-300); }

  /* Hide screen-only print stubs */
  .print-only { display: block !important; }
}

/* Hide print-only elements on screen */
.print-only { display: none; }

/* =====================================================================
   SCROLL PROGRESS INDICATOR (top of page)
   ===================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--tarpi-teal), var(--tarpi-green));
  z-index: 200;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(74, 185, 101, 0.5);
}

/* =====================================================================
   MAGNETIC + RIPPLE BUTTONS
   ===================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}
.btn:hover::before { opacity: 1; }
@keyframes ripple {
  to { transform: scale(20); opacity: 0; }
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
}

/* =====================================================================
   ENHANCED HOVERS
   ===================================================================== */
.product-card { transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s; }
.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 28px 50px -28px rgba(15, 77, 58, 0.35);
  z-index: 5;
}

.line-card { transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.line-card:not(.coming):hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 80px -32px rgba(15, 77, 58, 0.5);
}

.channel { transition: padding-left 0.3s var(--ease-out); }
.channel:hover { padding-left: 12px; }

.line-product-row { transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s; }
.line-product-row:hover .lpr-bag { transform: scale(1.04); }
.lpr-bag { transition: transform 0.5s var(--ease-out); }

/* =====================================================================
   SECTION TITLE WORD REVEAL (.split-words)
   ===================================================================== */
.split-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.split-words .word.space { width: 0.25em; }
.split-words.visible .word { opacity: 1; transform: translateY(0); filter: blur(0); }
.split-words.visible .word:nth-child(1) { transition-delay: 0.04s; }
.split-words.visible .word:nth-child(2) { transition-delay: 0.08s; }
.split-words.visible .word:nth-child(3) { transition-delay: 0.12s; }
.split-words.visible .word:nth-child(4) { transition-delay: 0.16s; }
.split-words.visible .word:nth-child(5) { transition-delay: 0.20s; }
.split-words.visible .word:nth-child(6) { transition-delay: 0.24s; }
.split-words.visible .word:nth-child(7) { transition-delay: 0.28s; }
.split-words.visible .word:nth-child(8) { transition-delay: 0.32s; }
.split-words.visible .word:nth-child(9) { transition-delay: 0.36s; }
.split-words.visible .word:nth-child(10) { transition-delay: 0.40s; }
.split-words.visible .word:nth-child(n+11) { transition-delay: 0.44s; }

/* =====================================================================
   CURSOR DOT (custom follower) — desktop only
   ===================================================================== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tarpi-green);
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.2s, opacity 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor-dot.visible { opacity: 1; }
.cursor-dot.hovering {
  width: 40px;
  height: 40px;
  background: white;
}
@media (max-width: 880px), (hover: none) {
  .cursor-dot { display: none !important; }
}

/* =====================================================================
   STAGGERED FADE-IN containers
   ===================================================================== */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* =====================================================================
   TECH SECTION — animated background gradient
   ===================================================================== */
.tech {
  background:
    radial-gradient(ellipse 60% 60% at 80% 0%, rgba(74,185,101,0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(27,158,143,0.08), transparent 60%),
    var(--ink-900);
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-duration: calc(1s * var(--motion-scale, 1));
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

.parallax-y {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================================
   RESPONSIVE FIXES (mobile-first patches)
   ===================================================================== */

@media (max-width: 980px) {
  /* Tighter section padding */
  section { padding-left: 24px; padding-right: 24px; }
  .container { padding: 0 24px; }

  /* Slider — center text + drop the side meta panel */
  .slide { padding: 110px 24px 90px; }
  .slide-content { grid-template-columns: 1fr; gap: 32px; }
  .slide-meta { max-width: 100%; }
  .slide-title { font-size: clamp(32px, 8vw, 56px); max-width: 22ch; }
  .slide-description { font-size: 15px; }
  .slide-monogram { width: 60vw; opacity: 0.04 !important; right: -10%; }

  /* Slider chrome smaller */
  .slider-chrome { padding: 0 24px 24px; gap: 16px; }
  .slider-progress { max-width: 100%; flex-basis: 100%; order: 2; }
  .slider-counter { order: 3; font-size: 11px; }
  .slider-counter strong { font-size: 16px; }
  .slider-arrows { order: 1; }
  .slider-arrow { width: 40px; height: 40px; }

  /* Hero meta cells smaller */
  .slide-meta-cell { padding: 14px 16px; }
  .slide-meta-cell .value { font-size: 18px; }
}

@media (max-width: 720px) {
  /* Section heads stack */
  .section-head { grid-template-columns: 1fr; gap: 16px; }

  /* About */
  .about-grid { gap: 32px; }
  .about-stats { grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; inset: auto 12px 12px; }
  .about-stats .stat strong { font-size: 28px; }
  .about-stats .stat span { font-size: 11px; }

  /* Tech cards stack and compact */
  .tech-grid { grid-template-columns: 1fr; gap: 12px; }
  .tech-card { padding: 28px 22px; }
  .tech-banner { padding: 28px 24px; grid-template-columns: 1fr; gap: 24px; }
  .tech-banner h3 { font-size: clamp(22px, 5vw, 32px); }

  /* Line cards stack vertical */
  .line-card { grid-template-columns: 1fr; min-height: auto; }
  .line-visual { aspect-ratio: 16/10; min-height: 280px; }
  .line-card.ovomax .line-visual { order: 1 !important; }
  .line-card.ovomax .line-content { order: 2 !important; }
  .line-content { padding: 36px 28px; gap: 24px; }
  .line-logo-mark { max-width: 220px; }
  .line-stats { gap: 24px; }
  .line-stat .num { font-size: 26px; }

  /* Catalog grid */
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .product-card { min-height: 380px; padding: 22px 18px; }
  .product-bag { height: 160px; }
  .product-name { font-size: 19px; }
  .catalog-toolbar { gap: 12px; flex-direction: column; align-items: stretch; }
  .catalog-tabs { width: 100%; }
  .catalog-tab { flex: 1; text-align: center; padding: 10px 8px; font-size: 11px; }
  .catalog-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .catalog-filters .filter-chip { white-space: nowrap; flex-shrink: 0; }

  /* Featured rail tighter */
  .featured-rail { grid-template-columns: 1fr 1fr; gap: 12px; }
  .featured-card { min-height: 300px; }
  .featured-card .featured-bag { height: 70%; }

  /* Marquee speed up on mobile */
  .marquee-track { animation-duration: 25s; gap: 36px; }
  .marquee-item { gap: 36px; font-size: clamp(20px, 6vw, 30px); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 24px 20px; }
  .channel { padding: 16px 0; grid-template-columns: 32px 1fr; gap: 12px; }
  .channel .value { font-size: 15px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 24px; }
  .foot .links { flex-wrap: wrap; gap: 14px; }

  /* IG section */
  .ig-grid { gap: 6px; }
  .ig-head { gap: 16px; flex-direction: column; align-items: flex-start; }
  .ig-head h2 { font-size: clamp(24px, 6vw, 36px); }
}

@media (max-width: 540px) {
  /* One-column product grid on small phones */
  .catalog-grid { grid-template-columns: 1fr; }
  .featured-rail { grid-template-columns: 1fr; }

  /* About stats single column */
  .about-stats { grid-template-columns: 1fr; }

  /* Lines stats vertical compact */
  .line-stats { flex-direction: column; gap: 16px; }

  /* Slide bottom controls collapse */
  .slider-chrome { padding: 0 16px 20px; }
}

/* Line page comparator promo (used at end of rumax.html / ovomax.html) */
.line-cmp-promo {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  color: white;
}
.line-cmp-promo.rumax { background: var(--rumax-bg); }
.line-cmp-promo.ovomax { background: var(--ovomax-bg); }
.line-cmp-promo-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.line-cmp-promo-inner h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 16px 0;
  max-width: 22ch;
  color: white;
}
.line-cmp-promo-inner p {
  color: rgba(255,255,255,0.75);
  max-width: 50ch;
  margin: 0;
}
.line-cmp-promo-inner .btn-light { justify-self: end; }
.line-cmp-promo-deco {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 360px;
  opacity: 0.18;
  z-index: 1;
}
.line-cmp-promo-deco.ovomax-eggs { right: -60px; bottom: -100px; }

@media (max-width: 880px) {
  .line-cmp-promo { padding: 56px 20px 64px; }
  .line-cmp-promo-inner { grid-template-columns: 1fr; gap: 24px; }
  .line-cmp-promo-inner h3 { font-size: clamp(22px, 6vw, 32px); }
  .line-cmp-promo-inner .btn-light { justify-self: stretch; width: 100%; justify-content: center; }
  .line-cmp-promo-deco { width: 240px; right: -50px; bottom: -50px; opacity: 0.12; }
}

/* LINE PAGE responsive */
@media (max-width: 880px) {
  .line-page-hero { padding: 110px 20px 50px; min-height: auto; }
  .line-page-hero-content { gap: 24px; }
  .line-page-hero h1 { font-size: clamp(26px, 7vw, 44px); margin: 20px 0 14px; max-width: none; }
  .line-page-hero p { font-size: 15px; }
  .line-page-hero-logo { max-width: 280px; margin-top: 16px; }
  .line-page-hero-stats { grid-template-columns: 1fr 1fr; }
  .lp-stat { padding: 14px 16px; }
  .lp-stat .lp-stat-value { font-size: 20px; }
  .line-page-hero .lp-eyebrow { font-size: 10px; letter-spacing: 0.16em; }
  .line-page-hero-cta { flex-direction: column; align-items: stretch; }
  .line-page-hero-cta .btn { justify-content: center; }

  .line-cat-jump { top: 64px; padding: 10px 16px; gap: 6px; overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .line-cat-jump a { font-size: 10px; padding: 7px 10px; white-space: nowrap; flex-shrink: 0; }

  .line-page-intro { padding: 60px 20px; }
  .line-page-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .line-page-intro-grid h2 { font-size: clamp(24px, 6vw, 36px); }
  .line-page-intro-grid .body p { font-size: 15px; }
  .line-cat-cards, .line-cat-cards.two { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .line-cat-card { padding: 22px 20px; min-height: auto; }
  .line-cat-card h4 { font-size: 20px; }

  /* Products list — clean stacked mobile layout */
  .line-page-products { padding: 40px 16px 60px; }
  .line-cat-block { margin-bottom: 40px; }
  .line-cat-head { margin-bottom: 24px; padding-bottom: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .line-cat-head h3 { font-size: clamp(22px, 6vw, 32px); }

  /* Mobile: force single column regardless of selected view */
  .line-page-products .line-products-list,
  .line-page-products.view-list .line-products-list,
  .line-page-products.view-grid .line-products-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .line-page-products.view-list .line-product-row,
  .line-page-products.view-grid .line-product-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 22px;
    gap: 16px;
  }
  .line-page-products .lpr-bag,
  .line-page-products.view-list .lpr-bag,
  .line-page-products.view-grid .lpr-bag { height: 180px; }
  .line-page-products .lpr-actions,
  .line-page-products.view-list .lpr-actions,
  .line-page-products.view-grid .lpr-actions {
    flex-direction: row;
    border-top: 1px solid var(--ink-100);
    padding-top: 14px;
  }
  .line-page-products.view-list .lpr-btn-compare,
  .line-page-products.view-grid .lpr-btn-compare {
    width: auto;
    padding: 10px 12px;
    flex: 0 0 auto;
  }
  .line-page-products.view-list .lpr-btn-compare span,
  .line-page-products.view-grid .lpr-btn-compare span { display: inline; }

  .line-view-toolbar { padding: 0 4px; margin-bottom: 16px; }
  .line-view-toggle .view-btn { padding: 7px 10px; }
}

@media (max-width: 540px) {
  .line-page-hero { padding: 100px 16px 48px; }
  .line-page-hero h1 { font-size: clamp(24px, 7.5vw, 36px); }
  .line-page-hero-logo { max-width: 240px; }
  .line-page-hero-stats { grid-template-columns: 1fr; }
  .lp-stat { padding: 12px 14px; }
  .lp-stat .lp-stat-value { font-size: 18px; }
  .lp-stat .lp-stat-label { font-size: 10px; }

  .line-page-products { padding: 32px 12px 50px; }
  .line-product-row { padding: 18px; gap: 14px; }
  .line-product-row .lpr-bag { height: 160px; padding: 14px; }
  .line-product-row .lpr-name { font-size: 19px; }
}

/* PRODUCT DETAIL PAGE responsive */
@media (max-width: 880px) {
  .pdp-hero { padding: 100px 24px 50px; }
  .pdp-breadcrumbs { margin-bottom: 28px; flex-wrap: wrap; }
  .pdp-hero-grid { gap: 28px; }
  .pdp-hero-info h1 { font-size: clamp(32px, 9vw, 56px); }
  .pdp-tagline { font-size: 14px; }
  .pdp-stage-row { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .pdp-meta-val { font-size: 13px; }
  .pdp-bag-stage { aspect-ratio: 1; }
  .pdp-details { padding: 60px 24px; }
  .pdp-twocol { grid-template-columns: 1fr; gap: 32px; }
  .pdp-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-section-title { font-size: 20px; flex-wrap: wrap; gap: 10px; }
  .pdp-section p, .pdp-section-lede { font-size: 14px; }
  .pdp-related { padding: 60px 24px; }
  .pdp-related-grid { grid-template-columns: 1fr; }
}

/* NOSOTROS responsive */
@media (max-width: 880px) {
  .ns-hero { padding: 120px 24px 60px; min-height: 70vh; }
  .ns-hero h1 { font-size: clamp(36px, 9vw, 64px); }
  .ns-hero p { font-size: 16px; margin-top: 24px; }
  .ns-manifesto { padding: 60px 24px; }
  .ns-manifesto blockquote { font-size: clamp(22px, 6vw, 36px); }
  .ns-mvv-grid { grid-template-columns: 1fr; }
  .mvv-card { padding: 32px 24px; }
  .mvv-card p { font-size: 18px; }
  .ns-timeline-grid { grid-template-columns: 1fr 1fr; }
  .ns-team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tl-card { padding: 28px 22px; }
  .tl-year { font-size: 36px; margin-bottom: 14px; }
}

@media (max-width: 540px) {
  .ns-timeline-grid { grid-template-columns: 1fr; }
  .ns-team-grid { grid-template-columns: 1fr; }
}

/* COMPARADOR responsive */
@media (max-width: 880px) {
  .cmp-hero { padding: 100px 24px 40px; }
  .cmp-hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .cmp-table-wrap { padding: 24px 16px; }
  .cmp-table-scroll { border-radius: 6px; }
  .cmp-table th, .cmp-table td { padding: 12px 14px; }
  .cmp-th { padding: 16px !important; }
  .cmp-th-bag { height: 100px; }
  .cmp-th h4 { font-size: 16px; }
  .cmp-th-label { width: 160px; min-width: 160px; }
  .cmp-action-bar { flex-direction: column; align-items: stretch; }
  .cmp-action-bar > div { width: 100%; }
  .cmp-action-bar .btn { flex: 1; justify-content: center; }
  .cmp-picker { max-width: 100%; max-height: 90vh; }
}

/* MARQUEE — pause and shorten gap on phones to avoid visual fatigue */
@media (max-width: 540px) {
  .marquee { padding: 20px 0; }
}

/* GLOBAL container guard — avoid horizontal scroll */
html, body { max-width: 100vw; overflow-x: hidden; }

/* =====================================================================
   SERVICIOS (advisory + AI tools)
   ===================================================================== */
.services {
  background: var(--ink-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 10% 10%, rgba(27,158,143,0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 90%, rgba(74,185,101,0.14), transparent 60%);
  pointer-events: none;
}
.services .display { color: white; }
.services .section-head p { color: var(--ink-300); }
.services .eyebrow { color: var(--tarpi-green); }

.service-block {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.service-block:last-child { margin-bottom: 0; }
.service-block.reverse .service-content { order: 2; }
.service-block.reverse .service-visual { order: 1; }

@media (max-width: 880px) {
  .service-block { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
  .service-block.reverse .service-content { order: 1; }
  .service-block.reverse .service-visual { order: 2; }
}

.service-block .service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tarpi-green);
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.service-block .service-num::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.service-block h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: white;
  text-wrap: balance;
}
.service-block .service-lede {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink-300);
  margin: 0 0 28px;
  max-width: 52ch;
}

/* Checklist for advisory block */
.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: white;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}
.service-checklist li:hover {
  padding-left: 8px;
}
.service-checklist li:last-child { border-bottom: 0; }
.service-checklist li .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(74,185,101,0.18);
  color: var(--tarpi-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-checklist li .check svg { width: 14px; height: 14px; stroke-width: 2.4; }
.service-checklist li strong {
  display: block;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}
.service-checklist li span {
  font-size: 13px;
  color: var(--ink-400);
  line-height: 1.45;
}

/* Advisory visual — photo composition */
.service-visual {
  position: relative;
}
.service-visual-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.service-visual-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.service-visual:hover .service-visual-photo img { transform: scale(1.04); }
.service-visual-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,42,30,0.5) 100%);
}

.service-visual-badge {
  position: absolute;
  z-index: 2;
  background: white;
  color: var(--ink-900);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}
.service-visual-badge.tl { top: 24px; left: -24px; }
.service-visual-badge.br { bottom: 24px; right: -24px; }
.service-visual-badge .badge-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--tarpi-green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-visual-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.service-visual-badge span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-500);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

@media (max-width: 880px) {
  .service-visual-badge.tl { top: 16px; left: 16px; max-width: 220px; }
  .service-visual-badge.br { bottom: 16px; right: 16px; max-width: 220px; }
}

/* AI Dashboard illustration */
.ai-dashboard {
  position: relative;
  background: linear-gradient(155deg, #1B2A24, #0E1814);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.ai-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.4;
}
.ai-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.ai-dash-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.ai-dash-title .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tarpi-green);
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(74,185,101,0.6);
}
.ai-dash-tabs { display: flex; gap: 4px; }
.ai-dash-tab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
}
.ai-dash-tab.active { background: var(--tarpi-green); color: white; }

.ai-dash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.ai-kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
}
.ai-kpi .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.ai-kpi .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.1;
  margin: 6px 0 2px;
}
.ai-kpi .delta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}
.ai-kpi .delta.up { color: var(--tarpi-green); }
.ai-kpi .delta.down { color: #F87171; }

.ai-dash-chart {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.ai-dash-chart-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  align-items: center;
}
.ai-dash-chart-head h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.ai-dash-chart-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
.ai-dash-chart svg {
  width: 100%;
  height: 80px;
  display: block;
}

.ai-dash-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(74,185,101,0.08);
  border: 1px solid rgba(74,185,101,0.18);
  border-radius: 8px;
  position: relative;
  z-index: 2;
}
.ai-dash-alert .alert-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--tarpi-green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-dash-alert .alert-text {
  font-size: 12px;
  color: white;
  line-height: 1.4;
}
.ai-dash-alert .alert-text strong { color: var(--tarpi-green); }

/* Features grid for AI tools */
.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}
@media (max-width: 980px) { .ai-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ai-features { grid-template-columns: 1fr; } }
.ai-feature {
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.ai-feature:hover {
  background: rgba(74,185,101,0.08);
  border-color: rgba(74,185,101,0.3);
  transform: translateY(-2px);
}
.ai-feature .icon {
  width: 28px;
  height: 28px;
  color: var(--tarpi-green);
  margin-bottom: 10px;
}
.ai-feature h5 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.ai-feature p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-400);
  line-height: 1.4;
}

/* Service CTA buttons (inside dark section) */
.services .btn-primary {
  background: white;
  color: var(--ink-900);
}
.services .btn-primary:hover { background: var(--bg-cream); }
.services .btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: white;
}
.services .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: white; }

/* Coming-soon pill (inline next to eyebrow) */
.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 10px 4px;
  background: rgba(74,185,101,0.15);
  border: 1px solid rgba(74,185,101,0.35);
  color: var(--tarpi-green);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.coming-soon-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tarpi-green);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Coming-soon overlay on the AI dashboard */
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(14,24,20,0.4), rgba(14,24,20,0.7));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 14px;
}
.coming-soon-overlay-card {
  background: rgba(255,255,255,0.96);
  color: var(--ink-900);
  border-radius: 12px;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5);
  position: relative;
  pointer-events: auto;
  transform: rotate(-3deg);
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-6px); }
}
.coming-soon-overlay-card .cs-pulse {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(74,185,101,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.coming-soon-overlay-card .cs-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--tarpi-green);
  animation: ringPulse 2s ease-out infinite;
}
.coming-soon-overlay-card .cs-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tarpi-green);
}
.coming-soon-overlay-card .cs-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.coming-soon-overlay-card .cs-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* =====================================================================
   PAGE LOADER + TRANSITIONS
   ===================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.page-loader::before,
.page-loader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-loader::before {
  width: 60vmin; height: 60vmin;
  background: radial-gradient(circle, rgba(74,185,101,0.18), transparent 60%);
  animation: loaderPulse 2.4s ease-in-out infinite;
}
.page-loader::after {
  width: 40vmin; height: 40vmin;
  background: radial-gradient(circle, rgba(27,158,143,0.14), transparent 60%);
  animation: loaderPulse 2.4s ease-in-out infinite reverse;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
}

.page-loader-logo {
  position: relative;
  z-index: 2;
  width: clamp(120px, 18vw, 200px);
  filter: brightness(0) invert(1) drop-shadow(0 4px 24px rgba(74, 185, 101, 0.3));
  animation: logoBreathe 2s ease-in-out infinite;
}
@keyframes logoBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

.page-loader-bar {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.page-loader-bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, var(--tarpi-teal), var(--tarpi-green));
  border-radius: 2px;
  animation: loaderBar 1.4s var(--ease-in-out) infinite;
}
@keyframes loaderBar {
  0% { left: -40%; }
  100% { left: 100%; }
}

.page-loader-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Page transition curtain — staggered vertical stripes */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  display: flex;
  overflow: hidden;
}
.curtain-stripe {
  flex: 1;
  background: var(--ink-900);
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.83, 0, 0.17, 1);
  transition-delay: calc(var(--i) * 60ms);
  position: relative;
}
/* Top edge gradient on each stripe for elegance */
.curtain-stripe::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tarpi-green), transparent);
  opacity: 0;
  transition: opacity 0.4s 0.4s;
}
.page-curtain.entering .curtain-stripe {
  transform: translateY(0);
}
.page-curtain.entering .curtain-stripe::before { opacity: 0.8; }
.page-curtain.leaving .curtain-stripe {
  transform: translateY(-100%);
  transition-delay: calc((var(--total) - var(--i) - 1) * 60ms);
}

/* Soft radial accent behind logo */
.curtain-accent {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vmin;
  height: 80vmin;
  transform: translate(-50%, -50%) scale(0.6);
  background: radial-gradient(circle, rgba(74,185,101,0.25) 0%, rgba(27,158,143,0.12) 30%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s 0.3s var(--ease-out), transform 0.8s 0.3s var(--ease-out);
}
.page-curtain.entering .curtain-accent {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.page-curtain-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(100px, 14vw, 160px);
  transform: translate(-50%, -50%) scale(0.7);
  filter: brightness(0) invert(1) drop-shadow(0 4px 24px rgba(74, 185, 101, 0.35));
  opacity: 0;
  transition: opacity 0.5s 0.32s var(--ease-out), transform 0.7s 0.28s var(--ease-out);
  z-index: 3;
}
.page-curtain.entering .page-curtain-logo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Brand tag below logo */
.page-curtain-tag {
  position: absolute;
  top: calc(50% + clamp(50px, 9vw, 80px));
  left: 50%;
  transform: translate(-50%, 12px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.5s 0.45s var(--ease-out), transform 0.7s 0.45s var(--ease-out);
  z-index: 3;
  white-space: nowrap;
}
.page-curtain.entering .page-curtain-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-curtain.leaving .curtain-accent,
.page-curtain.leaving .page-curtain-logo,
.page-curtain.leaving .page-curtain-tag {
  opacity: 0;
  transition-delay: 0s;
}

/* Page-entry animation — content gently rises after loader hides */
body.loaded section,
body.loaded .nav,
body.loaded .marquee,
body.loaded .scroll-progress {
  animation: pageEnter 0.7s var(--ease-out) backwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   BLOG TARPI — Estilos
   ========================================================================== */

/* ── Barra de progreso de lectura ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--tarpi-green), var(--tarpi-teal));
  z-index: 9999;
  transition: width 80ms linear;
  border-radius: 0 2px 2px 0;
}

/* ── Blog Hero (archive) ── */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 160px) var(--gutter) clamp(60px, 8vw, 100px);
  background: linear-gradient(160deg, var(--rumax-bg) 0%, #0e3028 100%);
  text-align: center;
}
.blog-hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.blog-hero__inner .eyebrow { color: var(--tarpi-green); }
.blog-hero__inner .display { color: #fff; }
.blog-hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.65;
}
.blog-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blog-hero__deco-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(74,185,101,.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.blog-hero__deco-ring--2 {
  width: 900px;
  height: 900px;
  border-color: rgba(74,185,101,.05);
}

/* ── Filtro por categoría ── */
.blog-filter {
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--ink-200);
  background: var(--bg-off);
  position: sticky;
  top: 64px;
  z-index: 80;
}
.blog-filter__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.blog-filter__inner::-webkit-scrollbar { display: none; }
.blog-filter__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s, color .15s;
}
.blog-filter__pill:hover { border-color: var(--tarpi-green); color: var(--tarpi-green-deep); }
.blog-filter__pill.is-active {
  background: var(--tarpi-leaf);
  border-color: var(--tarpi-leaf);
  color: #fff;
}
.blog-filter__count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}
.blog-filter__pill.is-active .blog-filter__count { background: rgba(255,255,255,.2); }

/* ── Blog grid ── */
.blog-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 60px) var(--gutter) clamp(60px, 7vw, 80px);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-grid__item--featured {
  grid-column: 1 / -1;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid__item--featured { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Post card ── */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover {
  box-shadow: 0 12px 36px rgba(15,77,58,.1);
  transform: translateY(-3px);
}
.post-card__image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}
.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.post-card:hover .post-card__image { transform: scale(1.04); }
.post-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,30,22,.35), transparent 50%);
}
.post-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.post-card__badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.post-card__badge--rumax  { background: rgba(47,142,71,.1);  color: var(--rumax-fg); }
.post-card__badge--ovomax { background: rgba(217,164,65,.12); color: var(--ovomax-fg); }
.post-card__badge--cat    { background: var(--bg-cream); color: var(--ink-600); }
.post-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  letter-spacing: -.02em;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--tarpi-leaf); }
.post-card__excerpt {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-400);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
}
.post-card__date,
.post-card__read-time {
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-card__cta {
  margin-left: auto;
  font-size: 12.5px;
  padding: 6px 14px;
}

/* Featured card */
.post-card--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
}
.post-card--featured .post-card__image-wrap {
  aspect-ratio: unset;
  min-height: 320px;
}
.post-card--featured .post-card__body {
  padding: 32px 36px;
  justify-content: center;
  gap: 14px;
}
.post-card--featured .post-card__title { font-size: clamp(22px, 2.4vw, 28px); }
.post-card--featured .post-card__excerpt { font-size: 15px; }
@media (max-width: 768px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__image-wrap { min-height: 220px; }
  .post-card--featured .post-card__body { padding: 22px; }
}

/* ── Blog pagination ── */
.blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.blog-pagination .page-numbers {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--ink-200);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.blog-pagination .page-numbers li a:hover { border-color: var(--tarpi-green); color: var(--tarpi-green); }
.blog-pagination .page-numbers li span.current {
  background: var(--tarpi-leaf);
  border-color: var(--tarpi-leaf);
  color: #fff;
}

/* ── Blog CTA ── */
.blog-cta {
  background: linear-gradient(160deg, var(--rumax-tint) 0%, var(--bg-cream) 100%);
  border-top: 1px solid var(--ink-100);
}
.blog-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.blog-cta__inner .display { margin: 0; }
.blog-cta__inner p { font-size: 16px; color: var(--ink-600); max-width: 480px; }
.blog-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── SINGLE POST ── */
.post-single {
  max-width: 100%;
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.post-breadcrumb a { color: var(--ink-600); text-decoration: none; transition: color .15s; }
.post-breadcrumb a:hover { color: var(--tarpi-green); }
.post-breadcrumb span { color: var(--ink-600); font-weight: 600; }
.post-breadcrumb svg { color: var(--ink-300); flex-shrink: 0; }

/* Post header */
.post-header {
  background: linear-gradient(160deg, var(--rumax-bg) 0%, #0c2e22 100%);
  padding: clamp(80px, 10vw, 120px) var(--gutter) clamp(48px, 6vw, 72px);
  color: #fff;
}
.post-header__inner {
  max-width: 820px;
  margin: 0 auto;
}
.post-header .eyebrow { color: var(--tarpi-green); }
.post-header .post-breadcrumb { margin-bottom: 28px; }
.post-header .post-breadcrumb a { color: rgba(255,255,255,.55); }
.post-header .post-breadcrumb a:hover { color: rgba(255,255,255,.9); }
.post-header .post-breadcrumb span { color: rgba(255,255,255,.8); }
.post-header .post-breadcrumb svg { color: rgba(255,255,255,.3); }
.post-header__top { margin-bottom: 16px; display: flex; gap: 8px; }

.post-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.post-badge--rumax  { background: rgba(74,185,101,.18); color: #7ae896; }
.post-badge--ovomax { background: rgba(217,164,65,.2);  color: #f2c566; }
.post-badge--cat    { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }

.post-header__title {
  color: #fff;
  margin-bottom: 28px;
}
.post-header__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.post-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
}
.post-header__author { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9); }
.post-header__details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.post-header__details .sep { opacity: .4; }
.post-header__author-info { display: flex; flex-direction: column; gap: 3px; }
.post-header__share { display: flex; gap: 8px; margin-left: auto; }

.post-share__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.post-share__btn:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }

/* Imagen destacada */
.post-featured-image {
  background: #0c1f18;
  max-height: 520px;
  overflow: hidden;
}
.post-featured-image__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.post-featured-image__img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  opacity: .9;
}

/* Content wrap */
.post-content-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .post-content-wrap { grid-template-columns: 1fr; }
  .post-toc { display: none; }
}

/* TOC */
.post-toc {
  position: sticky;
  top: 100px;
  font-size: 13px;
}
.post-toc__inner {
  background: var(--bg-cream);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 18px;
}
.post-toc__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  margin-bottom: 12px;
}
.post-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-toc__item a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink-600);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: background .14s, color .14s;
}
.post-toc__item a:hover { background: var(--ink-100); color: var(--ink-900); }
.post-toc__item--h3 { padding-left: 12px; }
.post-toc__item--h3 a { font-size: 12.5px; color: var(--ink-400); }

/* Post content typography */
.post-content {
  max-width: 750px;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.78;
  color: var(--ink-800);
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -.03em;
  margin: 2.2em 0 .7em;
  line-height: 1.25;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 700;
  color: var(--ink-900);
  margin: 1.8em 0 .6em;
}
.post-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-800);
  margin: 1.5em 0 .5em;
}
.post-content p { margin: 0 0 1.2em; }
.post-content strong { font-weight: 700; color: var(--ink-900); }
.post-content em { font-style: italic; }
.post-content a { color: var(--tarpi-teal); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--tarpi-leaf); }
.post-content ul, .post-content ol {
  margin: 0 0 1.2em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content li { line-height: 1.65; }
.post-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--rumax-tint), var(--bg-cream));
  border-left: 4px solid var(--tarpi-green);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-size: 1.15em;
  color: var(--tarpi-leaf);
  font-style: italic;
}
.post-content blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--ink-500); }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.5em 0;
}
.post-content figcaption { font-size: 13px; color: var(--ink-400); text-align: center; margin-top: 8px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; }
.post-content th { background: var(--tarpi-leaf); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.post-content td { padding: 10px 14px; border-bottom: 1px solid var(--ink-200); }
.post-content tr:nth-child(even) td { background: var(--bg-cream); }
.post-content code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-cream); padding: 2px 6px; border-radius: 5px; color: var(--tarpi-leaf); }
.post-content pre { background: var(--ink-900); color: #e8f5e9; padding: 20px; border-radius: 10px; overflow-x: auto; font-size: 14px; margin: 1.5em 0; }

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-200);
  font-size: 13px;
  color: var(--ink-400);
}
.post-tag {
  padding: 4px 12px;
  background: var(--bg-cream);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  color: var(--ink-600);
  text-decoration: none;
  font-size: 12.5px;
  transition: border-color .14s, color .14s;
}
.post-tag:hover { border-color: var(--tarpi-green); color: var(--tarpi-green); }

/* Share bar al final */
.post-share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--bg-cream);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  flex-wrap: wrap;
}
.post-share-bar > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  flex-shrink: 0;
}
.post-share-bar__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Reset completo para los botones con label — anula el estilo hero de .post-share__btn */
.post-share__btn--labeled {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: auto !important;          /* anula width:34px del base */
  height: auto !important;         /* anula height:34px del base */
  padding: 8px 16px !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--ink-200) !important;
  background: var(--white) !important;
  color: var(--ink-700) !important;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.post-share__btn--labeled:hover {
  border-color: var(--tarpi-green) !important;
  color: var(--tarpi-leaf) !important;
  background: rgba(74,185,101,.06) !important;
  box-shadow: 0 3px 10px rgba(47,142,71,.12);
}
.post-share__btn--wa { border-color: rgba(37,211,102,.35) !important; color: #1a9e4e !important; }
.post-share__btn--wa:hover { border-color: #25d366 !important; background: rgba(37,211,102,.08) !important; color: #18883f !important; }

/* Navegación prev/next */
.post-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-800);
  transition: border-color .15s, box-shadow .15s;
}
.post-nav__item:hover { border-color: var(--tarpi-green); box-shadow: 0 6px 20px rgba(15,77,58,.08); }
.post-nav__item--next { text-align: right; align-items: flex-end; }
.post-nav__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--tarpi-green);
}
.post-nav__item--next .post-nav__label { flex-direction: row-reverse; }
.post-nav__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Posts relacionados */
.related-posts {
  background: var(--bg-cream);
  padding: clamp(48px, 6vw, 72px) var(--gutter);
}
.related-posts__header {
  max-width: var(--container);
  margin: 0 auto 36px;
}
.related-posts__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-posts__footer {
  max-width: var(--container);
  margin: 36px auto 0;
  text-align: center;
}
@media (max-width: 1024px) { .related-posts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .related-posts__grid { grid-template-columns: 1fr; } }

/* Blog empty state */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--ink-400);
}

/* Responsive post content wrap single column */
@media (max-width: 1024px) {
  .post-toc { display: none; }
  .post-content-wrap { grid-template-columns: 1fr; }
}


/* ==========================================================================
   BLOG HOME (home.php) — Diseño editorial TARPI v2
   ========================================================================== */

/* ── Hero ── */
.bh-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a2e1e;
  padding: clamp(100px,14vw,160px) var(--gutter) clamp(72px,9vw,110px);
  text-align: center;
}

.bh-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bh-hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .6;
}

.bh-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.bh-hero__glow--a {
  width: 500px; height: 500px;
  top: -100px; left: -80px;
  background: radial-gradient(circle, rgba(74,185,101,.18), transparent 70%);
}
.bh-hero__glow--b {
  width: 400px; height: 400px;
  bottom: -80px; right: -60px;
  background: radial-gradient(circle, rgba(27,158,143,.14), transparent 70%);
}

.bh-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.bh-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}

.bh-hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tarpi-green);
  box-shadow: 0 0 0 3px rgba(74,185,101,.25);
  animation: bh-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes bh-dot-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,185,101,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(74,185,101,.08); }
}

.bh-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.bh-hero__italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  background: linear-gradient(135deg, #7ae896, var(--tarpi-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bh-hero__sub {
  font-size: clamp(15px,1.5vw,17px);
  color: rgba(255,255,255,.58);
  max-width: 520px;
  margin: 0 auto 16px;
  line-height: 1.65;
}

.bh-hero__count {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0;
}

.bh-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.25);
  animation: bh-scroll-bounce 2s ease-in-out infinite;
}
.bh-hero__scroll svg { width: 20px; height: 20px; }
@keyframes bh-scroll-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Filtro ── */
.bh-filter {
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  position: sticky;
  top: 64px;
  z-index: 80;
  box-shadow: 0 2px 12px rgba(15,77,58,.06);
}

.bh-filter__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 56px;
}
.bh-filter__inner::-webkit-scrollbar { display: none; }

.bh-filter__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-400);
  flex-shrink: 0;
  margin-right: 4px;
}

.bh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-200);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.bh-pill:hover { border-color: var(--tarpi-green); color: var(--tarpi-leaf); }
.bh-pill.is-active {
  background: var(--tarpi-leaf);
  border-color: var(--tarpi-leaf);
  color: #fff;
  box-shadow: 0 3px 10px rgba(15,77,58,.22);
}

.bh-pill__count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  min-width: 18px;
  text-align: center;
}
.bh-pill.is-active .bh-pill__count { background: rgba(255,255,255,.2); }

/* ── Badges ── */
.bh-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.bh-badge--rumax  { background: rgba(47,142,71,.12); color: #2a7a3e; }
.bh-badge--ovomax { background: rgba(185,133,31,.13); color: #8a5e10; }
.bh-badge--cat    { background: var(--bg-cream); color: var(--ink-600); border: 1px solid var(--ink-200); }

/* ── Main ── */
.bh-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(44px,5vw,64px) var(--gutter) clamp(64px,7vw,96px);
}

/* ── Post destacado ── */
.bh-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(15,77,58,.07);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.bh-featured.bh-card--visible {
  opacity: 1;
  transform: translateY(0);
}
.bh-featured:hover {
  box-shadow: 0 12px 40px rgba(15,77,58,.13);
}

.bh-featured__image-link {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.bh-featured__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.bh-featured:hover .bh-featured__image { transform: scale(1.04); }
.bh-featured__image-ph {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #0a2e1e, #134a30);
  display: grid;
  place-items: center;
}
.bh-featured__image-ph svg { width: 80px; height: 80px; }
.bh-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,.04));
}

.bh-featured__body {
  padding: clamp(28px,3vw,44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.bh-featured__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bh-featured__new {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tarpi-teal);
  background: rgba(27,158,143,.1);
  padding: 3px 9px;
  border-radius: 999px;
}

.bh-featured__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0;
  flex: 1;
}
.bh-featured__title a { color: inherit; text-decoration: none; }
.bh-featured__title a:hover { color: var(--tarpi-leaf); }

.bh-featured__excerpt {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.65;
  margin: 0;
}

.bh-featured__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-100);
  flex-wrap: wrap;
}

.bh-featured__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.bh-featured__sep { color: var(--ink-200); }

.bh-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tarpi-leaf);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, gap .2s;
}
.bh-featured__cta:hover { border-bottom-color: var(--tarpi-green); gap: 12px; }
.bh-featured__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Grid de cards ── */
.bh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bh-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease calc(var(--i, 0) * 80ms),
              transform .5s ease calc(var(--i, 0) * 80ms),
              box-shadow .2s ease;
}
.bh-card.bh-card--visible {
  opacity: 1;
  transform: translateY(0);
}
.bh-card:hover {
  box-shadow: 0 10px 32px rgba(15,77,58,.1);
  border-color: rgba(47,142,71,.2);
}

.bh-card__img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  background: linear-gradient(135deg, #0a2e1e, #134a30);
}
.bh-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.bh-card:hover .bh-card__img { transform: scale(1.05); }
.bh-card__img-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.bh-card__img-ph svg { width: 48px; height: 48px; }
.bh-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,30,20,.25), transparent 50%);
  transition: opacity .3s;
}
.bh-card:hover .bh-card__img-overlay { opacity: .5; }

.bh-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bh-card__badges { display: flex; gap: 7px; flex-wrap: wrap; }

.bh-card__title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}
.bh-card__title a {
  color: inherit; text-decoration: none;
  background: linear-gradient(var(--tarpi-leaf), var(--tarpi-leaf)) no-repeat left bottom / 0% 1.5px;
  transition: background-size .3s ease;
  padding-bottom: 1px;
}
.bh-card:hover .bh-card__title a { background-size: 100% 1.5px; }

.bh-card__excerpt {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bh-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
  margin-top: auto;
}

.bh-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-400);
}

.bh-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tarpi-leaf);
  text-decoration: none;
  transition: gap .2s;
}
.bh-card:hover .bh-card__link { gap: 8px; }

/* ── Paginación ── */
.bh-pagination {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}
.bh-pagination .page-numbers { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bh-pagination .page-numbers li a,
.bh-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 10px; border: 1.5px solid var(--ink-200);
  font-size: 13.5px; font-weight: 600; color: var(--ink-600);
  text-decoration: none; transition: border-color .15s, background .15s, color .15s;
}
.bh-pagination .page-numbers li a:hover { border-color: var(--tarpi-green); color: var(--tarpi-leaf); }
.bh-pagination .page-numbers li span.current {
  background: var(--tarpi-leaf); border-color: var(--tarpi-leaf); color: #fff;
}

/* ── Estado vacío ── */
.bh-empty {
  text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.bh-empty__icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--bg-cream); border: 1.5px solid var(--ink-200);
  display: grid; place-items: center; color: var(--ink-300);
}
.bh-empty__icon svg { width: 32px; height: 32px; }
.bh-empty h2 { font-size: 22px; font-weight: 700; color: var(--ink-600); }
.bh-empty p  { color: var(--ink-400); font-size: 15px; }

/* ── CTA al final ── */
.bh-cta {
  background: linear-gradient(160deg, var(--rumax-bg) 0%, #0e2e1f 100%);
  padding: clamp(56px,7vw,88px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.bh-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 100% 50%, rgba(74,185,101,.1), transparent);
  pointer-events: none;
}
.bh-cta__wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px,5vw,64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.bh-cta__left .eyebrow { color: var(--tarpi-green); }
.bh-cta__left .display { color: #fff; }
.bh-cta__left .serif-italic { color: #7ae896; -webkit-text-fill-color: #7ae896; }
.bh-cta__right p { font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.65; margin: 0 0 24px; }
.bh-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bh-featured { grid-template-columns: 1fr; }
  .bh-featured__image-link { min-height: 280px; }
  .bh-grid { grid-template-columns: repeat(2,1fr); }
  .bh-cta__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bh-grid { grid-template-columns: 1fr; }
  .bh-featured__body { padding: 22px; }
  .bh-cta__wrap { gap: 24px; }
}


/* ==========================================================================
   PRODUCTO — Galería, Video, Formatos y Imagen real en catálogo
   ========================================================================== */

/* ── Imagen real en card del catálogo ── */
.product-card.has-photo .product-bag { background: transparent; }

.product-photo {
  position: relative;
  width: 100%;
  height: 100%;          /* hereda los 200px del .product-bag */
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform .35s ease;
  display: block;
}
.product-card:hover .product-photo img { transform: scale(1.06); }

/* Overlay nombre + categoría igual que el FeedBag */
.product-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 10px;
  background: linear-gradient(to top, rgba(15,30,20,.72) 0%, transparent 100%);
  border-radius: 0 0 10px 10px;
  text-align: center;
  pointer-events: none;
}
.product-photo-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.product-photo-cat {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* ── Imagen real en ProductDetail drawer ── */
.product-detail-real-img {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.product-detail-real-img img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.product-detail-img-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  text-align: center;
}
.product-detail-img-label span:first-child {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-800);
}

/* ── Imagen real en hero PDP ── */
.pdp-bag-wrap.has-real-image .pdp-real-img-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pdp-real-img-hero img {
  /* Se adapta al tamaño real de la imagen dentro del stage */
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.45));
  transition: transform .4s ease, filter .4s ease;
}
.pdp-bag-wrap.has-real-image:hover .pdp-real-img-hero img {
  transform: scale(1.04);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.5));
}

/* Miniaturas en el hero */
.pdp-hero-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pdp-hero-thumb {
  width: 52px; height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: border-color .15s;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
}
.pdp-hero-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pdp-hero-thumb:hover { border-color: rgba(255,255,255,.6); }
.pdp-hero-thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

/* ── Galería en detalle ── */
.pdp-gallery {
  margin-bottom: 40px;
}
.pdp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 10px;
}
.pdp-gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--ink-200);
  background: var(--bg-cream);
  transition: border-color .15s, transform .15s;
  padding: 0;
}
.pdp-gallery-thumb:hover { border-color: var(--tarpi-green); transform: scale(1.02); }
.pdp-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .3s ease;
}
.pdp-gallery-thumb:hover img { transform: scale(1.06); }
.pdp-gallery-thumb--main { grid-column: span 2; grid-row: span 2; }
.pdp-gallery-count {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(15,77,58,.85);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .pdp-gallery-grid { grid-template-columns: repeat(2,1fr); }
  .pdp-gallery-thumb--main { grid-column: 1; grid-row: 1; }
}

/* ── Lightbox ── */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pdp-lb-in .2s ease;
}
@keyframes pdp-lb-in { from { opacity: 0; } to { opacity: 1; } }
.pdp-lightbox-img-wrap {
  max-width: min(90vw, 900px);
  max-height: 88vh;
  border-radius: 12px;
  overflow: hidden;
}
.pdp-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
}
.pdp-lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: rgba(255,255,255,.7);
  font-size: 28px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.pdp-lightbox-close:hover { background: rgba(255,255,255,.2); color: #fff; }
.pdp-lightbox-prev,
.pdp-lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.8);
  font-size: 36px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  width: 52px; height: 52px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pdp-lightbox-prev { left: 20px; }
.pdp-lightbox-next { right: 20px; }
.pdp-lightbox-prev:hover, .pdp-lightbox-next:hover { background: rgba(255,255,255,.2); }
.pdp-lightbox-counter {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.4);
  padding: 4px 12px; border-radius: 999px;
}

/* ── Video embed ── */
.pdp-video-section .pdp-section-title { display: flex; align-items: center; gap: 12px; }
.pdp-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.pdp-video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Formatos de presentación ── */
.pdp-formats .pdp-section-title { display: flex; align-items: center; gap: 12px; }
.pdp-formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.pdp-format-card {
  background: var(--bg-cream);
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.pdp-format-card:hover { border-color: var(--tarpi-green); box-shadow: 0 4px 16px rgba(15,77,58,.08); }
.pdp-format-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(74,185,101,.15), rgba(27,158,143,.1));
  display: grid; place-items: center;
  color: var(--tarpi-leaf);
  flex-shrink: 0;
}
.pdp-format-name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.pdp-format-weight { font-size: 13px; color: var(--ink-600); margin-top: 2px; }
.pdp-format-sku { font-size: 11px; color: var(--ink-400); font-family: var(--font-mono); margin-top: 3px; }
.pdp-format-stock {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
}

/* Pills de formatos en el hero */
.pdp-format-pills {
  display: flex; gap: 7px; flex-wrap: wrap;
  margin-top: 12px;
}
.pdp-format-pill {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(74,185,101,.15);
  color: #c8f5d0;
  border: 1px solid rgba(74,185,101,.25);
}

/* Imagen real en productos relacionados */
.featured-real-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255,255,255,.06);
}
.featured-real-img img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform .3s ease;
}
.featured-card:hover .featured-real-img img { transform: scale(1.05); }

/* ==========================================================================
   BLOG — Corrección de tamaños de SVG
   ========================================================================== */

/* Forzar tamaños explícitos en todos los SVG del blog */
.bh-hero__scroll svg         { width: 20px !important; height: 20px !important; }
.bh-featured__cta svg        { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.bh-card__link svg           { width: 14px !important; height: 14px !important; flex-shrink: 0; }
.bh-pill svg                 { width: 13px !important; height: 13px !important; }
.bh-empty__icon svg          { width: 32px !important; height: 32px !important; }
.bh-cta__btns .btn svg       { width: 16px !important; height: 16px !important; }
.post-card__meta svg         { width: 13px !important; height: 13px !important; flex-shrink: 0; }
.post-card__cta svg          { width: 14px !important; height: 14px !important; }
.post-share__btn svg         { width: 16px !important; height: 16px !important; }
.post-nav__label svg         { width: 14px !important; height: 14px !important; flex-shrink: 0; }
.post-breadcrumb svg         { width: 12px !important; height: 12px !important; flex-shrink: 0; }
.post-tags svg               { width: 14px !important; height: 14px !important; flex-shrink: 0; }
.post-toc__toggle svg        { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.post-share__btn--labeled svg { width: 15px !important; height: 15px !important; flex-shrink: 0 !important; }
.bh-hero__deco-ring          { pointer-events: none; }

/* Evitar que el CSS global de section afecte las secciones del blog */
.bh-hero, .bh-filter, .bh-main, .bh-cta { padding-top: revert; padding-bottom: revert; }


/* ==========================================================================
   PRODUCTO — Descripción extendida, beneficios, ficha técnica
   ========================================================================== */

/* ── Certificaciones en el hero ── */
.pdp-cert-strip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  line-height: 1.45;
  margin-top: 4px;
}
.pdp-cert-strip svg { flex-shrink: 0; margin-top: 1px; opacity: .7; }

/* ── Botón ficha en hero ── */
.pdp-sheet-hero-btn svg { flex-shrink: 0; }

/* ── Sección: Descripción + Beneficios ── */
.pdp-overview {
  background: var(--white);
  padding: clamp(40px,5vw,64px) var(--gutter);
  border-bottom: 1px solid var(--ink-100);
}
.pdp-overview__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,4vw,56px);
  align-items: start;
}
@media (max-width: 860px) { .pdp-overview__inner { grid-template-columns: 1fr; } }

/* Texto de marketing */
.pdp-marketing-text {
  font-size: clamp(15px,1.4vw,17px);
  line-height: 1.75;
  color: var(--ink-700);
}
.pdp-marketing-text p { margin: 0 0 1em; }
.pdp-marketing-text p:last-child { margin-bottom: 0; }
.pdp-marketing-text strong { color: var(--ink-900); font-weight: 700; }
.pdp-marketing-text h2, .pdp-marketing-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
  margin: 1.2em 0 .5em;
}
.pdp-marketing-text ul, .pdp-marketing-text ol {
  margin: .8em 0;
  padding-left: 1.4em;
}
.pdp-marketing-text li { margin-bottom: .35em; }

/* Beneficios */
.pdp-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pdp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-cream);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.pdp-benefit:hover {
  border-color: var(--tarpi-green);
  box-shadow: 0 3px 12px rgba(47,142,71,.08);
}
.pdp-benefit__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: var(--white);
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-200);
}
.pdp-benefit__content { flex: 1; }
.pdp-benefit__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 4px;
}
.pdp-benefit__desc {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0;
}

/* ── Guía de aplicación ── */
.pdp-application-guide {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 22px 26px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-700);
}
.pdp-application-guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
}
.pdp-application-guide th {
  background: var(--tarpi-leaf);
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pdp-application-guide td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--ink-200);
}
.pdp-application-guide tr:nth-child(even) td { background: var(--bg-cream); }
.pdp-application-guide tr:last-child td { border-bottom: none; }
.pdp-application-guide p { margin: 0 0 .8em; }
.pdp-application-guide p:last-child { margin-bottom: 0; }
.pdp-application-guide ul, .pdp-application-guide ol {
  margin: .5em 0; padding-left: 1.4em;
}
.pdp-application-guide li { margin-bottom: .3em; }
.pdp-application-guide strong { color: var(--ink-900); }

/* ── Ficha técnica — download card ── */
.pdp-sheet-section {
  background: linear-gradient(135deg, var(--tarpi-leaf) 0%, #1a6644 100%);
  padding: clamp(24px,3vw,36px) var(--gutter);
}
.pdp-sheet-card {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pdp-sheet-card__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pdp-sheet-card__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.pdp-sheet-card__info { display: flex; flex-direction: column; gap: 3px; }
.pdp-sheet-card__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.pdp-sheet-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0;
}
.pdp-sheet-card__size { font-size: 12px; color: rgba(255,255,255,.5); margin: 0; }
.pdp-sheet-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  background: #fff;
  color: var(--tarpi-leaf);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.pdp-sheet-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

@media (max-width: 640px) {
  .pdp-sheet-card { flex-direction: column; align-items: flex-start; }
  .pdp-sheet-card__btn { width: 100%; justify-content: center; }
  .pdp-overview__inner { grid-template-columns: 1fr; }
}


/* ── Estado vacío de formatos ── */
.pdp-formats-empty {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-cream);
  border: 1.5px dashed var(--ink-300);
  border-radius: 14px;
}
.pdp-formats-empty__icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  display: grid;
  place-items: center;
  color: var(--ink-300);
  flex-shrink: 0;
}
.pdp-formats-empty__body { display: flex; flex-direction: column; gap: 6px; }
.pdp-formats-empty__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-600);
  margin: 0;
}
.pdp-formats-empty__sub {
  font-size: 13.5px;
  color: var(--ink-400);
  margin: 0;
  line-height: 1.5;
}
.pdp-formats-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1a9e4e;
  text-decoration: none;
  transition: color .15s;
}
.pdp-formats-empty__cta:hover { color: #18883f; }
@media (max-width: 480px) {
  .pdp-formats-empty { flex-direction: column; text-align: center; align-items: center; }
}

/* ── Lightbox: garantizar que body:overflow=hidden funcione ── */
/* Clase helper que puede usarse desde CSS si hace falta */
body.pdp-lightbox-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* Asegura que el lightbox siempre esté sobre TODO (chatbot incluido) */
.pdp-lightbox {
  z-index: 999999 !important;
  overscroll-behavior: none;
  touch-action: none;
}


/* ==========================================================================
   ANÁLISIS NUTRICIONAL v3 — Grid con números grandes + barra proporcional
   ========================================================================== */
.pdp-specs-grid-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  background: var(--ink-200);
  border: 1.5px solid var(--ink-200);
  border-radius: 14px;
  overflow: hidden;
  gap: 1px;
}

.pdp-spec-v3 {
  background: var(--white);
  padding: 22px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  transition: background .18s;
  position: relative;
}
.pdp-spec-v3:hover { background: var(--bg-cream); }

.pdp-spec-v3__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
  line-height: 1.3;
  min-height: 2.6em;      /* mantiene altura uniforme en etiquetas largas */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-spec-v3__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink-900);
  line-height: 1;
}
.pdp-spec-v3__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 400;
  letter-spacing: .02em;
}

/* Barra proporcional — tenue, en la base */
.pdp-spec-v3__bar {
  width: 70%;
  height: 3px;
  background: var(--ink-100);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.pdp-spec-v3__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tarpi-teal-deep), var(--tarpi-green));
  border-radius: 2px;
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}

/* Colores de acento según línea */
.pdp-hero.rumax ~ .pdp-details-wrap .pdp-spec-v3__fill,
.pdp-hero.rumax ~ div .pdp-spec-v3__fill {
  background: linear-gradient(90deg, #2f8e47, #5dc97e);
}
.pdp-hero.ovomax ~ .pdp-details-wrap .pdp-spec-v3__fill,
.pdp-hero.ovomax ~ div .pdp-spec-v3__fill {
  background: linear-gradient(90deg, #b9851f, #f2c566);
}

@media (max-width: 640px) {
  .pdp-specs-grid-v3 { grid-template-columns: repeat(3, 1fr); }
  .pdp-spec-v3__value { font-size: 20px; }
}
@media (max-width: 380px) {
  .pdp-specs-grid-v3 { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   404 — Página no encontrada
   ===================================================================== */

/* --- Keyframes --- */
@keyframes nfp-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes nfp-seed-rise {
  0%   { transform: translateY(0) translateX(0) scale(1);   opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-80vh) translateX(calc((var(--i, 0) % 3 - 1) * 40px)) scale(0.3); opacity: 0; }
}
@keyframes nfp-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nfp-pulse-glow {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.32; }
}

/* --- Layout --- */
.nfp {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #071610;
  color: #FFFFFF;

  /* Grid blueprint sutil */
  background-image:
    linear-gradient(rgba(27, 158, 143, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 158, 143, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(27, 158, 143, 0.09) 0%, transparent 70%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

/* --- Capas de atmósfera --- */
.nfp-bg { position: absolute; inset: 0; pointer-events: none; }

.nfp-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: nfp-pulse-glow 6s ease-in-out infinite;
}
.nfp-glow--a {
  width: 600px; height: 600px;
  top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(27,158,143,0.18), transparent 70%);
  animation-delay: 0s;
}
.nfp-glow--b {
  width: 500px; height: 500px;
  bottom: -5%; right: -5%;
  background: radial-gradient(circle, rgba(74,185,101,0.12), transparent 70%);
  animation-delay: -3s;
}

/* --- Partículas/semillas --- */
.nfp-seeds { position: absolute; inset: 0; }
.nfp-seed {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #4AB965;
  bottom: 0;
  left: calc(var(--i) * 7.14%);
  animation: nfp-seed-rise calc(8s + var(--i) * 0.7s) linear infinite;
  animation-delay: calc(var(--i) * -0.9s);
  opacity: 0;
}
.nfp-seed:nth-child(even) { background: #1B9E8F; width: 2px; height: 2px; }

/* --- Watermark gigante --- */
.nfp-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(200px, 36vw, 520px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(74, 185, 101, 0.12);
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* --- Cuerpo del contenido --- */
.nfp-body {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  padding: clamp(120px, 14vw, 180px) var(--gutter) clamp(80px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: nfp-fadein 0.7s var(--ease-out) both;
}

/* --- Isotipo flotante --- */
.nfp-logo-wrap {
  width: 56px;
  animation: nfp-float 5s ease-in-out infinite;
}
.nfp-logo { width: 100%; height: auto; opacity: 0.55; filter: brightness(1.4); }

/* --- Eyebrow con pill --- */
.nfp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6CDFC9;     /* contraste ~5.8:1 sobre #071610 */
  margin: 0;
}
.nfp-eyebrow-pill {
  background: rgba(28, 185, 157, 0.18);
  border: 1px solid rgba(28, 185, 157, 0.4);
  color: #3DDDCA;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
}

/* --- Heading principal --- */
.nfp-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #FFFFFF;     /* 21:1 — máximo contraste */
  margin: 0;
}
.nfp-heading em {
  font-style: normal;
  background: linear-gradient(120deg, #20D9C5 0%, #5DE87A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Lede --- */
.nfp-lede {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: #A2BFB3;   /* ~4.8:1 sobre #071610 */
  margin: 0;
}

/* --- Botones de acción --- */
.nfp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.nfp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.nfp-btn--primary {
  background: linear-gradient(135deg, #1B9E8F, #2F8E47);
  color: #FFFFFF;   /* blanco puro sobre gradiente oscuro */
  border: none;
}
.nfp-btn--primary:hover {
  background: linear-gradient(135deg, #22B8A7, #38A857);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(27, 158, 143, 0.5);
  color: #FFFFFF;
}

.nfp-btn--ghost {
  background: transparent;
  color: #C8E0D6;   /* ~7.2:1 sobre #071610 */
  border: 1px solid rgba(200, 224, 214, 0.3);
}
.nfp-btn--ghost:hover {
  background: rgba(200, 224, 214, 0.08);
  border-color: rgba(200, 224, 214, 0.6);
  color: #FFFFFF;
}

/* --- Nav de accesos rápidos --- */
.nfp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nfp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #D6EBE2;   /* ~9.8:1 sobre #071610 */
  transition: background 0.18s, color 0.18s;
}
.nfp-nav-item:hover {
  background: rgba(27, 158, 143, 0.12);
  color: #FFFFFF;
}
.nfp-nav-item:hover svg { transform: translateX(4px); color: #3DDDCA; }

.nfp-nav-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  color: #D6EBE2;
}
.nfp-nav-item--rumax  .nfp-nav-mark { background: #0E2A1E; color: #5DC97E; }
.nfp-nav-item--ovomax .nfp-nav-mark { background: #2B1E12; color: #F2C566; }

.nfp-nav-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #D6EBE2;
}
.nfp-nav-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: #6FA082;   /* ~3.2:1 — texto secundario pequeño */
  margin-top: 1px;
  letter-spacing: 0.02em;
}

.nfp-nav-item svg {
  color: #4A7060;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .nfp-watermark { font-size: 52vw; }
  .nfp-glow--a { width: 300px; height: 300px; }
  .nfp-glow--b { width: 250px; height: 250px; }
  .nfp-actions { flex-direction: column; }
  .nfp-btn { justify-content: center; }
  .nfp-body { gap: 22px; }
  .nfp-heading { font-size: clamp(36px, 9vw, 52px); }
}
