/* ===================================================================
   THE BEST PEPTIDES — app.css
   Single stylesheet: base → layout → components → pages
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
  --teal:        #46b0a9;
  --navy:        #00408f;
  --navy-dark:   #002d66;
  --white:       #ffffff;
  --off-white:   #f8f9fb;
  --light-grey:  #f0f2f5;
  --border:      #e4e8ed;
  --text:        #1a2035;
  --text-mid:    #4a5568;
  --text-light:  #8a96a8;
  --font:        'Manrope', sans-serif;
  --font-display:'Manrope', sans-serif;
  --header-h:    92px;
  --radius:      6px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.1; font-family: var(--font-display); }

/* ─── Utilities ─────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none; border: none;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: #3a9d96; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(70,176,169,.35); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--teal); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { background: white; color: var(--navy); }

.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white; font-family: var(--font);
  font-size: 13px; font-weight: 600; padding: 14px 28px;
  border-radius: var(--radius); text-decoration: none;
  transition: background 0.2s; align-self: flex-start; justify-content: center;
}
.btn-teal:hover { background: #3a9d96; }

/* ─── Section label ─────────────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block;
  width: 20px; height: 1.5px; background: var(--teal);
}

/* ─── Placeholder image ─────────────────────────────────────────────── */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #f0f2f5 0px, #f0f2f5 2px, #f8f9fb 2px, #f8f9fb 12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #b0bac8; font-size: 11px; font-family: monospace; text-align: center;
  border-radius: inherit;
}
.img-placeholder svg { opacity: .4; }

/* ─── Product card ──────────────────────────────────────────────────── */
.prod-item { text-decoration: none; color: inherit; display: block; }

/* Premium card */
@property --premium-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes premium-border-spin {
  to { --premium-angle: 360deg; }
}
.product-card--premium {
  position: relative;
  padding: 3px;
  border-radius: 24px;
  background: conic-gradient(from var(--premium-angle), var(--navy-dark) 0%, var(--teal) 25%, #ffffff 35%, var(--teal) 45%, var(--navy) 60%, #46d8d0 75%, var(--navy-dark) 100%);
  animation: premium-border-spin 3s linear infinite;
  padding: 4px;
}
.product-card--premium::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 20px;
  background: var(--white);
  z-index: 0;
}
.product-card--premium > * { position: relative; z-index: 1; }
.product-card--premium .prod-item { padding: 12px 12px 16px; }
.product-card--premium .prod-img { border-radius: 14px; margin-bottom: 14px; }

.prod-img {
  width: 100%; aspect-ratio: 3/4; background: #f4f5f7;
  border-radius: 20px; overflow: hidden; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s;
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-item:hover .prod-img { transform: translateY(-3px); }

/* ─── Video product card ────────────────────────────────────────────── */
.prod-video-wrap { width: 100%; height: 100%; position: relative; overflow: hidden; }
.prod-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Stop-motion viewer ────────────────────────────────────────────── */
.stop-motion-viewer { position: relative; cursor: pointer; }
.stop-motion-viewer .stop-motion-poster { transition: opacity 0s; }
.stop-motion-viewer canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 0.15s;
}
.stop-motion-viewer.is-playing canvas  { opacity: 1; }
.stop-motion-viewer.is-playing .stop-motion-poster { opacity: 0; }
.stop-motion-hint { display: none; }
.prod-name { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 10px; letter-spacing: -.01em; }
.prod-link {
  font-size: 16px; font-weight: 500; color: var(--teal);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.prod-item:hover .prod-link { border-color: var(--teal); }

/* ===================================================================
   HEADER
   =================================================================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, backdrop-filter 0.4s, -webkit-backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 24px rgba(0,64,143,.08); }

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .top    { font-size: 13px; font-weight: 600; color: var(--teal);  letter-spacing: .08em; text-transform: uppercase; }
.logo-text .bottom { font-size: 19px; font-weight: 700; color: var(--navy);  letter-spacing: -.01em; }

/* Header right (nav + lang on desktop) */
.header-right { display: flex; align-items: center; gap: 4px; }

/* Nav */
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 14px; font-weight: 500; color: var(--text-mid);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
nav a:hover  { color: var(--navy); background: var(--off-white); }
nav a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 9px 20px !important; border-radius: 8px !important;
  font-weight: 600 !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal) !important; }

/* Language switcher — desktop */
.lang-switcher {
  display: flex; align-items: center; gap: 5px;
  margin-left: 12px; padding-left: 14px; border-left: 1px solid var(--border);
}
.lang-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 24px; border-radius: 4px; overflow: hidden;
  opacity: .45; transition: opacity 0.2s, transform 0.15s;
  text-decoration: none; flex-shrink: 0;
}
.lang-btn .flag-svg { width: 100%; height: 100%; display: block; }
.lang-btn:hover     { opacity: .82; transform: scale(1.07); }
.lang-btn.active    { opacity: 1; box-shadow: 0 0 0 2px var(--navy); border-radius: 3px; }

/* Language switcher — mobile (inside nav) */
.lang-nav { display: none; }
.lang-nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text-mid); font-size: 13px; font-weight: 600;
  flex: 1; justify-content: center; transition: background 0.2s, color 0.2s;
}
.lang-nav-btn:hover  { background: var(--off-white); color: var(--navy); }
.lang-nav-btn.active { background: var(--off-white); color: var(--navy); font-weight: 700; }
.lang-nav-btn .flag-svg { width: 26px; height: 18px; border-radius: 3px; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   FOOTER
   =================================================================== */
footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 60px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo      { gap: 16px; }
.footer-brand .logo-mark { width: 84px; height: 84px; }
.footer-brand .logo-mark img { filter: brightness(0) invert(1); }
.footer-brand .logo-text .top    { color: #fff; font-size: 18px; }
.footer-brand .logo-text .bottom { color: #fff; font-size: 28px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 16px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
  display: flex; justify-content: center; align-items: center;
  padding-top: 32px; font-size: 12px; color: rgba(255,255,255,.3); text-align: center;
}

/* ===================================================================
   SCROLL REVEAL ANIMATIONS
   =================================================================== */
[data-anim] {
  opacity: 0;
  transition:
    opacity    1.1s cubic-bezier(.22,.61,.36,1),
    transform  1.1s cubic-bezier(.22,.61,.36,1),
    filter     1.1s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--anim-delay, 0s);
  will-change: opacity, transform, filter;
}
[data-anim="fade-up"]    { transform: translateY(70px); }
[data-anim="fade-down"]  { transform: translateY(-60px); }
[data-anim="fade-left"]  { transform: translateX(-90px); }
[data-anim="fade-right"] { transform: translateX(90px); }
[data-anim="fade-in"]    { transform: none; }
[data-anim="scale-in"]   { transform: scale(0.7); }
[data-anim="blur-in"]    { filter: blur(26px); transform: translateY(28px) scale(1.03); }

[data-anim].is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  [data-anim], [data-anim].is-visible {
    opacity: 1 !important; transform: none !important;
    filter: none !important; transition: none !important;
  }
}

/* ===================================================================
   GLOBAL RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .header-inner { padding: 0 20px; }
  .logo-mark   { width: 44px; height: 44px; }
  .logo-text .bottom { font-size: 16px; }
  .logo-text .top    { font-size: 11px; }
  .hamburger { display: flex; }

  nav {
    display: none; position: fixed;
    top: calc(var(--header-h) + 8px); left: 12px; right: 12px;
    background: white; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border: 1px solid var(--border); border-radius: 16px;
    gap: 2px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 99; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  }
  nav.open { display: flex; }
  nav a { border-radius: 8px; padding: 12px 16px; width: 100%; font-size: 15px; }
  nav .nav-cta { text-align: center; margin-top: 4px; }

  .lang-nav {
    display: flex; padding-top: 14px;
    border-top: 1px solid var(--border); margin-top: 8px; gap: 6px;
  }
  .lang-switcher { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-inner { padding: 0 20px; }
  .container    { padding: 0 20px; }
  .section      { padding: 48px 0; }

  /* Reduce inline paddings on container divs */
  .container[style*="padding-top:100px"] { padding-top: 48px !important; }
  .container[style*="padding-bottom:100px"] { padding-bottom: 48px !important; }

  /* Science section header spacing */
  .science-section [style*="margin-bottom:110px"] { margin-bottom: 48px !important; }

  /* Page headers */
  .page-header  { padding: 90px 0 24px; }
  .products-header { padding: 90px 0 24px; }
}

@media (max-width: 480px) {
  .container  { padding: 0 16px; }
  .footer-inner { padding: 0 16px; }
  .prod-name  { font-size: 18px; }
}

/* ===================================================================
   PAGE: HOME — Hero
   =================================================================== */

/* Transparent header on hero pages */
body:has(.hero) header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body:has(.hero) header:not(.scrolled) nav a          { color: rgba(255,255,255,.85); }
body:has(.hero) header:not(.scrolled) nav a:hover    { color: white; background: rgba(255,255,255,.1); }
body:has(.hero) header:not(.scrolled) .nav-cta       { background: rgba(255,255,255,.15) !important; color: white !important; border: 1px solid rgba(255,255,255,.3) !important; }
body:has(.hero) header:not(.scrolled) .nav-cta:hover { background: white !important; color: var(--navy) !important; }

/* Mobile: when nav is open over hero, restore dark colors (white bg) */
body:has(.hero) header:not(.scrolled) nav.open a          { color: var(--text-mid); }
body:has(.hero) header:not(.scrolled) nav.open a:hover    { color: var(--navy); background: var(--off-white); }
body:has(.hero) header:not(.scrolled) nav.open .nav-cta   { background: var(--navy) !important; color: white !important; border: none !important; }
body:has(.hero) header:not(.scrolled) nav.open .nav-cta:hover { background: var(--teal) !important; }
body:has(.hero) header:not(.scrolled) .logo-text .top    { color: rgba(255,255,255,.7); }
body:has(.hero) header:not(.scrolled) .logo-text .bottom { color: white; }
body:has(.hero) header:not(.scrolled) .hamburger span    { background: white; }
body:has(.hero) header:not(.scrolled) .lang-btn          { opacity: .65; }
body:has(.hero) header:not(.scrolled) .lang-btn:hover    { opacity: .9; }
body:has(.hero) header:not(.scrolled) .lang-btn.active   { opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
body:has(.hero) header:not(.scrolled) .lang-switcher     { border-left-color: rgba(255,255,255,.2); }

.hero {
  position: relative; height: 100vh; min-height: 600px;
  overflow: hidden; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: -80px 0; background: #1a2035; will-change: transform; pointer-events: none; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,10,30,.82) 0%, rgba(0,10,30,.55) 55%, rgba(0,10,30,.25) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 48px; width: 100%;
}
.hero-eyebrow {
  font-size: 16px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,1);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--teal); }
.hero h1 {
  font-size: clamp(52px, 7.5vw, 104px); font-weight: 800;
  color: white; letter-spacing: -.04em; line-height: 1;
  margin-bottom: 28px; max-width: 1000px;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,1); max-width: 380px; line-height: 1.7; margin-bottom: 44px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--teal); color: white;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  padding: 14px 28px; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  position: relative; z-index: 3;
}
.hero-btn:hover { background: #3a9d96; transform: translateY(-1px); }
.hero-scroll {
  position: absolute; bottom: 36px; left: 48px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1);   opacity: 1; }
  50%       { transform: scaleY(.4); opacity: .3; }
}

/* ─── Home: sections ────────────────────────────────────────────────── */
.products-section { padding: 140px 0 60px; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 110px; flex-wrap: wrap; gap: 16px;
}
.section-header h2 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.05; }

.text-link {
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: color 0.2s; white-space: nowrap;
}
.text-link:hover { color: var(--navy); }
.text-link:hover svg { transform: translateX(3px); }
.text-link svg { transition: transform 0.2s; }

.science-section { padding: 60px 0 100px; }
.science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.science-col { padding: 0 48px 0 0; border-right: 1px solid var(--border); }
.science-col:last-child  { border-right: none; padding-right: 0; padding-left: 48px; }
.science-col:nth-child(2) { padding-left: 48px; }
.science-col-num { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; margin-bottom: 20px; }
.science-col h3 { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; margin-bottom: 14px; }
.science-col p  { font-size: 15px; color: var(--text-mid); line-height: 1.75; }

.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.info-split-img { height: 520px; overflow: hidden; background: #f4f5f7; border-radius: 16px; }
.info-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-split-text { display: flex; flex-direction: column; justify-content: center; }
.info-split-text h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px; }
.info-split-text p  { font-size: 16px; color: var(--text-mid); line-height: 1.8; margin-bottom: 18px; }

.verify-banner { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 100px; }

.explore-cta { border-top: 1px solid var(--border); padding: 100px 0; }
.explore-inner { display: grid; grid-template-columns: 2.2fr 1fr; align-items: center; gap: 56px; }
.explore-inner h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; color: var(--navy); letter-spacing: -.04em; line-height: 1.08; margin: 0; }
.explore-inner .btn-teal { justify-self: end; }

@media (max-width: 1024px) {
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .science-grid   { grid-template-columns: 1fr; gap: 40px; }
  .science-col    { border-right: none; padding: 0 0 40px; border-bottom: 1px solid var(--border); }
  .science-col:last-child  { border-bottom: none; padding-bottom: 0; padding-left: 0; }
  .science-col:nth-child(2) { padding-left: 0; }
  .info-split { grid-template-columns: 1fr; }
  .info-split-img { height: 320px; }
  .section-header { margin-bottom: 60px; }
}
@media (max-width: 768px) {
  .products-section { padding: 48px 0 40px; }
  .science-section  { padding: 40px 0 48px; }
  .verify-banner .container > div { grid-template-columns: 1fr !important; gap: 32px; }
  .verify-banner .container > div { padding: 48px 0 !important; }
  .explore-inner { grid-template-columns: 1fr; gap: 28px; }
  .explore-inner .btn-teal { justify-self: start; }
  .explore-cta { padding: 48px 0; }
}
@media (max-width: 600px) {
  .hero-content { padding: 0 24px; }
  .hero-scroll  { left: 24px; }
  .info-split-img { height: 260px; }
}

/* ===================================================================
   PAGE: PRODUCTS
   =================================================================== */
.products-header { padding: 160px 0 48px; }

.products-header-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.products-header-title { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.products-header-title h1 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.catalog-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); padding-bottom: 8px; white-space: nowrap; }

.search-wrap { position: relative; display: inline-flex; align-items: center; }
.search-wrap input {
  width: 240px; padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--border); border-radius: 100px;
  background: white; font-family: var(--font); font-size: 13px; color: var(--text);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s, width 0.2s;
}
.search-wrap input::placeholder { color: var(--text-light); }
.search-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(70,176,169,.12); width: 280px; }
.search-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); pointer-events: none; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 24px; }

.no-results { text-align: center; padding: 60px 0; color: var(--text-light); font-size: 15px; display: none; }
.no-results.show { display: block; }

/* ─── Product line labels ───────────────────────────────────────────── */
.line-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.line-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.line-label--premium { color: var(--navy); }
.line-label--premium::after { background: linear-gradient(to right, var(--navy), transparent); }
.line-label--commercial { color: var(--teal); }
.line-label--commercial::after { background: linear-gradient(to right, var(--teal), transparent); }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-header { padding: 110px 0 32px; } }
@media (max-width: 700px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .products-header-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search-wrap input, .search-wrap input:focus { width: 100%; }
  .search-wrap { width: 100%; }
  .products-header-inner { gap: 20px; }
}

/* ─── Carousel ──────────────────────────────────────────────────────── */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  overflow: hidden;
}
.info-split-img .carousel { height: 100%; border-radius: 0; }
.info-split-img .carousel-track { height: 100%; }
.info-split-img .carousel-slide { height: 100%; aspect-ratio: unset; }
.info-split-img .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.15);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  padding: 0; transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: #fff; transform: scale(1.25);
}
@media (max-width: 700px) {
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-slide { aspect-ratio: 4/3; }
}

/* ===================================================================
   PAGE: ABOUT
   =================================================================== */
.page-header { padding: 160px 0 48px; }
.page-header-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: end; }
.page-header-title h1 { font-size: clamp(44px, 6vw, 84px); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.page-header-title h1 span { color: var(--teal); }
.page-header-sub { margin: 0; font-size: 16px; color: var(--text-mid); line-height: 1.75; padding-bottom: 8px; }

.section-hdr { display: flex; align-items: flex-end; gap: 40px; margin-bottom: 80px; flex-wrap: wrap; }
.section-hdr h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.05; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 16px; padding: 40px 36px; }
.value-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(70,176,169,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.value-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; letter-spacing: -.01em; }
.value-card p  { font-size: 14px; color: var(--text-mid); line-height: 1.75; }

.uk-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.uk-text p { font-size: 16px; color: var(--text-mid); line-height: 1.8; margin-bottom: 18px; }
.uk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.uk-stat  { background: var(--off-white); border: 1px solid var(--border); border-radius: 14px; padding: 24px 22px; }
.uk-stat-val   { font-size: 34px; font-weight: 800; color: var(--teal); letter-spacing: -.02em; line-height: 1; }
.uk-stat-label { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.uk-img { height: 520px; border-radius: 16px; overflow: hidden; background: #f4f5f7; }
.uk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { position: relative; padding-right: 16px; }
.process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 28px; right: -16px;
  width: 32px; height: 1px; background: var(--border);
}
.process-num { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: white; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.process-step h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.process-step p  { font-size: 14px; color: var(--text-mid); line-height: 1.75; }

.about-cta { border-top: 1px solid var(--border); padding: 100px 0; }
.about-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.about-cta-inner h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; color: var(--navy); letter-spacing: -.04em; line-height: 1.08; margin: 0; max-width: 620px; }

@media (max-width: 1024px) {
  .info-split, .uk-grid { grid-template-columns: 1fr; gap: 40px; }
  .info-split-img, .uk-img { height: 360px; }
  .values-grid  { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-step:not(:last-child)::after { display: none; }
}
@media (max-width: 900px) { .page-header-inner { grid-template-columns: 1fr; gap: 28px; align-items: start; } }
@media (max-width: 768px) {
  .page-header { padding: 110px 0 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .about-cta   { padding: 60px 0; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .section-hdr  { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===================================================================
   PAGE: CONTACT
   =================================================================== */
.contact-layout { min-height: 100vh; padding-top: var(--header-h); display: grid; grid-template-columns: 1fr 1fr; }

.contact-left {
  background: var(--navy); padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.contact-left::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(70,176,169,.15) 0%, transparent 70%); }
.contact-left::after  { content: ''; position: absolute; bottom: -80px; left: -60px; width: 350px; height: 350px; background: radial-gradient(circle, rgba(0,93,210,.2) 0%, transparent 70%); }
.contact-left-content { position: relative; z-index: 1; }
.contact-left .section-label { color: rgba(255,255,255,.45); margin-bottom: 16px; }
.contact-left .section-label::before { background: var(--teal); }
.contact-left h1 { font-size: clamp(32px, 3.5vw, 52px); font-weight: 800; color: white; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 20px; }
.contact-left h1 span { color: var(--teal); }
.contact-left > .contact-left-content > p { font-size: 16px; color: rgba(255,255,255,.6); line-height: 1.75; max-width: 380px; margin-bottom: 48px; }

.contact-info-items { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.contact-info-item:hover { background: rgba(70,176,169,.12); border-color: rgba(70,176,169,.3); }
.contact-info-icon { width: 44px; height: 44px; background: rgba(70,176,169,.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 3px; }
.contact-info-val   { font-size: 15px; font-weight: 600; color: white; }
.contact-disclaimer { margin-top: 48px; padding: 20px 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.65; }

.contact-right { background: white; padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.contact-right h2 { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-bottom: 8px; }
.contact-right > p { font-size: 14px; color: var(--text-light); margin-bottom: 36px; }

.form-group { margin-bottom: 20px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 8px; }
input, textarea, select {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 13px 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(70,176,169,.12); }
textarea { resize: vertical; min-height: 130px; }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238a96a8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; padding: 15px; }

.success-msg {
  display: none; background: rgba(70,176,169,.08);
  border: 1px solid rgba(70,176,169,.25); border-radius: 12px;
  padding: 20px 24px; margin-top: 16px;
  font-size: 14px; color: #2a8a84; font-weight: 600;
  align-items: center; gap: 12px;
}
.success-msg.show { display: flex; }

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-left   { padding: 80px 40px 60px; }
  .contact-right  { padding: 60px 40px; }
}
@media (max-width: 768px) {
  .contact-left  { padding: 60px 24px; }
  .contact-right { padding: 48px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===================================================================
   PAGE: VERIFY
   =================================================================== */
.verify-page { min-height: 100vh; padding-top: var(--header-h); display: flex; flex-direction: column; background: var(--off-white); }

.verify-strip { background: var(--navy); padding: 80px 0 100px; position: relative; overflow: hidden; }
.verify-strip::before { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(70,176,169,.12) 0%, transparent 70%); }
.verify-strip-inner { max-width: 640px; margin: 0 auto; padding: 0 32px; text-align: center; position: relative; z-index: 1; }
.verify-strip .section-label { justify-content: center; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.verify-strip .section-label::before { background: var(--teal); }
.verify-strip h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: white; letter-spacing: -.03em; margin-bottom: 14px; }
.verify-strip p  { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; }

.verify-card-wrap { max-width: 640px; margin: -40px auto 0; padding: 0 32px 80px; flex: 1; }
.verify-card { background: white; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,.07); padding: 40px; }

.code-row   { display: flex; gap: 12px; margin-bottom: 28px; }
.code-input {
  flex: 1; font-family: 'Courier New', monospace;
  font-size: 18px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy);
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-input::placeholder { color: #c0cad6; letter-spacing: .05em; font-size: 15px; }
.code-input:focus { border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(70,176,169,.12); }
.verify-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  padding: 16px 28px; border: none; border-radius: var(--radius);
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.verify-btn:hover    { background: #3a9d96; }
.verify-btn:disabled { opacity: .6; cursor: not-allowed; }
.code-hint { font-size: 12px; color: var(--text-light); margin-top: -12px; margin-bottom: 0; }

.verify-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

.how-find      { display: flex; align-items: flex-start; gap: 16px; }
.how-find-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(70,176,169,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-find h4   { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.how-find p    { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

.result-box     { display: none; border-radius: 10px; padding: 28px; margin-top: 24px; }
.result-box.show { display: block; }
.result-success { background: rgba(70,176,169,.06); border: 1.5px solid rgba(70,176,169,.25); }
.result-header  { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.result-icon    { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-icon.ok  { background: rgba(70,176,169,.12); }
.result-icon.err { background: rgba(220,38,38,.1); }
.result-title    { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.result-subtitle { font-size: 13px; color: var(--text-mid); margin-top: 2px; }
.result-specs    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rspec           { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.rspec-label     { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 3px; }
.rspec-val       { font-size: 14px; font-weight: 700; color: var(--navy); }
.result-error    { background: rgba(220,38,38,.04); border: 1.5px solid rgba(220,38,38,.2); }
.result-error .result-title { color: #b91c1c; }
.result-warning  { background: rgba(217,119,6,.04); border: 1.5px solid rgba(217,119,6,.25); }
.result-warning .result-title { color: #92400e; }
.result-icon.warn { background: rgba(217,119,6,.12); }

.loading-box      { display: none; align-items: center; gap: 14px; padding: 20px 0; color: var(--text-mid); font-size: 14px; }
.loading-box.show { display: flex; }
.spinner          { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .verify-card { padding: 28px 20px; }
  .code-row    { flex-direction: column; }
  .result-specs { grid-template-columns: 1fr; }
}

/* ===================================================================
   COMPONENT: PRODUCT MODAL
   =================================================================== */

/* Overlay */
.pmodal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 10, 30, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.pmodal-overlay.is-open {
  opacity: 1; pointer-events: all;
}
.pmodal-overlay[hidden] { display: none; }

/* Box */
.pmodal-box {
  position: relative;
  width: 100%; max-width: 860px;
  max-height: calc(100vh - 40px);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0, 20, 60, 0.18), 0 0 0 1px var(--border);
}
.pmodal-overlay.is-open .pmodal-box {
  transform: translateY(0) scale(1);
}

/* Science background */
.pmodal-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #ffffff;
}
.pmodal-bg-photo {
  position: absolute; inset: 0;
  background-image: url('/imagenes/modal-bg.png');
  background-size: cover; background-position: center;
  opacity: 0.13;
}
.pmodal-bg-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(70,176,169,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at -5% 0%, rgba(0,64,143,0.04) 0%, transparent 55%);
}
.pmodal-bg-circles { position: absolute; inset: 0; pointer-events: none; }
.pmodal-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(70,176,169,0.10);
}
.pmodal-circle.c1 { width: 420px; height: 420px; right: -80px; bottom: -160px; }
.pmodal-circle.c2 { width: 250px; height: 250px; right: 60px; bottom: -40px; border-color: rgba(70,176,169,0.07); }
.pmodal-circle.c3 { width: 120px; height: 120px; left: 30%; top: -40px; border-color: rgba(0,64,143,0.05); }

/* Close button */
.pmodal-close {
  position: absolute; top: 16px; right: 18px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--off-white);
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pmodal-close:hover { background: var(--border); color: var(--text); }

/* Header bar */
.pmodal-header {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  padding: 16px 24px 12px;
  border-bottom: 1px solid var(--border);
}
.pmodal-logo { pointer-events: none; }

/* Content area */
.pmodal-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 200px;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Text side */
.pmodal-text {
  padding: 28px 32px 32px;
}

.pmodal-title {
  margin-bottom: 22px;
}
.pmodal-name {
  display: block;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--teal) 0%, var(--navy) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.pmodal-section { margin-bottom: 20px; }
.pmodal-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.pmodal-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
  display: block;
}

.pmodal-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.pmodal-bullets li {
  font-size: 12.5px; color: var(--text); line-height: 1.4;
  display: flex; align-items: flex-start; gap: 8px;
}
.pmodal-bullets li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 6px;
}

.pmodal-paragraph {
  font-size: 13.5px; color: var(--text-mid); line-height: 1.75;
}

.pmodal-small-label {
  font-size: 11px; color: var(--text-light);
  margin-bottom: 8px; font-style: italic;
}
.pmodal-prescription {
  font-size: 9.5px; font-weight: 400; color: var(--text-light);
  font-style: italic; text-transform: none; letter-spacing: 0;
}

.pmodal-dosing {
  font-size: 14px; color: var(--text); line-height: 1.65;
}
.pmodal-dosing strong {
  color: var(--navy); font-weight: 700;
}
.pmodal-dosing .dose-range {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(70,176,169,0.12);
  border: 1px solid rgba(70,176,169,0.3);
  border-radius: 8px; padding: 6px 12px;
  font-size: 14px; font-weight: 800; color: var(--teal);
  margin: 6px 0 10px;
}
.pmodal-dosing .dose-option { margin-bottom: 6px; }
.pmodal-dosing .dose-option-title { font-weight: 700; color: var(--navy); }

/* Image side */
.pmodal-image-wrap {
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px 16px 0 0;
  margin-left: -85px;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes behind the image */
.pmodal-image-deco {
  position: absolute; inset: 0; pointer-events: none;
}
.pmodal-deco-ring {
  position: absolute; border-radius: 50%;
  border: 6px solid rgba(70,176,169,0.22);
}
.pmodal-deco-ring.r1 {
  width: 300px; height: 300px;
  bottom: -60px; right: -60px;
}
.pmodal-deco-ring.r2 {
  width: 200px; height: 200px;
  bottom: -20px; right: -10px;
  border: 6px solid rgba(0,64,143,0.13);
}
.pmodal-deco-blob {
  position: absolute;
  width: 220px; height: 220px;
  bottom: -40px; right: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70,176,169,0.10) 0%, transparent 70%);
}
.pmodal-deco-tri {
  position: absolute;
  width: 0; height: 0;
}
.pmodal-deco-tri.t1 { display: none; }
.pmodal-deco-tri.t2 {
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-bottom: 96px solid rgba(0,64,143,0.18);
  bottom: 40px; left: -40px;
  transform: rotate(-20deg);
}
.pmodal-deco-tri.t3 {
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 122px solid rgba(70,176,169,0.18);
  bottom: 160px; right: 20px;
  transform: rotate(15deg);
}
.pmodal-deco-tri.t4 { display: none; }

.pmodal-image-inner { position: relative; width: 100%; max-width: 220px; z-index: 1; }
.pmodal-product-img {
  width: 100%; height: auto;
  display: block;
  transform: scale(1.05) rotate(12deg);
  transform-origin: bottom center;
  cursor: pointer;
  pointer-events: auto;
  transition: filter 0.2s;
}
.pmodal-product-img:hover { filter: brightness(1.08) drop-shadow(0 4px 12px rgba(70,176,169,0.35)); }

/* Buy button */
.pmodal-buy-wrap { margin-top: 24px; }

/* Responsive — tablet */
@media (max-width: 820px) {
  .pmodal-content { grid-template-columns: 1fr 160px; }
  .pmodal-image-wrap { margin-left: -40px; padding: 12px 12px 0 0; }
  .pmodal-image-inner { max-width: 150px; }
  .pmodal-text { padding: 22px 24px 28px; }
  .pmodal-name { font-size: clamp(20px, 3.8vw, 34px); }
  .pmodal-bullets li { font-size: 13px; }
  .pmodal-paragraph { font-size: 13px; }
  .pmodal-dosing { font-size: 13px; }
  .pmodal-dosing .dose-range { font-size: 15px; }
}

/* Responsive — móvil */
@media (max-width: 560px) {
  .pmodal-overlay { padding: 10px; }
  .pmodal-box {
    border-radius: 16px;
    max-width: 100%;
  }
  .pmodal-header { padding: 12px 14px 8px; }

  /* 1 sola columna, imagen sale del flujo */
  .pmodal-content {
    grid-template-columns: 1fr;
    position: relative;
  }
  .pmodal-image-wrap {
    position: absolute;
    bottom: 0; right: 0;
    width: 150px;
    height: 100%;
    margin-left: 0;
    padding: 0;
    pointer-events: none;
    overflow: visible;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .pmodal-image-inner { max-width: 140px; }

  /* decorados reescalados */
  .pmodal-deco-ring.r1 { width: 180px; height: 180px; bottom: -40px; right: -40px; }
  .pmodal-deco-ring.r2 { width: 110px; height: 110px; bottom: -15px; right: -10px; }
  .pmodal-deco-blob { width: 130px; height: 130px; bottom: -25px; right: -15px; }
  .pmodal-deco-tri.t2 {
    border-left: 30px solid transparent; border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(0,64,143,0.18);
    bottom: 25px; left: -15px;
  }
  .pmodal-deco-tri.t3 {
    border-left: 38px solid transparent; border-right: 38px solid transparent;
    border-bottom: 66px solid rgba(70,176,169,0.18);
    bottom: 100px; right: 10px;
  }

  .pmodal-text {
    padding: 14px 16px 20px 16px;
    min-width: 0;
  }
  .pmodal-name { font-size: clamp(15px, 5vw, 21px); }
  .pmodal-title { margin-bottom: 12px; }
  .pmodal-section { margin-bottom: 12px; }
  .pmodal-section-title { font-size: 9px; }
  .pmodal-bullets { gap: 4px; }
  .pmodal-bullets li { font-size: 11px; }
  .pmodal-paragraph { font-size: 11px; line-height: 1.6; }
  .pmodal-small-label { font-size: 9px; }
  .pmodal-dosing { font-size: 11px; }
  .pmodal-dosing .dose-range { font-size: 13px; padding: 5px 10px; }
  .pmodal-buy-wrap { margin-top: 12px; }
  .pmodal-buy-wrap .hero-btn { font-size: 12px; padding: 9px 14px; }
}

/* Pantallas muy chicas (≤380px) */
@media (max-width: 380px) {
  .pmodal-image-wrap { width: 120px; }
  .pmodal-image-inner { max-width: 110px; }
  /* sin padding-right extra, imagen se superpone solo en la esquina inferior */
  .pmodal-name { font-size: 15px; }
  .pmodal-bullets li { font-size: 10px; }
  .pmodal-paragraph { font-size: 10px; }
  .pmodal-dosing { font-size: 10px; }
  .pmodal-dosing .dose-range { font-size: 12px; }
}
