/* Product page template (Pablo, 5 Nov 2026; built from diseno/producto/round5/pagina-v04.html).
   One layout for every product; each page sets its own colours on <body class="producto"> with --p-a, --p-b, --p-c
   (the hero sweep), --p-edge (its darker edges), --p-hi (the glow behind the product) and --p-acento (tabs, card).
   Below the purple hero the page is the homepage's cream (.pagina from site.css), joined by the same zigzag. */

.producto { --p-a: #774fc2; --p-b: #8255d0; --p-c: #6744a9; --p-edge: #1e0b3ea0; --p-hi: #c9a6ff80; --p-acento: #6742a1; --p-suave: #e3d2ff;
  background: var(--p-c); }

/* Hero: full width, the stage's wall recipe in the product's colours: a glow behind the product, darker edges, 125deg sweep.
   No table or horizon: the cut-out stands on the colour with two soft contact shadows, like the fruit in the stage. */
.producto-hero { position: relative; min-height: max(700px, 100svh);   /* cream starts at the fold */  padding: calc(var(--nav-height) + 24px) 0 64px; display: grid; align-items: center; color: #fff;
  background: radial-gradient(circle min(640px, 52vw) at var(--p-hi-pos, 31% 58%), color-mix(in srgb, var(--p-hi) 100%, transparent) 0%, color-mix(in srgb, var(--p-hi) 94%, transparent) 12%, color-mix(in srgb, var(--p-hi) 75%, transparent) 25%, color-mix(in srgb, var(--p-hi) 51%, transparent) 38%, color-mix(in srgb, var(--p-hi) 32%, transparent) 50%, color-mix(in srgb, var(--p-hi) 17%, transparent) 62%, color-mix(in srgb, var(--p-hi) 8%, transparent) 75%, color-mix(in srgb, var(--p-hi) 3%, transparent) 88%, transparent 100%),   /* bell-curve glow, no rim (as the stage, 5 Nov 2026) */
              radial-gradient(ellipse at 48% 40%, transparent 28%, color-mix(in srgb, var(--p-edge) 10%, transparent) 45%, color-mix(in srgb, var(--p-edge) 32%, transparent) 62%, color-mix(in srgb, var(--p-edge) 64%, transparent) 80%, var(--p-edge) 100%),
              linear-gradient(125deg, var(--p-a), var(--p-b) 50%, var(--p-c)); }
/* the columns are the home slides': the copy starts where the slides' copy starts (--copy-left) and keeps their right margin
   (--copy-right); the product is centred in what is left of it, between the same margin and the copy */
.producto-hero .contenido { width: 100%; display: grid; align-items: center;
  grid-template-columns: var(--copy-right) calc(var(--copy-left) - var(--copy-right)) minmax(0, 1fr) var(--copy-right); }   /* margin | product | copy | margin */
.producto-hero .producto-foto { grid-column: 2; }
.producto-hero .producto-texto { grid-column: 3; position: relative; z-index: 2; }   /* above the turn: a wide frame (Ate, Saborela) reaches under the copy and swallowed the button's clicks (Pablo, 19 Nov 2026) */
.producto-foto { position: relative; width: min(100%, max(560px, 39vw)); justify-self: center; }   /* grows on wide screens so the product keeps its share of the hero */
.producto-foto img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
/* a hero image with its shadow baked in (diseno/producto/recortes/sombras.py) is wider than the product: --sx is its width over
   the product's, --sl the shadow's share on the left, so the product keeps its size and place and the shadow spills out */
.producto-foto img.con-sombra { width: calc(100% * var(--sx)); max-width: none; margin-left: calc(-100% * var(--sl)); }
.producto-hero { overflow-x: clip; }
/* a green product page (Ate; Pablo, 30 Nov 2026): the hero is the homepage's opening stage itself, layer for layer, on the same variables
   (site.css --s1-*): the stage's dark surround (.spotlight), the shade and the logo-green sheet over everything, the tight yellow pool
   under the product, the stage's edges, and its fine grain (.hero::after) under the product and the copy. The card gets the same sheet. */
.producto--verde { --p-foco: radial-gradient(ellipse 46% 58% at 29% 58%, transparent 30%, rgb(4 16 3 / .34) 100%); }
.producto--verde .producto-hero { background: var(--p-foco), linear-gradient(var(--s1-shade), var(--s1-shade)), linear-gradient(var(--s1-sheet), var(--s1-sheet)), radial-gradient(ellipse 34% 30% at var(--p-hi-pos, 29% 66%), var(--s1-hi) 0%, transparent 100%), radial-gradient(ellipse at 48% 40%, transparent 30%, var(--s1-edge) 100%), linear-gradient(125deg, var(--s1-a), var(--s1-b) 50%, var(--s1-c)); }
.producto--verde .producto-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .075; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.producto--verde .pagina .comprar { background: linear-gradient(var(--s1-shade), var(--s1-shade)), linear-gradient(var(--s1-sheet), var(--s1-sheet)), radial-gradient(circle 320px at 85% 0%, var(--s1-hi), transparent 100%), linear-gradient(140deg, var(--s1-b), var(--s1-c)); }
/* the pack turning (js/giro.js): a portrait canvas, the pack and its own shadow in the frames, so no CSS shadows */
.producto-foto--giro { width: min(100%, max(460px, 32vw)); }
.producto-foto canvas.giro { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.producto-hero .producto-foto--ancho { width: 124%; max-width: none; margin-bottom: -6%; }   /* a landscape product (the Saborela crate): its frames carry wide room for the shadow, so the frame overflows its column and the product keeps its size */
.producto-hero .producto-foto--medio { width: 94%; max-width: none; }   /* a group about as wide as it is tall (the three Mermy bottles): its frames are cropped close, so it sits inside its column */
.producto-hero .producto-foto--grande { width: min(100%, max(620px, 43vw)); }   /* the barritas fan: three slim packs read small in the standard frame, so it takes more of its column (Pablo, 3 Dec 2026) */
.producto-foto .sombra { position: absolute; border-radius: 50%; background: radial-gradient(ellipse closest-side, rgba(20,6,45,.55), transparent); filter: blur(3px); }
/* where the bag stands and where the barritas lie, measured on the cut-out (percent of the image box) */
.producto-foto .sombra--a { left: 40%; width: 63%; top: 84.4%; height: 6.8%; }
.producto-foto .sombra--b { left: 0; width: 80%; top: 94.9%; height: 7.5%; }
/* text = the stage's blocks (site.css option B): heading, lead line one step down, hairline, quieter body; then the one button */
.producto-texto h1 { text-wrap: balance; }
.producto-texto .cta { display: inline-block; margin-top: 34px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; font-weight: 700; font-size: clamp(15px, 1.15vw, 17px); text-decoration: none; padding: 13px 26px; border-radius: 999px; transition: transform .2s ease; }
.producto-texto .cta:hover, .producto-texto .cta:focus-visible { transform: translateY(-2px); }

.producto-texto .sabores { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 0; padding: 0; }
.producto-texto .sabores li { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: #fff; }
.producto-texto .sabores li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 2.5px #fff; }
.producto-texto .sabores + .cta { margin-top: 30px; }
.pagina .panel .sabores-tabla td, .pagina .panel .sabores-tabla td:last-child { font-weight: 700; text-align: left; }
.pagina .sabores-tabla span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--s); margin-right: 10px; vertical-align: -1px; }

/* the cream page rides on the hero with the homepage's divider: the Confitex wrapper's zigzag, cream teeth into the colour */
.producto .pagina { position: relative; }
.producto .pagina::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 9px; background: var(--crema); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 9 9 0l9 9z'/%3E%3C/svg%3E") repeat-x left bottom/18px 9px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 9 9 0l9 9z'/%3E%3C/svg%3E") repeat-x left bottom/18px 9px; }

/* Label facts (left) and where to buy (right) */
.pagina .ficha { padding: var(--espacio) 24px 0; }   /* the shared spacer (site.css) */
.pagina .ficha .contenido { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }   /* side by side the two cards are the same height (Pablo, 19 Nov 2026) */
.pagina .datos { background: #fff; border-radius: var(--radio); padding: clamp(24px, 2.4vw, 32px); }
.pagina .pestanas { display: flex; flex-wrap: wrap; gap: 8px; }
.pagina .pestanas button { font: inherit; font-size: 14px; font-weight: 700; color: var(--gris); background: transparent; border: 1.5px solid #d9d1c7; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.pagina .pestanas button[aria-selected="true"] { background: var(--p-acento); border-color: var(--p-acento); color: #fff; }
.pagina .panel h2 { margin: 26px 0 0; font-size: clamp(22px, 2vw, 26px); font-weight: 900; letter-spacing: -.02em; }   /* h2, not h3: these sections follow the h1 directly (SEO heading order, 18 Nov 2026) */
.pagina .panel .nota { margin: 4px 0 0; font-size: 14px; color: var(--gris); }
.pagina .panel table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.pagina .panel td { padding: 10px 0; border-bottom: 1px solid #ece5dc; }
.pagina .panel td:last-child { text-align: right; font-weight: 700; }
.pagina .panel tr:last-child td { border-bottom: 0; }   /* the same in the label card: lines between rows only */
.pagina .panel p.texto { margin: 16px 0 0; font-size: 16px; line-height: 1.55; max-width: 46ch; }

/* where to buy: a list of destinations, not a row of buttons; only the hero keeps the white button */
.pagina .comprar { border-radius: var(--radio); padding: clamp(26px, 2.6vw, 36px); color: #fff; display: flex; flex-direction: column; scroll-margin-top: 96px;
  background: radial-gradient(circle 320px at 85% 0%, var(--p-hi), transparent 100%), linear-gradient(140deg, var(--p-b), var(--p-c)); }
.pagina .comprar h2 { margin: 0; font-size: clamp(32px, 3vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.pagina .comprar .kicker { color: var(--p-suave); }
.pagina .destinos { list-style: none; padding: 0; margin: 26px 0 0; }
.pagina .destinos li:last-child > * { border-bottom: 0; }   /* lines only between the rows, none above the first or under the last (Pablo, 19 Nov 2026) */
.pagina .destinos a, .pagina .destinos .pronto { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.pagina .destinos b { display: block; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.02em; }
.pagina .destinos .pronto { opacity: .8; }
.pagina .destinos small { display: block; font-size: 14px; opacity: .72; margin-top: 3px; }
.pagina .destinos .flecha { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 20px; transition: background .2s ease, color .2s ease; }
.pagina .destinos a:hover .flecha, .pagina .destinos a:focus-visible .flecha { background: #fff; color: var(--p-acento); }
.pagina .distribuidor { margin: auto 0 0; padding-top: 22px; font-size: 15px; opacity: .85; }
.pagina .distribuidor a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 760px) {
  .producto-hero { min-height: 0; padding: calc(var(--nav-height) + 16px) var(--margen-hero) 56px; }
  .producto-hero .contenido { grid-template-columns: 1fr; gap: 28px; }
  .producto-hero .producto-foto,.producto-hero .producto-texto { grid-column: 1; }
  .producto-foto { width: min(84%, 420px); }
  .producto-foto--giro { width: min(86%, 380px); }
  .producto-hero .producto-foto--ancho { width: 140%; margin-bottom: -16%; }   /* the shadow's room below needs no space of its own */
  .producto-hero .producto-foto--medio { width: 128%; margin-bottom: -3%; }
  .producto-hero .producto-foto--grande { width: min(104%, 460px); }
  .producto-texto .cta { display: block; text-align: center; }   /* phones: the hero CTA spans the text column (Pablo, 30 Nov 2026) */
  .producto { --p-hi-pos: 50% 26%; }   /* the glow stays behind the product, not behind the title */
  .producto--verde { --p-foco: radial-gradient(ellipse 70% 34% at 50% 30%, transparent 30%, rgb(4 16 3 / .34) 100%); }   /* the stage's phone surround */
  .pagina .ficha .contenido { grid-template-columns: 1fr; }
}
