@font-face {
  font-family: Manrope;
  src: url("fuentes/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  overflow-x: clip;
  font-family: Manrope, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); }

.hero, .hero * { -webkit-user-select: none; user-select: none; }

/* Liquid glass */
.btn-glass {
  --mx: 30%;
  --my: 0%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .48);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.05) 42%, rgba(0,0,0,.14));
  background-color: rgba(18, 16, 14, .38);
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -10px 16px rgba(0,0,0,.2),
    0 12px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s cubic-bezier(.2, 1.55, .32, 1), box-shadow .25s ease;
}
.btn-glass .label { position: relative; z-index: 1; }
.btn-glass .sheen {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(90px 48px at var(--mx) var(--my), rgba(255,255,255,.78), transparent 62%),
    conic-gradient(from 110deg, rgba(120,200,255,0), rgba(120,200,255,.55), rgba(255,150,220,.45), rgba(255,214,130,.5), rgba(120,200,255,0));
  mix-blend-mode: screen;
  opacity: .45;
  filter: url(#liquid);
  pointer-events: none;
  transition: opacity .28s ease;
}
.btn-glass:hover .sheen { opacity: 1; }
.btn-glass:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -14px 22px rgba(255,255,255,.12),
    0 16px 34px rgba(0,0,0,.22);
}
.btn-glass:active { transform: scale(.96); }
.btn-glass.is-dark { background-color: rgba(10, 10, 12, .72); }
.btn-glass.is-light {
  background-color: rgba(255,255,255,.22);
  color: #1b2833;
}
.btn-glass.is-white {
  background-color: rgba(255,255,255,.94);
  color: #16181d;
  border-color: rgba(255,255,255,.9);
}
.btn-glass.is-white .sheen { mix-blend-mode: multiply; opacity: .35; }
.btn-glass.is-white:hover .sheen { opacity: .7; }

/* Peluche */
.btn-plush {
  --mx: 30%;
  --my: 30%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .85rem 1.3rem;
  border: 0;
  border-radius: 999px;
  color: #243028;
  text-decoration: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.7), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.08), transparent 46%),
    repeating-radial-gradient(circle at 0 0, rgba(255,255,255,.22) 0 .8px, transparent 1.2px 3.2px);
  background-color: #e4d3b8;
  box-shadow:
    inset 0 10px 14px rgba(255,255,255,.55),
    inset 0 -12px 16px rgba(80, 50, 20, .16),
    0 12px 18px rgba(40, 24, 10, .14);
  transition: transform .2s cubic-bezier(.2, 1.6, .3, 1);
}
.btn-plush:hover { transform: translateY(-2px) scale(1.03); }
.btn-plush:active { transform: scale(.93); }
.btn-plush.is-mint { background-color: #8fd0c4; color: #17332e; }
.btn-plush.is-white { background-color: #f7f4ee; color: #1d2a44; }
.btn-plush.is-blue { background-color: #d7e4ff; color: #16306a; }

/* Burbuja de vidrio */
.bubble {
  --mx: 32%;
  --my: 28%;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.62);
  display: grid;
  place-items: center;
  position: relative;
  color: #1d3a44;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.95), rgba(255,255,255,.18) 36%, rgba(180,220,230,.28) 70%);
  box-shadow:
    inset 0 8px 10px rgba(255,255,255,.8),
    inset 0 -10px 14px rgba(0, 40, 60, .12),
    0 10px 18px rgba(0,0,0,.14);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2, 1.6, .3, 1);
}
.bubble::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 20%;
  left: 18%;
  top: 14%;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  filter: blur(.4px);
  pointer-events: none;
}
.bubble:hover { transform: scale(1.06); }
.bubble:active { transform: scale(.9); }
.bubble > * { position: relative; z-index: 1; }
.bubble.is-sm { width: 36px; height: 36px; }
.bubble.is-dark { color: #fff; background-color: rgba(255,255,255,.08); }

.play {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: none;
  border: 0;
  color: #fff;
  padding: 0;
  font-size: .95rem;
}

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text !important; }
}
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 400;
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255,255,255,.85);
  transition: width .25s ease, height .25s ease, margin .25s ease, background .25s ease;
}
html.cursor-hot .cursor-ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(255,255,255,.14);
}

.bless-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  z-index: 380;
  max-width: calc(100% - 32px);
  padding: .75rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 14, 16, .78);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  font-size: .92rem;
}
.bless-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
}
.chat.is-left { right: auto; left: 16px; }
.chat-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: min(68vh, 560px);
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #162028;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18));
  background-color: rgba(244, 248, 250, .72);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 18px 50px rgba(0,0,0,.2);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.chat-panel[hidden] { display: none; }
.chat-head, .chat-form { display: flex; align-items: center; gap: 8px; }
.chat-head { justify-content: space-between; }
.chat-head strong { font-size: .95rem; }
.chat-head span { display: block; font-weight: 500; font-size: .75rem; opacity: .7; }
.chat-log {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  max-height: 320px;
  padding-right: 2px;
}
.msg {
  max-width: 88%;
  padding: .6rem .75rem;
  border-radius: 16px;
  line-height: 1.4;
  font-size: .92rem;
}
.msg.bot { background: rgba(255,255,255,.72); align-self: flex-start; }
.msg.me { background: rgba(18, 24, 32, .88); color: #fff; align-self: flex-end; }
.msg.typing { opacity: .7; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: .65rem .85rem;
  min-width: 0;
}
.chat-form button.bubble { width: 42px; height: 42px; flex: none; }
.chat-wa { width: 100%; }

html { scroll-behavior: smooth; }

/* Vidrio más grueso, como la lámina de botones */
.btn-glass {
  padding: .92rem 1.3rem;
  border-width: 1.5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.12) 32%, rgba(255,255,255,0) 48%),
    linear-gradient(180deg, rgba(40,40,48,.15), rgba(8,8,12,.55));
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 -16px 20px rgba(0,0,0,.28),
    0 10px 18px rgba(30, 80, 220, .22),
    0 16px 28px rgba(180, 70, 220, .16);
}
.btn-glass::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 12%;
  right: 20%;
  top: 3px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0));
  pointer-events: none;
}
.btn-glass .label { z-index: 2; }
.btn-glass.is-white {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.82) 46%, rgba(236,240,248,.92));
  color: #172033;
  box-shadow:
    inset 0 1.5px 0 #fff,
    inset 0 -10px 14px rgba(80,100,140,.12),
    0 10px 18px rgba(20, 40, 90, .16);
}
.btn-glass.is-azul {
  background-color: #1d4ff0;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #3d6bff, #1740d4);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-plush {
  box-shadow:
    inset 0 12px 16px rgba(255,255,255,.65),
    inset 0 -14px 18px rgba(70, 45, 20, .16),
    0 14px 22px rgba(40, 24, 10, .16);
}
.bubble {
  box-shadow:
    inset 0 10px 12px rgba(255,255,255,.9),
    inset 0 -12px 16px rgba(0, 40, 70, .14),
    0 10px 16px rgba(0,0,0,.16),
    0 0 0 1px rgba(255,255,255,.35);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
