/* ==========================================================================
   inloff — La ficha v2 de la caja de vino (2963, maqueta del 19-oct-2026).
   Va encima de inloff-ficha-v2.css (lo común con el cuadro): aquí solo lo propio de la caja (la tapa, los pasos,
   «Para vuestra boda», «Qué incluye» y el vídeo del taller). Solo en los productos con la ficha v2 de tipo «vino».
   ========================================================================== */

/* Las fuentes del generador de la tapa (caja_2963.py): Retro Signature para la palabra y Nixie One para lo demás. */
@font-face { font-family: 'Retro Tapa'; src: url('../fonts/retro-tapa.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Nixie Tapa'; src: url('../fonts/nixie-tapa.woff2') format('woff2'); font-display: block; }

/* ── Cabecera ────────────────────────────────────────── */
.inloff-fv2 .inloff-fv2-head .inloff-fv2-line + .inloff-fv2-line { margin-top: 8px; }
.inloff-fv2 .inloff-fv2-tip { margin: 0; padding: 12px 14px; background: var(--fv2-sand); border-radius: 8px; font-size: 13px; line-height: 1.5; }
.inloff-fv2 .inloff-fv2-tip strong { font-weight: 600; color: var(--fv2-navy); }

/* ── Personalizador ──────────────────────────────────── */
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-bars li { min-width: 0; overflow-wrap: anywhere; }
.inloff-fv2 .inloff-fv2-lid { margin: 16px 0 0; }
.inloff-fv2 .inloff-fv2-lid svg { display: block; width: 100%; height: auto; aspect-ratio: 1240 / 383; border-radius: 4px; box-shadow: 0 1px 2px rgba(60, 40, 20, .18); background: #D9BE97; }
.inloff-fv2 .inloff-fv2-lid figcaption { margin-top: 6px; font-size: 12px; color: var(--fv2-mute); text-align: center; }
.inloff-fv2 .inloff-fv2-ink { fill: rgb(168, 125, 84); stroke: rgb(168, 125, 84); stroke-linejoin: round; stroke-linecap: round; mix-blend-mode: multiply; }
.inloff-fv2 .inloff-fv2-ink .pal { font-family: 'Retro Tapa', 'Snell Roundhand', cursive; stroke-width: 0; }
.inloff-fv2 .inloff-fv2-ink .nx { font-family: 'Nixie Tapa', Georgia, serif; }

.inloff-fv2 .inloff-fv2-of { font-size: 12px; color: var(--fv2-mute); white-space: nowrap; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-t { overflow-wrap: anywhere; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-step-b { gap: 16px; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-help--lead { margin-top: 4px; font-size: 13px; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-help--tight { margin-top: -6px; }
.inloff-fv2 .inloff-fv2-cfg--vino #inloff-fv2-ferr { margin-top: -6px; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-chips { margin-top: 10px; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-chips button { min-height: 40px; padding: 8px 12px; line-height: 1.35; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-field textarea { margin-top: 10px; font-size: 16px; }
.inloff-fv2 .inloff-fv2-foot-row .warn { color: var(--fv2-error); }
.inloff-fv2 .inloff-fv2-field--main input { height: 48px; border: 1.5px solid var(--fv2-navy); margin-top: 10px; }
.inloff-fv2 .inloff-fv2-pills { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-pill {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #D8D3C8;
  background: var(--fv2-paper);
  color: var(--fv2-navy);
  font-size: 14px;
}
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-pill[aria-pressed="true"] { border: 1.5px solid var(--fv2-navy); background: var(--fv2-navy); color: var(--fv2-paper); }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-back { align-self: center; padding: 0; font-size: 14px; color: var(--fv2-mute); text-decoration: underline; }

.inloff-fv2 .inloff-fv2-firmas { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-firma {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #D8D3C8;
  background: var(--fv2-paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  text-align: left;
  min-width: 0;
}
.inloff-fv2 .inloff-fv2-firma img { width: 100%; height: auto; aspect-ratio: 300 / 72; object-fit: cover; border-radius: 4px; display: block; max-width: 100%; }
.inloff-fv2 .inloff-fv2-firma span { font-size: 13px; color: var(--fv2-navy); }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-firma[aria-pressed="true"] { border: 1.5px solid var(--fv2-navy); background: var(--fv2-sand); }
.inloff-fv2 .inloff-fv2-firma[aria-pressed="true"] span { font-weight: 500; }
.inloff-fv2 .inloff-fv2-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-duo label,
.inloff-fv2 .inloff-fv2-cfg--vino [data-fv2-unobox] label { font-size: 14px; }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-duo input,
.inloff-fv2 .inloff-fv2-cfg--vino [data-fv2-unobox] input { margin-top: 6px; height: 46px; padding: 0 12px; }
.inloff-fv2 .inloff-fv2-q--small { margin-top: 12px; font-size: 14px; }
.inloff-fv2 .inloff-fv2-syms { margin-top: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-syms button { height: 44px; border-radius: 8px; border: 1px solid #D8D3C8; background: var(--fv2-paper); font-size: 17px; color: var(--fv2-navy); justify-content: center; text-align: center; }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-syms button[aria-pressed="true"] { border: 1.5px solid var(--fv2-navy); background: var(--fv2-sand); }

.inloff-fv2 .inloff-fv2-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inloff-fv2 .inloff-fv2-sw-row > span { font-size: 14px; font-weight: 500; color: var(--fv2-navy); }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #C9C2B4;
  position: relative;
  flex: none;
  transition: background .2s;
}
.inloff-fv2 .inloff-fv2-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fv2-paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-switch[aria-checked="true"] { background: var(--fv2-navy); }
.inloff-fv2 .inloff-fv2-switch[aria-checked="true"]::after { transform: translateX(22px); }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-field--date input { margin-top: 8px; height: 46px; padding: 0 12px; -webkit-appearance: none; appearance: none; min-width: 0; }

.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-vista {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #D8D3C8;
  background: var(--fv2-paper);
  cursor: pointer;
}
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-vista.on { border: 1.5px solid var(--fv2-navy); background: var(--fv2-sand); }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-vista input { width: 22px; height: 22px; margin: 0; accent-color: var(--fv2-navy); flex: none; -webkit-appearance: auto; appearance: auto; }
.inloff-fv2 .inloff-fv2-vista__tx { display: flex; flex-direction: column; gap: 4px; }
.inloff-fv2 .inloff-fv2-vista__tx b { font-size: 14px; font-weight: 500; color: var(--fv2-navy); }
.inloff-fv2 .inloff-fv2-vista__tx small { font-size: 12px; line-height: 1.45; color: var(--fv2-mute); }
.inloff-fv2 .inloff-fv2-cfg--vino .inloff-fv2-summary { overflow-wrap: anywhere; }
.inloff-fv2 .inloff-fv2-qty-row { display: flex; align-items: center; gap: 12px; }
.inloff-fv2 .inloff-fv2-qty { display: flex; align-items: center; border: 1px solid #D8D3C8; border-radius: 8px; flex: none; }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-qty button { width: 44px; height: 44px; font-size: 18px; color: var(--fv2-navy); justify-content: center; text-align: center; }
.inloff-fv2 .inloff-fv2-cfg .inloff-fv2-qty button[disabled] { opacity: .35; cursor: default; }
.inloff-fv2 .inloff-fv2-qty output { min-width: 24px; text-align: center; font-size: 15px; color: var(--fv2-navy); font-variant-numeric: tabular-nums; }
.inloff-fv2 .inloff-fv2-qty-lab { font-size: 13px; line-height: 1.35; }
.inloff-fv2 .inloff-fv2-qty-lab strong { font-weight: 600; }

/* ── Para vuestra boda ───────────────────────────────── */
.inloff-fv2 .inloff-fv2-boda .inloff-fv2-in { display: grid; grid-template-areas: "head" "tapas" "body"; gap: 16px; padding-block: 26px; }
.inloff-fv2 .inloff-fv2-boda__head { grid-area: head; }
.inloff-fv2 .inloff-fv2-boda__head h2 { margin-top: 6px; font-size: 24px; }
.inloff-fv2 .inloff-fv2-boda__body { grid-area: body; }
.inloff-fv2 .inloff-fv2-tapas { grid-area: tapas; min-width: 0; }
.inloff-fv2 .inloff-fv2-tapa-vista {
  position: relative;
  aspect-ratio: 1240 / 311;
  border-radius: 3px;
  overflow: hidden;
  background: #D9BE97;
  box-shadow: 0 1px 2px rgba(60, 40, 20, .18), 0 10px 28px -14px rgba(60, 40, 20, .35);
}
.inloff-fv2 .inloff-fv2-band .inloff-fv2-tapa-vista img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 25%;
  opacity: 0;
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1);
}
.inloff-fv2 .inloff-fv2-band .inloff-fv2-tapa-vista img.on { opacity: 1; }
.inloff-fv2 .inloff-fv2-nombres { display: flex; gap: 6px; margin-top: 14px; }
.inloff-fv2 .inloff-fv2-band .inloff-fv2-nombres button {
  flex: 1 1 auto;
  justify-content: center;
  border: 1px solid #D9CBB0;
  background: var(--fv2-paper);
  border-radius: 999px;
  padding: 8px 6px;
  min-height: 36px;
  font-size: 13px;
  color: var(--fv2-navy);
  transition: background-color .2s, color .2s, border-color .2s;
}
.inloff-fv2 .inloff-fv2-band .inloff-fv2-nombres button:hover { border-color: var(--fv2-navy); }
.inloff-fv2 .inloff-fv2-band .inloff-fv2-nombres button[aria-pressed="true"] { background: var(--fv2-navy); border-color: var(--fv2-navy); color: var(--fv2-cream); }
.inloff-fv2 .inloff-fv2-band p.inloff-fv2-tapa-nota { margin: 10px 0 0; font-size: 12px; color: var(--fv2-mute); }
.inloff-fv2 .inloff-fv2-boda__body p { margin-top: 0; }
.inloff-fv2 .inloff-fv2-band p.inloff-fv2-q2 { margin-top: 12px; font-family: var(--fv2-display); font-style: italic; color: var(--fv2-navy); }
.inloff-fv2 .inloff-fv2-q2 span { font-family: var(--fv2-body); font-style: normal; font-size: 12px; color: var(--fv2-mute); }

/* ── Qué incluye ─────────────────────────────────────── */
.inloff-fv2 .inloff-fv2-incl { display: flex; flex-direction: column; gap: 14px; }
.inloff-fv2 .inloff-fv2-incl__pics { display: grid; gap: 12px; }
.inloff-fv2 .inloff-fv2-incl__pics img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; max-width: 100%; }
.inloff-fv2 .inloff-fv2-incl__pics img + img { display: none; }
.inloff-fv2 .inloff-fv2-incl ul { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.7; }
.inloff-fv2 .inloff-fv2-incl li { list-style: disc; margin: 0; }
.inloff-fv2 .inloff-fv2-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--fv2-mute); }
.inloff-fv2 .inloff-fv2-note strong { font-weight: 600; color: var(--fv2-ink); }
/* La descripción de la ficha (ops), a la vista: una columna de lectura. */
.inloff-fv2 .inloff-fv2-desc { max-width: 68ch; margin-top: 12px; font-size: 15px; line-height: 1.6; }
.inloff-fv2 .inloff-fv2-desc p { margin: 0; }
.inloff-fv2 .inloff-fv2-desc p + p { margin-top: 12px; }

/* ── El taller: el vídeo ─────────────────────────────── */
.inloff-fv2 .inloff-fv2-taller--vino { gap: 18px; }
.inloff-fv2 .inloff-fv2-laser { margin: 0; }
.inloff-fv2 .inloff-fv2-laser video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #2A2B2E; }
.inloff-fv2 .inloff-fv2-laser figcaption { margin-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 12px; line-height: 1.45; color: var(--fv2-mute); }
.inloff-fv2 .inloff-fv2-sec .inloff-fv2-pausa { flex: none; padding: 6px 0; color: var(--fv2-navy); text-decoration: underline; font-weight: 500; font-size: inherit; }
.inloff-fv2 .inloff-fv2-pasos { margin: 20px 0 0; padding: 0; counter-reset: fv2p; }
.inloff-fv2 .inloff-fv2-pasos li { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--fv2-line); font-size: 15px; margin: 0; }
.inloff-fv2 .inloff-fv2-pasos li::before {
  counter-increment: fv2p;
  content: counter(fv2p);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--fv2-heart);
  color: var(--fv2-bronze);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
}
.inloff-fv2 .inloff-fv2-pasos b { font-weight: 500; color: var(--fv2-navy); }
.inloff-fv2 .inloff-fv2-pasos small { display: block; font-size: 13px; color: var(--fv2-mute); line-height: 1.45; }
.inloff-fv2 .inloff-fv2-pasos em { font-style: normal; font-size: 13px; color: var(--fv2-bronze); white-space: nowrap; }

/* ── Ordenador ───────────────────────────────────────── */
@media (min-width: 960px) {
  /* Esta hoja solo carga en la caja: las medidas de las dos columnas de su maqueta. */
  .inloff-fv2 .inloff-fv2-cols { gap: 48px; }
  .inloff-fv2 .inloff-fv2-gal { flex-basis: 54%; }
  .inloff-fv2 .inloff-fv2-buy { max-width: 540px; }
  .inloff-fv2 .inloff-fv2-thumbs { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
  .inloff-fv2 .inloff-fv2-head .inloff-fv2-line { font-size: 15px; }
  .inloff-fv2 .inloff-fv2-boda .inloff-fv2-in {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "tapas head" "tapas body";
    align-content: center;
    column-gap: 56px;
    row-gap: 0;
    padding-block: 56px;
  }
  .inloff-fv2 .inloff-fv2-boda__head { align-self: end; }
  .inloff-fv2 .inloff-fv2-boda__body { align-self: start; margin-top: 14px; }
  .inloff-fv2 .inloff-fv2-band .inloff-fv2-nombres button { flex: 0 0 auto; font-size: 14px; padding: 9px 16px; }
  .inloff-fv2 .inloff-fv2-band p.inloff-fv2-tapa-nota { font-size: 13px; }
  .inloff-fv2 .inloff-fv2-boda__head h2 { font-size: 34px; }
  .inloff-fv2 .inloff-fv2-band p.inloff-fv2-q2 { font-size: 17px; }
  .inloff-fv2 .inloff-fv2-incl { flex-direction: row; align-items: center; gap: 56px; }
  .inloff-fv2 .inloff-fv2-incl__pics { flex: 1.15 1 0; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inloff-fv2 .inloff-fv2-incl__pics img + img { display: block; }
  .inloff-fv2 .inloff-fv2-incl__tx { flex: 1 1 0; min-width: 0; }
  .inloff-fv2 .inloff-fv2-incl ul { font-size: 16px; line-height: 1.8; }
  .inloff-fv2 .inloff-fv2-note { font-size: 14px; }
  .inloff-fv2 .inloff-fv2-taller--vino { gap: 56px; }
  .inloff-fv2 .inloff-fv2-laser figcaption { font-size: 13px; }
  .inloff-fv2 ol.inloff-fv2-pasos.inloff-fv2-desk { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .inloff-fv2 .inloff-fv2-switch::after,
  .inloff-fv2 .inloff-fv2-band .inloff-fv2-tapa-vista img { transition: none; }
}
