/* Katy & Fede — app layout & screen styles.
   Los tokens y componentes base viven en nocturne.css.
   Aquí solo va el layout de la app (contenedor 390px, header, nav,
   pantallas) y utilidades de espaciado. */

body { margin: 0; background: var(--color-bg); }
a { color: var(--color-accent-300); text-decoration: none; }
a:hover { color: var(--color-accent-200); }

.app {
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
  padding-bottom: 84px;
  position: relative;
}

/* Header */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 8px 20px;
}
.brand-kf { font-size: 14px; font-weight: 500; letter-spacing: 0.18em; }

/* Utilidades de espaciado / layout */
.pad-x { padding-left: 20px; padding-right: 20px; }
.pt-8 { padding-top: 8px; }
.pt-10 { padding-top: 10px; }
.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-14 { margin-bottom: 14px; }
.mb-18 { margin-bottom: 18px; }
.pad-12 { padding: 12px; }
.h-24 { height: 24px; }
.grow { flex: 1; }
.center { text-align: center; }
.noshrink { flex-shrink: 0; }
.inline-flex { display: inline-flex; align-items: center; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.accent-300 { color: var(--color-accent-300); }
.text-normal { color: var(--color-text); }

/* Tipografía de pantalla */
.h-page { font-size: 26px; font-weight: 500; margin: 6px 0 2px 0; }
.p-page { margin: 0 0 18px 0; font-size: 13px; color: var(--color-neutral-400); }
.h-sm { font-size: 17px; font-weight: 500; margin: 0; }
.link-sm { font-size: 12px; }
.inline-mt-12 { display: inline-block; margin-top: 12px; font-size: 13px; }
.kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-accent-300);
}
.line-300 { font-size: 13px; color: var(--color-neutral-300); }
.line-400 { font-size: 12px; color: var(--color-neutral-400); }
.lh { line-height: 1.6; }
.lh-7 { line-height: 1.7; }

.card-title.sm { font-size: 15px; line-height: 1.2; }
.card-title.xs { font-size: 14px; line-height: 1.2; }
.card-body.sm { font-size: 13px; color: var(--color-neutral-300); opacity: 1; }
.border-accent { border-left: 2px solid var(--color-accent); }

/* Inicio — hero */
.hero-wrap { border-radius: var(--radius-md); overflow: hidden; }
.hero-img { width: 100%; height: 210px; object-fit: cover; display: block; }
.hero-title { font-size: 34px; font-weight: 500; margin: 18px 0 4px 0; line-height: 1.1; }
.hero-sub { margin: 0; font-size: 15px; color: var(--color-accent-300); font-style: italic; }
.hero-place { margin: 4px 0 0 0; font-size: 13px; color: var(--color-neutral-400); }
.rule-accent {
  height: 1px; margin-top: 16px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 20%, var(--color-accent) 60%, transparent);
}

/* Franja de lunas */
.moons-strip {
  filter: invert(1) hue-rotate(180deg);
  height: 54px; overflow: hidden; border-radius: var(--radius-sm);
}
.moons-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Countdown */
.countdown { display: flex; gap: 24px; margin-top: 14px; }
.cd-num { font-size: 32px; font-weight: 500; }
.cd-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-neutral-400); }

/* Filas de botones */
.row-btns { display: flex; gap: 8px; }
section .row-btns { padding-top: 18px; }
.card .row-btns { padding-top: 0; }

/* Card de bienvenida */
.welcome-card { padding: 14px; }
.welcome-text { font-size: 13px; line-height: 1.55; color: var(--color-neutral-300); }
.welcome-sign { font-size: 13px; margin-top: 8px; font-style: italic; color: var(--color-accent-300); }

/* Sección updates destacada */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.update-featured { padding: 14px; border-left: 2px solid var(--color-accent); }

/* Fin de semana */
.weekend-list { display: flex; flex-direction: column; gap: 12px; }
.weekend-row { display: flex; gap: 12px; align-items: baseline; }
.wk-title { font-weight: 500; font-size: 14px; }
.wk-detail { font-size: 12px; color: var(--color-neutral-400); }

/* Franjas decorativas */
.stars-strip {
  margin-top: 28px; height: 64px;
  background-image: url('assets/stars.png'); background-size: 110px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent, black 40%, black 60%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 40%, black 60%, transparent);
}

/* Tags row */
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* Guía */
.guia-head { display: flex; gap: 14px; align-items: center; }
.guia-thumb {
  width: 84px; height: 84px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-neutral-200); flex-shrink: 0;
}
.guia-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Listas con viñeta punto (restaurantes / cafés) */
.list-dots { display: flex; flex-direction: column; gap: 10px; }
.dot-item { display: flex; gap: 10px; align-items: baseline; }
.dot-item .dot {
  width: 4px; height: 4px; border-radius: 999px; background: var(--color-accent);
  flex-shrink: 0; position: relative; top: -3px;
}
.dot-item .name { font-weight: 500; font-size: 14px; }
.dot-item .desc { font-size: 13px; color: var(--color-neutral-400); }

/* Tarjetas de hotel */
.hotel-card { padding: 14px; gap: 4px; }
.hotel-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hotel-name { font-weight: 500; font-size: 14px; }
.hotel-stars { font-size: 12px; color: var(--color-accent-300); flex-shrink: 0; letter-spacing: 0.05em; }
.hotel-price { font-size: 12px; color: var(--color-accent-300); }
.hotel-desc { font-size: 13px; color: var(--color-neutral-300); line-height: 1.5; margin-top: 2px; }
.hotel-note { font-size: 12px; color: var(--color-neutral-400); margin-top: 4px; }
.hotel-book { font-size: 13px; margin-top: 6px; }

/* Card-link (mood boards) */
.card-link { display: block; }
.card-link:hover { background: color-mix(in srgb, var(--color-text) 4%, var(--color-surface)); }

/* Pantallas */
.screen[hidden] { display: none !important; }  /* gana sobre el display:flex de abajo */
.screen-chat { display: flex; flex-direction: column; min-height: calc(100vh - 84px); }
.chat-wrap { display: flex; flex-direction: column; flex: 1; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chat-empty { display: flex; flex-direction: column; gap: 8px; }
.suggest { text-align: left; justify-content: flex-start; }
#chat-messages { display: flex; flex-direction: column; gap: 10px; }
.msg-row { display: flex; }
.msg-row.user { justify-content: flex-end; }
.msg-row.assistant { justify-content: flex-start; }
.bubble {
  padding: 10px 12px; max-width: 85%; font-size: 13.5px; line-height: 1.55;
  color: var(--color-neutral-200); background: var(--color-surface);
  border-radius: var(--radius-md); white-space: pre-wrap;
}
.bubble.assistant { border-left: 2px solid var(--color-accent); }
.chat-thinking { font-size: 13px; color: var(--color-accent-300); }
.chat-input-bar {
  display: flex; gap: 8px; position: sticky; bottom: 84px;
  padding: 12px 20px 0 20px; background: var(--color-bg);
}

/* Nav bar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 390px;
  background: var(--color-neutral-900); border-top: 1px solid var(--color-neutral-700);
  display: flex; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)) 4px;
  z-index: 10;
}
.tab {
  flex: 1; text-align: center; color: var(--color-neutral-400);
  font-size: 10px; letter-spacing: 0.04em; text-decoration: none;
}
.tab i { font-size: 22px; display: block; }
.tab:hover { color: var(--color-neutral-300); }
.tab.active { color: var(--color-accent-300); }
.tab.active:hover { color: var(--color-accent-300); }
