/* Roomlyz · base.css — Tokens + reset compartido por los 3 templates de hotel */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent, #c9a84c); outline-offset: 3px; border-radius: 2px; }

:root {
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --color-bg: #ffffff;
  --color-ink: #0f1115;
  --color-mute: #5b6371;
  --color-line: #e6e3da;
  --color-cream: #f7f5f0;
  --radius: 6px;
  --container: 1240px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mute);
  font-weight: 600;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -0.018em; }
h1 { font-weight: 900; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--color-accent); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  font-weight: 600; font-size: 0.92rem;
  border-radius: var(--radius);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgba(0,0,0,0.4); }
.btn-ghost { color: var(--color-ink); border: 1px solid var(--color-ink); }
.btn-ghost:hover { background: var(--color-ink); color: #fff; }

/* ---- Lang switch reutilizado en templates de hotel ---- */
.lang-switch { position: relative; }
.lang-switch__current {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 4px;
  font-size: 0.82rem; font-weight: 600; color: #fff;
}
.lang-switch__current:hover { border-color: rgba(255,255,255,0.55); }
.lang-switch__flag {
  width: 22px; height: 15px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08); flex-shrink: 0;
}
.lang-switch__chevron { transition: transform 200ms ease; }
.lang-switch__current[aria-expanded="true"] .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid #e6e3da; border-radius: 10px;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.3); padding: 0.4rem;
  list-style: none; margin: 0; min-width: 180px;
  color: var(--color-ink);
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.65rem; border-radius: 4px;
  font-size: 0.92rem; font-weight: 500;
}
.lang-switch__item:hover { background: var(--color-cream); }
.lang-switch__item.is-active { font-weight: 700; color: var(--color-primary); }

/* Variant para fondo claro (navbars en blanco) */
.lang-switch--light .lang-switch__current {
  border-color: var(--color-line); color: var(--color-ink);
}
.lang-switch--light .lang-switch__current:hover { border-color: var(--color-ink); }
