/* Piñaí · landing de reserva. Colores y tipografías de assets/marca.json. */
@font-face { font-family: "Gloock"; src: url("fuentes/Gloock-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url("fuentes/BarlowCondensed-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; src: url("fuentes/DMSans-Variable.ttf") format("truetype"); font-display: swap; }

:root {
  --frambuesa: #BD1043;
  --crema: #FFE5A5;
  --borgona: #741532;
  --rosa: #F4BDC5;
  --durazno: #F9D1B7;
  --marfil: #FFF5E8;
  --titular: "Gloock", "Noto Serif Display", Georgia, serif;
  --condensada: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "DM Sans", system-ui, sans-serif;
  --margen: clamp(1.25rem, 5vw, 4rem);
  --linea: 2px solid var(--borgona);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--marfil);
  color: var(--borgona);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ol, figure { margin: 0; }
h1, h2 {
  font-family: var(--titular);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 8.5vw, 4.5rem); }
:focus-visible { outline: 3px solid var(--borgona); outline-offset: 3px; }
.etiqueta :focus-visible, .barra :focus-visible, .pie :focus-visible { outline-color: var(--crema); }

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font: 600 1.0625rem/1.1 var(--texto);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease;
}
.boton:active { transform: scale(.97); }
.boton--crema { background: var(--crema); color: var(--borgona); }
.boton--frambuesa { background: var(--frambuesa); color: var(--crema); }
.boton--ancho { width: 100%; min-height: 3.75rem; font-size: 1.1875rem; }

/* Hero: la etiqueta de la lata, abierta */
.hero { display: grid; background: var(--frambuesa); }
.etiqueta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 100svh;
  padding: 0 var(--margen) clamp(7.5rem, 34vw, 11rem);
  color: var(--crema);
}
.etiqueta__pina {
  position: absolute;
  top: 0.5rem;
  left: -9%;
  width: min(96%, 34rem);
  pointer-events: none;
}
.etiqueta__acai {
  position: absolute;
  right: -3%;
  bottom: -1.5rem;
  width: min(46%, 15rem);
  pointer-events: none;
}
.etiqueta__marca { position: relative; padding-top: clamp(10.5rem, 50vw, 17rem); }
.etiqueta__logo { width: min(100%, 30rem); height: auto; }
.etiqueta__categoria {
  margin-top: 1.25rem;
  font: 600 clamp(1.6rem, 6.4vw, 2.1rem)/1 var(--condensada);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.etiqueta__sabor { margin-top: 0.3rem; font-size: clamp(1.05rem, 4.2vw, 1.3rem); }
.etiqueta__mensaje { position: relative; max-width: 34rem; }
.etiqueta h1 { font-size: clamp(2.6rem, 11vw, 4.75rem); }
.compra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; margin-top: 1.75rem; }
.compra__precio { font-size: 1rem; }
.compra__precio span { font-weight: 700; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }

/* El vaso */
.vaso {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2.5rem;
  padding: clamp(4rem, 14vw, 8rem) var(--margen);
  background: var(--rosa);
}
.vaso__texto { position: relative; z-index: 1; max-width: 38rem; }
.vaso__texto p { margin-top: 1.5rem; max-width: 30rem; font-size: 1.1875rem; }

.burbujas span {
  position: absolute;
  bottom: -2rem;
  width: var(--d);
  height: var(--d);
  left: var(--x);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .28);
  animation: subir var(--t) linear infinite;
  animation-delay: var(--r);
}
.burbujas span:nth-child(1) { --d: 10px; --x: 8%;  --t: 9s;  --r: -2s; }
.burbujas span:nth-child(2) { --d: 6px;  --x: 22%; --t: 12s; --r: -7s; }
.burbujas span:nth-child(3) { --d: 14px; --x: 41%; --t: 10s; --r: -4s; }
.burbujas span:nth-child(4) { --d: 7px;  --x: 58%; --t: 13s; --r: -9s; }
.burbujas span:nth-child(5) { --d: 11px; --x: 71%; --t: 8s;  --r: -1s; }
.burbujas span:nth-child(6) { --d: 5px;  --x: 84%; --t: 11s; --r: -6s; }
.burbujas span:nth-child(7) { --d: 9px;  --x: 94%; --t: 14s; --r: -11s; }
@keyframes subir {
  from { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(10px, -55vh); }
  to { transform: translate(-6px, -115vh); opacity: .7; }
}

/* Ficha en bloques de color */
.ficha { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--linea); border-bottom: var(--linea); }
.ficha__dato {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: clamp(11rem, 44vw, 17rem);
  padding: 1.25rem;
}
.ficha__dato:nth-child(odd) { border-right: var(--linea); }
.ficha__dato:nth-child(-n+2) { border-bottom: var(--linea); }
.ficha__valor { font: 400 clamp(1.65rem, 6.6vw, 3rem)/1.02 var(--titular); text-wrap: balance; }
.ficha__nota { font-size: 0.9375rem; line-height: 1.35; }
.ficha__dato--frambuesa { background: var(--frambuesa); color: var(--crema); }
.ficha__dato--crema { background: var(--crema); }
.ficha__dato--durazno { background: var(--durazno); }
.ficha__dato--borgona { background: var(--borgona); color: var(--rosa); }

/* Servir */
.servir { display: grid; background: var(--durazno); }
.servir__foto img { width: 100%; height: 100%; object-fit: cover; }
.servir__texto { padding: clamp(3.5rem, 12vw, 7rem) var(--margen); }
.pasos { margin-top: 2rem; padding: 0; list-style: none; counter-reset: paso; max-width: 28rem; }
.pasos li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: var(--linea);
  font-size: 1.1875rem;
}
.pasos li:last-child { border-bottom: var(--linea); }
.pasos li::before { content: counter(paso); font: 400 2rem/1 var(--titular); }

/* Reservar */
.reservar {
  display: grid;
  gap: 2.5rem;
  padding: clamp(4rem, 14vw, 8rem) var(--margen);
  background: var(--marfil);
  scroll-margin-top: 1rem;
}
.reservar__intro p { margin-top: 1.25rem; max-width: 32rem; }
.reservar__pack { width: 100%; max-width: 30rem; margin-top: 2rem; border: var(--linea); aspect-ratio: 5 / 4; object-fit: cover; object-position: center 70%; }
.pedido { width: 100%; max-width: 30rem; padding: 1.5rem; background: var(--crema); border: var(--linea); }
.pedido__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(116, 21, 50, .3); }
.pedido__rotulo { font-weight: 600; }
.contador { display: flex; align-items: center; gap: 0.25rem; }
.contador__boton {
  width: 2.9rem;
  height: 2.9rem;
  border: var(--linea);
  border-radius: 50%;
  background: transparent;
  color: var(--borgona);
  font: 400 1.6rem/1 var(--texto);
  cursor: pointer;
}
.contador__boton:disabled { opacity: .35; cursor: not-allowed; }
.contador__valor { min-width: 2.6rem; text-align: center; font: 400 1.9rem/1 var(--titular); }
.pedido select {
  max-width: 13.5rem;
  min-height: 2.9rem;
  padding: 0 2.4rem 0 1rem;
  border: var(--linea);
  border-radius: 999px;
  background: var(--marfil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23741532' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center / 0.75rem;
  color: var(--borgona);
  font: 500 1rem var(--texto);
  appearance: none;
}
.pedido__error { margin-top: 0.6rem; font-weight: 600; color: var(--frambuesa); }
.pedido__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.5rem; font-weight: 600; }
.pedido__total strong { font: 400 clamp(2.6rem, 11vw, 3.4rem)/1 var(--titular); }
.pedido__detalle { margin: 0.2rem 0 1.5rem; text-align: right; font-size: 0.9375rem; }
.pedido__aviso { margin-top: 0.9rem; padding: 0.6rem 0.8rem; background: var(--borgona); color: var(--crema); font-size: 0.875rem; }

/* Pie */
.pie { padding: clamp(3rem, 10vw, 5rem) var(--margen) 7rem; background: var(--frambuesa); color: var(--crema); }
.pie img { width: 7.5rem; height: auto; }
.pie p { margin-top: 1.25rem; font-size: 0.9375rem; }

/* Barra fija de compra en móvil */
.barra {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--margen) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--borgona);
  color: var(--crema);
  transition: transform .25s ease;
}
.barra[hidden] { display: flex; transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.barra .boton { min-height: 2.75rem; padding: 0.5rem 1.25rem; font-size: 1rem; white-space: nowrap; flex-shrink: 0; }
.barra p { font-size: 0.9375rem; line-height: 1.25; }

/* Pantallas anchas */
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .etiqueta { min-height: 100vh; gap: 1.75rem; padding-bottom: 3.5rem; }
  .etiqueta__pina { width: min(66%, 26rem); left: -6%; }
  .etiqueta__acai { width: min(30%, 14rem); bottom: -2rem; right: 0; }
  .etiqueta__marca { padding-top: clamp(8rem, 13.5vw, 12rem); }
  .etiqueta__logo { width: min(56%, 19rem); }
  .etiqueta h1 { font-size: clamp(2.6rem, 4vw, 4rem); }
  .etiqueta__mensaje { max-width: 76%; }
  .hero__foto { position: relative; }
  .hero__foto img { position: absolute; inset: 0; }
  .ficha { grid-template-columns: repeat(4, 1fr); }
  .ficha__dato { min-height: 19rem; padding: 1.75rem; border-bottom: 0 !important; border-right: var(--linea); }
  .ficha__dato:last-child { border-right: 0; }
  .ficha__valor { font-size: clamp(1.9rem, 2.9vw, 3rem); }
  .servir { grid-template-columns: 1fr 1fr; }
  .servir__foto img { height: auto; }
  .servir__texto { align-self: center; }
  .reservar { grid-template-columns: 1fr 1fr; align-items: start; }
  .pedido { justify-self: end; padding: 2rem; }
  .reservar__pack { aspect-ratio: 4 / 5; max-width: 26rem; object-position: center; }
  .pedido { position: sticky; top: 2rem; }
  .pie { padding-bottom: 4rem; }
  .barra { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .burbujas { display: none; }
  .boton, .barra { transition: none; }
}
