/* Peptiva — estilos del sitio. Tokens tomados de marca/GUIA_DE_MARCA.md */

@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0B3B5C;
  --navy-2: #0E4A73;
  --ink-teal: #0F766E;
  --slate: #4A6577;
  --teal: #14B8A6;
  --sky: #0EA5E9;
  --green: #22C55E;
  --mint: #5EEAD4;
  --mist: #F4F8F9;
  --line: #DCE6EA;
  --white: #FFFFFF;
  --danger: #B42318;

  --f-xs: 0.875rem;   /* 14 */
  --f-s: 1rem;        /* 16 */
  --f-m: 1.25rem;     /* 20 */
  --f-l: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --f-xl: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --r-s: 8px; --r-m: 12px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--f-s); line-height: 1.6; color: var(--navy); background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink-teal); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--f-xl); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--f-l); }
h3 { font-size: var(--f-m); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--slate); }
.i { width: 20px; height: 20px; flex: none; }

.skip { position: absolute; left: var(--s2); top: -60px; z-index: 50; background: var(--navy); color: var(--white); padding: var(--s1) var(--s2); border-radius: var(--r-s); }
.skip:focus { top: var(--s2); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--navy); border-radius: var(--r-s);
  background: var(--navy); color: var(--white); font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }

/* ---------- cabecera ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); }
.top__ver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; padding: 0 var(--s1); color: var(--navy); font-size: var(--f-xs); font-weight: 600; text-decoration: none; }
.top__ver:hover { text-decoration: underline; }
.top__ver .i { width: 18px; height: 18px; }
.top__in { display: flex; align-items: center; gap: var(--s4); min-height: 72px; }
.top__logo { display: inline-flex; min-height: 44px; align-items: center; }
.top__logo img { height: 30px; width: auto; }
.top__nav { display: flex; gap: var(--s1); margin-left: auto; }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: var(--navy); font-weight: 500; font-size: var(--f-xs); text-decoration: none; border-radius: var(--r-s); }
.top__nav a:hover { background: var(--mist); }
.top__end { display: flex; align-items: center; gap: var(--s2); }
.lang { display: inline-flex; background: var(--mist); border-radius: var(--r-s); padding: 2px; }
.top .lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: var(--f-xs); font-weight: 600; color: var(--slate); text-decoration: none; border-radius: 6px; }
.top .lang a[aria-current="true"] { background: var(--navy); color: var(--white); }
.top .lang a:not([aria-current="true"]):hover { color: var(--navy); background: var(--mist); }

/* ---------- portada ---------- */

/* ---------- secciones ---------- */
.sec { padding: var(--s8) 0; }
.sec--mist { background: var(--mist); }

.sec__head { max-width: 62ch; margin-bottom: var(--s6); }
.sec__head p { margin-top: var(--s2); color: var(--slate); font-size: var(--f-m); line-height: 1.5; }

/* ---------- productos (lista, no tarjetas) ---------- */
.prods { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prod {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 260px 148px; gap: var(--s4); align-items: start;
  padding: var(--s4) var(--s3); background: var(--mist);
}
.prod__code {
  font-weight: 700; font-size: var(--f-xs); letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--ink-teal); padding-top: 4px;
}
.prod__name { font-size: var(--f-m); }
.prod__sub { display: block; margin-top: 4px; font-size: var(--f-xs); font-weight: 500; color: var(--slate); letter-spacing: 0; }
.prod__desc { margin-top: var(--s1); color: var(--slate); max-width: 60ch; }
.prod__meta { margin: 0; display: grid; gap: var(--s1); font-size: var(--f-xs); padding-top: 4px; }
.prod__meta div { display: grid; grid-template-columns: 88px 1fr; gap: var(--s1); }
.prod__meta dt { color: var(--slate); }
.prod__meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.prod__link {
  justify-self: end; display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px;
  font-weight: 600; font-size: var(--f-xs); color: var(--navy); text-decoration: none;
}
.prod__link .i { transition: transform .2s var(--ease); }
.prod__link:hover { color: var(--ink-teal); }
.prod__link:hover .i { transform: translateX(4px); }

/* ---------- calidad: la cadena del logo como proceso ---------- */

/* ---------- verificar ---------- */
.verify__in { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s6); align-items: center; }
.verify__text p { margin-top: var(--s2); color: var(--slate); font-size: var(--f-m); line-height: 1.5; max-width: 46ch; }
.verify__box { background: var(--mist); border-radius: var(--r-m); padding: var(--s5); }
.verif label { display: block; font-weight: 600; margin-bottom: var(--s1); }
.verif__fila { display: flex; gap: var(--s1); }
.verif input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 var(--s2); border: 1.5px solid #8BA3B1; border-radius: var(--r-s);
  font: inherit; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: var(--white);
}
.verif input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #5F7685; }
.verif input:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--navy); }
.verif input[aria-invalid="true"] { border-color: var(--danger); }
.verif .btn { min-height: 52px; }
.verif__ayuda { margin-top: var(--s1); font-size: var(--f-xs); color: var(--slate); }
.verif__error { margin-top: var(--s1); font-size: var(--f-xs); font-weight: 600; color: var(--danger); }

/* ---------- fabricante (solo si está confirmado) ---------- */

/* ---------- contacto ---------- */

/* ---------- página de producto ---------- */
.vp { padding: var(--s6) 0 var(--s7); }
.back { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; font-weight: 600; font-size: var(--f-xs); color: var(--slate); text-decoration: none; }
.back:hover { color: var(--navy); }
.vp__head { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s5); align-items: end; margin-top: var(--s4); }
.vp__code { display: inline-block; font-weight: 700; letter-spacing: .08em; color: var(--ink-teal); font-size: var(--f-xs); margin-bottom: var(--s2); }
.vp__sub { margin-top: var(--s1); color: var(--slate); font-weight: 500; }
.vp__desc { font-size: var(--f-m); line-height: 1.55; color: var(--slate); max-width: 52ch; }
.nf .vp__desc { margin-top: var(--s3); }
.nf .btn { margin-top: var(--s4); }
.vp__facts { margin: var(--s6) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.vp__facts div { padding: var(--s3); background: var(--mist); }
.vp__facts dt { font-size: var(--f-xs); color: var(--slate); }
.vp__facts dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ruo-bar { margin-top: var(--s3); font-size: var(--f-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-teal); }

.lots-wrap { overflow-x: auto; }
.lots { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); /* taste-skill-ignore: tabla real de lotes */ border-radius: var(--r-m); font-variant-numeric: tabular-nums; }
.lots th, .lots td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.lots thead th { font-size: var(--f-xs); font-weight: 600; color: var(--slate); }
.lots tbody tr:last-child > * { border-bottom: 0; }
.lot { font-weight: 700; letter-spacing: .04em; }
.lot__ok { display: none; align-items: center; gap: 6px; margin-left: var(--s2); font-size: var(--f-xs); color: var(--ink-teal); font-weight: 600; }
.lot__ok .i { width: 16px; height: 16px; }
.lots tr:target > * { background: #E6F7F3; }
.lots tr:target .lot__ok { display: inline-flex; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #DCFCE7; color: #14532D; font-size: var(--f-xs); font-weight: 600; }
.vp__warn { margin-top: var(--s3); font-size: var(--f-xs); color: var(--slate); }

/* ---------- pie ---------- */

/* ---------- tableta ---------- */
@media (max-width: 1024px) {
  .prod { grid-template-columns: 80px minmax(0, 1fr) 132px; }
  .prod__meta { grid-column: 2; }
  .prod__link { grid-column: 3; grid-row: 1; }
  
  
}

@media (max-width: 860px) {
  .top__nav { display: none; }
  .top__end { margin-left: auto; }
  
  .hero__in, .about__in, .verify__in, .contact__in, .sec__head--split, .vp__head, .pie__in { grid-template-columns: 1fr; }
  
  
  
  .sec { padding: var(--s7) 0; }
  .sec__head { margin-bottom: var(--s5); }
  .verify__in { gap: var(--s4); }
}

/* ---------- móvil ---------- */
@media (max-width: 600px) {
  .top__in { gap: var(--s2); min-height: 64px; }
  .top__logo img { height: 24px; }
  .top__end { gap: var(--s1); }
  
  
  
  
  
  .prod { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s3) 0; }
  .prod__meta, .prod__link { grid-column: auto; grid-row: auto; }
  .prod__meta { margin-top: var(--s1); }
  .prod__link { justify-self: start; }
  
  
  
  
  .verify__box { padding: var(--s3); }
  .verif__fila { flex-direction: column; }
  .vp__facts { grid-template-columns: 1fr; }
  .lots thead { display: none; }
  .lots, .lots tbody, .lots tr, .lots th, .lots td { display: block; width: 100%; }
  .lots tr { border-bottom: 1px solid var(--line); padding: var(--s1) 0; }
  .lots tbody tr:last-child { border-bottom: 0; }
  .lots th, .lots td { border: 0; padding: 6px var(--s2); }
  .lots td::before { content: attr(data-th); display: inline-block; min-width: 128px; color: var(--slate); font-size: var(--f-xs); }
  
}

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

/* ---------- marco común y pie (rediseño 4/12/2026) ---------- */
.marco { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); }
.gris { filter: grayscale(1) contrast(1.05); }
.dec { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.dec li { display: grid; gap: 2px; }
.dec__org { font-size: var(--f-xs); font-weight: 600; color: var(--ink-teal); }
.dec a { font-size: var(--f-xs); font-weight: 600; justify-self: start; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.reg { background: var(--white); }
.reg .dec { max-width: 72ch; }

.pie2 { background: var(--teal); color: var(--navy); padding: var(--s5) 0 var(--s4); }
.pie2 .marco { display: flex; flex-direction: column; min-height: 80svh; }
.pie2__top { display: flex; justify-content: space-between; gap: var(--s4); align-items: flex-start; }
.pie2__notas { display: grid; gap: 6px; font-size: 16px; font-weight: 500; }
.pie2__notas img { height: 28px; width: auto; margin-bottom: var(--s1); }
.pie2__up { color: var(--navy); font-weight: 600; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.pie2__h { margin-top: auto; padding-top: var(--s7); font-size: clamp(2.5rem, 8.4vw, 8.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: .95; }
.pie2__mail { color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.pie2__mail:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.pie2__ruo { margin-top: var(--s5); max-width: 64ch; font-size: 14px; line-height: 1.55; }
.pie2__base { margin-top: var(--s4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); font-size: 14px; font-weight: 500; }
.pie2__base nav { display: flex; gap: var(--s3); flex-wrap: wrap; }
.pie2__base a { color: var(--navy); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.pie2__cred { margin-top: var(--s2); max-width: 64ch; font-size: 14px; line-height: 1.6; }
.pie2__cred a { color: var(--navy); }
@media (max-width: 600px) {
  .pie2 .marco { min-height: 70svh; }
  .pie2__h { font-size: 11vw; }
  .pie2__base { flex-direction: column; }
}
