/*
 * help.availroom.com — base: marca, tipografía, cabecera, cajón móvil y pie.
 * Marca de la web pública availroom.com (repo availroom-website): DM Sans en títulos, Inter en texto, azul #2c2ce7 en
 * botones y enlaces, #30364d en encabezados, #425466 en texto y #f6f9fc de fondo suave. Radios de 11 px en botones.
 * Estructura, escalas y rejilla del diseño «Superficie 2» (escritorio 1440 con márgenes de 120; móvil 375 con 20).
 * Las tipografías se piden por nombre con respaldo del sistema: no se carga nada de terceros. Para usar las reales,
 * descomenta el bloque @font-face y copia los .woff2 en public/site/fonts/ (sin ficheros por ahora).
 */
/*
@font-face { font-family: "DM Sans"; src: url("/site/fonts/dm-sans-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/fonts/inter-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
*/
:root {
  --ink: #30364d;
  --text: #425466;
  --muted: #5a6a7e;
  --blue: #2c2ce7;
  --blue-2: #4a4af3;
  --dark-blue: #2e188a;
  --lavender: #d2d2f5;
  --tint: #eceefe;
  --accent: #00d4ff;
  --danger: #b3342a;
  --soft: #f6f9fc;
  --border: #e0e6e8;
  --field-border: #6b7c93;
  --shadow: 0 2px 12px rgba(46, 50, 60, 0.09);
  --radius: 12px;
  --margin: clamp(20px, 8.3333vw, 120px);
  --font-title: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

html.drawer-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 0.4em;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 22px;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--dark-blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.icon {
  flex: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.main {
  min-height: 60vh;
}

.main:focus {
  outline: none;
}

.page {
  padding-top: 48px;
  padding-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow-error {
  color: var(--danger);
}

.lead {
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* Botones y buscador */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  background-color: var(--blue);
  background-image: linear-gradient(to bottom, var(--blue), var(--blue-2));
  color: #fff;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background-image: linear-gradient(to bottom, var(--dark-blue), var(--blue));
  color: #fff;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.button-light {
  background: #fff;
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.button-light:hover {
  background: var(--tint);
  color: var(--dark-blue);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--field-border);
  background: #fff;
  color: var(--muted);
}

.search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search input[type="search"]:focus-visible {
  outline: none;
}

.search:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.search-header {
  width: 380px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
  font-size: 14px;
}

.search-page {
  max-width: 720px;
  height: 56px;
  padding: 0 8px 0 16px;
  border-radius: 12px;
  font-size: 16px;
}

.search-hero {
  height: 64px;
  max-width: 820px;
  margin-top: 8px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  font-size: 17px;
}

.search-hero .button,
.search-page .button {
  min-height: 44px;
  border-radius: 10px;
  font-size: 15px;
}

.search-hero .button {
  background: var(--accent);
  background-image: none;
  color: #091439;
}

.search-hero .button:hover {
  background: #4ae0ff;
  color: #091439;
}

/* Móvil: 375 con márgenes de 20 */
@media (max-width: 768px) {
  :root {
    --margin: 20px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 17px;
  }

  .page {
    padding-top: 24px;
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .drawer,
  .skip-link,
  .search {
    display: none !important;
  }
}
