/* Páginas de producto RALÚN (natural.html y pomelo.html). Paleta y tipografía de las etiquetas finales (26-10-2026). */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/montserrat-latin.woff2) format("woff2"); }
:root {
  --tinta: #252D61;
  --tinta-suave: #4B5280;
  --azul: #5895C1;
  --celeste: #C5D9E9;
  --coral: #E87C71;
  --rosa: #F8D1CD;
  --blanco: #FFFFFF;
  --hueso: #FAFAF8;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  /* Color de la versión: lo cambia cada página con body.v-pomelo */
  --v: var(--azul);
  --v-suave: var(--celeste);
  --v-texto: #2F6A97; /* azul con contraste suficiente sobre blanco */
}
body.v-pomelo { --v: var(--coral); --v-suave: var(--rosa); --v-texto: #B4483D; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--tinta); background: var(--blanco); -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; border-radius: 4px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra superior (igual a la portada) */
.top { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 40px); background: rgba(255,255,255,.92); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(37,45,97,.07); }
.top .marca { width: 86px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 14px; font-weight: 500; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { border-color: var(--v); }
.top nav a:hover { border-color: rgba(37,45,97,.25); }

.envoltura { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* 1 · Producto: foto + datos de compra */
.ficha { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
/* Visor de la lata (PNG transparente en alta resolución, con zoom) */
.visor { margin: 0; }
.visor-marco { position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5; display: grid; place-items: center; cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 80% at 50% 35%, #FFFFFF 0%, #F6F7FA 55%, color-mix(in srgb, var(--v-suave) 55%, #FFFFFF) 100%); }
.visor-marco.acercado { cursor: zoom-out; touch-action: none; }
.visor picture { position: absolute; inset: 6% 0; z-index: 1; display: flex; justify-content: center; }
.visor-lata { height: 100%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 26px 22px rgba(37,45,97,.16)) drop-shadow(0 6px 6px rgba(37,45,97,.10)); transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.visor-marco.acercado .visor-lata { transition: transform .35s cubic-bezier(.2,.7,.2,1), transform-origin .08s linear; filter: none; }
.visor-onda { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22%; z-index: 0; }
.visor-ayuda { margin-top: 12px; text-align: center; font-size: 13px; color: var(--tinta-suave); }
.visor .si-toque, .visor.con-toque .si-mouse { display: none; }
.visor.con-toque .si-toque { display: inline; }
.versiones { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: #F2F3F7; margin-bottom: 28px; }
.versiones a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--tinta-suave); }
.versiones a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.versiones a[aria-current="page"] { background: var(--blanco); color: var(--tinta); font-weight: 600; box-shadow: 0 1px 2px rgba(37,45,97,.08), 0 4px 14px rgba(37,45,97,.06); }
.ficha h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.ficha .sabor { display: block; margin-top: 10px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; color: var(--v-texto); letter-spacing: 0; }
.ficha .bajada { margin-top: 18px; font-size: 17px; color: var(--tinta-suave); max-width: 44ch; }
.ceros { display: flex; gap: clamp(18px, 3vw, 36px); margin: 28px 0; padding: 18px 0; border-block: 1px solid rgba(37,45,97,.1); list-style: none; }
.ceros li { font-size: 13px; font-weight: 500; color: var(--tinta-suave); line-height: 1.2; }
.ceros strong { display: block; font-size: 30px; font-weight: 600; color: var(--tinta); line-height: 1; margin-bottom: 4px; }
.compra { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.compra .precio { font-size: 30px; font-weight: 600; }
.compra .detalle { font-size: 15px; color: var(--tinta-suave); }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; padding: 17px 30px; border-radius: 999px; background: var(--tinta); color: var(--blanco); text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .15s, background .2s; }
.boton:hover { background: #1B2250; }
.boton:active { transform: scale(.98); }
.nota-compra { margin-top: 14px; font-size: 14px; color: var(--tinta-suave); max-width: 46ch; }

/* 2 · El gas: el momento memorable de la página */
.gas { position: relative; overflow: hidden; background: var(--tinta); color: var(--blanco); padding: clamp(72px, 10vw, 140px) 0; isolation: isolate; }
.gas .envoltura { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.gas h2 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.gas h2 span { display: block; color: var(--v-suave); }
.gas p { font-size: 18px; color: rgba(255,255,255,.82); max-width: 42ch; }
.gas p + p { margin-top: 14px; }
.burbujas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.burbujas i { position: absolute; bottom: -20px; left: var(--x); width: var(--t); height: var(--t); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%); animation: sube var(--d) linear var(--r) infinite; opacity: 0; }
@keyframes sube {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(6px, -50vh); }
  90% { opacity: .9; }
  100% { transform: translate(-4px, -100vh); opacity: 0; }
}
.onda-gas { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; width: 100%; z-index: 0; }

/* 3 · Sabor */
.sabor-bloque { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(64px, 9vw, 120px) 0; }
.sabor-bloque img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.titulo-seccion { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.texto-seccion { margin-top: 18px; font-size: 17px; color: var(--tinta-suave); max-width: 46ch; }
.puntos { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.puntos li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; }
.puntos li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 4px var(--v-suave); }

/* 4 · Qué tiene */
.contenido { background: var(--hueso); padding: clamp(64px, 9vw, 120px) 0; }
.contenido .envoltura { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 88px); }
.etiqueta { background: var(--blanco); border: 1px solid rgba(37,45,97,.12); border-radius: 20px; padding: clamp(22px, 3vw, 34px); }
.etiqueta h3 { font-size: 15px; font-weight: 600; padding-bottom: 12px; border-bottom: 6px solid var(--tinta); }
.etiqueta dl { display: grid; grid-template-columns: 1fr auto; }
.etiqueta dt, .etiqueta dd { padding: 12px 0; border-bottom: 1px solid rgba(37,45,97,.1); font-size: 15px; }
.etiqueta dd { text-align: right; font-weight: 600; }
.etiqueta .ingredientes { margin-top: 18px; font-size: 14px; color: var(--tinta-suave); }
.etiqueta .ingredientes strong { color: var(--tinta); }

/* 5 · Momentos */
.momentos { padding: clamp(64px, 9vw, 120px) 0; }
.momentos-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.momentos figure img { border-radius: 18px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.momentos figcaption { margin-top: 12px; font-size: 15px; }
.momentos figcaption strong { display: block; font-weight: 600; }
.momentos figcaption span { color: var(--tinta-suave); font-size: 14px; }

/* 6 · Lata y despacho */
.promesas { border-top: 1px solid rgba(37,45,97,.1); padding: clamp(56px, 7vw, 96px) 0; }
.promesas .envoltura { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.promesa svg { width: 40px; height: 40px; color: var(--v); margin-bottom: 16px; }
.promesa h3 { font-size: 19px; font-weight: 600; }
.promesa p { margin-top: 8px; font-size: 15px; color: var(--tinta-suave); max-width: 34ch; }

/* 7 · Preguntas */
.preguntas { background: var(--hueso); padding: clamp(64px, 9vw, 120px) 0; }
.preguntas .envoltura { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 6vw, 88px); }
.preguntas details { border-bottom: 1px solid rgba(37,45,97,.14); }
.preguntas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--v-texto); transition: transform .2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { padding: 0 0 22px; font-size: 16px; color: var(--tinta-suave); max-width: 60ch; }

/* 8 · Cierre */
.cierre { position: relative; text-align: center; padding: clamp(72px, 10vw, 128px) 16px clamp(120px, 14vw, 180px); overflow: hidden; }
.cierre h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.cierre p { margin: 14px auto 0; color: var(--tinta-suave); max-width: 44ch; }
.cierre .otra { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 500; }
.cierre svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; }
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px clamp(16px, 4vw, 40px); font-size: 13px; color: var(--tinta); background: var(--v-suave); }
.pie nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Celular */
@media (max-width: 880px) {
  .ficha, .gas .envoltura, .sabor-bloque, .contenido .envoltura, .preguntas .envoltura { grid-template-columns: 1fr; }
  .ficha { padding-top: 16px; }
  .visor-marco { aspect-ratio: 4 / 4.6; }
  .sabor-bloque img { aspect-ratio: 4 / 3.4; }
  .sabor-bloque .foto-primero { order: -1; }
  .momentos-grid { grid-template-columns: repeat(2, 1fr); }
  .promesas .envoltura { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top nav a.solo-escritorio { display: none; }
  .ceros { justify-content: space-between; }
  .boton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .burbujas i { animation: none; opacity: .5; bottom: auto; top: var(--y, 50%); }
}
