/* ============================================================
   Envase — Estilos personalizados
   Tailwind se carga por CDN; aquí van componentes y animaciones
   que no son triviales como utilidades.
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #FAFAF7;
  color: #141413;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display tipográfico */
.display {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
}

/* Eyebrow (eyebrow text en monoespaciada) */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8A8A82;
}

.hairline { border-color: #E5E2D8; }

/* Dot grid del hero */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(20,20,19,0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms cubic-bezier(.2,.7,.2,1),
    transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
.reveal.delay-5 { transition-delay: 400ms; }

/* Si el usuario prefiere menos movimiento, no animamos */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .drop { animation: none !important; }
  .marquee-track { animation: none !important; }
}

/* ====== Cubo isométrico (placeholder del producto) ====== */
.cube-stage {
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.cube {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(-28deg);
}
.face {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #F0EEE6 100%);
  border: 1px solid rgba(20,20,19,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.face.front  { transform: translateZ(140px); }
.face.back   { transform: rotateY(180deg) translateZ(140px); background: #EDEAE0; }
.face.right  { transform: rotateY(90deg) translateZ(140px); width: 280px; background: linear-gradient(90deg, #EDEAE0, #DCD8CB); }
.face.left   { transform: rotateY(-90deg) translateZ(140px); width: 280px; background: linear-gradient(90deg, #DCD8CB, #EDEAE0); }
.face.top    { transform: rotateX(90deg) translateZ(140px); height: 280px; background: linear-gradient(180deg, #ffffff, #F4F2EC); }
.face.bottom { transform: rotateX(-90deg) translateZ(140px); height: 280px; background: #C9C5B7; }

/* Pantalla OLED del cubo */
.screen {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64%; height: 36%;
  border-radius: 14px;
  background: radial-gradient(120% 100% at 30% 20%, #1f1f1d 0%, #0a0a09 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 6px rgba(20,20,19,0.04);
  display: flex; align-items: center; justify-content: center;
  color: #E8A33D;
  font-family: 'JetBrains Mono', monospace;
}
.nozzle {
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 28px; height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2A2A27, #0a0a09);
  border-radius: 0 0 6px 6px;
}
.drop {
  position: absolute;
  left: 50%; bottom: -34px;
  transform: translateX(-50%);
  width: 10px; height: 14px;
  background: #E8A33D;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: drop-shadow(0 8px 12px rgba(232,163,61,0.35));
  animation: drip 2.6s ease-in infinite;
}
@keyframes drip {
  0%   { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  20%  { opacity: 1; }
  60%  { transform: translate(-50%, 60px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, 110px) scale(0.4); opacity: 0; }
}

.pedestal {
  width: 360px; height: 12px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(20,20,19,0.18), rgba(20,20,19,0) 70%);
  margin: 18px auto 0;
}

/* ====== Stripe placeholder para retratos ====== */
.stripe-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(20,20,19,0.06) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #F4F2EC, #EDEAE0);
}

/* ====== Link con underline animado ====== */
.ulink {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 280ms ease;
}
.ulink:hover { background-size: 100% 1px; }

/* ====== Botones ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-honey { background: #E8A33D; color: #141413; }
.btn-honey:hover { background: #d99227; }
.btn-honey:disabled { background: #c9b18a; cursor: not-allowed; }
.btn-ghost { border: 1px solid #141413; color: #141413; }
.btn-ghost:hover { background: #141413; color: #FAFAF7; }
.btn-dark { background: #141413; color: #FAFAF7; }
.btn-dark:hover { background: #2A2A27; }

/* ====== Numerales tabulares ====== */
.numeral {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-feature-settings: "tnum";
  letter-spacing: -0.04em;
}

/* ====== FAQ accordion ====== */
details.faq { border-bottom: 1px solid #E5E2D8; }
details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus {
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
details.faq[open] summary .plus { transform: rotate(45deg); }
details.faq .ans {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 380ms cubic-bezier(.2,.7,.2,1),
    opacity 280ms ease;
  opacity: 0;
}
details.faq[open] .ans { max-height: 400px; opacity: 1; }

/* ====== Marquee de confianza ====== */
.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { animation: scroll 38s linear infinite; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====== Tick row de los planes ====== */
.tick {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ====== Form feedback (lista de espera) ====== */
.form-msg {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  min-height: 16px;
}
.form-msg.ok    { color: #A8B58A; }
.form-msg.error { color: #d99227; }

/* ============================================================
   Brand lockup + language toggle (v2 rebrand)
   ============================================================ */
.brand { text-decoration: none; color: inherit; transition: opacity 150ms ease; }
.brand:hover { opacity: 0.85; }

.lang-toggle {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #E5E2D8;
  background: #FAFAF7;
  color: #3A3A37;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.lang-toggle:hover { background: #F4F2EC; border-color: #C9C5B7; }
