/* Botelnek · landing de una pantalla (botelnek.com).
   Tokens del manual de marca v2. El butano es solo de la pelota. */

@font-face {
  font-family: "Newsreader";
  src: url("marca/newsreader.woff2") format("woff2-variations"), url("marca/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --verde: #0B3D2E;
  --verde-hondo: #082E22;
  --verde-noche: #04190F;
  --verde-claro: #7FD6AE;
  --butano: #FF6B00;
  --serifa: "Newsreader", Georgia, "Times New Roman", serif;
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --margen: clamp(22px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--verde-noche);
  color: #fff;
  font-family: var(--fuente);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; }
p, h1 { margin: 0; }
::selection { background: var(--verde-claro); color: var(--verde-noche); }

/* ---------- La pantalla ---------- */
.pantalla {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); column-gap: clamp(16px, 3vw, 48px);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "cabeza cabeza" "texto escena" "pie escena";
  padding: calc(26px + env(safe-area-inset-top)) var(--margen) calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(70% 60% at 80% 45%, rgba(20,90,69,.55), transparent 70%),
    linear-gradient(170deg, var(--verde-noche) 0%, var(--verde-hondo) 55%, #0A3628 100%);
}
/* Luz que respira detrás de todo */
.pantalla::before {
  content: ""; position: absolute; z-index: -1; inset: -20%;
  background:
    radial-gradient(40% 35% at 70% 50%, rgba(127,214,174,.10), transparent 70%),
    radial-gradient(30% 30% at 20% 85%, rgba(255,107,0,.06), transparent 70%);
  animation: deriva 18s ease-in-out infinite alternate;
}
/* Grano fino */
.pantalla::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .06;
  background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 3px 3px;
}

.cabeza { grid-area: cabeza; position: relative; z-index: 2; }
.cabeza img { height: 22px; width: auto; }

/* ---------- Escena: la botella ---------- */
.escena {
  grid-area: escena; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
}
.escena-svg {
  width: 100%; height: auto; max-height: 80svh; max-width: 1000px; overflow: visible;
  transform: rotateY(var(--gy, 0deg)) rotateX(var(--gx, 0deg));
  transition: transform .9s var(--ease);
}
.vidrio { fill: url(#vidrio-relleno); stroke: rgba(196, 242, 220, .5); stroke-width: 2.2; stroke-linejoin: round; }
.vidrio-sombra { fill: rgba(0, 0, 0, .35); filter: blur(18px); }
.reflejo { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 7; stroke-linecap: round; }
.reflejo-fino { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3; stroke-linecap: round; }
.etiqueta { fill: #EFE9DC; }
.etiqueta-borde { fill: none; stroke: rgba(11, 61, 46, .35); stroke-width: 1.2; }
.etiqueta-texto { font: 500 25px var(--serifa); font-variation-settings: "opsz" 72; letter-spacing: -.02em; fill: #0B3D2E; }
.etiqueta-sub { font: 600 11px var(--fuente); letter-spacing: .02em; fill: rgba(11, 61, 46, .6); }

.ficha rect { fill: #E9E3D5; stroke: rgba(0, 0, 0, .12); stroke-width: 1; transition: fill .4s var(--ease); }
.ficha text { font-family: var(--fuente); font-weight: 600; fill: #2B2B2E; letter-spacing: -.01em; }
.ficha .ok { fill: #18794E; opacity: 0; transition: opacity .3s var(--ease); }
.ficha .ok-v { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s var(--ease); }
.ficha.hecha rect { fill: #FFFFFF; stroke: none; }
.ficha.hecha .ok, .ficha.hecha .ok-v { opacity: 1; }
.ficha.hecha .ok-aro { opacity: 0; }
.ficha.hecha text { fill: #1D1D1F; }

#pelota { fill: var(--butano); }
#halo { fill: url(#brillo); }
.final { font: 500 24px var(--serifa); font-variation-settings: "opsz" 72; letter-spacing: -.01em; fill: #fff; }

/* ---------- Texto ---------- */
.texto { grid-area: texto; align-self: center; position: relative; z-index: 2; max-width: 660px; padding-bottom: 4vh; }
.antetitulo { font-size: 15px; font-weight: 600; color: var(--verde-claro); letter-spacing: .005em; margin-bottom: 22px; }
.titular {
  font-family: var(--serifa); font-variation-settings: "opsz" 72;
  font-weight: 480; letter-spacing: -.022em;
  font-size: clamp(38px, 3.9vw, 70px); line-height: 1.04; text-wrap: balance;
}
.linea { display: block; }
.linea-dos { color: var(--verde-claro); margin-top: .12em; }
.entradilla { margin-top: 26px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: rgba(255,255,255,.72); max-width: 31em; text-wrap: pretty; }
.punto {
  display: inline-block; width: .19em; height: .19em; margin-left: .06em;
  border-radius: 50%; background: var(--butano);
  animation: respira 3.2s var(--ease) infinite;
}
.estado {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 34px; padding: 12px 20px 12px 16px;
  border-radius: 999px; font-size: 15px; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.latido { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--verde-claro); }
.latido::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--verde-claro); animation: onda 2.4s var(--ease) infinite; }

.pie { grid-area: pie; align-self: end; position: relative; z-index: 2; font-size: 13px; color: rgba(255,255,255,.32); }

/* ---------- Entrada ---------- */
.js .entra { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.js .lista .entra { opacity: 1; transform: none; filter: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--retraso, 0s); }

/* ---------- Animaciones ---------- */
@keyframes respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(.84); } }
@keyframes onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes deriva { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

/* ---------- Móvil: el cuello se pone de pie y la pelota cae ---------- */
@media (max-width: 860px) {
  .pantalla {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "cabeza" "escena" "texto" "pie";
  }
  .escena { margin: 0 -8px 4px; }
  .escena-svg { max-height: 50svh; }
  .texto { padding-bottom: 26px; }
  .antetitulo { margin-bottom: 12px; font-size: 14px; }
  .titular { font-size: clamp(32px, 8.8vw, 54px); }
  .entradilla { margin-top: 12px; font-size: 15.5px; line-height: 1.45; }
  .estado { margin-top: 16px; font-size: 14px; padding: 9px 16px 9px 14px; }
  .pantalla { padding-top: calc(18px + env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .entra { opacity: 1; transform: none; filter: none; }
}
