/* ─────────────────────────────────────────────────────────────
 * Rumbolia · Blog (agencias de viaje)
 * Hereda variables de styles.css (--brand, --ink, --muted…)
 * ───────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

/* ── Reset / base ── */
.blog-root {
  --grad: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0891b2 100%);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --brand: #0ea5e9;
  --brand-dark: #0369a1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
.blog-root * { box-sizing: border-box; }
.blog-root a { color: var(--brand); text-decoration: none; }
.blog-root a:hover { text-decoration: underline; }

/* ── Navbar (idéntica a landing) ── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.blog-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.blog-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0ea5e9;
  text-decoration: none;
}
.blog-brand span { color: var(--ink); }
.blog-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.blog-nav-links a { color: var(--muted); transition: color 0.15s; }
.blog-nav-links a:hover, .blog-nav-links a.active { color: var(--ink); }
.blog-nav-cta {
  background: #0ea5e9;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none !important;
}
.blog-nav-cta:hover { background: #0284c7; transform: translateY(-1px); }
@media (max-width: 720px) { .blog-nav-links { display: none; } }

/* ── Hero de la sección blog ── */
.blog-hero {
  background: var(--grad);
  padding: 72px 24px 64px;
  text-align: center;
  color: #fff;
}
.blog-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  line-height: 1.1;
}
.blog-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Grid de artículos (listing) ── */
.blog-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.blog-listing-header {
  margin-bottom: 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-listing-header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── Tarjeta de artículo ── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: var(--ink);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.08);
  border-color: var(--brand);
  text-decoration: none !important;
}
.blog-card-cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  flex-shrink: 0;
}
.blog-card-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.blog-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.blog-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}
.blog-card-meta span::before { content: ""; }
.blog-card-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-top: 4px;
}
.blog-card-readmore::after { content: " →"; }

/* ── Layout artículo individual ── */
.blog-article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1024px) {
  .blog-article-wrap { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

/* ── Artículo principal ── */
.blog-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 64px;
  min-width: 0;
}
@media (max-width: 720px) { .blog-article { padding: 32px 24px; border-radius: 16px; } }

.blog-article-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.blog-article h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--ink);
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.blog-article-meta time { font-weight: 500; }

/* ── Tipografía del artículo ── */
.blog-article-body { font-size: 17px; line-height: 1.75; color: #1e293b; }
.blog-article-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 56px 0 20px;
  color: var(--ink);
  line-height: 1.2;
  padding-top: 8px;
  border-top: 2px solid #e0f2fe;
}
.blog-article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.blog-article-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.blog-article-body p { margin: 0 0 20px; }
.blog-article-body ul, .blog-article-body ol {
  margin: 0 0 20px;
  padding-left: 28px;
}
.blog-article-body li { margin-bottom: 8px; }
.blog-article-body strong { font-weight: 600; color: var(--ink); }
.blog-article-body a { color: var(--brand); font-weight: 500; }
.blog-article-body a:hover { text-decoration: underline; }

/* ── Destacado / intro párrafo ── */
.blog-article-body .lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--brand);
}

/* ── Callout / tip box ── */
.blog-callout {
  background: #e0f2fe;
  border-left: 4px solid #0ea5e9;
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
  color: #0c4a6e;
  line-height: 1.6;
}
.blog-callout strong { color: #0369a1; }

/* ── Tabla de comparación ── */
.blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.blog-article-body th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--line);
}
.blog-article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.blog-article-body tr:last-child td { border-bottom: none; }
.blog-article-body tr:hover td { background: #f8fafc; }

/* ── Checklist ── */
.blog-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.blog-checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  margin: 0;
}
.blog-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  top: 10px;
}

/* ── CTA dentro del artículo ── */
.blog-cta-box {
  background: var(--grad);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  margin: 48px 0;
  color: #fff;
}
.blog-cta-box h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.blog-cta-box p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 24px;
  line-height: 1.55;
}
.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0369a1;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.blog-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.2); }

/* ── Sección artículos relacionados ── */
.blog-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.blog-related h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
  color: var(--ink);
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.blog-related-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  text-decoration: none !important;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-related-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.blog-related-card .emoji { font-size: 28px; }
.blog-related-card h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}
.blog-related-card span {
  font-size: 12px;
  color: var(--muted);
}

/* ── Sidebar ── */
.blog-sidebar { position: sticky; top: 96px; }
.blog-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.blog-sidebar-card h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}
.blog-sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar-toc li { border-bottom: 1px solid var(--line); }
.blog-sidebar-toc li:last-child { border-bottom: none; }
.blog-sidebar-toc a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
  line-height: 1.4;
}
.blog-sidebar-toc a:hover { color: var(--brand); }
.blog-sidebar-toc a.active { color: var(--brand); font-weight: 600; }

.blog-sidebar-cta {
  background: var(--grad);
  border-radius: 18px;
  padding: 28px 24px;
  color: #fff;
  text-align: center;
}
.blog-sidebar-cta h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.blog-sidebar-cta p { font-size: 13px; opacity: 0.9; margin: 0 0 18px; line-height: 1.5; }
.blog-sidebar-cta a {
  display: block;
  background: #fff;
  color: #0369a1 !important;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  transition: transform 0.15s;
}
.blog-sidebar-cta a:hover { transform: translateY(-1px); }

/* ── Breadcrumb ── */
.blog-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-breadcrumb a { color: var(--muted); }
.blog-breadcrumb a:hover { color: var(--brand); }
.blog-breadcrumb span { opacity: 0.5; }

/* ── Footer (idéntico a landing) ── */
.blog-footer {
  background: var(--ink);
  color: #e2e8f0;
  padding: 64px 24px 0;
}
.blog-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
@media (max-width: 880px) {
  .blog-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .blog-footer-inner { grid-template-columns: 1fr; }
}
.blog-footer-brand h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.blog-footer-brand p { font-size: 14px; line-height: 1.6; opacity: 0.7; margin: 0 0 8px; }
.blog-footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin: 0 0 16px;
}
.blog-footer-col a {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.blog-footer-col a:hover { color: #fff; text-decoration: none; }
.blog-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #475569;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Animación entrada ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.blog-card { animation: fadeUp 0.4s ease both; }
.blog-card:nth-child(2) { animation-delay: 0.07s; }
.blog-card:nth-child(3) { animation-delay: 0.14s; }
.blog-card:nth-child(4) { animation-delay: 0.21s; }
.blog-card:nth-child(5) { animation-delay: 0.28s; }
