/* Welkey · base compartida (huésped, panel y web) */
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --cal: #F3F6F5;          /* fondo: pared encalada, fría */
  --papel: #FFFFFF;
  --papel-2: #F8FAF9;
  --tinta: #13262F;
  --tinta-2: #4B5E66;
  --tinta-3: #7C8D93;
  --linea: #DCE4E2;
  --linea-2: #E9EEED;
  --mar: #123A4F;          /* color principal del hotel (configurable) */
  --agua: #1F8A8A;         /* color de acento del hotel (configurable) */
  --sobre-mar: #FFFFFF;
  --ok: #2B7A57;  --ok-bg: #E3F2EA;
  --aviso: #A86A12; --aviso-bg: #FBF0DC;
  --error: #B8402B; --error-bg: #FBE7E2;
  --info-bg: #E2F0F1;
  --sombra: 0 1px 2px rgba(19,38,47,.06), 0 8px 24px -12px rgba(19,38,47,.18);
  --sombra-alta: 0 24px 60px -20px rgba(19,38,47,.45);
  --r-s: 8px; --r: 12px; --r-l: 18px; --r-xl: 26px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cal: #0E1A20; --papel: #15242C; --papel-2: #1A2B33; --tinta: #E8EFEE; --tinta-2: #A9B9BD; --tinta-3: #7A8C91;
    --linea: #263A43; --linea-2: #1F3139; --ok-bg: #173327; --aviso-bg: #3A2C12; --error-bg: #3B1D17; --info-bg: #13323A;
    --sombra: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cal: #0E1A20; --papel: #15242C; --papel-2: #1A2B33; --tinta: #E8EFEE; --tinta-2: #A9B9BD; --tinta-3: #7A8C91;
  --linea: #263A43; --linea-2: #1F3139; --ok-bg: #173327; --aviso-bg: #3A2C12; --error-bg: #3B1D17; --info-bg: #13323A;
  --sombra: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cal); color: var(--tinta); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--agua); }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
.serif { font-family: var(--serif); font-weight: 400; }
:focus-visible { outline: 2px solid var(--agua); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Iconos */
.ic { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.ic svg { width: 100%; height: 100%; stroke-width: 1.8; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; background: var(--mar); color: var(--sobre-mar); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.acento { background: var(--agua); color: #fff; }
.btn.suave { background: var(--papel); color: var(--tinta); border-color: var(--linea); }
.btn.fantasma { background: transparent; color: var(--tinta); }
.btn.peligro { background: var(--error); color: #fff; }
.btn.peq { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.ancho { width: 100%; }
.btn.icono { width: 44px; padding: 0; }
.btn.icono.peq { width: 34px; }
.btn .cargando { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Formularios */
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo > span { font-size: 13.5px; font-weight: 600; color: var(--tinta-2); }
.campo small { color: var(--tinta-3); font-size: 12.5px; }
.input, .campo input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .campo select, .campo textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linea); background: var(--papel); color: var(--tinta); outline: none; }
.campo textarea { min-height: 88px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .input:focus { border-color: var(--agua); box-shadow: 0 0 0 3px color-mix(in srgb, var(--agua) 22%, transparent); }
.fila { display: flex; gap: 12px; align-items: center; }
.fila > .campo { flex: 1; min-width: 0; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .rejilla-2 { grid-template-columns: 1fr; } }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; }
.interruptor input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--linea); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.interruptor input:checked { background: var(--agua); }
.interruptor input:checked::after { transform: translateX(18px); }

/* Chips y etiquetas */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linea);
  background: var(--papel); color: var(--tinta-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.etq { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--linea-2); color: var(--tinta-2); white-space: nowrap; }
.etq.ok { background: var(--ok-bg); color: var(--ok); }
.etq.aviso { background: var(--aviso-bg); color: var(--aviso); }
.etq.error { background: var(--error-bg); color: var(--error); }
.etq.info { background: var(--info-bg); color: var(--agua); }

/* Hoja / diálogo */
.velo { position: fixed; inset: 0; background: rgba(9,22,28,.46); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: aparece .18s ease; }
@keyframes aparece { from { opacity: 0; } }
.hoja { background: var(--papel); width: 100%; max-width: 560px; max-height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column;
  box-shadow: var(--sombra-alta); animation: sube .24s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes sube { from { transform: translateY(40px); opacity: .4; } }
.hoja-cab { display: flex; align-items: center; gap: 12px; padding: 18px 20px 10px; }
.hoja-cab h2 { font-family: var(--serif); font-size: 22px; flex: 1; }
.hoja-cuerpo { padding: 6px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.hoja-pie { display: flex; gap: 10px; padding: 12px 20px 18px; border-top: 1px solid var(--linea-2); }
.hoja-pie .btn { flex: 1; }
@media (min-width: 760px) {
  .velo { align-items: center; }
  .hoja { border-radius: var(--r-xl); max-height: 86vh; }
  .hoja.ancha { max-width: 760px; }
}

/* Avisos emergentes */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 120; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--tinta); color: var(--papel); padding: 12px 16px; border-radius: 14px; font-size: 14.5px; box-shadow: var(--sombra-alta); display: flex; gap: 10px; align-items: center; animation: sube .25s ease; pointer-events: auto; }
.toast.error { background: var(--error); color: #fff; }
.toast.ok .ic { color: #7FE0B4; }

/* Vacío y carga */
.vacio { text-align: center; padding: 36px 20px; color: var(--tinta-2); }
.vacio .ic { width: 36px; height: 36px; color: var(--tinta-3); margin-bottom: 10px; }
.vacio h3 { font-family: var(--serif); font-size: 19px; color: var(--tinta); margin-bottom: 6px; }
.esqueleto { background: linear-gradient(90deg, var(--linea-2) 0, var(--papel-2) 50%, var(--linea-2) 100%); background-size: 200% 100%; animation: brillo 1.2s infinite; border-radius: var(--r); }
@keyframes brillo { to { background-position: -200% 0; } }

/* Foto con respaldo cuando no hay imagen */
.foto { position: relative; background: var(--linea-2); overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.sin { display: grid; place-items: center; color: color-mix(in srgb, var(--agua) 75%, var(--tinta));
  background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--agua) 20%, transparent) 0 30%, transparent 31%),
              linear-gradient(160deg, color-mix(in srgb, var(--agua) 14%, var(--papel)) 0%, color-mix(in srgb, var(--mar) 10%, var(--papel)) 100%); }
.foto.sin .ic { width: 34%; height: 34%; max-width: 48px; max-height: 48px; opacity: .7; }
[hidden] { display: none !important; }
