/* ============================================================
   Palacio Tondón — Demo Hotel Styles
   Branding ficticio: tonos cálidos (terracota/burdeos) + tipografía serif.
   Inspirado en el mockup packages/client/mockups/hotel-iframe-demo.html
   ============================================================ */

:root {
  --hotel-primary: #7a2e1f;        /* burdeos cálido */
  --hotel-primary-hover: #5e2417;
  --hotel-accent: #c9a25b;         /* dorado suave */
  --hotel-bg: #faf6f0;             /* crema */
  --hotel-surface: #f0e7d6;
  --hotel-ink: #1f1611;
  --hotel-ink-muted: #6b5b4d;
  --hotel-border: #d9cdb8;
  --hotel-shadow: 0 1px 3px rgba(31, 22, 17, 0.08), 0 4px 12px rgba(31, 22, 17, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hotel-ink);
  background: var(--hotel-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }

a { color: var(--hotel-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── Top Bar (header) ───────────────────────────────────────── */
.topbar {
  background: var(--hotel-primary);
  color: white;
  padding: 14px 0;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, 0.9); }
.topbar a:hover { color: white; }
.topbar .session-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar .session-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6dd16d;
  display: inline-block;
}

/* ─── Header / Nav ───────────────────────────────────────────── */
.header {
  background: var(--hotel-bg);
  border-bottom: 1px solid var(--hotel-border);
  padding: 18px 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; }
.brand-tag { font-size: 12px; color: var(--hotel-ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--hotel-ink); font-weight: 500; font-size: 14.5px; }
.nav a:hover { color: var(--hotel-primary); text-decoration: none; }
.nav a.active { color: var(--hotel-primary); }
@media (max-width: 720px) { .nav { display: none; } }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: flex-end;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
}
.hero .container { position: relative; padding: 80px 24px; }
.hero h1 { max-width: 720px; margin-bottom: 16px; }
.hero p.lead { max-width: 640px; font-size: 17px; opacity: 0.92; }
.hero .hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  transition: background 150ms ease, transform 100ms ease;
  text-decoration: none;
}
.btn-primary { background: var(--hotel-primary); color: white; }
.btn-primary:hover { background: var(--hotel-primary-hover); text-decoration: none; }
.btn-secondary { background: white; color: var(--hotel-ink); border: 1px solid var(--hotel-border); }
.btn-secondary:hover { background: var(--hotel-surface); text-decoration: none; }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-title { margin-bottom: 12px; }
.section-sub { color: var(--hotel-ink-muted); font-size: 16px; max-width: 640px; margin-bottom: 40px; }

/* ─── Cards / Grid ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: white;
  border: 1px solid var(--hotel-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--hotel-shadow);
}
.card-image { aspect-ratio: 16/10; background: var(--hotel-surface); background-size: cover; background-position: center; }
.card-body { padding: 22px; }
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card-desc { font-size: 13.5px; color: var(--hotel-ink-muted); line-height: 1.5; }
.card-price { color: var(--hotel-primary); font-weight: 600; margin-top: 10px; font-size: 15px; }

/* ─── Login Banner (demo de "login del hotel") ──────────────── */
.login-banner {
  background: var(--hotel-accent);
  color: var(--hotel-ink);
  padding: 14px 0;
  font-size: 14px;
}
.login-banner .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.login-banner .actions { display: flex; gap: 10px; }

/* ─── Widget header (encima del iframe) ─────────────────────── */
.widget-header {
  background: var(--hotel-surface);
  border: 1px solid var(--hotel-border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--hotel-ink-muted);
}
.widget-header strong { color: var(--hotel-ink); }
.widget-dot {
  background: white;
  border: 1px solid var(--hotel-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hotel-ink);
}

/* ─── Iframe wrapper ────────────────────────────────────────── */
.iframe-wrap {
  border: 1px solid var(--hotel-border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: white;
  overflow: hidden;
  box-shadow: var(--hotel-shadow);
}
.iframe-wrap iframe { display: block; width: 100%; border: 0; }

/* Heights específicos por página */
.iframe-wrap--catalog    { height: 880px; }
.iframe-wrap--detail     { height: 1100px; }
.iframe-wrap--myrequests { height: 720px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--hotel-ink); color: rgba(255,255,255,0.85); padding: 56px 0 24px; margin-top: 80px; }
.footer h4 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: rgba(255,255,255,0.5); }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─── Demo badge (para distinguir de web real) ─────────────── */
.demo-badge {
  display: inline-block;
  background: var(--hotel-accent);
  color: var(--hotel-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
}

/* ─── Auth modal (login simulado del hotel) ─────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(31, 22, 17, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-card h3 { margin-bottom: 8px; }
.modal-card p { color: var(--hotel-ink-muted); font-size: 14px; margin-bottom: 20px; }
.modal-card label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.modal-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--hotel-border);
  border-radius: 10px;
  font-size: 14.5px;
  margin-bottom: 14px;
  font-family: inherit;
}
.modal-card .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.modal-card .btn { flex: 0 0 auto; }
.modal-card .form-error { color: #b91c1c; font-size: 13px; margin-bottom: 12px; }

/* ─── Logged-in user bar (en experiencias / my-requests) ────── */
.user-bar {
  background: white;
  border: 1px solid var(--hotel-border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: var(--hotel-shadow);
}
.user-bar-info { display: flex; align-items: center; gap: 12px; }
.user-bar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--hotel-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.user-bar-text { font-size: 14px; }
.user-bar-text strong { display: block; }
.user-bar-text small { color: var(--hotel-ink-muted); font-size: 12.5px; }
.user-bar-actions { display: flex; gap: 8px; }
.user-bar-actions .btn { padding: 8px 14px; font-size: 13px; }
