/* ==========================================================================
   Piezas comunes a las webs de demostración: aviso superior, asistente,
   confirmación de reserva. Cada web define sus colores con variables --d-*.
   ========================================================================== */

:root {
  --d-accent: #1F3DE0;
  --d-accent-ink: #FFFFFF;
  --d-surface: #FFFFFF;
  --d-ink: #10151C;
  --d-font: inherit;
  --d-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }

/* Aviso de demostración -------------------------------------------------- */

.demo-ribbon {
  position: relative; z-index: 90;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 9px 16px;
  background: #0B1622; color: rgba(238, 242, 246, .82);
  font: 500 12.5px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em;
}
.demo-ribbon { align-items: center; }
.demo-ribbon a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.demo-ribbon .demo-want, .demo-end .demo-want {
  border-radius: 999px; background: #E9B77E; color: #0B1622; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.demo-ribbon .demo-want { padding: 4px 12px; }
.demo-want:hover { background: #F3CDA2; }
.is-embed .demo-ribbon, .is-embed .bot, .is-embed .demo-end { display: none; }

/* Cierre: cómo pedir una web así ------------------------------------------ */

.demo-end {
  position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; padding: 30px 20px 92px;
  background: #0B1622; color: rgba(238, 242, 246, .86); text-align: center;
  font: 500 16px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.demo-end p { max-width: 36em; margin: 0; }
.demo-end b { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E9B77E; }
.demo-end .demo-want { padding: 13px 24px; font-size: 16px; }

/* Selector de idioma ----------------------------------------------------- */

.langs { display: inline-flex; gap: 2px; }
.langs button { padding: 6px 8px; border: 0; background: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; cursor: pointer; }
.langs button:hover { opacity: 1; }
.langs button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* Confirmación de reserva ------------------------------------------------ */

.booking-done { padding: 26px 28px; border-radius: var(--d-radius); background: var(--d-surface); color: var(--d-ink); font-family: var(--d-font); text-align: left; }
.booking-done .bd-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.booking-done .bd-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1FA463; }
.booking-done .bd-title { margin-top: 8px; font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.booking-done dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0; font-size: .98rem; }
.booking-done dt { opacity: .62; }
.booking-done dd { font-weight: 500; }
.booking-done .bd-note { padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .12); font-size: .88rem; line-height: 1.5; opacity: .78; }
.booking-done .bd-again { margin-top: 14px; padding: 0; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Asistente -------------------------------------------------------------- */

.bot { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-family: var(--d-font); }
.bot-toggle {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border: 0; border-radius: 999px;
  background: var(--d-accent); color: var(--d-accent-ink); font-weight: 600; font-size: .95rem; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55);
}
.bot-dot { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .3); }
.bot-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  display: flex; flex-direction: column; width: min(360px, calc(100vw - 36px)); height: min(500px, calc(100svh - 130px));
  border-radius: var(--d-radius); overflow: hidden; background: #F4F4F1; color: #10151C;
  border: 1px solid rgba(0, 0, 0, .1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.bot-panel[hidden] { display: none; }
.bot-head { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 14px 16px; background: var(--d-accent); color: var(--d-accent-ink); }
.bot-head b { font-size: 1rem; font-weight: 600; }
.bot-head span { grid-column: 1; font-size: .78rem; opacity: .85; }
.bot-close { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .14); color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.bot-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow-y: auto; }
.bot-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.42; animation: bot-in .22s ease-out both; }
.bot-msg.u { align-self: flex-end; background: var(--d-accent); color: var(--d-accent-ink); border-bottom-right-radius: 4px; }
.bot-msg.b { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.bot-msg.t { display: inline-flex; gap: 4px; padding: 13px; }
.bot-msg.t i { width: 6px; height: 6px; border-radius: 50%; background: #7A828C; animation: bot-blink 1s infinite ease-in-out; }
.bot-msg.t i:nth-child(2) { animation-delay: .15s; }
.bot-msg.t i:nth-child(3) { animation-delay: .3s; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 0; }
.bot-chips button { padding: 7px 11px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 999px; background: #fff; font-size: .82rem; cursor: pointer; }
.bot-chips button:hover { border-color: #10151C; }
.bot-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.bot-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 999px; background: #fff; font-size: .92rem; }
.bot-form button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--d-accent); color: var(--d-accent-ink); font-size: 1.1rem; cursor: pointer; }
@keyframes bot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bot-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bot-msg { animation: none; }
}
