* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --accent: #2f6b4f; --pale: #e7f2ec; --chv: #b0b6bd; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  color: #1c1c1e;
  padding-bottom: 70px;
}

/* PRE_CHECKIN */
.pre-checkin-body {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.overlay-oscuro {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.75));
}
.pre-checkin-content {
  position: relative; z-index: 1;
  width: 100%; padding: 24px; color: #fff;
}
.pre-checkin-content .logo { width: 64px; height: 64px; border-radius: 12px; margin-bottom: 12px; }
.pre-checkin-content h1 { font-size: 1.6rem; margin-bottom: 4px; }
.pre-checkin-content .ubicacion { opacity: .85; margin-bottom: 16px; }
.banner-precheckin img { width: 100%; border-radius: 10px; margin-bottom: 16px; }
.form-checkin { display: flex; flex-direction: column; gap: 10px; }
.form-checkin input, .form-checkin select {
  padding: 12px 14px; border-radius: 10px; border: none; font-size: 1rem;
}
.check-privacidad { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: #eee; text-align: left; }
.check-privacidad input { margin-top: 3px; flex-shrink: 0; }
.aviso-datos { font-size: .7rem; color: #ccc; line-height: 1.45; margin-top: 4px; text-align: left; }
/* Misma nota legal, pero para fondos claros (tarjetas blancas de auth) */
.aviso-datos-claro { font-size: .72rem; color: #8a9099; line-height: 1.5; margin-top: 10px; text-align: center; }
.btn-checkin {
  padding: 14px; border-radius: 10px; border: none;
  background: #111317; color: #fff; font-weight: 600; font-size: 1rem;
}
.form-error { background: #ffe5e5; color: #b00020; padding: 10px; border-radius: 8px; }
.form-ok { background: #e6f5ec; color: #1b8a4b; padding: 10px; border-radius: 8px; font-size: .9rem; }

/* App interna */
.app-main { padding: 16px; max-width: 600px; margin: 0 auto; }
.page-title { font-size: 1.4rem; margin-bottom: 16px; }
.hero-img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }
.hero-compacto h1 { margin-top: 10px; font-size: 1.3rem; }
.horarios { display: flex; gap: 12px; margin: 16px 0; }
.horarios > div { flex: 1; background: #fff; border-radius: 12px; padding: 12px; text-align: center; }
.horarios strong { display: block; font-size: .8rem; color: #888; }
.accesos-rapidos { display: flex; gap: 10px; margin-bottom: 16px; }
.accesos-rapidos a {
  flex: 1; background: #fff; border-radius: 12px; padding: 14px; text-align: center;
  text-decoration: none; color: #111; font-weight: 500;
}
.banners-secundarios img { width: 100%; border-radius: 10px; margin-bottom: 10px; }

/* Grid de secciones del panel admin: tarjeta con icono en circulo + chevron,
   estilo de la skin clara (natura). auto-fit para que se acomode solo en
   pantallas angostas sin quedar apretado. */
.grid-secciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 24px; }
.card-seccion {
  background: #fff; border-radius: 16px; padding: 18px 20px; text-decoration: none; color: #1c1c1e;
  display: flex; align-items: flex-start; gap: 14px; min-height: 30px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05); font-weight: 600; font-size: 1rem;
  transition: box-shadow .15s ease;
}
.card-seccion:active { box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-seccion-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pale); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.card-seccion-ic svg { width: 22px; height: 22px; }
.card-seccion-label { flex: 1; line-height: 1.3; }
.card-seccion-desc { display: block; color: #8a9099; font-weight: 400; font-size: .82rem; line-height: 1.45; margin-top: 3px; }
.card-seccion-chv { flex: 0 0 auto; color: var(--chv); display: flex; margin-top: 2px; }
.card-seccion-chv svg { width: 18px; height: 18px; }
.detalle-seccion { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.detalle-seccion h2 { font-size: 1.1rem; margin-bottom: 8px; }

/* SEARCH */
.form-search { display: flex; gap: 8px; margin-bottom: 16px; }
.form-search input { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid #ddd; }
.form-search button { padding: 12px 16px; border-radius: 10px; border: none; background: #111317; color: #fff; }
.resultado-item { display: block; background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; text-decoration: none; color: #111; }

/* MAP */
.map-container { height: 70vh; border-radius: 14px; overflow: hidden; }

/* Bottom nav (clon WordPress: scrollable horizontal si hay muchas secciones) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; gap: 0;
  background: #fff; border-top: 1px solid #eee;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }
.nav-item {
  /* flex:1 reparte los botones a lo ancho de la pantalla (como en el diseño
     de referencia), en vez de amontonarlos a la izquierda con espacio muerto */
  flex: 1 1 0; min-width: 0; padding: 2px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: #6b6b73; font-size: .66rem; white-space: nowrap;
}
.nav-item .nav-ic { font-size: 1.2rem; line-height: 1.2; }
.nav-item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* HELP WIDGET */
.help-widget { position: fixed; right: 16px; bottom: 80px; z-index: 50; }
.help-fab {
  width: 54px; height: 54px; border-radius: 50%; border: none;
  background: #111317; color: #fff; font-size: 1.4rem; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.help-panel, .help-chat {
  position: absolute; bottom: 64px; right: 0; width: 240px;
  background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.2);
  display: flex; flex-direction: column; gap: 8px;
}
.help-title { font-size: .85rem; color: #555; }
.help-option {
  text-align: left; padding: 10px; border-radius: 10px; border: 1px solid #eee;
  background: #f9f9fb; text-decoration: none; color: #111; font-size: .9rem;
}
.help-chat { width: 280px; height: 320px; }
.help-chat-log { flex: 1; overflow-y: auto; font-size: .85rem; display: flex; flex-direction: column; gap: 6px; }
.help-chat-log .msg-user { align-self: flex-end; background: #111317; color: #fff; padding: 6px 10px; border-radius: 10px; }
.help-chat-log .msg-ia { align-self: flex-start; background: #f1f1f3; padding: 6px 10px; border-radius: 10px; }
#help-chat-form { display: flex; gap: 6px; }
#help-chat-input { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid #ddd; }

/* Auth */
/* ===== Pantallas de acceso (login/registro/recuperar) — diseño "montañas" ===== */
.auth-main { padding-top: 40px; } /* la conserva mi_cuenta (pantalla interna) */
.auth-body { background: #e7f2ec; }
.auth-escena svg { display: block; width: 100%; height: clamp(130px, 18vw, 190px); }
.auth-wrap { display: flex; flex-direction: column; align-items: center; padding: 0 20px 48px; margin-top: -64px; position: relative; z-index: 2; }
.auth-card {
  background: #fff; border-radius: 20px; width: 100%; max-width: 440px; margin-top: 84px;
  padding: clamp(28px, 5vw, 44px) clamp(22px, 5vw, 44px) clamp(24px, 4vw, 36px);
  box-shadow: 0 12px 40px rgba(47, 107, 79, .14);
}
.auth-logo { display: block; width: 100px; height: auto; margin: 0 auto 8px; }
.auth-card .page-title { font-size: clamp(24px, 3vw, 28px); font-weight: 800; text-align: center; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { text-align: center; color: #5c6660; font-size: 15px; line-height: 1.5; margin-bottom: 26px; }
.form-auth { display: flex; flex-direction: column; gap: 16px; }
.form-auth label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: #1c1c1e; }
.form-auth input {
  font-family: inherit; font-size: 16px; color: #1c1c1e; padding: 14px 16px;
  border: 1.5px solid #d3e3da; border-radius: 12px; background: #fbfdfc; outline: none;
  width: 100%; transition: border-color .15s, box-shadow .15s;
}
.form-auth input::placeholder { color: #a3b0a9; }
.form-auth input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 107, 79, .15); background: #fff; }
.auth-olvide { display: flex; justify-content: flex-end; margin: -8px 0 0; font-size: 13.5px; }
.auth-olvide a, .auth-link a { font-weight: 700; color: var(--accent); }
.form-auth .btn-checkin { width: 100%; padding: 15px; min-height: 52px; font-size: 16px; font-weight: 700; border-radius: 12px; background: var(--accent); }
.auth-link { text-align: center; font-size: 14.5px; color: #5c6660; margin-top: 20px; }
.auth-pie { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.auth-pie i { width: 32px; height: 1px; background: rgba(47, 107, 79, .25); }
.auth-pie span { font-size: 12.5px; color: #5c6660; }

/* Paneles admin/anfitrion */
.panel-main { max-width: 900px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.btn-secundario { padding: 8px 14px; border-radius: 8px; background: #eee; color: #111; text-decoration: none; border: none; font-size: .9rem; }
.form-panel { background: #fff; border-radius: 14px; padding: 18px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.form-panel h2 { font-size: 1.05rem; margin-bottom: 6px; }
.form-panel label { display: flex; flex-direction: column; font-size: .85rem; color: #555; gap: 4px; }
.form-panel input, .form-panel select, .form-panel textarea { padding: 10px; border-radius: 8px; border: 1px solid #ddd; font-size: .95rem; font-family: inherit; }
/* Selector de ciudad (select + fallback "Otra ciudad") */
.campo-ciudad { display: flex; flex-direction: column; gap: 6px; }
.form-panel textarea { min-height: 70px; }
.form-panel .check-privacidad { flex-direction: row; align-items: center; color: #111; }
/* Foto opcional por instrucción, en el editor */
.foto-instruccion { margin: -4px 0 6px; padding: 10px 12px; background: var(--pale, #e7f2ec); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.foto-instruccion small { color: #4a5751; }
.foto-instruccion input[type="file"] { background: #fff; }
.foto-instruccion-actual { display: flex; align-items: flex-start; gap: 12px; }
.foto-instruccion-actual img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.foto-quitar { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #b00020; }
.foto-quitar input { width: auto; }
.tabla-panel { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.tabla-panel th, .tabla-panel td { padding: 10px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: .85rem; }
.btn-mini { padding: 6px 10px; border-radius: 6px; border: 1px solid #ddd; background: #f9f9fb; font-size: .75rem; cursor: pointer; }
.btn-mini-danger { color: #b00020; border-color: #f3c9c9; }
/* Analítica del anfitrión: tarjetas de números + barras por sección */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent, #2f6b4f); line-height: 1; }
.stat-label { font-size: .9rem; color: #3a3f45; line-height: 1.4; }
.stat-label small { color: #8a9099; }
.celda-barra { width: 45%; }
.stat-barra { display: block; height: 10px; border-radius: 999px; background: var(--accent, #2f6b4f); min-width: 6px; }

/* Mensajes por estadía: el botón se "prende" cuando es momento de enviarlo */
.btn-enviar-hoy { background: var(--pale, #e7f2ec); border-color: var(--accent, #2f6b4f); color: var(--accent, #2f6b4f); font-weight: 600; }
.wa-huesped { color: #888; font-size: .75rem; }

/* Los paneles (admin/anfitrion) usan el mismo verde de acento que la skin
   clara. El boton negro (.btn-checkin) se deja intacto fuera de aca, ya que
   tambien lo usa la pantalla de pre-checkin del huesped sobre foto oscura. */
.panel-main .btn-checkin { background: var(--accent); }
.panel-main .btn-secundario { background: var(--pale); color: var(--accent); font-weight: 600; }
.panel-main .form-panel input:focus,
.panel-main .form-panel select:focus,
.panel-main .form-panel textarea:focus { outline: none; border-color: var(--accent); }
.panel-main .page-title { color: #1c1c1e; }
.filtros-panel { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filtros-panel select, .filtros-panel input { padding: 8px; border-radius: 8px; border: 1px solid #ddd; }

/* ============================================================
   GUIA DEL HUESPED — dos skins: "natura" (claro/verde) y "calidez"
   ============================================================ */
.guia-body { background: #ececed; }
.guia { max-width: 640px; margin: 0 auto; background: #f4f4f6; min-height: 100vh; }

/* Aviso de vista previa (solo lo ve el anfitrion, nunca el huesped real) */
.preview-banner {
  position: sticky; top: 0; z-index: 70; background: var(--accent); color: #fff;
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 14px; font-size: .8rem; text-align: center;
}
.preview-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.guia-menu.menu-con-preview { top: 34px; }


/* Íconos SVG (heredan color del contexto) */
svg.ico { width: 24px; height: 24px; display: block; flex: 0 0 auto; }
svg.ico.ico-sm { width: 16px; height: 16px; }

/* PORTADA: ocupa TODA la primera pantalla del movil (foto + horarios), con la
   botonera fija al pie. El contenido de la guia queda debajo del pliegue: se
   llega scrolleando, con la botonera o con el menu. 64px = alto de la botonera. */
.guia-portada {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
}
.guia-hero {
  position: relative; flex: 1 1 auto; min-height: 0;
  background-color: #2a2f3a; background-size: cover; background-position: center;
  display: flex; flex-direction: column;
}
.guia-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.72) 100%);
}

/* Barra superior: hamburguesa + pill "Guía de la casa" */
.guia-topbar {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 16px; padding-top: calc(16px + env(safe-area-inset-top));
}
.hero-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.hero-btn svg.ico { width: 22px; height: 22px; }
.skin-natura .hero-menu { background: var(--accent); color: #fff; }
.skin-calidez .hero-menu { background: #fff; color: #1c2b23; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1c2b23;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.hero-pill svg.ico { width: 18px; height: 18px; color: var(--accent); }
.hero-pill-logo { width: 18px; height: 22px; object-fit: contain; display: block; }

/* Nombre / ciudad sobre la foto — con sombra para legibilidad */
.guia-hero-info { position: relative; z-index: 1; margin-top: auto; padding: 26px 24px 54px; color: #fff; }
.guia-hero-info h1 {
  font-size: 2.15rem; font-weight: 800; line-height: 1.08;
  text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.75);
}
.guia-loc { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 1.05rem; text-shadow: 0 1px 10px rgba(0,0,0,.65); }
.guia-loc svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }

/* Barra check-in/out: flota sobre el borde inferior del hero en ambos skins.
   white-space:nowrap + tamaños ajustados para que "15:00 HS" entre siempre
   en una sola linea, incluso en pantallas angostas (360px). */
.guia-horarios { display: flex; margin: -34px 16px 0; border-radius: 18px; position: relative; z-index: 3; overflow: hidden; }
.g-hora { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 10px; min-width: 0; }
.g-hora-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.g-hora-ic svg { width: 18px; height: 18px; }
.g-hora-txt { display: flex; flex-direction: column; min-width: 0; }
.g-hora-label { font-size: .64rem; letter-spacing: .07em; white-space: nowrap; }
.g-hora-val { font-size: 1.22rem; font-weight: 800; margin-top: 2px; white-space: nowrap; }
.g-hora-val .g-hora-hs { font-size: .68rem; font-weight: 700; opacity: .7; margin-left: 2px; }

.skin-natura .guia-horarios { background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.skin-natura .g-hora + .g-hora { border-left: 1px solid #eef0f2; }
.skin-natura .g-hora-ic { background: var(--pale); color: var(--accent); }
.skin-natura .g-hora-label { color: #8a9099; }
.skin-natura .g-hora-val { color: #1c1c1e; }

.skin-calidez .guia-horarios { background: rgba(22,24,30,.62); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.skin-calidez .g-hora + .g-hora { border-left: 1px solid rgba(255,255,255,.14); }
.skin-calidez .g-hora-ic { background: rgba(255,255,255,.16); color: #fff; }
.skin-calidez .g-hora-label { color: #cbd0d8; }
.skin-calidez .g-hora-val { color: #fff; }

/* Menú desplegable desde la hamburguesa */
.guia-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; max-width: 640px; margin: 0 auto;
  background: #fff; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border-radius: 0 0 20px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.guia-menu[hidden] { display: none; }
.guia-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: #1c1c1e; font-weight: 600; }
.guia-menu-item svg.ico { width: 22px; height: 22px; color: var(--accent); }
.guia-menu-item:active { background: var(--pale); }

/* Lista de secciones (acordeones) */
.guia-secciones { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border: none; cursor: pointer; text-align: left;
  background: #fff; border-radius: 16px; font-size: 1.05rem; font-weight: 700; color: #1c1c1e;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.acc-tit { flex: 1; }
.acc-chv { display: flex; color: var(--chv); transition: transform .25s ease; }
.acc-chv svg { width: 20px; height: 20px; }
.acc.open .acc-chv { transform: rotate(90deg); }
.acc-body { display: none; flex-direction: column; gap: 12px; padding: 2px 0 6px; }
.acc.open .acc-body { display: flex; }

/* Ícono de cabecera de sección */
.acc-ic { display: flex; align-items: center; justify-content: center; }
.acc-ic svg { width: 24px; height: 24px; }
.skin-natura .acc-ic { color: var(--accent); }
.skin-calidez .acc-ic { width: 42px; height: 42px; border-radius: 50%; }
/* Sección WiFi: ícono en círculo verde relleno (más llamativo), del mismo
   tamaño que los demás íconos de cada skin. */
.skin-natura .acc-ic.ic-wifi { background: var(--accent); color: #fff; border-radius: 50%; width: 24px; height: 24px; flex: 0 0 auto; }
.skin-natura .acc-ic.ic-wifi svg { width: 15px; height: 15px; }
.skin-calidez .acc-ic.ic-wifi { background: var(--accent); color: #fff; }

/* Tarjeta interna (sub-tema) */
.acc-card {
  background: #fff; border-radius: 16px; padding: 15px;
  display: flex; gap: 14px; align-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.acc-card-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.acc-card-ic svg { width: 22px; height: 22px; }
.skin-natura .acc-card-ic { background: var(--pale); color: var(--accent); }
.acc-card-main { flex: 1; min-width: 0; }
.acc-card-main strong { display: block; font-size: 1.05rem; color: #1c1c1e; margin-bottom: 3px; }
.acc-card-main p { color: #5a5f66; line-height: 1.5; font-size: .95rem; word-break: break-word; }
/* Foto de una instrucción (ej: el termotanque, la puerta) */
.acc-card-foto { display: block; width: 100%; border-radius: 12px; margin-top: 10px; }
.acc-card-foto-suelta { margin: -6px 0 4px; }
.guia-bienvenida { align-items: flex-start; }
.guia-bienvenida .acc-card-ic { margin-top: 2px; }

/* Tarjeta "Acceso a la casa" (datos sensibles de la estadia) — destacada */
.guia-acceso { align-items: flex-start; border: 1.5px solid var(--accent); }
.guia-acceso .acc-card-ic { margin-top: 2px; background: var(--accent) !important; color: #fff !important; }
.acceso-codigo { font-family: monospace; font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; color: var(--accent); margin: 4px 0 6px; }
.acceso-nota { color: #8a9099; font-size: .9rem; line-height: 1.5; }

/* Colores de íconos por sección (skin calidez = círculos de color) */
.skin-calidez .ic-welcome,
.skin-calidez .ic-wifi,
.skin-calidez .ic-recomendaciones { background: #e7f6ec; color: #1b8a4b; }
.skin-calidez .ic-accommodation { background: #eaf1fb; color: #1d5fd6; }
.skin-calidez .ic-rules { background: #efeafc; color: #6b3fd6; }
.skin-calidez .ic-contacts { background: #fdecec; color: #d64545; }
.skin-calidez .ic-checkout { background: #fdf0dc; color: #d68a17; }
.skin-calidez .ic-servicios { background: #fdf0dc; color: #cf6a17; }

/* Tarjetas link (WhatsApp / teléfono): tappables, con flecha */
a.acc-card-link { text-decoration: none; color: inherit; position: relative; padding-right: 34px; }
a.acc-card-link::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 9px; height: 9px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.skin-calidez a.acc-card-link::after { border-color: #d64545; }
a.acc-card-link:active { background: #fafafa; }

/* Tarjeta WiFi con botón copiar */
.acc-card-copy { position: relative; padding-right: 56px; }
.acc-copy-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--pale); color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.acc-copy-btn svg { width: 18px; height: 18px; }
.acc-copy-btn.copiado { background: #1b8a4b; color: #fff; }

/* Atajo al Store para el que recién llega */
.store-cta {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--pale); color: var(--accent); font-weight: 600; font-size: .95rem;
  border-radius: 14px; padding: 13px 15px;
}
.store-cta span { flex: 1; }
.store-cta:active { opacity: .8; }
.skin-calidez .store-cta { background: #fdf0dc; color: #cf6a17; }

/* CTA de loop viral: al pie de la guia, invita al huesped a hacerse anfitrion */
.loop-viral-cta {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 600; font-size: .9rem;
  border-radius: 14px; padding: 13px 15px; margin-top: 4px; background: #fff;
}
.loop-viral-cta span { flex: 1; }
.loop-viral-cta:active { opacity: .8; }
.skin-calidez .loop-viral-cta { border-color: #1b8a4b; color: #1b8a4b; }

/* Fila de emergencias */
.emergencias { display: flex; gap: 10px; }
.emerg { flex: 1; border-radius: 14px; padding: 14px 6px; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.emerg-ic { display: flex; }
.emerg-ic svg { width: 22px; height: 22px; }
.emerg strong { font-size: 1.4rem; }
.emerg > span:last-child { font-size: .8rem; }
.emerg-azul { background: #eaf1fb; color: #1d5fd6; }
.emerg-naranja { background: #fcecdb; color: #cf6a17; }
.emerg-verde { background: #e6f5ec; color: #1b8a4b; }

/* Tarjetas de Recomendaciones (anunciantes) */
.reco-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.reco-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.reco-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.reco-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; }
.reco-nombre { font-size: 1.1rem; color: #1c1c1e; }
.reco-cta { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: #8a9099; }

/* Tarjetas del Store de servicios (transfer, leña, desayuno, excursiones...) */
.servicio-desc { color: #5a5f66; font-size: .9rem; line-height: 1.45; }
.servicio-precio { font-weight: 700; color: var(--accent); font-size: .95rem; }
.servicio-pedir-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--accent);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
}
.servicio-pedir-btn svg { width: 16px; height: 16px; }

/* Íconos de la botonera inferior */
.bottom-nav .nav-ic { display: flex; align-items: center; justify-content: center; }
.bottom-nav .nav-ic svg { width: 22px; height: 22px; }

.guia-vacio { padding: 28px 16px; text-align: center; color: #999; }

/* ---- Panel anfitrion: editor de temas por seccion ---- */
.ayuda-texto { background: #eef3fb; color: #33506e; padding: 12px 14px; border-radius: 10px; font-size: .85rem; margin-bottom: 18px; line-height: 1.5; }
.seccion-bloque { background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.seccion-bloque-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.sb-titulo small { color: #999; font-weight: 400; }
.sb-oculta { color: #b00020; font-style: normal; background: #fdecec; padding: 1px 7px; border-radius: 6px; font-size: .72rem; margin-left: 6px; }
.sb-acciones { display: flex; gap: 6px; }
.items-lista { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.items-lista li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f7f7f9; border-radius: 8px; padding: 8px 10px; font-size: .85rem; }
.items-vacio { color: #aaa; font-size: .82rem; margin: 10px 0; }
.form-item-inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-item-inline input { padding: 9px 10px; border-radius: 8px; border: 1px solid #ddd; font-size: .9rem; }
.form-item-inline input[name="titulo_es"] { flex: 1 1 140px; }
.form-item-inline input[name="contenido_es"] { flex: 2 1 180px; }
.inp-icono { width: 60px; text-align: center; }
.btn-agregar { background: #111317; color: #fff; border: none; }

/* Selector de skin (panel anfitrion) */
.skin-picker { border: 1px solid #e6e6ea; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.skin-picker legend { font-size: .85rem; color: #555; padding: 0 6px; }
.skin-opt { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9rem; color: #333; }
.skin-opt input { width: auto; flex: 0 0 auto; padding: 0; border: none; }
.skin-opt small { color: #888; }
.skin-chip { width: 46px; height: 46px; border-radius: 10px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.08); }
.skin-chip-natura { background: linear-gradient(160deg, #dfeee6 0%, #ffffff 55%); box-shadow: inset 0 -14px 0 -8px #2f6b4f; }
.skin-chip-calidez { background: linear-gradient(160deg, #7a5a3a 0%, #3a2c22 100%); box-shadow: inset 0 -14px 0 -8px rgba(22,24,30,.75); }

/* Link publico de la guia (panel anfitrion) */
.link-publico {
  background: var(--pale); border-radius: 14px; padding: 14px 16px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.link-publico-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.link-publico-txt small { color: #4a6b5a; }
.link-publico-txt span { font-family: monospace; font-size: .85rem; color: var(--accent); font-weight: 600; word-break: break-all; }
.link-publico-acciones { display: flex; gap: 8px; flex: 0 0 auto; }
.link-publico-acciones .btn-mini { background: #fff; text-decoration: none; color: #1c1c1e; display: inline-block; }
.link-publico-acciones .btn-vista-previa { background: var(--accent); color: #fff; font-weight: 600; }
/* Enviar la guía por WhatsApp a un huésped */
.enviar-wa { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(47,107,79,.15); }
.enviar-wa .wa-numero { flex: 1 1 220px; padding: 11px 13px; border-radius: 10px; border: 1px solid #cfe0d7; font-size: .95rem; font-family: inherit; }
.enviar-wa .btn-enviar-wa { flex: 0 0 auto; padding: 11px 18px; font-size: .9rem; min-height: 0; }
.enviar-wa small { flex: 1 1 100%; color: #4a6b5a; font-size: .78rem; }

/* Invitar a otro anfitrion (sin beneficio, solo comodidad para compartir) */
.invitar-anfitrion {
  background: #fff; border: 1.5px dashed #cfe0d7; border-radius: 14px; padding: 14px 16px; margin-top: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.invitar-anfitrion-txt { display: flex; flex-direction: column; gap: 2px; }
.invitar-anfitrion-txt small { color: #5a5f66; }
.invitar-anfitrion-acciones { display: flex; gap: 8px; flex: 0 0 auto; }
.invitar-anfitrion-acciones .btn-mini { background: var(--pale); text-decoration: none; color: #1c1c1e; display: inline-block; }
.invitar-anfitrion-acciones .btn-invitar-wa { background: var(--accent); color: #fff; font-weight: 600; }

/* Pantalla "Código QR" del anfitrión */
.qr-anfitrion-box { background: #fff; border-radius: 16px; padding: 24px; text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.qr-anfitrion-img { width: 200px; height: 200px; margin-bottom: 18px; }
.qr-anfitrion-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Selector de propiedad activa (multi-propiedad del anfitrion) */
.selector-propiedad {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.selector-propiedad-form label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #555; }
.selector-propiedad-form select { padding: 8px 10px; border-radius: 8px; border: 1px solid #ddd; font-size: .9rem; font-family: inherit; max-width: 320px; }
.selector-propiedad-nombre { font-size: .9rem; color: #555; }
.selector-propiedad .btn-mini { text-decoration: none; color: var(--accent); font-weight: 600; border-color: var(--pale); background: var(--pale); }

/* Nombre de la propiedad como subtitulo en paginas internas del anfitrion */
.titulo-propiedad { font-size: .95rem; font-weight: 500; color: #8a9099; }

/* Boton "Accesos por estadia" en el dashboard del anfitrion */
.btn-estadias {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1c1c1e;
  background: #fff; border: 1.5px solid var(--accent); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 20px;
}
.btn-estadias > svg.ico:first-child { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; }
.btn-estadias > span { flex: 1; }
.btn-estadias small { color: #7a8a80; }
.btn-estadias > svg.ico:last-child { width: 18px; height: 18px; color: var(--chv); flex: 0 0 auto; }

/* Pagina de estadias */
.fechas-row { display: flex; gap: 12px; }
.fechas-row label { flex: 1; }
.celda-link { max-width: 220px; }
.estadia-link { font-family: monospace; font-size: .72rem; color: #667; word-break: break-all; display: block; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-ok { background: #e6f5ec; color: #1b8a4b; }
.badge-prog { background: #eaf1fb; color: #1d5fd6; }
.badge-off { background: #f1f1f3; color: #888; }

/* Estado del plan Acceso Seguro (contador + barra) */
.acceso-plan { background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.acceso-plan-txt { font-size: .9rem; color: #444; }
.acceso-plan-bar { height: 7px; background: #eef0f2; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.acceso-plan-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Bloque de upsell (cupo agotado) */
.upsell { background: var(--pale); border: 1.5px solid var(--accent); border-radius: 16px; padding: 20px; }
.upsell h2 { font-size: 1.1rem; color: #1c1c1e; margin-bottom: 8px; }
.upsell p { color: #445; line-height: 1.55; margin-bottom: 14px; font-size: .92rem; }
.upsell-btn { display: inline-block; text-decoration: none; text-align: center; background: var(--accent); }
.upsell-contacto { font-weight: 600; color: var(--accent); margin-bottom: 0; }

/* Zona de peligro (eliminar propiedad) */
.danger-zone { background: #fff; border: 1px solid #f3c9c9; border-radius: 14px; padding: 16px 18px; margin-top: 8px; }
.danger-zone h2 { font-size: 1.05rem; color: #b00020; margin-bottom: 6px; }
.danger-zone p { font-size: .85rem; color: #777; line-height: 1.5; margin-bottom: 12px; }
.btn-danger { padding: 12px 16px; border-radius: 10px; border: none; background: #b00020; color: #fff; font-weight: 600; cursor: pointer; }

/* ---- Anunciantes + reporte ---- */
.acciones-fila { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.acciones-fila a.btn-mini { text-decoration: none; color: #111; display: inline-block; }

/* Selector de pack de propiedades (usuarios admin) */
.pack-form { display: flex; align-items: center; gap: 6px; }
.pack-form select { padding: 6px 8px; border-radius: 6px; border: 1px solid #ddd; font-size: .78rem; font-family: inherit; }
.pack-label { font-size: .78rem; color: #555; white-space: nowrap; }

/* Reset de contraseña inline (usuarios admin). Se abre EN EL FLUJO normal
   (no position:absolute) porque .tabla-panel tiene overflow:hidden y un
   desplegable flotante quedaba cortado, sobre todo en la ultima fila. */
.reset-pass summary { cursor: pointer; list-style: none; }
.reset-pass summary::-webkit-details-marker { display: none; }
.reset-pass-form {
  display: flex; gap: 6px; margin-top: 6px; flex-basis: 100%;
}
.reset-pass-form input { padding: 8px; border-radius: 6px; border: 1px solid #ddd; font-size: .85rem; width: 150px; }

/* Miniatura de banner en la tabla del admin */
.banner-thumb { width: 60px; height: 34px; object-fit: cover; border-radius: 6px; display: block; }

.form-rango { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.form-rango label { display: flex; flex-direction: column; font-size: .8rem; color: #555; gap: 4px; }
.form-rango input { padding: 8px 10px; border-radius: 8px; border: 1px solid #ddd; font-size: .9rem; }

.reporte { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.reporte-head h2 { font-size: 1.4rem; margin: 0; }
.reporte-sub { color: #666; font-size: .9rem; margin: 2px 0 0; }
.reporte-periodo { color: #999; font-size: .82rem; margin: 6px 0 0; }
.reporte-kpis { display: flex; gap: 12px; margin: 20px 0; }
.kpi { flex: 1; background: #f5f7fb; border-radius: 12px; padding: 16px; text-align: center; }
.kpi-num { display: block; font-size: 1.8rem; font-weight: 700; color: #111317; }
.kpi-lbl { display: block; font-size: .78rem; color: #777; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.reporte-thumb { width: 60px; height: 36px; object-fit: cover; border-radius: 6px; }
.reporte-pie { color: #aaa; font-size: .75rem; margin-top: 18px; text-align: right; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .reporte { box-shadow: none; padding: 0; }
}
