/* Product pages (Melón, Sandía, Calabaza, Apio, Garrofón) and IV gama: 2026 interior design. Hero, chapters (.vp-chapter, .vp-story),
   the dark chapter, the contact form and the exit band come from professionals.css; this file
   adds the pieces every product page shares: growing cycle, brand cards and news. */

/* Hero: the original intro carries <strong>; keep it one tone lighter, not bold-heavy. */
.vp-product-hero .vp-pro-hero-copy strong { color: #f1ecdd; font-family: 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; font-weight: normal; }
.vp-melon-hero .vp-pro-hero-art img { object-position: 75% 50%; }

/* Chapter texts carry <strong> too. */
.vp-product .vp-pro-head-intro strong { color: var(--vp-ink); font-family: 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; font-weight: normal; }
.vp-product .vp-pro-head--dark .vp-pro-head-intro strong { color: #f1ecdd; }

/* 02 · Growing cycle: five steps in a row on the dark chapter. */
.vp-product-cycle .vp-pro-head { grid-template-columns: minmax(0,1fr) minmax(320px,.9fr); }
.vp-product-cycle-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vp-product-cycle-list li:nth-child(even) { margin-top: 48px; }
.vp-product-cycle-list figure { margin: 0; }
.vp-product-cycle-list img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #0f100c; }
.vp-product-cycle-list figcaption { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(193,166,90,.45); margin-top: 16px; font: 22px/1.15 var(--vp-display); color: var(--vp-paper); }
.vp-product-cycle-list figcaption span { font: 13px/1 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; letter-spacing: .14em; color: #c1a65a; }

/* Growing season route (Sandía): regions in order, on the dark chapter. */
.vp-product-route { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 64px; padding: 0; list-style: none; counter-reset: route; }
.vp-product-route li { position: relative; padding: 26px 18px 0 0; border-top: 1px solid rgba(193,166,90,.45); font: 24px/1.15 var(--vp-display); color: var(--vp-paper); }
.vp-product-route li::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--vp-gold); }
.vp-product-route span { display: block; margin-top: 8px; font: 13px/1.3 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #c1a65a; }

/* 03 · Brands: two-by-two cards, product shot on its brand colour. */
.vp-product #marcas { scroll-margin-top: 70px; }
.vp-product-brands { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 72px 5vw; }
.vp-product-brand { scroll-margin-top: 90px; }
.vp-product-brand figure { margin: 0 0 28px; overflow: hidden; }
.vp-product-brand img { display: block; width: 100%; height: auto; aspect-ratio: 1250 / 900; object-fit: cover; }
.vp-2026 .vp-product-brand .vp-kicker { margin: 0 0 10px; color: #626858; }
.vp-2026 .vp-product-brand h3 { margin: 0 0 18px; font: clamp(32px,2.6vw,44px)/1.05 var(--vp-display); letter-spacing: -.015em; color: var(--vp-ink); text-wrap: balance; }
.vp-2026 .vp-product-brand p:not(.vp-kicker) { margin: 0 0 16px; color: #3f4439; font-size: 18px; line-height: 1.6; }
.vp-product-brand strong { color: var(--vp-ink); font-family: 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; font-weight: normal; }
.vp-product-brand .vp-text-link { margin-top: 6px; color: var(--vp-ink); }

/* Long intros sit under the heading, at reading width. */
.vp-product .vp-chapter-head .vp-pro-head-intro { max-width: 820px; font-size: 19px; }

/* Links inside the original texts. */
.vp-product .vp-story-text a:not(.vp-cta), .vp-product-brand p a, .vp-product .vp-pro-head-intro a { color: var(--vp-ink); text-decoration: underline; text-decoration-color: var(--vp-gold); text-underline-offset: 4px; }
.vp-story-photo--wide img { aspect-ratio: 3 / 2; }
.vp-story-photo--pano img { aspect-ratio: auto; }
/* Calabaza: variety texts start in lower case, as a continuation of the name above. */
.vp-product-kinds .vp-product-brand p:not(.vp-kicker)::first-letter { text-transform: uppercase; }
.vp-product-brand img.vp-product-cert { display: block; width: 190px; height: auto; aspect-ratio: auto; margin-top: 20px; }
.vp-product #variedades, .vp-product #cuarta-gama, .vp-product #formatos { scroll-margin-top: 70px; }
/* Product heroes keep their pre-2026 photo, a wide close-up: on desktop the art runs wider so
   the edge of the fruit stays in frame. */
@media (min-width:901px) {
  .vp-product-hero--wide .vp-pro-hero-art { inset: 0 0 0 18%; }
}
.vp-sandia-hero .vp-pro-hero-art img { object-position: 88% 50%; }
.vp-calabaza-hero .vp-pro-hero-art img { object-position: 30% 60%; }
.vp-apio-hero .vp-pro-hero-art img { object-position: 30% 60%; }
.vp-garrofon-hero .vp-pro-hero-art img { object-position: 70% 50%; }
.vp-product #sandia-tarrina { scroll-margin-top: 70px; }

/* Garrofón: three formats in one row; the traditional varieties as a large numbered list. */
.vp-product-brands--three { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 56px 3vw; }
.vp-product-varieties-photo img { object-fit: contain; background: #fff; }
.vp-product-varieties ol { margin: 0 0 34px; padding: 0; list-style: none; }
.vp-product-varieties li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 24px 0; border-top: 1px solid rgba(193,166,90,.32); font: clamp(26px,2.2vw,36px)/1.1 var(--vp-display); color: var(--vp-paper); }
.vp-product-varieties li:first-child { border-top: 0; padding-top: 0; }
.vp-product-varieties li span { font: 13px/1 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; letter-spacing: .14em; color: #c1a65a; }
.vp-2026 .vp-product-varieties p { margin: 0; padding-top: 26px; border-top: 1px solid rgba(193,166,90,.32); color: #cfd0c6; font-size: 18px; line-height: 1.55; }

/* IV gama: white-room texts on the dark chapter, the six-step control circuit and the format catalogue. */
.vp-ivgama-hero .vp-pro-hero-art img { object-position: 60% 50%; }
.vp-2026 .vp-ivgama-room-text p { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(193,166,90,.32); color: #cfd0c6; font-size: 18px; line-height: 1.6; }
.vp-2026 .vp-ivgama-room-text p:last-child { border-bottom: 0; }
.vp-ivgama-room-text strong { color: #f1ecdd; font-family: 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; font-weight: normal; }
.vp-2026 .vp-ivgama-steps-title, .vp-2026 .vp-ivgama-catalog-title { margin: 96px 0 34px; font: var(--vp-subsection-title)/1.1 var(--vp-display); }
.vp-2026 .vp-ivgama-steps-title { color: var(--vp-paper); }
.vp-product-cycle-list--six { grid-template-columns: repeat(6,minmax(0,1fr)); }
.vp-product-cycle-list--six img { aspect-ratio: 1; }
.vp-2026 .vp-ivgama-catalog-title { color: var(--vp-ink); }
.vp-ivgama-catalog { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 32px 14px; margin: 0; padding: 0; list-style: none; }
.vp-ivgama-catalog img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.vp-2026 .vp-ivgama-catalog h4 { margin: 14px 0 4px; font: 19px/1.2 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; color: var(--vp-ink); }
.vp-2026 .vp-ivgama-catalog p { margin: 0; font-size: 15px; color: #626858; }
.vp-2026 .vp-ivgama-catalog-note { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--vp-line); font-size: 18px; color: #3f4439; }
.vp-ivgama-catalog-note strong { color: var(--vp-ink); font-family: 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; font-weight: normal; }
.vp-product #formatos, .vp-product [id^="ivgama-sec"] { scroll-margin-top: 70px; }

/* 04 · IV gama: the CTA sits under the text. */
.vp-product .vp-story-text .vp-cta { margin-top: 30px; }
.vp-product #melon-tarrina { scroll-margin-top: 70px; }

/* Ficha comercial (template-parts/product-specs.php): definition list in two columns, one rule per row,
   the B2B block that sits before the contact form on every product page. */
.vp-product #ficha { scroll-margin-top: 70px; }
.vp-product-specs .vp-pro-head { align-items: end; }
.vp-specs { margin: 0; padding: 0; border-top: 1px solid var(--vp-gold); }
.vp-specs-row { display: grid; grid-template-columns: minmax(200px,.28fr) minmax(0,1fr); gap: 24px 5vw; padding: 30px 0; border-bottom: 1px solid var(--vp-line); }
.vp-2026 .vp-specs dt { margin: 0; font: 13px/1.4 'myriad_set_prosemibold','vp-semibold-fb',sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #626858; padding-top: 4px; }
.vp-2026 .vp-specs dd { margin: 0; }
.vp-specs dd ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.vp-2026 .vp-specs dd li { position: relative; padding-left: 20px; font-size: 18px; line-height: 1.5; color: #3f4439; }
.vp-specs dd li::before { content: ''; position: absolute; top: .62em; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--vp-gold); }
.vp-2026 .vp-specs dd p { margin: 0; font-size: 18px; line-height: 1.5; color: #3f4439; }
.vp-specs-row--logistics dd p { color: var(--vp-ink); }
.vp-specs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 44px; }
.vp-specs-actions .vp-text-link { color: var(--vp-ink); }
.vp-2026 .vp-specs-note { margin: 28px 0 0; font-size: 14px; line-height: 1.5; color: #626858; }
@media (max-width:900px) {
  .vp-specs-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .vp-specs dd ul { grid-template-columns: 1fr; gap: 10px; }
}
@media print {
  .vp-specs-actions { display: none; }
  .vp-2026 .vp-specs dd li, .vp-2026 .vp-specs dd p { color: #000; }
}

/* 05 · News: the home's blog cards, inside a chapter. */
.vp-product-news .blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; max-width: none; margin: 0; padding: 0; }
.vp-2026 .vp-product-news .blog-card h3 { font-size: clamp(24px,1.8vw,30px); }

/* 06 · Contact: the original heading is a long question, so it runs one step smaller. */
.vp-2026.vp-product-page .contacto-left h2 { font-size: clamp(40px,3.8vw,62px); }

@media (max-width:1100px) {
  .vp-product-cycle-list--six, .vp-ivgama-catalog { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .vp-product-cycle-list--six li:nth-child(even) { margin-top: 0; }
  .vp-product-brands--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vp-product-cycle .vp-pro-head { grid-template-columns: 1fr; }
  .vp-product-cycle-list { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 36px; }
  .vp-product-cycle-list li:nth-child(even) { margin-top: 0; }
}
@media (max-width:900px) {
  .vp-product-brands { grid-template-columns: 1fr; gap: 64px; }
  .vp-product-brands--three { grid-template-columns: 1fr; }
  .vp-product-news .blog-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width:700px) {
  .vp-product-cycle-list--six, .vp-ivgama-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vp-product-cycle-list--six li:last-child { grid-column: auto; }
  .vp-product-cycle-list--six li:last-child img { aspect-ratio: 1; }
  .vp-2026 .vp-ivgama-steps-title, .vp-2026 .vp-ivgama-catalog-title { margin-top: 64px; }
  .vp-product-route { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 30px; margin-bottom: 44px; }
  .vp-product-route li { font-size: 20px; }
  .vp-product-cycle-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 10px; }
  .vp-product-cycle-list li:last-child { grid-column: 1 / -1; }
  .vp-product-cycle-list li:last-child img { aspect-ratio: 4 / 3; }
  .vp-product-cycle-list figcaption { font-size: 19px; margin-top: 12px; padding-top: 12px; }
  .vp-2026 .vp-product-brand p:not(.vp-kicker) { font-size: 17px; }
  .vp-2026.vp-product-page .contacto-left h2 { font-size: clamp(32px,8.6vw,40px); }
}
@media print {
  .vp-product-cycle-list figcaption, .vp-product-route li, .vp-product-varieties li { color: #000; }
}
