/* ============================================================
   TURNNIA — Landing page (blanco · negro · gris)
   Mobile-first · sin dependencias externas salvo Google Fonts
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-soft: #3d3d3d;
  --muted: #6f6f6f;
  --muted-2: #a0a0a0;
  --line: #e6e6e6;
  --line-2: #efefef;
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --bg-3: #efefef;
  --card: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 10vw, 120px);
  --header-h: 64px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, .06), 0 1px 3px rgba(10, 10, 10, .05);
  --shadow-md: 0 14px 40px -20px rgba(10, 10, 10, .28);
  --shadow-lg: 0 34px 70px -26px rgba(10, 10, 10, .32);

  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #c4c4c4 transparent;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 999px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #b3b3b3; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ----------------------------- Layout ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: var(--section-y) 0; }
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 6vw, 60px);
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: -.02em;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.noscript-note { text-align: center; color: var(--muted); }

/* ----------------------------- Skip link ----------------------------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ----------------------------- Botones ----------------------------- */
.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #242424; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ----------------------------- Marca ----------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ink);
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 7px;
  height: 2px;
  background: #fff;
  box-shadow: 0 5px 0 #fff, 0 10px 0 #fff;
}
.brand-mark--sm { width: 20px; height: 20px; border-radius: 6px; }
.brand-mark--sm::after { left: 4px; right: 4px; top: 5px; height: 1.6px; box-shadow: 0 4px 0 #fff, 0 8px 0 #fff; }

/* Logo oficial TURNNIA (archivo original, proporción intacta) */
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  flex: none;
}
.footer-brand .brand-logo { height: 46px; }
@media (min-width: 960px) {
  .brand-logo { height: 52px; }
  .footer-brand .brand-logo { height: 54px; }
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 12px);
}

/* Pastilla reutilizable: Para negocios · Menú · Idioma */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.pill:hover { border-color: var(--ink); }
.pill:active { transform: translateY(1px); }

.menu-ic { width: 16px; height: 16px; }

/* Menú desplegable */
.menu, .lang { position: relative; }
.menu-btn[aria-expanded="true"],
.lang-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--bg-2); }

.menu-panel,
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 208px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 30;
}
.lang-menu { list-style: none; min-width: 190px; }
.menu.is-open .menu-panel,
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }

.menu-panel a,
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--ink-soft);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.menu-panel a:hover,
.lang-menu button:hover { background: var(--bg-2); color: var(--ink); }
.lang-menu button.is-active { background: var(--ink); color: #fff; }
.menu-panel__biz { display: none; }

.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-caret { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.lang.is-open .lang-caret { transform: rotate(180deg); }

/* Selector de idioma dentro del menú desplegable (todos los dispositivos) */
.menu-panel__sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}
.menu-panel__langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.menu-panel__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.menu-panel__lang:hover { background: var(--bg-2); color: var(--ink); }
.menu-panel__lang.is-active { background: var(--ink); color: #fff; }
.menu-panel__flag { font-size: 1.05rem; line-height: 1; }

/* 5 · Iniciar sesión / menú de usuario */
.auth-slot { display: flex; align-items: center; }
.header-login {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 8px;
  white-space: nowrap;
  border-radius: 8px;
}
.header-login:hover { text-decoration: underline; }

.user { position: relative; }
.user-btn { padding-left: 6px; }
.user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
}
.user-avatar--img { background: none; object-fit: cover; }
.user-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }
.user.is-open .user-panel { opacity: 1; visibility: visible; transform: none; }
.user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 30;
}
.user-panel__email {
  display: block;
  padding: 8px 12px 10px;
  font-size: .82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 6px;
  word-break: break-all;
}
.user-panel button,
.user-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--ink-soft);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.user-panel button:hover,
.user-panel a:hover { background: var(--bg-2); color: var(--ink); }

/* --- Responsive del header --- */
@media (max-width: 860px) {
  .header-biz { display: none; }
  .menu-panel__biz { display: flex; }
}
@media (max-width: 600px) {
  /* Todo el bloque superior tiene que caber en una sola fila sin recortes.
     Idioma, perfil y menú se ven TODOS del MISMO tamaño (36px), sin
     pastillas, alineados y con la misma separación. El menú va último,
     en la esquina, junto al perfil. */
  .header-inner { gap: 8px; }
  .header-actions { gap: 10px; min-width: 0; }
  .brand-logo { height: 38px; }               /* logo un poco más grande */

  .menu { order: 1; }                          /* menú en la esquina */

  .lang-btn,
  .user-btn,
  .menu-btn {
    height: 36px;
    min-width: 36px;
    padding: 0;
    gap: 0;
    border: 0;
    background: none;
  }
  .lang-btn:hover, .user-btn:hover, .menu-btn:hover,
  .lang-btn[aria-expanded="true"], .menu-btn[aria-expanded="true"] {
    border-color: transparent;
    background: none;
  }
  .lang-btn:active, .user-btn:active, .menu-btn:active { transform: none; }

  .lang-label,
  .lang-caret,
  .user-name,
  .user-btn .lang-caret,
  .menu-btn span { display: none; }

  .lang-flag {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    color: var(--ink);
  }
  .user-avatar { width: 36px; height: 36px; font-size: .95rem; }
  .menu-ic { width: 26px; height: 26px; }

  .menu-panel, .lang-menu, .user-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) + 6px);
    min-width: 0;
  }
}
@media (max-width: 380px) {
  .brand-logo { height: 34px; }
  .lang-btn, .user-btn, .menu-btn { height: 32px; min-width: 32px; }
  .lang-flag, .user-avatar { width: 32px; height: 32px; }
  .menu-ic { width: 23px; height: 23px; }
  .header-actions { gap: 8px; }
  .header-login { padding: 10px 4px; font-size: .86rem; }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(28px, 7vw, 72px));
  padding-bottom: var(--section-y);
}
.hero-bg {
  position: absolute;
  inset: -25% -10% auto -10%;
  height: 80%;
  z-index: -1;
  background:
    radial-gradient(55% 55% at 18% 12%, #f1f1f1, transparent 70%),
    radial-gradient(45% 45% at 88% 0%, #e9e9e9, transparent 70%);
  will-change: transform;
}
.hero-inner {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.12fr .88fr; align-items: center; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-title {
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 18ch;
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-search {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .hero-search { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .hero-search { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.hero-search .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 0 8px;
}
.hero-search label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-search input {
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.hero-search input:focus { outline: none; border-color: var(--ink); }
.hero-search .btn { width: 100%; }
@media (min-width: 640px) { .hero-search .btn { grid-column: 1 / -1; } }
@media (min-width: 980px) { .hero-search .btn { grid-column: auto; align-self: stretch; height: auto; } }

/* ===========================================================
   Hero · Asistente de reservas con IA   (index.html · .hero--ai)
   Estructura mínima y centrada: eyebrow + título + subtítulo +
   UNA caja de IA. El buscador tradicional vive debajo, oculto.
   =========================================================== */
.hero-ai-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero--ai .hero-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 20ch;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
}
.hero--ai .hero-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 44ch;
}
/* Entrada del hero algo más ágil (~320 ms) */
.hero--ai .reveal { transition-duration: .32s; }

/* ---- Caja de IA ---- */
.ai-box {
  margin-top: clamp(24px, 4vw, 34px);
  padding: clamp(16px, 3.5vw, 26px);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(10, 10, 10, .04), 0 18px 42px -26px rgba(10, 10, 10, .20);
}
.ai-box__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ai-box__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--bg-3);
  color: var(--ink);
}
.ai-box__icon svg { width: 22px; height: 22px; }
.ai-box__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.ai-box__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.ai-box__search-ic {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted-2);
}
.ai-box__form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, .06);
}
.ai-box__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;               /* 16px = evita el zoom automático de iOS al enfocar */
  color: var(--ink);
}
.ai-box__input::placeholder { color: var(--muted-2); }
.ai-box__input:focus { outline: none; }
.ai-box__send { flex: none; --h: 44px; padding: 0 18px; }
.ai-box__send-ic { width: 16px; height: 16px; }

.ai-box__examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.ai-box__examples-label { font-size: .8rem; color: var(--muted); }
.ai-chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.ai-chip:hover { border-color: var(--ink); color: var(--ink); }
.ai-chip:active { transform: translateY(1px); }

.ai-box__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .9rem;
  color: var(--ink-soft);
  animation: aiFade .28s var(--ease);
}
.ai-box__status.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  animation: aiSpin .7s linear infinite;
}
.ai-box__status.is-error { color: #b42318; }

/* Resultados de la IA · contenedor vacío hasta conectar IA/backend
   (lo puebla renderAiResults() en js/hero-ai.js) */
.ai-box__results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.ai-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ai-result:hover { border-color: #dcdcdc; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ai-result__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-result__name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.ai-result__svc { font-size: .88rem; color: var(--muted); }
.ai-result__meta { flex: none; font-size: .85rem; color: var(--ink-soft); text-align: right; }

/* ---- Acciones secundarias del hero IA ---- */
.hero-ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 18px;
}
.hero-ai-manual {
  border: 0;
  background: none;
  padding: 6px 2px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.hero-ai-manual:hover { color: var(--ink); }
/* "Soy un negocio" ahora es un botón de verdad (.btn .btn-outline);
   el separador "·" ya no tiene sentido junto a un botón. */
.hero-ai-sep { display: none; }
.hero-ai-biz { --h: 40px; padding: 0 20px; font-size: .9rem; }

/* ---- Buscador manual desplegable ---- */
.hero-manual {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hero-manual.is-open { opacity: 1; transform: none; }
.hero--ai .hero-search { margin-top: 18px; text-align: left; }

@keyframes aiFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes aiSpin { to { transform: rotate(360deg); } }

/* ---- Responsive de la caja IA ---- */
@media (max-width: 560px) {
  /* Se mantiene en UNA sola fila (lupa + campo + botón dentro de la misma
     pastilla), igual que en escritorio. El campo se queda con casi todo el
     ancho y el botón se hace un poco más pequeño para que quepa. */
  .ai-box__form { gap: 6px; padding: 6px 6px 6px 12px; }
  .ai-box__search-ic { width: 18px; height: 18px; }
  .ai-box__input { height: 44px; }
  .ai-box__send { --h: 40px; padding: 0 14px; font-size: .86rem; }
  .ai-box__send-ic { width: 15px; height: 15px; }
  .ai-box__examples-label { width: 100%; }
  .ai-result { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ai-result__meta { text-align: left; }
}
@media (max-width: 360px) {
  /* Pantallas muy estrechas: el botón deja solo la flecha para no apretar el campo. */
  .ai-box__send span { display: none; }
  .ai-box__send { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-manual { transition: none; }
  .ai-box__status,
  .ai-box__status.is-loading::before { animation: none; }
  .ai-chip:active { transform: none; }
}

/* ---- Asistente IA · conversación (hilo dentro de #aiResults) ---- */
.ai-thread {
  display: grid;
  gap: 8px;
}
.ai-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: aiFade .24s var(--ease);
}
.ai-msg--user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.ai-msg--ai {
  justify-self: start;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.ai-quick,
.ai-actions2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ai-cards {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.ai-note {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted);
}
.ai-result {
  flex-wrap: wrap;
  align-items: flex-start;
}
.ai-result__line { font-size: .82rem; color: var(--muted); }
.ai-result__rating { font-size: .8rem; color: var(--muted); }
.ai-result__prof { font-size: .82rem; color: var(--ink-soft); }
.ai-result__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ai-result__price { font-weight: 600; color: var(--ink); }
.ai-result__cta {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 560px) {
  .ai-msg { max-width: 100%; }
  .ai-result__meta { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-msg { animation: none; }
}

/* ----------------------------- Cifras ----------------------------- */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: clamp(32px, 6vw, 52px) 0;
}
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 2.6rem);
  letter-spacing: -.02em;
}
.stat-label { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* ----------------------------- Mejores negocios ----------------------------- */
/* Móvil: una sola fila que se desliza en horizontal (carrusel), para no
   tener que bajar por 8 tarjetas apiladas. Escritorio: rejilla normal. */
.best-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 12px;
}
.best-grid::-webkit-scrollbar { display: none; }
.best-grid.is-empty { display: block; overflow: visible; }
.best-empty {
  margin: 0 auto;
  max-width: 46ch;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}
.best-grid > .biz-card {
  flex: 0 0 82%;
  max-width: 300px;
  scroll-snap-align: start;
}
@media (min-width: 560px) {
  .best-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .best-grid > .biz-card { flex: 0 1 auto; max-width: none; }
}
@media (min-width: 900px) { .best-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .best-grid { grid-template-columns: repeat(4, 1fr); } }

.biz-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #dcdcdc;
}
.biz-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #f0f0f0, #e2e2e2);
}
.biz-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.biz-card__logo {
  position: absolute;
  left: 16px;
  bottom: -22px;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: #f0f0f0 center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.biz-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  padding: 32px 18px 18px;
}
.biz-card__name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.biz-card__cat {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.biz-card__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.biz-card__loc svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.biz-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: .82rem;
  color: var(--muted);
}
.stars { display: inline-flex; gap: 2px; }
.star { width: 14px; height: 14px; fill: #d6d6d6; }
.star.is-on { fill: var(--ink); }
.biz-card__cta { margin-top: 14px; }

/* Estado placeholder (tarjeta vacía) */
.biz-card.is-placeholder .biz-card__name,
.biz-card.is-placeholder .biz-card__cat,
.biz-card.is-placeholder .biz-card__loc { color: var(--muted-2); }
.biz-card.is-placeholder .biz-card__media {
  background: linear-gradient(100deg, #eee 30%, #f7f7f7 50%, #eee 70%);
  background-size: 200% 100%;
  animation: shimmer 1.7s linear infinite;
}
.biz-card.is-placeholder .biz-card__logo { background: #ededed; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ----------------------------- Cómo funciona ----------------------------- */
.how-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}
.step h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* ----------------------------- Para negocios ----------------------------- */
.biz {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) { .biz { grid-template-columns: 1fr 1fr; } }
.biz__copy h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: -.02em;
}
.biz__copy > p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.biz__list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
}
.biz__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.biz__list svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--ink);
  stroke-width: 2.2;
}
.biz__mock {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.biz__mock h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
}
.biz__slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
  font-size: .92rem;
  color: var(--ink-soft);
}
.biz__slot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

/* ----------------------------- PWA ----------------------------- */
.pwa {
  padding: var(--section-y) 0;
  background: var(--ink);
  color: #fff;
}
.pwa .container {
  display: grid;
  gap: clamp(28px, 6vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) { .pwa .container { grid-template-columns: 1.2fr .8fr; } }
.pwa h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: -.02em;
}
.pwa p { margin-top: 14px; color: #c9c9c9; max-width: 44ch; }
.pwa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pwa .btn-primary { background: #fff; color: var(--ink); }
.pwa .btn-primary:hover { background: #e7e7e7; }
.pwa .btn-outline { border-color: #4a4a4a; color: #fff; }
.pwa .btn-outline:hover { background: #fff; color: var(--ink); }
.pwa-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) {
  .pwa .pwa__copy { grid-row: 1 / span 2; }
  .pwa-perks { padding-left: clamp(0px, 3vw, 40px); }
  .pwa .container:has(.pwa-qr[hidden]) .pwa-perks { grid-row: 1 / span 2; }
}
.pwa-perks li { position: relative; padding-left: 26px; color: #c9c9c9; font-size: .95rem; line-height: 1.5; }
.pwa-perks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .32em;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pwa-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius-lg);
}
.pwa-qr img { width: 190px; height: 190px; }
.pwa-qr figcaption { text-align: center; color: var(--ink); font-size: .92rem; font-weight: 500; }

/* ----------------------------- Beneficios ----------------------------- */
.benefits-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

/* Móvil: carrusel que gira solo, en bucle infinito (JS duplica las
   tarjetas y añade .is-marquee). En cuanto se toca, se pausa. */
@media (max-width: 619px) {
  .benefits-grid.is-marquee {
    display: block;
    overflow: hidden;
    gap: 0;
    margin: 0 calc(var(--pad) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .benefits-marquee__track {
    display: flex;
    width: max-content;
    padding: 6px 0;
    animation: benefitsMarquee 34s linear infinite;
  }
  .benefits-grid.is-marquee.is-paused .benefits-marquee__track { animation-play-state: paused; }
  .benefits-grid.is-marquee .benefit {
    flex: 0 0 76vw;
    max-width: 280px;
    margin: 0 14px 0 0;
  }
  /* Sin animación (prefers-reduced-motion): se desliza a mano */
  .benefits-grid.is-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 calc(var(--pad) * -1);
    padding: 4px var(--pad) 10px;
    scrollbar-width: none;
  }
  .benefits-grid.is-scroll::-webkit-scrollbar { display: none; }
  .benefits-grid.is-scroll .benefit {
    flex: 0 0 76vw;
    max-width: 280px;
    scroll-snap-align: start;
  }
}
@keyframes benefitsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .benefits-marquee__track { animation: none; }
}
.benefit {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--bg-3);
}
.benefit__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.benefit h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: .94rem; }

/* ----------------------------- FAQ ----------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__a {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: .97rem;
}

/* ----------------------------- CTA final ----------------------------- */
.cta-final {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-final .container { padding: var(--section-y) 0; }
.cta-final h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -.02em;
}
.cta-final p { margin: 16px auto 0; max-width: 44ch; color: #c9c9c9; }
.cta-final .hero-ctas { justify-content: center; margin-top: 30px; }
.cta-final .btn-primary { background: #fff; color: var(--ink); }
.cta-final .btn-primary:hover { background: #e9e9e9; }
.cta-final .btn-outline { border-color: #fff; color: #fff; }
.cta-final .btn-outline:hover { background: #fff; color: var(--ink); }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vw, 80px) 0 30px;
}
.footer-grid {
  display: grid;
  gap: 28px 20px;
  /* En móvil: columnas como en PC (no una lista larga en vertical). */
  grid-template-columns: 1fr 1fr;
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 360px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-col h4 {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: .94rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

/* ----------------------------- Reveal on scroll ----------------------------- */
[data-js="true"] .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-js="true"] .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-js="true"] .reveal { opacity: 1; transform: none; transition: none; }
  .biz-card.is-placeholder .biz-card__media { animation: none; }
  .btn:active { transform: none; }
}

/* ============================================================
   Explorar — página pública para buscar y descubrir negocios
   (explorar.html). Reutiliza tokens, .container, .btn, .pill,
   .hero-search, .biz-card y .stars de las secciones anteriores.
   ============================================================ */
.explore {
  padding-top: calc(var(--header-h) + clamp(20px, 4vw, 44px));
  padding-bottom: var(--section-y);
}
.explore-head { margin-bottom: 16px; }
.explore-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  letter-spacing: -.02em;
}

/* Buscador superior: usa .hero-search y sólo ajusta la separación */
.explore-search { margin: 6px 0 clamp(22px, 4vw, 40px); }

/* Distribución: panel de filtros + columna de resultados */
.explore-layout {
  display: grid;
  gap: clamp(18px, 3.5vw, 34px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .explore-layout { grid-template-columns: 264px minmax(0, 1fr); align-items: start; }
}
.explore-main { min-width: 0; }

/* Panel de filtros */
.explore-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
@media (min-width: 900px) {
  .explore-filters {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto;
  }
}
.explore-filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.explore-filters__head h2 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.filters-clear {
  border: 0;
  background: none;
  padding: 4px;
  font: inherit;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.filters-clear:hover { color: var(--ink); }

.filter-group { padding: 16px 0; border-top: 1px solid var(--line-2); }
.filter-group h3 {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: .92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-opt input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Botón "Ver resultados": sólo en móvil, dentro del panel abierto */
.explore-filters__apply { display: none; margin-top: 16px; }

/* Barra de resultados: contador + orden + botón de filtros (móvil) */
.explore-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.explore-count { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.explore-sort { display: flex; align-items: center; gap: 8px; }
.explore-sort label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ============================================================
   Lista desplegable de TODOS los <select> del sitio — progresivo.

   El botón cerrado de un <select> SÍ se puede maquetar con CSS normal
   (appearance:none + background-image, aplicado por cada clase de
   select del sitio: .select-pill, .dash-field select, .geo-select
   select, .hq-biz-filters select, .rsv-field select, .svc-extra
   select…). La LISTA ABIERTA, en cambio, la dibuja el sistema
   operativo y NINGUNA cantidad de CSS clásico la toca — por eso
   seguía viéndose "fea" (fondo azul de sistema) aunque el botón ya no.

   Chrome/Edge (Chromium) soportan desde 2025 el <select>
   "customizable" (appearance:base-select + ::picker(select)): con eso
   SÍ se maqueta también la lista abierta, con el mismo lenguaje visual
   del resto del sitio. Firefox/Safari, que todavía no lo soportan,
   simplemente ignoran este bloque entero (@supports) y se quedan tal
   cual estaban: CERO riesgo, nunca rompe el <select> en ningún
   navegador, solo mejora donde el navegador lo permite. */
@supports (appearance: base-select) {
  select {
    appearance: base-select;
  }
  select::picker(select) {
    appearance: base-select;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 6px;
    max-height: min(320px, 60vh);
    max-height: min(320px, 60dvh);
  }
  /* La flechita nativa del sistema se apaga: cada select ya trae la
     suya propia vía background-image (mismo chevron en todo el sitio). */
  select::picker-icon {
    display: none;
  }
  select option {
    padding: 10px 12px;
    border-radius: 9px;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
  }
  select option:hover,
  select option:focus {
    background: var(--bg-2);
  }
  select option:checked {
    background: var(--ink);
    color: #fff;
  }
}

/* ----- Popup propio de los <select> (js/ui-select.js) -----
   SOLO se activa en escritorio con mouse (misma condición que el JS:
   hover:hover + pointer:fine); en móvil/táctil el JS nunca abre este
   popup, así que nunca aparece ahí. Mismo lenguaje visual que el
   resto de popups del sitio (.menu-panel / .dash-modal__box): fondo
   blanco, borde var(--line), radio grande, sombra --shadow-md. */
@media (hover: hover) and (pointer: fine) {
  .tsel-pop {
    position: fixed;
    z-index: 500;
    margin: 0;
    padding: 6px;
    list-style: none;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--ink);
  }
  .tsel-pop[hidden] { display: none; }
  .tsel-pop li {
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tsel-pop li.is-selected { font-weight: 700; }
  .tsel-pop li.is-active { background: var(--ink); color: #fff; }
  .tsel-pop li.is-disabled { opacity: .4; cursor: not-allowed; }
}

.select-pill {
  height: 42px;
  padding: 0 38px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%230a0a0a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.select-pill:hover { border-color: var(--ink-soft); }
.select-pill:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, .08);
}
.select-pill::-ms-expand { display: none; }

.explore-filters-toggle { display: none; }

/* Rejilla de tarjetas de resultados */
.explore-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1160px) { .explore-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tarjeta de negocio en Explorar (variante de .biz-card) */
.biz-card--explore .biz-card__body { padding-top: 18px; }
.biz-card__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.biz-card__price { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.biz-card__price strong { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.biz-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* flex-basis 120px + wrap: se apilan si no caben los dos (etiquetas largas en EN/FR) */
.biz-card__actions .btn { flex: 1 1 120px; --h: 40px; padding: 0 10px; font-size: .82rem; }

/* Estado vacío */
.explore-empty {
  text-align: center;
  padding: clamp(36px, 8vw, 72px) 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.explore-empty p { margin-bottom: 6px; }
.explore-empty__hint { font-size: .9rem; }
.explore-empty .btn { margin-top: 18px; }

/* Móvil: filtros colapsables */
@media (max-width: 899px) {
  .explore-filters-toggle {
    display: inline-flex;
    order: -1;
    width: 100%;
    justify-content: center;
  }
  .explore-filters { display: none; }
  .explore-filters.is-open { display: block; }
  .explore-filters.is-open .explore-filters__apply { display: flex; }
}

/* Select dentro del panel de filtros (servicio / ubicación) */
.filter-select { width: 100%; height: 40px; font-size: .88rem; }

/* Botón "Usar mi ubicación" (orden por distancia) */
.explore-geo {
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.explore-geo[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 560px) { .explore-geo { display: none; } }

/* Badge de negocio DESTACADO (patrocinado) — separado del rating orgánico */
.biz-card__featured {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}

/* Botón de favorito (corazón) sobre la imagen */
.biz-card__fav {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), color .16s, background .16s;
}
.biz-card__fav:hover { transform: scale(1.08); }
.biz-card__fav:focus-visible { border-radius: 50%; }
.biz-card__fav.is-on { color: #e0245e; }
.biz-card__fav svg { width: 20px; height: 20px; }
.biz-card__featured + .biz-card__fav { bottom: 12px; }

/* ===========================================================
   Selector de fecha propio  (js/datepicker.js)
   Sustituye el calendario nativo por uno con el estilo de la web.
   =========================================================== */
.dp { position: relative; width: 100%; }

/* El <input type="date"> real: oculto a la vista pero sigue enviándose */
.dp-native {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Disparador: imita al resto de campos del buscador (.hero-search input) */
.dp__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.dp__trigger:hover { border-bottom-color: var(--muted-2); }
.dp__trigger:focus-visible { outline: none; border-bottom-color: var(--ink); }
.dp__trigger[aria-expanded="true"] { border-bottom-color: var(--ink); }
.dp__value {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dp__value::first-letter { text-transform: uppercase; }
.dp__trigger.is-empty .dp__value { color: var(--muted-2); }
.dp__ic { flex: none; display: grid; place-items: center; color: var(--muted); }
.dp__ic svg { width: 18px; height: 18px; }
.dp__trigger[aria-expanded="true"] .dp__ic { color: var(--ink); }

/* Popover del calendario (se monta en <body>, posición fija) */
.dp__pop {
  position: fixed;
  z-index: 400;
  width: min(322px, calc(100vw - 24px));
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.985);
  transform-origin: top left;
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
}
.dp__pop.is-open { visibility: visible; transition-delay: 0s; }
.dp__pop.is-anim { opacity: 1; transform: none; }

/* Atajos rápidos */
.dp__chips { display: flex; gap: 6px; margin-bottom: 12px; }
.dp__chip {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.dp__chip:hover { border-color: var(--ink); color: var(--ink); }
.dp__chip:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--bg-3); }

/* Cabecera: mes + navegación */
.dp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dp__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.dp__nav {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dp__nav svg { width: 18px; height: 18px; }
.dp__nav:hover { background: var(--bg-2); color: var(--ink); }
.dp__nav:focus-visible { outline: none; background: var(--bg-2); box-shadow: 0 0 0 3px var(--bg-3); }

/* Rejillas */
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp__weekdays span {
  padding: 4px 0 8px;
  text-align: center;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dp__days { gap: 2px; }
.dp__day {
  position: relative;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: .82rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.dp__day:hover { background: var(--bg-2); }
.dp__day.is-outside { color: var(--muted-2); }
.dp__day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}
.dp__day.is-selected,
.dp__day.is-selected:hover {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.dp__day.is-selected.is-today::after { background: #fff; }
.dp__day.is-disabled,
.dp__day.is-disabled:hover {
  background: transparent;
  color: var(--muted-2);
  opacity: .35;
  cursor: not-allowed;
}
.dp__day:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* Pie: borrar */
.dp__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.dp__link {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dp__link:hover { background: var(--bg-2); color: var(--ink); }
.dp__link:focus-visible { outline: none; background: var(--bg-2); box-shadow: 0 0 0 3px var(--bg-3); }

@media (prefers-reduced-motion: reduce) {
  .dp__pop { transition: visibility 0s; }
}

/* ------------------------------------------------------------
   [hidden] SIEMPRE oculta. Cualquier regla de autor con display
   (.btn{inline-flex}, .auth-loggedin{grid}…) empata en especificidad
   con el [hidden] del navegador y le gana; al ir al final, esta regla
   desempata a favor de "oculto". (auth.css/dashboard.css/hq.css ya
   añaden la suya para sus propios componentes.)
   ------------------------------------------------------------ */
[hidden] { display: none; }

/* ============================================================
   MÓVIL / TÁCTIL — pulido sin rediseño (todas las páginas)
   · Safe-area (notch / barra de gestos de iPhone) con viewport-fit=cover.
   · Objetivos táctiles >= 44px en pantallas táctiles.
   · Campos >= 16px en táctil: iOS hace zoom al enfocar si son menores.
   · Placeholders largos con puntos suspensivos en vez de cortarse.
   ============================================================ */

/* Placeholder / valor largo: elipsis en lugar de recorte seco. */
input, textarea { text-overflow: ellipsis; }

/* Safe-area: en horizontal el notch se come los laterales. En vertical los
   insets valen 0, así que no cambia nada. */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-header .container {
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
.toast-host { bottom: calc(24px + env(safe-area-inset-bottom)); }

@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  select,
  textarea { font-size: 16px !important; }

  /* Objetivos táctiles importantes: mínimo ~44px (sin tocar el diseño de escritorio). */
  .btn, .pill, .lang-btn, .menu-btn, .user-btn, .header-login,
  .auth-tab, .toggle-pw, .social-btn, .link-btn, .auth-back,
  .biz-card__fav, .explore-filters-toggle, .dp__trigger, .dp__nav, .dp__link,
  .menu-panel a, .menu-panel__lang, .lang-menu button, .user-panel a, .user-panel button,
  .lg-top, .lg-btn, .lg-nav__link, .pr-billing__opt, .brand,
  .neg-back, .rsv-back { min-height: 44px; }
  /* Botones de icono (cuadrados): también de ancho. */
  .menu-btn, .lang-btn, .user-btn, .toggle-pw, .biz-card__fav, .dp__nav, .lg-top, .ai-box__send { min-width: 44px; }
  .link-btn, .auth-back, .header-login, .neg-back, .rsv-back, .brand { display: inline-flex; align-items: center; }
  .link-btn, .auth-back, .header-login { justify-content: center; }
  .ai-chip { min-height: 40px; }
}

/* ---------- Planes (home): composición de tarjetas ---------- */
.plans-stage { position: relative; max-width: 760px; margin: 48px auto 0; padding: 36px 0 8px; display: flex; justify-content: center; }
.plans-stage__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.plans-stage__card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin: 0; }
.plans-stage__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plans-stage__card--main { position: relative; z-index: 2; width: min(100%, 340px); box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.plans-stage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plans-stage__badge { background: var(--bg-3); color: var(--ink-soft); font-size: .78rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.plans-stage__card--main li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ink-soft); }
.plans-stage__card--main li::before { content: ""; position: absolute; left: 3px; top: .35em; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plans-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130%; height: 120%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(148, 163, 184, .28) 0%, rgba(176, 190, 214, .16) 40%, rgba(200, 210, 228, 0) 70%); filter: blur(24px); pointer-events: none; }
.plans-stage__card--side { position: absolute; top: 68px; width: 260px; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.plans-stage__card--side h3 { color: var(--muted-2); margin-bottom: 20px; }
.plans-stage__card--side li { height: 14px; border-radius: 999px; background: var(--bg-3); margin-left: 24px; }
.plans-stage__card--left { left: 0; transform: rotate(-4deg); }
.plans-stage__card--right { right: 0; transform: rotate(4deg); }
@media (max-width: 720px) {
  .plans-stage { margin-top: 36px; padding-top: 0; }
  .plans-stage__card--side { width: 44%; top: 40px; padding: 16px; opacity: .85; }
  .plans-stage__card--left { left: -6%; }
  .plans-stage__card--right { right: -6%; }
  .plans-stage__card--side h3 { font-size: 1rem; margin-bottom: 14px; }
  .plans-stage__card--main { width: min(86%, 340px); padding: 20px; }
}
#planes { overflow: hidden; }
