/* VANTERIS — ficha técnica imprimible.
   Una hoja carta que se ve igual en pantalla y en papel. El lenguaje visual sale
   del empaque oficial: cuña naranja de esquina, banda teal, cabecera de tabla teal.
   Regla de contraste heredada de tokens.css: sobre naranja el texto va en charcoal,
   nunca en blanco (2.15:1). El único blanco sobre naranja permitido es el logotipo. */

@page { size: letter; margin: 0; }

*, *::before, *::after { box-sizing: border-box; }

.ficha-body {
  margin: 0;
  padding: 0 0 var(--vt-space-6);
  background: var(--vt-surface);
  color: var(--vt-ink);
  font-family: var(--vt-font-body);
  font-size: var(--vt-fs-body);
  line-height: var(--vt-lh-body);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ---------- barra de acciones (nunca se imprime) ------------------------- */
.ficha-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--vt-space-3);
  max-width: 8.5in; margin: 0 auto; padding: var(--vt-space-3) var(--vt-space-2);
}
.ficha-bar a {
  color: var(--vt-teal-deep); text-decoration: none;
  font-size: var(--vt-fs-small); font-weight: var(--vt-w-medium);
}
.ficha-bar a:hover { text-decoration: underline; }
.ficha-bar button {
  font: inherit; font-size: var(--vt-fs-small); font-weight: var(--vt-w-semibold);
  color: var(--vt-ink); background: var(--vt-orange);
  border: 0; border-radius: var(--vt-radius-md);
  padding: 10px 18px; cursor: pointer;
}
.ficha-bar button:hover { background: #e85f1c; }

/* ---------- la hoja ------------------------------------------------------ */
.hoja {
  position: relative;
  width: 8.5in; min-height: 11in;
  margin: 0 auto;
  background: var(--vt-white);
  box-shadow: var(--vt-shadow-md);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* ---------- cabecera ----------------------------------------------------- */
.fh { position: relative; display: flex; align-items: stretch; min-height: 1.15in; }
.fh-logo {
  flex: 1; display: flex; align-items: center;
  padding: 0 var(--vt-space-4);
  border-bottom: 3px solid var(--vt-teal);
}
.fh-logo img { width: 230px; height: auto; }

.fh-title {
  position: relative;
  width: 3.7in; padding: 14px var(--vt-space-4) 14px 46px;
  background: var(--vt-teal-deep); color: var(--vt-white);
  display: flex; flex-direction: column; justify-content: center;
  /* la diagonal de la cabecera, igual que en el empaque */
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
}
.fh-title h1 {
  margin: 0; font-family: var(--vt-font-display);
  font-size: 1.55rem; font-weight: var(--vt-w-bold);
  letter-spacing: var(--vt-track-display); line-height: var(--vt-lh-tight);
}
.fh-sub {
  margin: 6px 0 0; padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.35);
  font-size: .72rem; font-weight: var(--vt-w-semibold);
  letter-spacing: .1em; text-transform: uppercase;
}
.fh-rev {
  position: absolute; top: 10px; right: var(--vt-space-4);
  margin: 0; text-align: right;
  font-size: .58rem; letter-spacing: .08em; opacity: .85;
}

/* cuña naranja de esquina — firma del empaque, sobre el vértice de la diagonal */
.hoja::before {
  content: ""; position: absolute; top: 0; right: 3.68in;
  width: 0; height: 0; z-index: 2;
  border-top: 34px solid var(--vt-orange);
  border-right: 34px solid transparent;
}
.hoja::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 0;
  border-bottom: 26px solid var(--vt-orange);
  border-left: 26px solid transparent;
}

/* ---------- hero --------------------------------------------------------- */
.fhero {
  display: grid;
  grid-template-columns: 2.85in 1fr 1in;
  gap: var(--vt-space-3);
  padding: 18px var(--vt-space-4) 12px;
  align-items: start;
}
.fhero-marca {
  margin: 0; color: var(--vt-teal);
  font-family: var(--vt-font-display); font-size: 1.35rem;
  font-weight: var(--vt-w-bold); letter-spacing: var(--vt-track-display);
}
.fhero-txt h2 {
  margin: 0; color: var(--vt-ink);
  font-family: var(--vt-font-display); font-size: 1.75rem;
  font-weight: var(--vt-w-bold); line-height: 1.05;
  letter-spacing: .01em; text-transform: uppercase;
}
.fhero-attrs {
  margin: 8px 0 0; padding-bottom: 10px;
  color: var(--vt-teal); font-size: .8rem;
  font-weight: var(--vt-w-semibold); letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--vt-orange);
  display: inline-block;
}
/* Un nombre largo ("TAPETE AUTOADHESIVO REMOVEDOR DE POLVO") se comía cuatro
   renglones y empujaba la hoja a una segunda página. El build marca .long
   cuando pasa de 28 caracteres. */
.fhero-txt h2.long { font-size: 1.35rem; line-height: 1.08; }
.fhero-desc {
  margin: 10px 0 0; font-size: .74rem; line-height: 1.48;
  color: var(--vt-ink); text-align: justify;
}
.fhero-img {
  display: flex; align-items: center; justify-content: center;
  min-height: 1.85in; background: var(--vt-white);
}
.fhero-img img { max-width: 100%; max-height: 2.15in; object-fit: contain; }
.fhero-img .noimg {
  font-size: var(--vt-fs-small); color: var(--vt-ink-muted);
  border: 1px dashed var(--vt-line); padding: var(--vt-space-4);
}
.fhero-badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.fhero-badges li {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center; color: var(--vt-teal);
}
.fhero-badges .ico {
  width: 44px; height: 44px; padding: 7px;
  border: 1.5px solid var(--vt-teal); border-radius: 50%;
}
.fhero-badges span {
  font-size: .56rem; font-weight: var(--vt-w-semibold);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--vt-ink); line-height: 1.25;
}

/* ---------- banda de número de parte + tiles ----------------------------- */
.fband {
  display: grid; grid-template-columns: 2.25in 1fr;
  margin: 0 var(--vt-space-4);
  border: 1px solid var(--vt-line);
}
.fband-pn { background: var(--vt-teal-deep); color: var(--vt-white); padding: 14px 16px; }
.fband-pn .lbl {
  margin: 0; font-size: .52rem; letter-spacing: var(--vt-track-label);
  text-transform: uppercase; opacity: .85;
}
.fband-pn .pn {
  margin: 3px 0 12px; font-family: var(--vt-font-mono);
  font-size: .85rem; font-weight: 500; letter-spacing: .01em;
}
.fband-pn .sd { margin: 3px 0 0; font-size: .68rem; line-height: 1.4; }

.fband-tiles {
  display: flex; align-items: stretch;
  background: var(--vt-white);
}
/* Filas fijas: el ícono, el valor y la etiqueta quedan a la misma altura en todos
   los tiles aunque un valor ocupe dos renglones. */
.ftile {
  flex: 1; min-width: 0;
  display: grid; grid-template-rows: 34px auto 1fr; gap: 3px;
  justify-items: center; align-content: start;
  padding: 10px 5px; text-align: center;
  border-left: 1px solid var(--vt-line);
}
.ftile:first-child { border-left: 0; }
.ftile .ico { width: 34px; height: 34px; color: var(--vt-teal); }
.ftile b {
  font-family: var(--vt-font-display); font-size: .9rem;
  font-weight: var(--vt-w-bold); color: var(--vt-ink); line-height: 1.15;
  text-wrap: balance;
}
.ftile span {
  font-size: .52rem; font-weight: var(--vt-w-semibold);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--vt-ink-muted); line-height: 1.25;
}

/* ---------- dos columnas ------------------------------------------------- */
.fcols {
  flex: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--vt-space-4);
  padding: 16px var(--vt-space-4);
}
.fcols h3 {
  margin: 0 0 8px; color: var(--vt-teal);
  font-family: var(--vt-font-display); font-size: .78rem;
  font-weight: var(--vt-w-bold); letter-spacing: .04em;
}
.fcols h3 + * { margin-top: 0; }
.fcols > div > *:not(:first-child) + h3 { margin-top: 18px; }

.ftab { width: 100%; border-collapse: collapse; font-size: .68rem; }
.ftab td { border: 1px solid var(--vt-line); padding: 4px 8px; vertical-align: top; }
.ftab td:first-child { width: 44%; color: var(--vt-ink-muted); }
.ftab td:last-child { font-weight: var(--vt-w-medium); }
.ftab tr:nth-child(even) td { background: #FAFCFC; }

/* Modo denso: para productos con muchas filas (el D40 trae 13 specs, los swabs
   suman una segunda tabla de medidas). Aprieta solo las tablas y listas de las
   columnas; el encabezado, el hero y el pie no se tocan. */
.hoja.densa .ftab { font-size: .63rem; }
.hoja.densa .ftab td { padding: 2px 7px; }
.hoja.densa .fbul, .hoja.densa .fplain { font-size: .63rem; }
.hoja.densa .fbul li { padding: 1px 0 1px 18px; line-height: 1.32; }
.hoja.densa .fplain li { padding: 2px 7px; line-height: 1.32; }
.hoja.densa .fcols { padding: 12px var(--vt-space-4); }
.hoja.densa .fcols h3 { margin-bottom: 5px; }
.hoja.densa .fcols > div > *:not(:first-child) + h3 { margin-top: 12px; }
.hoja.densa-2 .ftab { font-size: .60rem; }
.hoja.densa-2 .ftab td { padding: 1px 6px; line-height: 1.3; }
.hoja.densa-2 .fbul, .hoja.densa-2 .fplain { font-size: .60rem; }
.hoja.densa-2 .fhero-desc { font-size: .70rem; line-height: 1.42; }

.fbul, .fplain { list-style: none; margin: 0; padding: 0; font-size: .68rem; }
.fbul li {
  position: relative; padding: 2px 0 2px 20px; line-height: 1.4;
}
/* viñeta: círculo naranja con palomita en blanco — es un ícono, no texto sobre naranja */
.fbul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--vt-orange) no-repeat center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.fplain li {
  border: 1px solid var(--vt-line); border-bottom: 0;
  padding: 4px 8px; line-height: 1.4;
}
.fplain li:last-child { border-bottom: 1px solid var(--vt-line); }
.fplain + .ftab { margin-top: 10px; }

/* ---------- pie con los claims ------------------------------------------- */
.ffoot {
  display: flex; align-items: center; justify-content: space-around;
  gap: var(--vt-space-3);
  background: var(--vt-ink); color: var(--vt-white);
  padding: 12px var(--vt-space-4);
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
}
.fclaim { display: flex; align-items: center; gap: 10px; }
.fclaim + .fclaim { border-left: 1px solid rgba(255,255,255,.22); padding-left: var(--vt-space-3); }
.fclaim .ico {
  width: 38px; height: 38px; padding: 6px; flex: none;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%;
}
.fclaim span {
  font-size: .6rem; font-weight: var(--vt-w-semibold);
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.25;
}

/* ---------- zona de contacto (pie de la hoja) ---------------------------- */
/* La ficha se manda por correo y se imprime suelta: tiene que decir a dónde
   escribir aunque se separe del sitio. Los PDF originales no lo traían. */
.fcontact {
  display: grid; grid-template-columns: 2.45in 1fr auto;
  gap: var(--vt-space-3); align-items: start;
  padding: 8px var(--vt-space-4) 9px;
  background: var(--vt-teal-tint);
  border-top: 2px solid var(--vt-teal);
}
.fcontact-id { display: flex; flex-direction: column; gap: 2px; }
.fcontact-id b {
  font-family: var(--vt-font-display); font-size: .95rem;
  font-weight: var(--vt-w-bold); color: var(--vt-teal-deep);
  letter-spacing: var(--vt-track-display);
}
.fcontact-id span { font-size: .55rem; color: var(--vt-ink-muted); line-height: 1.35; }
.fcontact-dir { margin-top: 3px; }

.fcontact-data {
  display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 2px var(--vt-space-3);
  margin: 0; font-size: .58rem; align-content: start;
}
.fcontact-data dt {
  font-weight: var(--vt-w-semibold); letter-spacing: .06em;
  text-transform: uppercase; color: var(--vt-ink-muted);
}
.fcontact-data dd { margin: 0; color: var(--vt-ink); line-height: 1.3; }

.fcontact-rev {
  margin: 0; text-align: right; line-height: 1.5;
  font-family: var(--vt-font-mono); font-size: .55rem; color: var(--vt-ink-muted);
}

/* Marcador de dato pendiente — deliberadamente feo: una ficha no debe salir así. */
.fcontact .pendiente {
  font-family: var(--vt-font-mono); font-size: .55rem;
  background: #FBE9E6; color: #9E2B1D;
  border-radius: var(--vt-radius-sm); padding: 1px 5px;
}

/* ---------- pantallas angostas ------------------------------------------- */
@media screen and (max-width: 8.9in) {
  .hoja { width: 100%; min-height: 0; box-shadow: none; }
  .ficha-bar { max-width: 100%; }
  .fh { flex-direction: column; }
  .fh-title { width: 100%; padding-left: var(--vt-space-4); clip-path: none; }
  .fh-rev { position: static; text-align: left; margin-bottom: 6px; }
  .hoja::before { right: 0; }
  .fhero { grid-template-columns: 1fr; }
  .fhero-badges { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .fband { grid-template-columns: 1fr; }
  .fband-tiles { flex-wrap: wrap; }
  .ftile { flex: 1 1 33%; border-top: 1px solid var(--vt-line); }
  .fcols { grid-template-columns: 1fr; }
  .ffoot { flex-direction: column; align-items: flex-start; clip-path: none; }
  .fclaim + .fclaim { border-left: 0; padding-left: 0; }
  .fcontact { grid-template-columns: 1fr; }
  .fcontact-rev { text-align: left; }
}

/* ---------- impresión ---------------------------------------------------- */
@media print {
  .ficha-bar { display: none !important; }
  .ficha-body { background: var(--vt-white); padding: 0; }
  .hoja { width: 100%; min-height: 100vh; margin: 0; box-shadow: none; }
  .fcols, .fhero, .fband { break-inside: avoid; }
}

/* El correo es el único contacto público de VANTERIS: se destaca en el pie. */
.fcontact-mail{font-family:var(--vt-font-mono);font-size:.6rem;color:var(--vt-teal-deep);
               font-weight:500;margin-top:2px}
