/* ============================================================
   Blog Theme v2 — verde marca GuiaPana
   Paleta: fondo #0F1E1A (brand ink), superficie #15281F,
   acento dorado #F5A623, verde #2C8A3E. Tipografía: Poppins.
   Scoped a .blog-theme en <body>.
   ============================================================ */

.blog-theme {
  --bg: #0F1E1A;
  --bg-elevated: #1A3226;
  --bg-card: #15281F;
  --bg-deep: #121D19;
  --text: #E9EDEA;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.45);
  --accent: #F5A623;
  --accent-hover: #FBC65E;
  --green: #2C8A3E;
  --green-icon: #32A067;
  --success: #4CC38A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);
  --glow: 0 0 24px rgba(245, 166, 35, 0.12);

  --font-display: "Poppins", Helvetica, Arial, sans-serif;
  --font-body: "Poppins", Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

.blog-theme,
.blog-theme main {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.blog-theme ::selection { background: rgba(245, 166, 35, 0.3); }

.blog-theme h1,
.blog-theme h2,
.blog-theme h3,
.blog-theme h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.blog-theme a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease-out;
}
.blog-theme a:hover { color: var(--accent); }
.blog-theme a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) { .blog-container { padding: 0 16px; } }

.blog-section + .blog-section { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .blog-theme *, .blog-theme *::before, .blog-theme *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   HEADER DEL SITIO (override scoped): translúcido oscuro siempre,
   logo en blanco. El header base es fixed + transparente y se
   vuelve blanco en .sticky — aquí lo mantenemos oscuro.
   ============================================================ */
.blog-theme header.header,
.blog-theme header.header.sticky {
  background: rgba(15, 30, 26, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.blog-theme header.header #logo img.logo_normal {
  display: inline-block !important;
  filter: brightness(0) invert(1);
}
.blog-theme header.header #logo img.logo_sticky { display: none !important; }
.blog-theme .sticky .gp-header-login {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.blog-theme .sticky .gp-header-login:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}
.blog-theme .sticky .gp-header-fav { color: rgba(255, 255, 255, 0.75); }
.blog-theme .sticky .gp-header-fav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* El contenido del listado arranca debajo del header fijo */
.blog-main { padding-top: 92px; }
@media (max-width: 767px) { .blog-main { padding-top: 76px; } }

/* ============================================================
   GRID DE TARJETAS — 3 columnas, las grandes ocupan 2
   ============================================================ */
.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-size-L { grid-column: span 2; }
.card-size-M, .card-size-S { grid-column: span 1; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-size-L { grid-column: span 2; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-size-L, .card-size-M, .card-size-S { grid-column: span 1; }
}

/* ============================================================
   LAYOUT PRINCIPAL LISTADO
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.blog-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; max-height: none; overflow: visible; }
}

/* ============================================================
   CHIPS DE CATEGORÍA
   ============================================================ */
.blog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: none;
  border: 1px solid var(--border-strong);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all 200ms ease-out;
  cursor: pointer;
}
.blog-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.blog-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #0F1E1A;
  font-weight: 700;
}
.blog-chip--kicker {
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
}
.blog-chip--small { padding: 8px 16px; font-size: 13px; }
.blog-chip__count {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  opacity: 0.55;
}

/* ============================================================
   HERO DESTACADO (listado) — tarjeta dividida texto + imagen
   ============================================================ */
.blog-hero {
  margin-top: 28px;
}
.blog-hero__link {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: inherit;
  transition: border-color 200ms ease-out;
}
.blog-hero__link:hover { border-color: rgba(245, 166, 35, 0.5); color: inherit; }
.blog-hero__content {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.blog-hero__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-hero__featured { font-size: 12.5px; color: var(--text-faint); }
.blog-hero__title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.blog-hero__avatar {
  display: flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.blog-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 12px 22px;
  background: var(--accent);
  color: #0F1E1A;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background 200ms ease-out, transform 200ms ease-out;
}
.blog-hero__link:hover .blog-hero__cta {
  background: var(--accent-hover);
  transform: translateX(2px);
}
.blog-hero__cta svg { width: 16px; height: 16px; }
.blog-hero__media {
  position: relative;
  min-height: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
}
.blog-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease-out;
}
.blog-hero__link:hover .blog-hero__media img { transform: scale(1.04); }
@media (max-width: 980px) {
  .blog-hero__link { grid-template-columns: 1fr; min-height: 0; }
  .blog-hero__media { order: -1; height: 240px; min-height: 0; }
  .blog-hero__content { padding: 26px 24px 30px; }
}

/* ============================================================
   TARJETAS
   ============================================================ */
.blog-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 200ms ease-out, border-color 200ms ease-out;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.blog-card__title,
.blog-card__excerpt { overflow-wrap: anywhere; word-break: normal; }
.blog-grid > * { min-width: 0; }
/* El wrapper de cada lote no debe romper el grid */
.blog-grid-batch { display: contents; }
/* Estado final: sin más páginas, el wrap OOB queda vacío y oculto */
.blog-load-more-wrap--done { display: none; }
.blog-card:hover {
  border-color: rgba(245, 166, 35, 0.5);
  transform: translateY(-2px);
}
.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.blog-card__link:hover { color: inherit; }
.blog-card__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-size-L .blog-card__media { aspect-ratio: 16/9; }
.card-size-M .blog-card__media,
.card-size-S .blog-card__media { aspect-ratio: 16/10; }
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  background: rgba(15, 30, 26, 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 166, 35, 0.5);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

/* Mientras una imagen carga (o queda colgada), que se vea como skeleton:
   fondo degradado + color transparent oculta el texto alt que Chrome pinta. */
.blog-hero__media img,
.blog-card__media img,
.blog-mentioned__media img,
.blog-widget__cat-row img,
.block-image img,
.block-gallery__item img,
.block-ficha__image img,
.block-restaurant__media img {
  color: transparent;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

/* Placeholder genérico de imagen (sin imagen o imagen rota — ver blog-img-fallback.js) */
.blog-img-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}
.blog-img-ph::before {
  content: "";
  width: 36px;
  height: 36px;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* En contenedores con imagen absoluta (hero) el placeholder también se ancla */
.blog-hero__media .blog-img-ph { position: absolute; inset: 0; }
/* En figuras de flujo (bloques de artículo) el placeholder define su propio alto */
.block-image .blog-img-ph,
.block-ficha__image .blog-img-ph,
.block-gallery__item .blog-img-ph { aspect-ratio: 16/9; height: auto; }
.blog-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.blog-card__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.blog-card__title--sm { font-size: 15px; }
.card-size-L .blog-card__title { font-size: 19px; }
.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}
.blog-card__meta {
  display: flex;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12.5px;
  margin-top: auto;
  padding-top: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

/* Estado vacío */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.blog-empty__title {
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 8px;
}
.blog-empty__text { margin: 0; font-size: 1rem; }

/* ============================================================
   BARRA DE FILTROS
   ============================================================ */
.blog-filter {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  margin-top: 12px;
  background: var(--bg);
}
@media (max-width: 767px) { .blog-filter { top: 52px; } }
.blog-filter__chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
}
.blog-filter__chips::-webkit-scrollbar { display: none; }
.blog-filter__chips > * { scroll-snap-align: start; flex-shrink: 0; }

.blog-filter__sort { flex-shrink: 0; }
.blog-sort-select {
  padding: 8px 34px 8px 16px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.blog-sort-select:hover { border-color: var(--accent); color: var(--text); }
.blog-sort-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.blog-sort-select option { background: var(--bg-card); color: var(--text); }

.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;
}

/* ============================================================
   WIDGETS DEL SIDEBAR
   ============================================================ */
.blog-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 0;
}
.blog-widget__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.blog-widget__title svg { color: var(--accent); }
.blog-widget__empty { color: var(--text-muted); margin: 0; font-size: 13px; }

.blog-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-widget__item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.blog-widget__index {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent);
  min-width: 20px;
  font-variant-numeric: tabular-nums;
}
.blog-widget__post { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.blog-widget__post-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.blog-widget__post-meta { font-size: 12px; color: var(--text-faint); }
.blog-widget__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.blog-widget__more:hover { color: var(--accent-hover); }
.blog-widget__more svg { width: 14px; height: 14px; }

/* Navega por tema — filas verticales */
.blog-widget__cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-widget__cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  transition: border-color 200ms ease-out, background 200ms ease-out;
}
.blog-widget__cat-row:hover {
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}
.blog-widget__cat-row svg { color: rgba(255, 255, 255, 0.5); flex-shrink: 0; }
.blog-widget__cat-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blog-widget__cat-name { font-weight: 700; font-size: 14px; color: var(--text); }
.blog-widget__cat-count { font-size: 12px; color: var(--text-faint); }

/* Boletín */
.blog-widget--newsletter {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border-color: rgba(245, 166, 35, 0.35);
}
.blog-widget__nl-text { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.blog-widget__nl-form { display: flex; flex-direction: column; gap: 10px; }
.blog-widget__nl-input {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
}
.blog-widget__nl-input:disabled { opacity: 0.6; cursor: not-allowed; }
.blog-widget__nl-btn {
  padding: 11px;
  background: #C89B4B;
  color: #0F1E1A;
  border: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}
.blog-widget__nl-btn:disabled { opacity: 0.75; cursor: not-allowed; }
.blog-widget__nl-msg { font-size: 12px; color: var(--accent); margin: 4px 0 0; }

/* ============================================================
   CARGAR MÁS
   ============================================================ */
.blog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 26px 0 48px;
}
.blog-load-more-btn {
  padding: 13px 30px;
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease-out;
}
.blog-load-more-btn:hover {
  background: var(--accent);
  color: #0F1E1A;
}
.blog-load-more-btn.htmx-request { opacity: 0.6; cursor: wait; }

/* ============================================================
   PÁGINA DE ARTÍCULO
   ============================================================ */
.blog-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(245, 166, 35, 0.12); z-index: 100000; }
.blog-progress__bar { height: 100%; width: 0; background: var(--accent); transition: width 80ms ease-out; }
@media (prefers-reduced-motion: reduce) { .blog-progress__bar { transition: none; } }

.detail-hero {
  position: relative;
  min-height: 400px;
  padding: 140px 0 40px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-elevated);
}
.detail-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.detail-hero__media--empty { background: radial-gradient(circle at 20% 20%, rgba(245, 166, 35, 0.08), transparent 60%), linear-gradient(135deg, var(--bg-elevated), var(--bg)); }
.detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 26, 0.45) 0%, rgba(15, 30, 26, 0.55) 55%, #0F1E1A 100%);
}
.detail-hero__body { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.detail-hero__breadcrumbs { display: flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, 0.65); font-size: 13px; margin-bottom: 0; }
.detail-hero__breadcrumbs a { color: rgba(255, 255, 255, 0.65); }
.detail-hero__breadcrumbs a:hover { color: var(--accent); }
.detail-hero .blog-chip--kicker { align-self: flex-start; background: rgba(15, 30, 26, 0.5); }
.detail-hero__title {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 22ch;
  margin: 0;
}
.detail-hero__subtitle { color: rgba(255, 255, 255, 0.75); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 720px; margin: 0; font-weight: 400; }
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: rgba(255, 255, 255, 0.75); font-size: 13.5px; }
.detail-hero__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.detail-hero__reading, .detail-hero__views { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 768px) { .detail-hero { padding: 110px 0 32px; min-height: 340px; } }

.detail-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px) 56px;
  gap: 40px;
  justify-content: center;
  padding: 36px 24px 0;
  align-items: start;
}
.detail-article { min-width: 0; color: rgba(255, 255, 255, 0.78); font-size: 16px; line-height: 1.75; }
.detail-article > * + * { margin-top: 1.15em; }
.detail-toc-rail { position: sticky; top: 96px; }
.detail-share-rail { position: sticky; top: 96px; }
@media (max-width: 1200px) {
  .detail-layout { grid-template-columns: minmax(0, 720px); gap: 32px; justify-content: center; }
  .detail-toc-rail { position: static; order: -1; }
  .detail-share-rail { position: static; order: 2; }
}

/* ============================================================
   ÍNDICE (TOC)
   ============================================================ */
.blog-toc__details {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.blog-toc__summary { font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; color: var(--text); display: flex; align-items: center; gap: 10px; }
.blog-toc__summary::-webkit-details-marker { display: none; }
.blog-toc__summary-text { flex: 1; }
.blog-toc__summary-count { font-weight: 400; font-size: 11.5px; color: var(--text-faint); }
.blog-toc__summary-icon { width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform 200ms ease-out; margin-top: -4px; }
.blog-toc__details[open] .blog-toc__summary-icon { transform: rotate(-135deg); margin-top: 2px; }
.blog-toc__details[open] .blog-toc__summary { margin-bottom: 12px; }
.blog-toc__list {
  list-style: none;
  margin: 0;
  padding: 0 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.blog-toc__list::-webkit-scrollbar { width: 4px; }
.blog-toc__list::-webkit-scrollbar-track { background: transparent; }
.blog-toc__list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }
.blog-toc__details:not([open]) > .blog-toc__list { display: none; }
.blog-toc__item a {
  display: block;
  padding: 7px 10px 7px 12px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  border-left: 2px solid transparent;
  border-radius: 0 7px 7px 0;
  transition: color 200ms ease-out, background 200ms ease-out;
}
.blog-toc__item--lvl3 a { padding-left: 22px; font-size: 12px; }
.blog-toc__item a:hover { color: var(--text); }
.blog-toc__item a.is-active {
  color: var(--accent);
  font-weight: 700;
  background: rgba(245, 166, 35, 0.1);
  border-left-color: var(--accent);
}
@media (min-width: 1201px) {
  .blog-toc__details > .blog-toc__list { display: flex !important; }
  .blog-toc__summary { pointer-events: none; margin-bottom: 12px; }
  .blog-toc__summary-icon { display: none; }
}

/* ============================================================
   COMPARTIR
   ============================================================ */
.blog-share { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.blog-share__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 200ms ease-out;
}
.blog-share__btn:hover { border-color: var(--accent); color: var(--accent); }
.blog-share__btn[title="WhatsApp"] { color: #25D366; }
.blog-share__btn[title="WhatsApp"]:hover { border-color: #25D366; }
.blog-share__toast { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; background: var(--accent); color: #0F1E1A; border-radius: 999px; font-size: 12px; font-weight: 700; }
@media (max-width: 1200px) {
  .blog-share { position: fixed; bottom: 0; left: 0; right: 0; flex-direction: row; justify-content: center; padding: 10px; background: rgba(15, 30, 26, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--border); z-index: 25; }
  .blog-share__toast { position: absolute; top: -36px; left: 50%; transform: translateX(-50%); }
}

/* ============================================================
   BLOQUES DE CONTENIDO
   ============================================================ */
.block-heading { font-weight: 700; color: var(--text); scroll-margin-top: 90px; letter-spacing: -0.01em; }
.block-heading--h2 { font-size: 27px; margin-top: 2.6em !important; margin-bottom: 0.5em; }
.block-heading--h3 { font-size: 20px; margin-top: 1.8em !important; margin-bottom: 0.4em; }

.block-paragraph { color: rgba(255, 255, 255, 0.78); font-size: 16px; line-height: 1.75; }
.block-paragraph strong { color: var(--text); font-weight: 600; }
.block-paragraph a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.block-paragraph a:hover { color: var(--accent-hover); }
.block-paragraph ul, .block-paragraph ol { padding-left: 1.5em; }
.block-paragraph li + li { margin-top: 0.3em; }

.block-image { margin: 2em 0; border-radius: 12px; overflow: hidden; }
.block-image img { width: 100%; height: auto; display: block; }
.block-image figcaption { padding: 10px 0; color: var(--text-faint); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; }
.block-image__credit { font-style: italic; }

.block-quote { margin: 2em 0; padding: 22px 26px 22px 52px; position: relative; border-left: 3px solid var(--accent); background: var(--bg-card); border-radius: 0 12px 12px 0; }
.block-quote::before { content: "\201C"; position: absolute; left: 16px; top: 8px; font-size: 3.4rem; color: var(--accent); line-height: 1; font-weight: 700; }
.block-quote__text { font-style: italic; font-size: 1.15rem; line-height: 1.55; margin: 0; color: var(--text); }
.block-quote__cite { display: flex; gap: 12px; margin-top: 12px; color: var(--text-muted); font-size: 13px; font-style: normal; }
.block-quote__author { font-weight: 600; }

/* Tarjeta de restaurante embebido */
.block-restaurant { margin: 2em 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 200ms ease-out; display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.block-restaurant:hover { border-color: rgba(245, 166, 35, 0.5); }
.block-restaurant--wide { grid-template-columns: 320px 1fr; }
.block-restaurant--minimal { grid-template-columns: 1fr; }
.block-restaurant--minimal .block-restaurant__media { display: none; }
.block-restaurant__media { background: var(--bg-elevated); display: block; }
.block-restaurant__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.block-restaurant__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.block-restaurant__name { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--text); }
.block-restaurant__name-link { color: inherit; }
.block-restaurant__name-link:hover { color: var(--accent); }
.block-restaurant__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 13px; }
.block-restaurant__stars { color: var(--accent); }
.block-restaurant__blurb { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.block-restaurant__cta { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }

/* CTAs de contacto directo (source="blog") */
.block-restaurant__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.block-restaurant__cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; line-height: 1;
  color: #fff; cursor: pointer;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.block-restaurant__cta-btn:hover { color: #fff; text-decoration: none; opacity: 0.9; }
.block-restaurant__cta-btn:active { transform: translateY(1px); }
.block-restaurant__cta-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.block-restaurant__cta-btn i { font-size: 1rem; }
.block-restaurant__cta-btn--whatsapp { background: #25D366; }
.block-restaurant__cta-btn--call { background: var(--green); }
.block-restaurant__cta-btn--delivery { background: #ff6b00; }

@media (prefers-reduced-motion: reduce) {
  .block-restaurant__cta-btn { transition: none; }
  .block-restaurant__cta-btn:active { transform: none; }
}

@media (max-width: 640px) {
  .block-restaurant { grid-template-columns: 1fr; }
  .block-restaurant__media { aspect-ratio: 3/2; }
  .block-restaurant__cta-btn { flex: 1 1 auto; }
}

.block-callout { margin: 2em 0; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--bg-card); }
.block-callout--info { border-left-color: var(--accent); }
.block-callout--tip { border-left-color: var(--success); }
.block-callout--warning { border-left-color: var(--accent); background: rgba(245, 166, 35, 0.06); }
.block-callout--success { border-left-color: var(--success); }
.block-callout__title { font-weight: 700; margin: 0 0 4px; color: var(--text); font-size: 15px; }
.block-callout__text { color: rgba(255, 255, 255, 0.78); line-height: 1.6; font-size: 14.5px; }
.block-callout__text p { margin: 0; }

.block-gallery { margin: 2em 0; }
.block-gallery--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.block-gallery--carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.block-gallery--carousel::-webkit-scrollbar { height: 6px; }
.block-gallery--carousel::-webkit-scrollbar-track { background: transparent; }
.block-gallery--carousel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }
.block-gallery--carousel .block-gallery__item { flex: 0 0 60%; scroll-snap-align: start; }
.block-gallery--masonry { column-count: 3; column-gap: 12px; }
.block-gallery--masonry .block-gallery__item { break-inside: avoid; margin-bottom: 12px; }
.block-gallery__item { margin: 0; border-radius: 12px; overflow: hidden; }
.block-gallery__item img { width: 100%; height: auto; display: block; }
.block-gallery__item figcaption { padding: 6px 8px; font-size: 12px; color: var(--text-faint); text-align: center; }
@media (max-width: 768px) { .block-gallery--grid { grid-template-columns: repeat(2, 1fr); } .block-gallery--masonry { column-count: 2; } .block-gallery--carousel .block-gallery__item { flex-basis: 80%; } }

/* ============================================================
   FICHA DE RESTAURANTE (numbered_item)
   ============================================================ */
.block-ficha {
  margin: 28px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 90px;
}
.block-ficha__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}
.block-ficha__rank {
  display: flex;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}
.block-ficha__rank--top { background: var(--accent); color: #0F1E1A; }
.block-ficha__id { flex: 1; min-width: 200px; }
.block-ficha__name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.block-ficha__zone { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 3px; }
.block-ficha__score-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.block-ficha__score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.block-ficha__reviews { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.block-ficha__body { padding: 20px 24px 22px; }
.block-ficha__address {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.block-ficha__address svg { flex-shrink: 0; color: var(--green-icon); }
.block-ficha__image { margin: 0 0 14px; border-radius: 12px; overflow: hidden; }
.block-ficha__image img { width: 100%; height: auto; display: block; }
.block-ficha__text { color: rgba(255, 255, 255, 0.75); font-size: 15px; line-height: 1.7; }
.block-ficha__text p { margin: 0 0 14px; }
.block-ficha__text p:last-child { margin-bottom: 0; }
.block-ficha__foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.block-ficha__flags { display: flex; gap: 14px; flex-wrap: wrap; }
.block-ficha__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-faint);
}
.block-ficha__flag--on { color: var(--success); }
.block-ficha__flag svg { flex-shrink: 0; width: 14px; height: 14px; }
.block-ficha__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 200ms ease-out;
}
.block-ficha__cta:hover { background: #247332; color: #fff; }
.block-ficha__cta svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .block-ficha__head { padding: 16px 18px; }
  .block-ficha__body { padding: 16px 18px 18px; }
  .block-ficha__cta { flex: 1 1 auto; justify-content: center; }
}

.block-video { margin: 2em 0; border-radius: 12px; overflow: hidden; background: #000; }
.block-video[data-aspect="16:9"] { aspect-ratio: 16/9; }
.block-video[data-aspect="4:3"] { aspect-ratio: 4/3; }
.block-video iframe, .block-video video { width: 100%; height: 100%; display: block; border: 0; }
.block-video__caption { padding: 10px 12px; color: var(--text-faint); font-size: 12.5px; margin: 0; text-align: center; background: var(--bg-card); }

/* background transparente: Foogra pone hr { background-color:#ededed } global */
.block-divider { border: 0; height: auto; margin: 3em 0; text-align: center; background: transparent; }
.block-divider--line { height: 1px; background: var(--border); }
.block-divider--stars::after { content: "\2726  \2726  \2726"; color: var(--accent); letter-spacing: 0.5em; font-size: 13px; }
.block-divider--ornament::after { content: "\00B7  \00B7  \25C6  \00B7  \00B7"; color: var(--accent); letter-spacing: 0.4em; font-size: 13px; }

.block-recipe { margin: 2em 0; padding: 22px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.block-recipe__intro { color: var(--text-muted); margin: 0 0 16px; }
.block-recipe__steps { padding-left: 1.5em; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.block-recipe__step { color: rgba(255, 255, 255, 0.78); }
.block-recipe__step-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.block-recipe__step-desc { margin: 0; line-height: 1.6; }

.block-table-wrap { margin: 2em 0; overflow-x: auto; }
.block-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.block-table th, .block-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.block-table th { background: var(--bg-card); color: var(--accent); font-weight: 700; }
.block-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.block-table__caption { color: var(--text-faint); font-size: 12.5px; margin: 8px 0 0; text-align: center; }

.block-map { margin: 2em 0; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.block-map__list { display: flex; flex-direction: column; gap: 10px; }
.block-map__pin { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; color: inherit; transition: border-color 200ms ease-out; }
.block-map__pin:hover { border-color: rgba(245, 166, 35, 0.5); color: inherit; }
.block-map__pin-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #0F1E1A; font-weight: 700; }
.block-map__pin-name { color: var(--text); font-weight: 600; }
.block-map__pin-city { color: var(--text-faint); font-size: 13px; }
.block-map__caption { color: var(--text-faint); font-size: 12.5px; margin: 12px 0 0; text-align: center; }

/* ============================================================
   RESTAURANTES MENCIONADOS
   ============================================================ */
.blog-mentioned { margin: 56px 0 0; padding: 48px 0; border-top: 1px solid var(--border); }
.blog-mentioned__title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 22px; color: var(--text); }
.blog-mentioned__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-mentioned__item { display: flex; }
.blog-mentioned__card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: inherit; width: 100%; transition: border-color 200ms ease-out, transform 200ms ease-out; }
.blog-mentioned__card:hover { border-color: rgba(245, 166, 35, 0.5); transform: translateY(-2px); color: inherit; }
.blog-mentioned__media { position: relative; aspect-ratio: 16/10; background: var(--bg-elevated); overflow: hidden; }
.blog-mentioned__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-mentioned__position { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #0F1E1A; font-weight: 700; padding: 4px 11px; border-radius: 999px; font-size: 13px; }
.blog-mentioned__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-mentioned__name { font-size: 16.5px; font-weight: 700; margin: 0; color: var(--text); }
.blog-mentioned__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: 13px; }
.blog-mentioned__city { color: var(--text-faint); font-size: 13px; margin: 0; }
.blog-mentioned__chip { display: inline-block; padding: 4px 11px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; border: 1px solid rgba(245, 166, 35, 0.4); border-radius: 999px; color: var(--accent); align-self: flex-start; }
.blog-mentioned__blurb { color: var(--text-muted); font-size: 13.5px; margin: 4px 0 0; font-style: italic; }
.blog-mentioned__cta { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 1024px) { .blog-mentioned__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-mentioned__grid { grid-template-columns: 1fr; } }

/* ============================================================
   SIGUE LEYENDO — banda de fondo más profundo
   ============================================================ */
.blog-related { margin: 56px 0 0; padding: 48px 0 56px; background: var(--bg-deep); }
.blog-related__title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 22px; color: var(--text); }
.blog-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-related__grid .blog-card { grid-column: auto; }
@media (max-width: 1024px) { .blog-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-related__grid { grid-template-columns: 1fr; } }
