/* Pingos Party · estilos compartidos (index + cotizador)
   Paleta y botones tomados de sus propios flyers: fondo violeta profundo,
   paneles naranja / morado / verde, lima del "80+", títulos crema con
   sombra dura y píldoras gruesas con borde blanco. */

:root {
  --violet: #3a1c8f;
  --violet-deep: #24105f;
  --night: #170a3f;
  --purple: #6c2bd9;
  --plum: #1e0f4a;
  --orange: #ff5a0a;
  --green: #22b14c;
  --lime: #c4ef1f;
  --lime-deep: #9cc80f;
  --magenta: #ec2a95;
  --yellow: #ffc62e;
  --pink: #f8a9d3;
  --sky: #38c5f5;
  --cream-hd: #fff2c0;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #1e0f4a;
  --ink-soft: #5a4f80;
  --line: rgba(30, 15, 74, .12);
  --violet-soft: #9b3fe6;

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --round: "Baloo 2", "Lilita One", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Nada puede ensanchar la página en celular. clip no crea contenedor de scroll, así que sticky sigue funcionando */
@supports (overflow: clip) { html, body { overflow-x: clip; } }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--plum); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: -.005em; margin: 0; }
h2 { font-size: clamp(2.6rem, 5.8vw, 5.4rem); }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--ink-soft); max-width: 40ch; }
/* Títulos sobre fondo oscuro: sombra dura, como en los flyers */
.on-dark h1, .on-dark h2 { color: #fff; text-shadow: 0 .06em 0 rgba(10, 3, 40, .55); }

/* ── Logo ── */
.logo { display: inline-block; line-height: 0; text-decoration: none; }
.logo img { height: 54px; width: auto; transition: transform .6s var(--spring); }
.logo:hover img { transform: rotate(-4deg) scale(1.06); }

/* ── Marcatextos (rough-notation) ── */
.hl { position: relative; white-space: nowrap; }
/* El trazo se dibuja dentro del título: así se mueve con él (reveals, paneles, cambios de layout) */
h1:has(> .hl), h2:has(> .hl) { position: relative; }
.rough-annotation { pointer-events: none; }
.hl-ink { color: var(--ink); }

/* ── Palabras que rotan ── */
.rot {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  padding: .06em 0 .1em;
  margin: -.06em 0 -.1em;
  transition: width .55s var(--ease);
  white-space: nowrap;
}
.rot > span { display: inline-block; will-change: transform, opacity; }
.rot-in { animation: rotIn .55s var(--ease) both; }
.rot-out { animation: rotOut .4s var(--ease) both; position: absolute; left: 0; }
@keyframes rotIn { from { transform: translateY(-60%); opacity: 0; filter: blur(4px); } }
@keyframes rotOut { to { transform: translateY(60%); opacity: 0; filter: blur(4px); } }

/* ── Destellos ── */
.spark { position: relative; display: inline-block; }
.spark > svg {
  position: absolute; pointer-events: none; z-index: 2;
  width: var(--s, 18px); height: var(--s, 18px);
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) scale(0);
  animation: spark var(--d, .9s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes spark {
  0% { transform: translate(-50%, -50%) scale(0) rotate(75deg); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1) rotate(120deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0) rotate(150deg); opacity: 0; }
}

/* ── Notas a mano ── */
.note { font-family: var(--hand); font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1; position: absolute; white-space: nowrap; }
.note svg { position: absolute; overflow: visible; }
.note svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.peek { position: absolute; z-index: 3; pointer-events: none; height: auto; transform-origin: 50% 100%; }

/* ── Botones: píldora gruesa con borde y sombra dura, como sus flyers ── */
.btn {
  --bg: var(--lime);
  --fg: var(--plum);
  --bd: #fff;
  --depth: var(--night);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 58px;
  padding: 2px 30px 0;
  border-radius: 999px;
  border: 3px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--round);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 0 var(--depth);
  transition: transform .45s var(--spring), box-shadow .3s var(--ease), background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 9px 0 var(--depth); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--depth); transition-duration: .08s; }
.btn .arr { display: inline-block; transition: transform .45s var(--spring); }
.btn:hover .arr { transform: translateX(5px) rotate(-8deg); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--orange { --bg: var(--orange); --fg: #fff; }
.btn--violet { --bg: var(--purple); --fg: #fff; }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .16); }
.btn--wa { --bg: #25d366; --fg: #06301a; }
.btn--sm { min-height: 46px; padding: 2px 20px 0; font-size: .92rem; box-shadow: 0 4px 0 var(--depth); }
.btn--sm:hover { box-shadow: 0 6px 0 var(--depth); }
/* Sobre fondo claro el borde y la sombra se vuelven tinta */
.on-light .btn { --bd: var(--ink); --depth: var(--ink); }

/* ── Navegación ── */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-170%); }
.nav-in {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter) + 40px);
  margin: 0 auto;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-solid .nav-in {
  background: rgba(36, 16, 95, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 40px -16px rgba(10, 3, 40, .6), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 15px; border-radius: 999px; text-decoration: none; font-family: var(--round); font-weight: 700; font-size: 1.02rem; transition: background .3s; }
.nav-links a:hover { background: rgba(255, 255, 255, .12); }
.nav .btn { min-height: 48px; padding: 2px 22px 0; font-size: .95rem; box-shadow: 0 4px 0 var(--depth); }
.nav-toggle { display: none; width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; background: var(--lime); color: var(--plum); position: relative; box-shadow: 0 4px 0 var(--night); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--violet); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.menu a:not(.btn) { font-family: var(--display); font-size: clamp(2.6rem, 12vw, 4.2rem); line-height: 1.12; text-decoration: none; display: block; }
.menu .btn { margin-top: 24px; align-self: flex-start; }
.menu-open { overflow: hidden; }
@media (max-width: 960px) {
  .nav-links, .nav-in > .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-in { padding: 8px 8px 8px 14px; }
  .logo img { height: 46px; }
}

/* ── Pie de página ── */
.foot { background: var(--night); color: #fff; padding: clamp(80px, 11vw, 150px) 0 32px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.foot h2 { max-width: 11ch; }
.foot-info { margin-top: 44px; display: grid; gap: 24px; }
.foot-info dt { font-family: var(--round); font-weight: 700; color: rgba(255, 255, 255, .55); font-size: .9rem; margin-bottom: 2px; }
.foot-info dd { margin: 0; font-size: 1.12rem; }
.foot-info a { text-decoration: none; border-bottom: 2px solid rgba(196, 239, 31, .5); transition: border-color .3s; }
.foot-info a:hover { border-color: var(--lime); }
.foot-map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--violet-deep); border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 0 rgba(0, 0, 0, .35); }
.foot-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.foot-bottom { margin-top: clamp(64px, 8vw, 110px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .92rem; color: rgba(255, 255, 255, .6); }
.foot-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom nav a { text-decoration: none; color: rgba(255, 255, 255, .8); }
.foot-bottom nav a:hover { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(6, 48, 26, .9);
  transform: scale(0);
  transition: transform .6s var(--spring);
}
.wa-float.is-on { transform: scale(1); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }

/* ── La monita en la liana ── */
/* contain: paint vuelve a la capa el bloque contenedor de la monita (fija) y la recorta a la pantalla */
.buddy-clip { position: fixed; inset: 0; z-index: 30; overflow: hidden; contain: paint; pointer-events: none; }
.buddy { position: fixed; top: 0; width: 0; height: 0; z-index: 30; pointer-events: none; transition: opacity .35s; }
.buddy[data-side="right"] { right: var(--anchor, 62px); }
.buddy[data-side="left"] { left: var(--anchor, 62px); }
.buddy.is-hidden, .buddy.is-menu { opacity: 0; }
.buddy-branch { position: absolute; height: auto; overflow: visible; }
.buddy[data-side="left"] .buddy-branch { transform: scaleX(-1); }
.bb-wood { fill: none; stroke: #6b4320; stroke-width: 9; stroke-linecap: round; paint-order: stroke; }
.bb-twig { stroke-width: 5; }
.buddy-branch .bb-wood { filter: drop-shadow(0 0 0 #2a1408); stroke: #7a4c22; }
.lf { stroke: #1e0f4a; stroke-width: 2.2; stroke-linejoin: round; }
.lf-a { fill: #22b14c; } .lf-b { fill: #4cc95a; } .lf-c { fill: #c4ef1f; }
.buddy-rig { position: absolute; left: 0; top: 6px; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.buddy-vine { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.bv-dark { fill: none; stroke: #2a1408; stroke-width: 8; stroke-linecap: round; }
.bv-light { fill: none; stroke: #8a5a2b; stroke-width: 4.5; stroke-linecap: round; }
.vl { stroke: #1e0f4a; stroke-width: 1.8; stroke-linejoin: round; }
.vl-a { fill: #22b14c; } .vl-b { fill: #4cc95a; } .vl-c { fill: #9fdc3a; }
.buddy-mono {
  position: absolute; height: auto; max-width: none;
  pointer-events: auto; cursor: pointer;
  filter: drop-shadow(0 10px 14px rgba(10, 3, 40, .35));
  -webkit-user-drag: none; user-select: none;
}
.buddy-bubble {
  position: absolute; white-space: nowrap;
  font-family: var(--round); font-weight: 800; font-size: 15px; line-height: 1.15;
  color: var(--ink); background: #fff;
  padding: 10px 14px 8px; border-radius: 18px;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  opacity: 0; scale: .6; transform-origin: 100% 50%;
  transition: opacity .25s, scale .45s var(--spring);
}
.buddy[data-side="right"] .buddy-bubble { left: calc(var(--mw) * -.62); transform-origin: 100% 50%; }
.buddy[data-side="left"] .buddy-bubble { left: calc(var(--mw) * .62); transform-origin: 0 50%; }
.buddy-bubble.is-on { opacity: 1; scale: 1; }
.buddy-bubble::after {
  content: ""; position: absolute; top: 50%; width: 12px; height: 12px;
  background: #fff; border: 3px solid var(--ink); border-left: 0; border-bottom: 0;
}
.buddy[data-side="right"] .buddy-bubble::after { right: -8px; transform: translateY(-50%) rotate(45deg); }
.buddy[data-side="left"] .buddy-bubble::after { left: -8px; transform: translateY(-50%) rotate(-135deg); }
@media (max-width: 760px) {
  .buddy-bubble { font-size: 13px; padding: 8px 11px 6px; white-space: normal; width: max-content; max-width: 52vw; }
}
