@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Sitio claro siempre, como el resto de los sitios del rubro. */
:root {
  color-scheme: light;
  --bg: #fffaf4;
  --surface: #ffffff;
  --text: #161616;
  --muted: #55524d;
  --line: #ece5dc;
  --ink: #161616;
  --ink-text: #ffffff;
  --brand: #ff6a3d;
  --brand-text: #b23c14;
  --peach: #ffe5d9;
  --butter: #fff1bf;
  --mint: #d9f2e6;
  --sky: #e1ebff;
  --lilac: #ebe4ff;
  --shadow: 0 30px 60px -30px rgba(60, 35, 20, 0.35);
  --radius: 24px;
  --max: 1160px;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; }
h1, h2 { font-weight: 800; letter-spacing: -0.03em; }
h3 { font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--brand-text); }

mark { background: linear-gradient(transparent 60%, rgba(255, 106, 61, 0.45) 60%, rgba(255, 106, 61, 0.45) 90%, transparent 90%); color: inherit; padding: 0 0.06em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

[id] { scroll-margin-top: 96px; }

/* Encabezado flotante */
.top { position: sticky; top: 0; z-index: 10; padding: 12px 12px 0; }
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px 0 22px;
  box-shadow: 0 10px 30px -18px rgba(60, 35, 20, 0.3);
}
.logo { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.logo::before { content: ""; width: 32px; height: 32px; margin-right: 9px; background: url("/logo-mark.svg") center / contain no-repeat; flex: none; }
.logo span { color: var(--brand); }
.nav a { color: var(--text); text-decoration: none; margin-left: 22px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--brand-text); }
.nav a.btn, .nav a.btn:hover { color: var(--ink-text); }
.nav a.btn.ghost, .nav a.btn.ghost:hover { color: var(--text); }
.nav a.btn { padding: 10px 18px; }
.top .nav { margin-left: auto; }

/* Selector de idioma */
.langs { display: flex; gap: 2px; margin-left: 14px; font-size: 14px; }
.langs a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 999px; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); font-weight: 700; background: var(--butter); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--ink-text);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* Portada */
.hero-wrap {
  margin: 16px 12px 0;
  border-radius: 36px;
  background:
    radial-gradient(55% 70% at 90% 15%, rgba(255, 106, 61, 0.28), transparent 70%),
    radial-gradient(50% 60% at 5% 95%, var(--mint), transparent 70%),
    linear-gradient(135deg, var(--peach), var(--butter));
  overflow: hidden;
}
.hero { padding-top: 80px; padding-bottom: 72px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  margin-bottom: 22px;
  box-shadow: 0 6px 16px -10px rgba(60, 35, 20, 0.4);
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(35px, 6vw, 72px); line-height: 1; margin: 0 0 22px; max-width: 14ch; }
.hero h1 .tail { display: block; margin-top: 0.25em; font-size: 0.55em; letter-spacing: -0.02em; }
.promises { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 24px; padding: 0; }
.promises li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.75); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 15px; font-weight: 600; }
.promises li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: var(--ink); font-size: 12px; font-weight: 800; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: #3d3a36; max-width: 56ch; margin: 0 0 32px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trial { margin: 18px 0 0; color: #3d3a36; font-size: 15px; font-weight: 500; }
.hero .trial::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: var(--ink-text); font-size: 12px; }

/* Portada con el chat de ejemplo */
.hero-split { display: grid; gap: 56px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.demo { position: relative; margin: 0; padding-bottom: 104px; }
.chat { background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 10px; background: var(--surface); border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; padding: 16px 20px; font-size: 16px; }
.chat-head::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.2); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 22px; min-height: 330px; }
.msg { margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; max-width: 85%; }
.msg.guest { align-self: flex-end; background: var(--ink); color: var(--ink-text); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #f5f1ec; border-bottom-left-radius: 6px; }
.msg.note { align-self: center; font-size: 13px; color: var(--text); font-weight: 600; background: var(--mint); padding: 4px 12px; border-radius: 999px; }

/* Robots que se asoman detrás del chat, cada uno a su turno */
.robot { position: absolute; z-index: 0; width: 68px; height: 68px; background: center / contain no-repeat; pointer-events: none; }
.robot-1 { background-image: url("/robot-coral.svg"); top: 0; right: 16%; transform: translateY(12px); animation: asoma-arriba 9s ease-in-out infinite; }
.robot-2 { background-image: url("/robot-ink.svg"); top: 34%; left: 14%; transform: translateX(16px); animation: asoma-izquierda 9s ease-in-out 3s infinite; }
.robot-3 { background-image: url("/robot-mint.svg"); top: 14%; right: 0; transform: translateX(-16px); animation: asoma-derecha 9s ease-in-out 6s infinite; }
@keyframes asoma-arriba {
  0%, 55%, 100% { transform: translateY(12px); }
  62%, 84% { transform: translateY(-52px); }
  68% { transform: translateY(-52px) rotate(-8deg); }
  76% { transform: translateY(-52px) rotate(7deg); }
}
@keyframes asoma-izquierda {
  0%, 55%, 100% { transform: translateX(16px) rotate(0); }
  62%, 84% { transform: translateX(-50px) rotate(-22deg); }
  72% { transform: translateX(-46px) rotate(-12deg); }
}
@keyframes asoma-derecha {
  0%, 55%, 100% { transform: translateX(-16px) rotate(0); }
  62%, 84% { transform: translateX(50px) rotate(22deg); }
  72% { transform: translateX(46px) rotate(12deg); }
}
/* Los SVG parpadean por dentro y el CSS no puede frenarlos: con movimiento reducido, no se muestran. */
@media (prefers-reduced-motion: reduce) {
  .robot { display: none; }
}
.demo .chat { position: relative; z-index: 1; width: 86%; margin-left: auto; }
.hero-split > div:first-child { position: relative; z-index: 1; }
.demo .request { z-index: 2; }

/* Solicitud tal como la ve el hotel */
.request {
  position: absolute;
  right: -24px;
  bottom: 0;
  width: min(280px, 80%);
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.45;
  transform: rotate(-2deg);
}
.request strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.request b { display: block; font-family: var(--display); font-size: 17px; }
.request span { color: var(--muted); }
.request em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--text); background: var(--butter); padding: 3px 10px; border-radius: 999px; }

@media (prefers-reduced-motion: no-preference) {
  .chat-body > *, .request { animation: aparece 0.45s ease-out both; }
  .chat-body > :nth-child(1) { animation-delay: 0.3s; }
  .chat-body > :nth-child(2) { animation-delay: 1.2s; }
  .chat-body > :nth-child(3) { animation-delay: 2.3s; }
  .chat-body > :nth-child(4) { animation-delay: 3.2s; }
  .chat-body > :nth-child(5) { animation-delay: 4.3s; }
  .chat-body > :nth-child(6) { animation-delay: 5s; }
  .request { animation-name: aparece-girada; animation-delay: 5.6s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
@keyframes aparece {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes aparece-girada {
  from { opacity: 0; transform: translateY(8px) rotate(-2deg); }
  to { opacity: 1; transform: rotate(-2deg); }
}

/* Con qué funciona */
.works { padding: 32px 0 0; }
.works .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
.works p { margin: 0 8px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.works span { font-family: var(--display); font-weight: 700; font-size: 17px; color: #3d3a36; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

.soon { margin: 28px 0 0; color: var(--muted); }
.soon strong { color: var(--brand-text); }

/* Idiomas */
.langs-demo { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pair { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 16px 30px -24px rgba(60, 35, 20, 0.45); }
.pair .code { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; background: var(--butter); border-radius: 999px; padding: 2px 10px; }
.pair .msg { font-size: 14px; }

/* Planes */
.card.plan { display: flex; flex-direction: column; background: var(--surface); box-shadow: 0 20px 40px -30px rgba(60, 35, 20, 0.5); }
.card.plan h3 { font-size: 30px; margin-bottom: 6px; }
.plan .free { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--text); background: var(--mint); border-radius: 999px; padding: 3px 12px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 4px 0 26px; padding: 0; color: var(--text); font-size: 16px; flex: 1; }
.plan li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--ink-text); font-size: 11px; font-weight: 700; }
.plan li.later { color: var(--muted); }
.plan li.later::before { content: ""; background: transparent; border: 2px dashed #c9c0b5; }
.plan .btn { align-self: flex-start; }
.plan .price { margin: 0; color: var(--muted); font-size: 16px; }
.plan .price strong { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.plan .price-year { margin: 2px 0 14px; color: var(--muted); font-size: 14px; }
.plans-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.tag { display: inline-block; background: var(--peach); color: var(--brand-text); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; margin-right: 4px; vertical-align: 1px; }

/* Secciones */
section { padding: 88px 0; }
section h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; margin: 0 0 14px; max-width: 22ch; }
section p.sub { color: var(--muted); font-size: 18px; margin: 0 0 44px; max-width: 60ch; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 21px; }
.card p { margin: 0; color: #3d3a36; font-size: 16px; }
/* Reservas directas (#364): en qué momento se pierde la reserva */
.card p.leak { margin: 0 0 6px; color: var(--brand-text); font-size: 14px; font-weight: 600; }
.card .tag { margin: 0 0 8px; }

/* Tarjetas de colores */
.grid:not(.steps):not(.plans) > .card:nth-child(4n+1) { background: var(--peach); }
.grid:not(.steps):not(.plans) > .card:nth-child(4n+2) { background: var(--sky); }
.grid:not(.steps):not(.plans) > .card:nth-child(4n+3) { background: var(--mint); }
.grid:not(.steps):not(.plans) > .card:nth-child(4n+4) { background: var(--butter); }

/* Íconos de las tarjetas: <div class="card" data-icon="chat"> */
.card[data-icon] { position: relative; }
.card[data-icon]::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--surface);
}
.card[data-icon]::after {
  content: "";
  position: absolute;
  top: 41px;
  left: 41px;
  width: 26px;
  height: 26px;
  background: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
[data-icon="chat"] { --icon: url("/icons/chat.svg"); }
[data-icon="check"] { --icon: url("/icons/check.svg"); }
[data-icon="request"] { --icon: url("/icons/request.svg"); }
[data-icon="bell"] { --icon: url("/icons/bell.svg"); }
[data-icon="nopms"] { --icon: url("/icons/nopms.svg"); }
[data-icon="calendar"] { --icon: url("/icons/calendar.svg"); }
[data-icon="link"] { --icon: url("/icons/link.svg"); }
[data-icon="live"] { --icon: url("/icons/live.svg"); }
[data-icon="globe"] { --icon: url("/icons/globe.svg"); }
[data-icon="price"] { --icon: url("/icons/price.svg"); }
[data-icon="chart"] { --icon: url("/icons/chart.svg"); }
[data-icon="qr"] { --icon: url("/icons/qr.svg"); }
[data-icon="page"] { --icon: url("/icons/page.svg"); }

.steps { counter-reset: paso; }
.steps .card { border: 1px solid var(--line); }
.steps .card h3::before {
  counter-increment: paso;
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.band { background: var(--surface); }

.cta-final { text-align: center; padding: 96px 0; }
.cta-final.band { margin: 0 12px 24px; border-radius: 36px; background: var(--brand); color: var(--ink); }
.cta-final.band h2 { font-size: clamp(36px, 5vw, 60px); }
.cta-final.band p { color: inherit; }
.cta-final h2 { margin-left: auto; margin-right: auto; }
.cta-final p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; font-size: 18px; }

/* Páginas legales */
.legal { padding: 56px 20px 80px; max-width: 760px; }
.legal h1 { font-size: 44px; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal li { margin-bottom: 6px; }

/* Formulario provisorio de registro (#329) */
.signup { padding: 64px 20px 88px; max-width: 620px; }
.signup h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 0 0 12px; }
.signup > p { color: var(--muted); font-size: 18px; }
.form { position: relative; display: grid; gap: 16px; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.form button { font: inherit; font-weight: 600; border: 0; cursor: pointer; justify-self: start; }
.form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.form-note a { color: var(--brand-text); }
.form-error { display: none; background: var(--peach); color: var(--brand-text); font-weight: 600; border-radius: 12px; padding: 12px 16px; }
.form-error:target { display: block; }

/* Pie */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer nav a { margin-right: 18px; }
footer .guides { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
footer .guides a { margin-right: 0; color: var(--text); font-weight: 500; }
footer .guides a[aria-current] { color: var(--brand-text); text-decoration: none; }

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .request { right: 12px; }
}

@media (max-width: 640px) {
  .top { padding: 8px 8px 0; }
  .top .wrap { height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px 12px; padding: 8px 8px 8px 16px; border-radius: 26px; }
  .nav { display: flex; align-items: center; gap: 14px; }
  .nav a { margin-left: 0; }
  .nav a.btn { padding: 9px 14px; font-size: 14px; }
  .nav a:not(.btn):not(.login) { display: none; }
  .nav a.login { padding: 10px 4px; }
  .top .nav { margin-left: 0; }
  .langs { margin-left: auto; }
  .logo { font-size: 20px; }
  .logo::before { width: 28px; height: 28px; }
  .hero-wrap { margin: 10px 8px 0; border-radius: 28px; }
  .hero { padding-top: 44px; padding-bottom: 44px; }
  section { padding: 60px 0; }
  .demo { padding-bottom: 0; }
  .request { position: static; width: auto; margin-top: 12px; transform: none; }
  .robot-2, .robot-3 { display: none; }
  .demo .chat { width: 100%; }
  .cta-final.band { margin: 0 8px 16px; border-radius: 28px; }
  [id] { scroll-margin-top: 130px; }
}

/* Logo grande al final de cada página: sube y se achica a medida que llegás al final. */
footer { overflow: hidden; }
footer::after {
  content: "GoLobby";
  content: "GoLobby" / "";
  display: block;
  margin: 40px 0 -0.22em;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 210px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--brand) 30%, var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 100%;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    footer::after { animation: logo-sube linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes logo-sube {
  from { transform: translateY(25%) scale(1.6); opacity: 0.25; }
  to { transform: none; opacity: 1; }
}
