/* ============================================================
   Visit Mexico City — Magazine theme
   Paleta CDMX · alta legibilidad
   ============================================================ */

:root {
  /* Superficies */
  --paper:      #FBF8F3;   /* cal / papel */
  --surface:    #FFFFFF;
  --surface-2:  #F4EEE3;
  --line:       #E9E2D6;

  /* Tinta */
  --ink:        #1C1B1A;
  --ink-soft:   #4A4744;
  --muted:      #8A8175;

  /* Acentos CDMX */
  --rosa:       #E10A7D;   /* rosa mexicano */
  --rosa-deep:  #B00A62;
  --jade:       #0F766E;   /* turquesa talavera */
  --jade-soft:  #E1F0EE;
  --amber:      #E8A23C;   /* dorado cantera */
  --terra:      #B4471F;   /* tezontle / volcánico */

  /* Sistema */
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 10px 30px rgba(28, 27, 26, .08);
  --shadow-lg:  0 24px 60px rgba(28, 27, 26, .16);
  --maxw:       1180px;
  --gap:        clamp(16px, 2.4vw, 28px);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rosa);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--rosa); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rosa); color: #fff; }
.btn--primary:hover { background: var(--rosa-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }

.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 40px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--ink-soft); max-width: 46ch; margin-top: 10px; }
.section-link { font-weight: 600; color: var(--rosa); white-space: nowrap; }
.section-link:hover { color: var(--rosa-deep); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rosa); box-shadow: 0 0 0 4px rgba(225,10,125,.16); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-menu { display: flex; align-items: center; gap: 22px; margin-left: auto; list-style: none; padding: 0; }
.nav-menu a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.nav-menu a:hover { color: var(--rosa); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.lang { font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(120px, 12vw, 160px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20,12,18,.15) 0%, rgba(20,12,18,.55) 65%, rgba(20,12,18,.78) 100%),
    radial-gradient(120% 100% at 20% 0%, #7a1250 0%, transparent 55%),
    linear-gradient(135deg, #24101c 0%, #3a1030 40%, #0d3b39 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: var(--amber); }
.hero .eyebrow::before { background: var(--amber); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 600; margin: 16px 0 18px; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 54ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-tags a {
  font-size: .9rem; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px);
}
.hero-tags a:hover { background: rgba(255,255,255,.22); }

/* ---------- Booking bar (horizontal, centrado, sobre el hero) ---------- */
.booking-wrap { position: relative; z-index: 5; margin-top: -72px; }
.booking {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 14px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; align-items: stretch;
}
.booking-field { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; border-radius: var(--radius); position: relative; }
.booking-field + .booking-field::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line);
}
.booking-field label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.booking-field select,
.booking-field input {
  border: 0; background: transparent; font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  color: var(--ink); padding: 0; width: 100%; outline: none; cursor: pointer;
}
.booking-field input::placeholder { color: var(--ink); }
.booking-submit { display: flex; }
.booking-submit .btn { width: 100%; height: 100%; padding-left: 28px; padding-right: 28px; }
.booking--placeholder {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 76px; padding: 24px; text-align: center;
  color: var(--muted); font-weight: 600; font-size: .95rem;
  border-style: dashed; border-width: 2px;
}
.booking--placeholder svg { color: var(--muted); flex: none; }
.booking-note { position: relative; z-index: 5; text-align: center; color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* ============================================================
   Cards genéricas
   ============================================================ */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--jade-soft); color: var(--jade);
}
.tag--rosa { background: rgba(225,10,125,.1); color: var(--rosa); }
.tag--amber { background: rgba(232,162,60,.16); color: #9a6b12; }
.tag--terra { background: rgba(180,71,31,.12); color: var(--terra); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16/11; position: relative; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.25rem; }
.card-body p { color: var(--ink-soft); font-size: .95rem; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* Placeholders de imagen con gradientes de la paleta.
   Nota: usar solo background-image en .ph-N (no el shorthand `background:`),
   porque el shorthand resetea el background-size/position de .ph. */
.ph-1 { background-image: linear-gradient(135deg, #E10A7D 0%, #7a1250 100%); }
.ph-2 { background-image: linear-gradient(135deg, #0F766E 0%, #0b3f3c 100%); }
.ph-3 { background-image: linear-gradient(135deg, #E8A23C 0%, #B4471F 100%); }
.ph-4 { background-image: linear-gradient(135deg, #3a1030 0%, #0d3b39 100%); }
.ph-5 { background-image: linear-gradient(135deg, #B4471F 0%, #6d2410 100%); }
.ph-6 { background-image: linear-gradient(135deg, #0F766E 0%, #E8A23C 100%); }
.ph { background-size: cover; background-position: center; }
.card-media .tag { position: absolute; top: 14px; left: 14px; box-shadow: var(--shadow); }

/* ============================================================
   "En este momento" — destacados
   ============================================================ */
.now-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--gap); }
.now-grid .card:first-child .card-media { aspect-ratio: 16/12; }
.now-grid .card:first-child .card-body h3 { font-size: 1.7rem; }

/* ============================================================
   "Qué hacer" — grid de artículos
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* ============================================================
   Reserva una experiencia — categorías
   ============================================================ */
.reserve { background: var(--surface-2); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px; color: #fff;
  box-shadow: var(--shadow); transition: transform .18s ease;
}
.cat:hover { transform: translateY(-4px); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,12,18,.72) 100%); }
.cat span { position: relative; z-index: 2; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.cat small { position: relative; z-index: 2; display: block; font-family: var(--font-body); font-weight: 500; font-size: .8rem; opacity: .85; }

/* ============================================================
   Agenda — lista de eventos
   ============================================================ */
.agenda-list { display: grid; gap: 4px; }
.event {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center;
  padding: 20px 8px; border-top: 1px solid var(--line);
}
.event:last-child { border-bottom: 1px solid var(--line); }
.event:hover { background: var(--surface); }
.event-date { text-align: center; }
.event-date .d { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--rosa); }
.event-date .m { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-info h3 { font-size: 1.2rem; }
.event-info p { color: var(--ink-soft); font-size: .92rem; margin-top: 3px; }
.event-cta { color: var(--jade); font-weight: 600; font-size: .9rem; }

/* ============================================================
   Barrios
   ============================================================ */
.barrios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.barrio { position: relative; aspect-ratio: 3/2; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: flex-end; padding: 22px; color: #fff; }
.barrio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,12,18,.75) 100%); }
.barrio-txt { position: relative; z-index: 2; }
.barrio-txt h3 { font-size: 1.5rem; }
.barrio-txt p { font-size: .9rem; opacity: .9; }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); text-align: center; }
.newsletter h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.newsletter p { color: rgba(255,255,255,.75); max-width: 48ch; margin: 12px auto 26px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff;
  padding: 14px 18px; border-radius: 999px; font-family: var(--font-body); font-size: .95rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--ink-soft); font-size: .95rem; }
.footer-grid a:hover { color: var(--rosa); }
.footer-brand p { color: var(--ink-soft); font-size: .95rem; margin-top: 12px; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .now-grid { grid-template-columns: 1fr 1fr; }
  .now-grid .card:first-child { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .barrios-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking { grid-template-columns: 1fr 1fr; }
  .booking-field + .booking-field::before { display: none; }
  .booking-submit { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-toggle { display: grid; }
  .now-grid, .article-grid, .cat-grid, .barrios-grid, .footer-grid { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .event { grid-template-columns: 64px 1fr; }
  .event-cta { grid-column: 2; justify-self: start; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}
