/* Piura Turística — estilos del sitio (sin framework)
   Inicio: marco tipo app móvil centrado. Blog: columna de lectura. */
:root {
  --red: #d91023;
  --red-dark: #b00d1c;
  --ink: #1a1a1a;
  --slate: #2d3748;
  --text: #374151;
  --muted: #6b7280;
  --line: #ececef;
  --bg: #f6f7f8;
  --card: #ffffff;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #e8f7ee;
  --amber: #b45309;
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Botones e íconos redondos ---------- */
.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.22); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.round-btn:hover { background: #fff; color: var(--ink); }
.round-btn:active { transform: scale(0.95); }
.round-btn .icon { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 12px 18px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-block { width: 100%; }

/* ---------- INICIO: marco móvil ---------- */
.home-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.home-header .bar { max-width: 448px; margin: 0 auto; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; }
.home-header .logo { height: 40px; width: auto; }
.home-header .actions { display: flex; gap: 8px; }

.home { position: relative; min-height: 100vh; background: var(--bg); overflow: hidden; }
.home-content { display: flow-root; max-width: 560px; margin: 0 auto; background: var(--card); }
.desk-nav, .desk-cta { display: none; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); transition: transform 0.15s, background 0.2s;
}
.hero-cta:hover { background: #f3f4f6; }
.hero-cta:active { transform: scale(0.97); }
.hero-cta .icon { width: 15px; height: 15px; }
.tour-track { scroll-padding-inline: 20px; }

.hero { position: relative; padding: 88px 24px 52px; text-align: center; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26, 26, 26, 0.35), rgba(26, 26, 26, 0.8) 55%, var(--ink)); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 12px; }
.pill-glow {
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(248, 113, 113, 0.35);
  background: linear-gradient(90deg, var(--red), #b91c1c);
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  animation: glow 2.5s infinite;
}
@keyframes glow { 0%, 100% { box-shadow: 0 0 10px rgba(217, 16, 35, 0.4); } 50% { box-shadow: 0 0 26px rgba(217, 16, 35, 0.8); } }
.hero h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; max-width: 22ch; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.hero .lead { font-size: 14px; color: #e5e7eb; max-width: 34ch; }
.socials { display: flex; gap: 18px; margin-top: 8px; }
.social {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
}
.social:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.22); }
.social.wa:hover { background: rgba(22, 163, 74, 0.85); }
.social .icon { width: 24px; height: 24px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; color: var(--bg); }
.wave svg { display: block; width: 100%; height: 30px; }

.chips { display: flex; gap: 10px; overflow-x: auto; padding: 12px 20px 8px; background: var(--bg); scroll-snap-type: x mandatory; }
.chip {
  flex-shrink: 0; scroll-snap-align: center; display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text);
}
.chip .icon { color: var(--red); width: 14px; height: 14px; }

.section { padding: 20px; background: var(--bg); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #111827; }
.hint { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 700; }

.advisors { display: flex; flex-direction: column; gap: 10px; }
.advisor {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s;
}
.advisor:hover { border-color: rgba(217, 16, 35, 0.3); }
.advisor img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.advisor .who { flex: 1; min-width: 0; }
.advisor h3 { font-size: 15px; font-weight: 700; color: #111827; }
.advisor p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.advisor .go { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.advisor .go .icon { width: 17px; height: 17px; }

.tours { position: relative; z-index: 2; margin-top: -8px; padding: 24px 0 8px; background: var(--card); border-radius: 30px 30px 0 0; border-top: 1px solid var(--line); }
.tours .section-head { padding: 0 20px; }
.tour-track { display: flex; gap: 16px; overflow-x: auto; padding: 0 20px 24px; scroll-snap-type: x mandatory; }
.tour-card { width: 250px; flex-shrink: 0; scroll-snap-align: center; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tour-media { position: relative; height: 148px; background: linear-gradient(135deg, #3b4a3f, #1f2a24); }
.tour-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.tag.sierra { color: var(--amber); }
.tag.soon { background: var(--ink); color: #fff; left: auto; right: 10px; }
.tour-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-body h3 { font-size: 17px; font-weight: 700; color: #111827; }
.tour-body .desc { font-size: 13px; color: var(--muted); line-height: 1.45; min-height: 2.9em; }
.tour-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 500; }
.tour-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tour-meta .icon { color: var(--red); width: 13px; height: 13px; }
.price { font-family: var(--font-display); font-weight: 800; color: var(--green-dark); font-size: 16px; }
.price small { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--muted); margin-right: 3px; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.btn-soft { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 700; color: #1f2937; text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn-soft:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-soft .icon { width: 14px; height: 14px; }
.guide-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--red); text-decoration: none; }
.guide-link:hover { text-decoration: underline; }
.guide-link .icon { width: 13px; height: 13px; }

.guides { padding: 4px 20px 24px; background: var(--card); }
.guide-card { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s; }
.guide-card:hover { border-color: rgba(217, 16, 35, 0.35); }
.guide-card img, .guide-card .ph { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: #e5e7eb; }
.guide-card .txt { min-width: 0; }
.guide-card .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.guide-card h3 { font-size: 15px; font-weight: 700; color: #111827; margin-top: 3px; }
.guide-card p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.all-guides { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }

.promo { margin: 0 20px 32px; position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #22c55e, var(--green)); box-shadow: 0 10px 25px rgba(22, 163, 74, 0.25); }
.promo .bubble { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); flex-shrink: 0; }
.promo .bubble .icon { width: 24px; height: 24px; }
.promo h3 { font-size: 16px; font-weight: 700; }
.promo p { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.92; margin: 2px 0 10px; }
.promo a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border-radius: 999px; background: #fff; color: var(--green-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.promo .deco { position: absolute; right: -24px; top: -24px; width: 128px; height: 128px; opacity: 0.1; }

.home-footer { max-width: 560px; margin: 0 auto; background: var(--card); padding: 0 20px 36px; text-align: center; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; }
.home-footer a { color: inherit; }
.home-footer nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; font-weight: 700; color: var(--muted); }

/* ---------- INICIO: escritorio ---------- */
@media (min-width: 900px) {
  .home-header { padding-top: 18px; }
  .home-header { padding-left: 24px; padding-right: 24px; }
  .home-header .bar { max-width: 1072px; padding: 10px 0; gap: 24px; }
  .home-header .logo { height: 44px; }
  .desk-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .desk-nav a, .desk-nav button {
    padding: 8px 14px; border: 0; border-radius: 999px; background: none;
    color: rgba(255, 255, 255, 0.88); font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s;
  }
  .desk-nav a:hover, .desk-nav button:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
  .desk-cta {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px;
    background: var(--green); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.2s;
  }
  .desk-cta:hover { background: var(--green-dark); }
  .desk-cta .icon { width: 16px; height: 16px; }

  .hero { padding: 150px 24px 120px; }
  .hero-inner { gap: 18px; margin-top: 0; }
  .hero h1 { font-size: 52px; max-width: 18ch; letter-spacing: -0.02em; }
  .hero .lead { font-size: 18px; max-width: 46ch; }
  .hero-cta { padding: 13px 24px; font-size: 15px; }
  .social { width: 52px; height: 52px; }
  .wave svg { height: 60px; }

  .home-content {
    max-width: 1120px; padding: 8px 24px 0; background: transparent;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start;
    grid-template-areas: "chips chips" "tours tours" "asesores guias" "promo promo";
  }
  .chips { grid-area: chips; justify-content: center; flex-wrap: wrap; overflow: visible; padding: 0 0 12px; gap: 12px; margin-top: -8px; position: relative; z-index: 4; }
  .chip { padding: 9px 14px; font-size: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04); }

  .tours { grid-area: tours; margin-top: 0; padding: 32px 0 16px; background: transparent; border: 0; border-radius: 0; }
  .tours .section-head, .section .section-head, .guides .section-head { padding: 0; margin-bottom: 18px; }
  .tours .hint { display: none; }
  .tour-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; padding: 0 0 16px; }
  .tour-card { width: auto; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s; }
  .tour-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08); }
  .tour-media { height: 200px; }
  .tour-body { padding: 20px; }
  .tour-body h3 { font-size: 19px; }
  .tour-body .desc { font-size: 14px; }

  .section-head h2 { font-size: 24px; }
  .section { grid-area: asesores; padding: 24px 0; background: transparent; }
  .guides { grid-area: guias; padding: 24px 0; background: transparent; }
  .advisor, .guide-card { background: var(--card); padding: 14px; }
  .advisor img { width: 52px; height: 52px; }
  .advisor h3, .guide-card h3 { font-size: 16px; }
  .advisor p { font-size: 13px; }
  .guide-card img { width: 96px; height: 96px; }

  .promo { grid-area: promo; margin: 24px 0 48px; padding: 28px 32px; }
  .promo h3 { font-size: 20px; }
  .promo .deco { width: 180px; height: 180px; right: 24px; top: -30px; }

  .home-footer { max-width: 1072px; width: calc(100% - 48px); margin: 0 auto; background: transparent; padding: 24px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .home-footer nav { margin: 0; order: 2; }
  .home-footer p { margin: 0; }

}

/* ---------- Menú desplegable ---------- */
.menu {
  position: fixed; top: 64px; right: 16px; z-index: 60; width: min(288px, calc(100vw - 32px));
  padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); transform-origin: top right; transition: opacity 0.2s, transform 0.2s;
}
@media (min-width: 480px) { .menu { right: max(16px, calc(50% - 264px)); } }
@media (min-width: 900px) { .menu { top: 76px; right: max(24px, calc(50% - 536px)); } }
.menu[hidden] { display: none !important; }
.menu.closed { opacity: 0; transform: scale(0.96); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; }
.menu-item:hover { background: var(--bg); color: var(--ink); }
.menu-item .icon { width: 16px; height: 16px; color: var(--slate); }
.menu-item.danger { color: #e11d48; font-weight: 700; }
.menu-item.danger .icon { color: #f43f5e; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- Modales ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; }
.overlay[hidden] { display: none !important; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s ease-out; }
.overlay.open .backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 448px; background: var(--card); border-radius: 30px 30px 0 0; transform: translateY(100%); transition: transform 0.3s ease-out; padding-bottom: env(safe-area-inset-bottom, 0px); }
.overlay.open .sheet { transform: translateY(0); }
.sheet.tall { height: 90vh; height: 90dvh; display: flex; flex-direction: column; overflow: hidden; }
.handle { display: flex; justify-content: center; align-items: center; height: 28px; flex-shrink: 0; border: 0; background: none; width: 100%; }
.handle span { width: 48px; height: 4px; border-radius: 999px; background: #e5e7eb; }
.sheet-scroll { flex: 1; overflow-y: auto; padding-bottom: 100px; }
.tm-hero { position: relative; height: 210px; background: linear-gradient(135deg, #3b4a3f, #1f2a24); }
.tm-hero img { width: 100%; height: 100%; object-fit: cover; }
.tm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15) 60%, transparent); }
.tm-hero .cap { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; color: #fff; }
.tm-hero .cat { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tm-hero h2 { font-size: 24px; font-weight: 800; margin-top: 6px; }
.close-btn { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, 0.5); color: #fff; }
.close-btn:hover { background: #000; }
.close-btn .icon { width: 18px; height: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 12px; border-bottom: 1px solid var(--line); background: #fafafa; }
.facts div + div { border-left: 1px solid var(--line); }
.facts .k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts .v { white-space: pre-line; font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-top: 4px; color: var(--ink); }
.facts .v.money { color: var(--green-dark); }
.tabs { position: sticky; top: 0; z-index: 2; display: flex; background: var(--card); border-bottom: 1px solid var(--line); padding: 0 12px; }
.tab { flex: 1; padding: 13px 4px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.tab[aria-selected="true"] { border-bottom-color: var(--red); font-weight: 700; color: var(--ink); }
.panel { padding: 20px; }
.panel h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 14px; color: #111827; }
.panel h3 .icon { width: 17px; height: 17px; color: var(--red); }
.timeline { list-style: none; margin: 0 0 0 10px; padding: 0 0 0 18px; border-left: 1px solid rgba(217, 16, 35, 0.3); display: flex; flex-direction: column; gap: 20px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 3px; width: 14px; height: 14px; border-radius: 999px; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(217, 16, 35, 0.3); }
.timeline time { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.timeline p { font-size: 14px; font-weight: 500; color: var(--text); margin-top: 2px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.45; }
.checklist .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--green); }
.checklist.carry .icon { color: var(--amber); }
.panel .note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.panel .note strong { display: block; color: var(--text); margin-bottom: 4px; }
.sheet-cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); }
.sheet-cta .guide-link { justify-content: center; }

.dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%); width: calc(100% - 32px); max-width: 384px; max-height: 82vh; overflow-y: auto; padding: 24px; border-radius: 24px; background: var(--card); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.overlay.open .dialog { opacity: 1; transform: translate(-50%, -50%); }
.dialog h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.dialog h2 .icon { color: var(--green); }
.dialog p, .dialog li { font-size: 14px; color: var(--text); line-height: 1.6; }
.dialog p + p { margin-top: 10px; }
.dialog ul { padding-left: 18px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.dialog .faq { display: flex; flex-direction: column; gap: 14px; }
.dialog .faq h3 { font-family: var(--font-body); font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.dialog .btn { margin-top: 20px; }

.share-sheet { padding: 22px 22px calc(28px + env(safe-area-inset-bottom, 0px)); }
.share-sheet .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.share-sheet h2 { font-size: 19px; font-weight: 800; }
.share-sheet .x { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 0; background: #f3f4f6; color: var(--muted); }
.copy-row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); margin-bottom: 20px; }
.copy-row input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 6px; font-size: 13px; color: var(--text); outline: none; }
.copy-row button { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.copy-row button.ok { background: var(--green); }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 0; border-radius: 14px; background: none; font-size: 12px; font-weight: 500; color: var(--text); text-decoration: none; }
.share-grid a:hover, .share-grid button:hover { background: var(--bg); }
.share-grid .ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; }
.share-grid .ic .icon { width: 22px; height: 22px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); }
.toast[hidden] { display: none !important; }

/* ---------- BLOG ---------- */
.site-bar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-bar .in { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.site-bar .brand img { height: 34px; width: auto; }
.site-bar nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.site-bar nav a { text-decoration: none; color: var(--text); }
.site-bar nav a:hover, .site-bar nav a[aria-current] { color: var(--red); }
.site-bar nav a.btn, .site-bar nav a.btn:hover { color: #fff; }
.prose a.btn { color: #fff; text-decoration: none; }
.site-bar .btn { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
@media (max-width: 520px) { .site-bar nav .hide-sm { display: none; } }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 18px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #c4c7cc; }

.blog-head { padding-block: 28px 8px; }
.blog-head .kicker, .post-head .kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.blog-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.blog-head p { font-size: 17px; color: var(--muted); max-width: 60ch; margin-top: 10px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-block: 20px 12px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07); }
.post-card .media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #3b4a3f, #1f2a24); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.post-card .meta { font-size: 12px; color: var(--muted); }
.post-card h2 { font-size: 20px; font-weight: 700; color: #111827; }
.post-card p { font-size: 14px; color: var(--text); }
.upcoming { padding-block: 8px 48px; }
.upcoming h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.upcoming ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.upcoming li { padding: 8px 12px; border-radius: 999px; border: 1px dashed #d1d5db; font-size: 14px; color: var(--muted); }

/* Artículo */
.post-head { padding-block: 24px 20px; max-width: 760px; }
.post-head h1 { font-size: clamp(30px, 5.4vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.post-head .standfirst { font-size: 18px; color: var(--text); margin-top: 14px; max-width: 62ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.post-cover { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7; max-height: 460px; width: 100%; background: linear-gradient(135deg, #3b4a3f, #1f2a24); max-width: 100%; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover-cap { font-size: 13px; color: var(--muted); margin-top: 8px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 32px 56px; }
@media (min-width: 960px) { .post-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.prose { max-width: 68ch; min-width: 0; font-size: 17px; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 27px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-top: 2em; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--red); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.toc { padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.toc strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--red); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table th { width: 38%; font-weight: 600; color: var(--ink); background: #fafafa; }
.callout { padding: 16px 18px; border-radius: 16px; background: #fff7ed; border: 1px solid #fde3c4; font-size: 15px; color: #7c2d12; }
.callout strong { color: #7c2d12; }
.itinerary { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 0; }
.itinerary li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.itinerary time { font-weight: 700; color: var(--red); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--red); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 8px; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { color: var(--muted); }

.aside { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .aside-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; } }
.book-card { padding: 22px; border-radius: 22px; background: var(--ink); color: #fff; }
.book-card .kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fca5a5; }
.book-card h2 { font-size: 22px; font-weight: 800; margin-top: 6px; }
.book-card .amount { font-family: var(--font-display); font-size: 34px; font-weight: 800; margin-top: 12px; }
.book-card .amount small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: #d1d5db; }
.book-card ul { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: #e5e7eb; }
.book-card li { display: flex; gap: 8px; }
.book-card li .icon { color: #86efac; margin-top: 3px; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1; }
@media (min-width: 960px) { .sticky-cta { display: none; } }
.has-sticky { padding-bottom: 80px; }
@media (min-width: 960px) { .has-sticky { padding-bottom: 0; } }

.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.site-footer .in { max-width: 1040px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--red); }

/* Escritorio: modales como ventanas centradas (va al final para ganar en la cascada) */
@media (min-width: 900px) {
  /* Modales como ventanas centradas */
  .overlay .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-width: none; border-radius: 28px; transform: translate(-50%, -46%); opacity: 0; transition: transform 0.3s ease-out, opacity 0.25s; padding-bottom: 0; }
  .overlay.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .overlay .sheet.tall { height: min(760px, 88vh); }
  .overlay .handle { display: none; }
  .overlay .tm-hero { height: 240px; }
  .overlay .sheet-cta { padding-bottom: 16px; }
}
