/* 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) clamp(20px, 4vw, 56px) 64px; display: grid; align-items: center; color: #fff;
  background: radial-gradient(circle min(640px, 52vw) at 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)); }
.producto-hero .contenido { width: 100%; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.producto-foto { position: relative; width: min(100%, 560px); justify-self: center; }
.producto-foto img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.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); }

/* 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: clamp(56px, 7vw, 96px) 24px 0; }
.pagina .ficha .contenido { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.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 h3 { margin: 26px 0 0; font-size: clamp(22px, 2vw, 26px); font-weight: 900; letter-spacing: -.02em; }
.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 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; border-top: 1px solid rgba(255,255,255,.22); }
.pagina .destinos a { 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 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-top: calc(var(--nav-height) + 16px); padding-bottom: 56px; }
  .producto-hero .contenido { grid-template-columns: 1fr; gap: 28px; }
  .producto-foto { width: min(84%, 420px); }
  .pagina .ficha .contenido { grid-template-columns: 1fr; }
}
