/* Estilos del blog en MDX (General Cafe). Convencion del grupo: posts = MDX, no
   HTML congelado. Identidad de la marca General: naranja (--orange #F0692B) /
   crema (--white #EEE6DC) / casi-negro, tipografia Archivo. Sitio motor BRICKS:
   el chrome (header/footer) llega por sus propios CSS de Bricks; aca solo va lo
   del cuerpo del blog. */

:root {
  --bp-primary: #F0692B;      /* naranja de marca (acento vivo: botones, numeros, links) */
  --bp-hero: #BE5E34;         /* terracota apagado para el hero (naranja mas sutil) */
  --bp-dark: #2A211C;         /* espresso: paneles oscuros (identidad cafe, no negro puro) */
  --bp-cream: #EEE6DC;
  --bp-cream-soft: #F6F1EA;
  --bp-text: #212322;
  --bp-muted: #6b645e;
  --bp-line: #e3dcd3;
  --bp-ok: #2f6b43;
}

/* box-sizing en todo el scope del blog: el padding NO suma al ancho (evita
   desbordes horizontales en movil). */
.bp, .bp *, .bp *::before, .bp *::after { box-sizing: border-box; }

.bp { background: #fff; color: var(--bp-text); font-family: 'Archivo', system-ui, sans-serif; }

/* ---- Hero 2-columnas: texto a la izquierda sobre naranja (categoria + titulo +
   autor/fecha + share), imagen a la derecha. El header es overlay -> padding-top
   en la columna de texto deja el titulo bajo el menu. ---- */
.bp-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 70vh;
}
.bp-hero__text {
  /* degradado sutil dentro del terracota para dar profundidad (no un bloque plano) */
  background: linear-gradient(150deg, #A2502B 0%, var(--bp-hero) 52%, #CB6B40 100%);
  color: var(--bp-cream);
  padding: 150px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bp-hero__cat {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.48px;
  opacity: 0.85; margin-bottom: 18px;
}
.bp-hero__text h1 {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(28.8px, 2.8vw, 48px); line-height: 1.12; margin: 0 0 18px;
  color: var(--bp-cream);
}
.bp-hero__meta { font-size: 13.6px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.9; margin: 0 0 26px; }
.bp-hero__share { display: flex; gap: 10px; }
/* Boton de reserva en el hero (crema sobre naranja). */
.bp-hero__cta {
  display: inline-block; width: max-content; margin-top: 24px;
  background: var(--bp-cream); color: var(--bp-dark); text-decoration: none;
  padding: 13px 28px; border-radius: 4px; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.2s;
}
.bp-hero__cta:hover { background: #fff; }
.bp-hero__share a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(238, 230, 220, 0.5);
  display: grid; place-items: center; color: var(--bp-cream);
  text-decoration: none; font-size: 14.4px; transition: background 0.2s, color 0.2s;
}
.bp-hero__share a:hover { background: var(--bp-cream); color: var(--bp-primary); }
.bp-hero__share a svg { width: 17px; height: 17px; }
/* La imagen y su union DIFUMINADA con la columna naranja (feather, sin linea
   recta). Desktop: gradiente horizontal naranja->imagen en el borde izquierdo. */
.bp-hero__media { position: relative; background-size: cover; background-position: center; min-height: 320px; }
.bp-hero__media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    var(--bp-hero) 0%, rgba(190,94,52,0.85) 10%, rgba(190,94,52,0.35) 32%, rgba(190,94,52,0) 60%);
}
@media (max-width: 900px) {
  .bp-hero--split { grid-template-columns: 1fr; min-height: 0; }
  .bp-hero__text { padding: 36px 24px 40px; }
  .bp-hero__media { min-height: 240px; order: -1; }
  /* Movil: la imagen va arriba -> feather vertical hacia el naranja del texto. */
  .bp-hero__media::before {
    background: linear-gradient(180deg,
      rgba(190,94,52,0) 45%, rgba(190,94,52,0.7) 82%, var(--bp-hero) 100%);
  }
  .bp-hero__cta { width: 100%; text-align: center; }
}

/* ============================================================
   HERO full-bleed: la foto ocupa todo el ancho y el texto va
   ENCIMA con un velo (scrim) espresso que se difumina. Reemplaza
   el split de bloque de color (se veia como una mancha plana).
   ============================================================ */
.bp-hero--split { position: relative; display: block; grid-template-columns: none; min-height: 62vh; overflow: hidden; }
.bp-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; order: 0; z-index: 0; }
.bp-hero__media::before {
  background: linear-gradient(90deg,
    rgba(42,33,28,0.92) 0%, rgba(42,33,28,0.80) 30%, rgba(42,33,28,0.42) 55%, rgba(42,33,28,0) 88%) !important;
}
.bp-hero__text {
  position: relative; z-index: 2; background: transparent !important;
  max-width: 680px; padding: 140px 56px 64px;
}
@media (max-width: 900px) {
  /* Movil: hero full-bleed con el texto anclado ABAJO (sobre la zona mas oscura). */
  .bp-hero--split { display: flex; flex-direction: column; justify-content: flex-end; min-height: 72vh; }
  .bp-hero__media { position: absolute; inset: 0; height: 100%; }
  .bp-hero__media::before {
    background: linear-gradient(180deg,
      rgba(42,33,28,0.12) 0%, rgba(42,33,28,0.50) 48%, rgba(42,33,28,0.95) 100%) !important;
  }
  .bp-hero__text { position: relative; z-index: 2; justify-content: flex-end; padding: 0 22px 34px; max-width: none; width: 100%; min-width: 0; }
  .bp-hero__text h1 { font-size: 24px; overflow-wrap: anywhere; max-width: 100%; }
}

/* ---- Layout articulo + TOC ---- */
.bp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 52px;
  padding: 56px 24px 80px;
}
@media (max-width: 1024px) { .bp-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---- Prose ---- */
/* tamano base del cuerpo: TODO el texto del articulo (parrafos, listas, texto
   de componentes) hereda el mismo tamano/familia; solo headings, badges y
   labels tienen tamano propio. */
.bp-article { min-width: 0; overflow-wrap: break-word; font-size: 17.12px; line-height: 1.75; }
.bp-article h2, .bp-article h3, .bp-article h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  color: var(--bp-text);
  line-height: 1.2;
  scroll-margin-top: 110px;
}
/* !important: el tema Bricks trae reglas de h2/h3 con mas especificidad que las
   pisan; forzamos el tamano del blog (solo dentro del articulo, no toca el chrome). */
.bp-article h2 { font-size: 31.2px !important; margin: 2.2em 0 0.6em; }
.bp-article h3 { font-size: 23.2px !important; margin: 1.8em 0 0.5em; }
.bp-article h4 { font-size: 19.2px !important; margin: 1.5em 0 0.5em; }
.bp-article p { font-size: 17.12px; line-height: 1.78; margin: 0 0 1.25em; }
.bp-article a { color: var(--bp-primary); text-decoration: underline; text-underline-offset: 2px; }
.bp-article a:hover { color: var(--bp-primary); }
.bp-article ul, .bp-article ol { margin: 0 0 1.4em; padding-left: 1.3em; line-height: 1.7; }
.bp-article li { margin: 0.4em 0; font-size: 17.12px; line-height: 1.7; }
.bp-article img { width: 100%; height: auto; border-radius: 10px; margin: 1.6em 0; display: block; }
.bp-article blockquote {
  margin: 1.8em 0;
  padding: 0.6em 1.2em;
  border-left: 4px solid var(--bp-primary);
  background: var(--bp-cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.bp-article strong { color: var(--bp-text); }

/* ---- TOC sticky + colapsable ---- */
.bp-toc { align-self: start; }
@media (min-width: 1025px) { .bp-toc { position: sticky; top: 128px; } }
/* Movil/tablet: el TOC sube ARRIBA del articulo (si no, cae al final = inutil)
   y arranca colapsado (barra "Contenido" que se expande al tocar). El init
   colapsado + la reubicacion tras la "Respuesta rapida" lo hace el JS de BlogPost. */
@media (max-width: 1024px) { .bp-toc { order: -1; margin: 0 0 22px; } }
.bp-toc__box { background: var(--bp-primary); border-radius: 12px; padding: 18px 20px; }
.bp-toc__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700;
  color: var(--bp-cream); font-size: 17.6px; margin: 0 0 6px;
}
/* El reset/kit del tema puede dar a TODO <button> fondo/borde -> se fuerza:
   circulo crema con chevron naranja (contraste sobre la caja naranja). */
.bp-toc__toggle {
  background: var(--bp-cream) !important; cursor: pointer; color: var(--bp-primary) !important;
  width: 30px; height: 30px; padding: 0 !important; border: 0 !important;
  display: grid; place-items: center; border-radius: 50% !important;
  transition: transform 0.3s ease, background 0.2s ease;
}
.bp-toc__toggle:hover { background: #ddd2c4 !important; }
.bp-toc__toggle svg { display: block; }
.bp-toc.is-collapsed .bp-toc__toggle { transform: rotate(-90deg); }
.bp-toc__body {
  overflow: hidden;
  transition: height 0.32s ease, opacity 0.25s ease, margin 0.3s ease, padding 0.3s ease;
}
.bp-toc.is-collapsed .bp-toc__body { height: 0 !important; opacity: 0; }
.bp-toc__list {
  list-style: none; margin: 6px 0 0; padding: 0;
  max-height: 52vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--bp-cream) transparent;
}
.bp-toc__list::-webkit-scrollbar { width: 6px; }
.bp-toc__list::-webkit-scrollbar-thumb { background: var(--bp-cream); border-radius: 3px; }
.bp-toc__list::-webkit-scrollbar-track { background: transparent; }
.bp-toc__list li { margin: 0; }
.bp-toc__list a {
  display: block; padding: 5px 0; color: var(--bp-cream);
  text-decoration: none; font-size: 14.72px; line-height: 1.35;
  border-left: 2px solid transparent; padding-left: 10px; transition: border-color 0.2s, color 0.2s;
}
.bp-toc__list a:hover, .bp-toc__list a.is-active { border-left-color: var(--bp-cream); color: #fff; }
.bp-toc__list .lvl-3 a { padding-left: 24px; font-size: 14.08px; }
.bp-toc__list .lvl-4 a { padding-left: 38px; font-size: 13.6px; opacity: 0.85; }

/* ---- Share ---- */
.bp-share { display: flex; gap: 12px; align-items: center; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid #e6ddd3; }
.bp-share span { font-size: 14.4px; color: #6b7680; }
.bp-share a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bp-primary); color: var(--bp-cream); text-decoration: none; font-size: 16px;
  transition: opacity 0.2s;
}
.bp-share a:hover { background: var(--bp-text); color: var(--bp-cream); }
.bp-share a svg { width: 17px; height: 17px; }

/* ===== Indice del blog (grid de cards, imagenes uniformes 3:2) ===== */
.bp-index { max-width: 1180px; margin: 0 auto; padding: 56px 24px 80px; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.bp-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 22px rgba(0,0,0,0.08); transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; color: inherit;
}
.bp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.16); }
.bp-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.bp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bp-card__date { font-size: 12.8px; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa4ac; }
.bp-card__title { font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; color: var(--bp-text); font-size: 20.8px; line-height: 1.2; margin: 0; }
.bp-card__excerpt { font-size: 15.36px; line-height: 1.6; color: #5a656e; margin: 0; }
.bp-card__more { margin-top: auto; color: var(--bp-primary); font-weight: 700; font-size: 14.72px; }

/* ---- Articulos relacionados (CONSTANTE del grupo: al final de cada post) ---- */
.bp-related { border-top: 1px solid #e6ddd3; background: #fff; }
.bp-related__wrap { max-width: 1180px; margin: 0 auto; padding: 48px 24px 72px; }
.bp-related__head {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700;
  font-size: 20px; color: var(--bp-text); margin: 0 0 28px;
}
.bp-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.bp-related .bp-card__media { display: block; }
.bp-related .bp-card__body { display: flex; flex-direction: column; gap: 10px; }
.bp-related .bp-card__title, .bp-related .bp-card__more, .bp-related .bp-card__date { display: block; }
.bp-related .bp-card__title { font-size: 24px; }
.bp-related .bp-card__date { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee; }

/* Hero simple del indice del blog. Reserva la altura del header fijo en desktop
   y presenta titulo + bajada centrados sobre naranja. */
.bp-index__hero {
  background: var(--bp-primary);
  color: var(--bp-cream);
  text-align: center;
  padding: 150px 24px 56px;
}
.bp-index__hero h1 { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: clamp(38.4px, 6vw, 64px); margin: 0 0 12px; line-height: 1.05; }
.bp-index__hero p { margin: 0; opacity: .9; font-size: 16.8px; }

/* =================================================================
   COMPONENTES MDX (plantilla de blog aprobada) - General Cafe
   Paleta: naranja #F0692B (acento) + crema #EEE6DC + espresso #2A211C
   (paneles oscuros de identidad cafe, NO negro). Tipografia Archivo.
   ================================================================= */

/* Boton "Reserva tu mesa" al final del TOC (crema sobre la caja naranja). */
.bp-toc__reserva {
  display: block; margin: 14px 0 2px; text-align: center;
  background: var(--bp-cream); color: var(--bp-dark) !important; text-decoration: none;
  padding: 11px; border-radius: 4px; font-weight: 700; font-size: 14.72px;
  transition: background 0.2s;
}
.bp-toc__reserva:hover { background: #fff; color: var(--bp-dark) !important; }

/* Respuesta rapida / TL;DR - sobre el espresso de marca. */
.bp-article .bp-tldr {
  background: var(--bp-dark); color: var(--bp-cream);
  border-radius: 6px; padding: 26px 28px; margin: 26px 0 8px;
}
.bp-article .bp-tldr__label {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700;
  font-size: 12.48px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bp-primary); margin: 0 0 10px;
}
.bp-article .bp-tldr p { margin: 0.4em 0; color: #efe8e0; }
.bp-article .bp-tldr a { color: #fff; }
/* En paneles OSCUROS el texto en negrita hereda el color claro (evita oscuro sobre oscuro) */
.bp-article .bp-tldr strong, .bp-article .bp-tldr b,
.bp-article .bp-ctabox strong, .bp-article .bp-ctabox b { color: inherit; }

/* Puntos clave - tarjetas con dato grande en naranja. */
.bp-article .bp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.bp-article .bp-key { border: 1px solid var(--bp-line); border-radius: 6px; padding: 18px 16px; background: var(--bp-cream-soft); }
.bp-article .bp-key b { display: block; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 30.4px; color: var(--bp-primary); line-height: 1; }
.bp-article .bp-key span { display: block; font-size: 14.4px; color: var(--bp-muted); margin-top: 6px; }

/* Callouts tip / dato / nota - crema con acento e icono en circulo naranja. */
.bp-article .bp-cal {
  border-radius: 6px; padding: 16px 18px 16px 52px; margin: 22px 0;
  position: relative; background: var(--bp-cream-soft); border-left: 3px solid var(--bp-primary);
}
.bp-article .bp-cal::before {
  content: ""; position: absolute; left: 14px; top: 16px; width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff; background: var(--bp-primary);
}
.bp-article .bp-cal.tip::before { content: "\2713"; background: var(--bp-ok); }
.bp-article .bp-cal.dato::before { content: "i"; }
.bp-article .bp-cal.nota::before { content: "!"; }
.bp-article .bp-cal b { display: block; margin-bottom: 2px; color: var(--bp-text); }
.bp-article .bp-cal p { margin: 0.2em 0; }

/* Tabla comparativa - header naranja, zebra crema. */
.bp-article .bp-table { overflow-x: auto; margin: 22px 0; }
.bp-article .bp-table table { border-collapse: collapse; width: 100%; font-size: 15.2px; min-width: 460px; }
.bp-article .bp-table th, .bp-article .bp-table td { border: 1px solid var(--bp-line); padding: 11px 13px; text-align: left; vertical-align: top; }
.bp-article .bp-table thead th { background: var(--bp-primary); color: #fff; font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; }
.bp-article .bp-table tbody tr:nth-child(even) { background: var(--bp-cream-soft); }
.bp-article .bp-table td:first-child { font-weight: 700; }

/* Pasos numerados - numero en circulo naranja. */
.bp-article .bp-steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0; }
.bp-article .bp-steps li {
  counter-increment: s; position: relative;
  padding: 4px 0 18px 58px; border-left: 1px solid var(--bp-line); margin-left: 18px;
}
.bp-article .bp-steps li::before {
  content: counter(s); position: absolute; left: -19px; top: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--bp-primary); color: #fff;
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; display: grid; place-items: center;
}
.bp-article .bp-steps li:last-child { border-left-color: transparent; }
.bp-article .bp-steps b { display: block; margin-bottom: 2px; color: var(--bp-text); }

/* CTA de reserva en su propia linea + boton de marca (naranja con texto crema). */
.bp-article .bp-cta-wrap { margin: 28px 0; }
.bp-btn {
  display: inline-block; background: var(--bp-primary); color: #fff !important;
  text-decoration: none !important; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.02em; transition: opacity 0.2s;
}
.bp-btn:hover { opacity: 0.88; color: #fff !important; }

/* CTA rompelecturas - panel espresso destacado que corta la lectura, con boton
   crema para contraste sobre el fondo oscuro. */
.bp-article .bp-ctabox {
  background: var(--bp-dark); color: var(--bp-cream); border-radius: 6px;
  padding: 30px; margin: 32px 0; text-align: center;
}
.bp-article .bp-ctabox h3 {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; font-size: 24px;
  color: var(--bp-cream); margin: 0 0 8px;
}
.bp-article .bp-ctabox p { margin: 0 0 18px; color: #efe8e0; opacity: 0.9; }
.bp-article .bp-ctabox__btn {
  display: inline-block; background: var(--bp-primary); color: #fff !important;
  text-decoration: none !important; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.02em; transition: opacity 0.2s;
}
.bp-article .bp-ctabox__btn:hover { opacity: 0.88; color: #fff !important; }
@media (max-width: 900px) {
  .bp-article .bp-ctabox { padding: 26px 20px; }
  .bp-article .bp-ctabox__btn { display: block; width: 100%; }
}

/* REGLA: cualquier enlace de reservas dentro del articulo se ve como boton
   (nunca queda como URL/enlace de texto). */
.bp-article a[href*="cluvi.co"]:not(.bp-ctabox__btn),
.bp-article a[href*="fourvenues.com"]:not(.bp-ctabox__btn) {
  display: inline-block; background: var(--bp-primary); color: #fff !important;
  text-decoration: none !important; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.02em; transition: opacity 0.2s;
}
.bp-article a[href*="cluvi.co"]:not(.bp-ctabox__btn):hover,
.bp-article a[href*="fourvenues.com"]:not(.bp-ctabox__btn):hover { opacity: 0.88; color: #fff !important; }

/* FAQ desplegable (<details>). */
.bp-article .bp-faq details {
  border: 1px solid var(--bp-line); border-radius: 6px; margin: 10px 0; padding: 0 18px; background: #fff;
}
.bp-article .bp-faq summary {
  cursor: pointer; font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; font-size: 17.92px;
  padding: 15px 0; list-style: none; position: relative; padding-right: 26px; color: var(--bp-text);
}
.bp-article .bp-faq summary::-webkit-details-marker { display: none; }
.bp-article .bp-faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; color: var(--bp-primary); font-size: 22.4px; line-height: 1; }
.bp-article .bp-faq details[open] summary::after { content: "\2212"; }
.bp-article .bp-faq details[open] summary { border-bottom: 1px solid var(--bp-line); }
.bp-article .bp-faq__body p { padding: 12px 0; margin: 0; }

/* Resumen final - borde punteado naranja. */
.bp-article .bp-summary {
  background: var(--bp-cream-soft); border: 1px dashed var(--bp-primary); border-radius: 6px;
  padding: 24px 26px; margin: 34px 0;
}
.bp-article .bp-summary__head { margin-top: 0 !important; }
.bp-article .bp-summary ul { margin: 0.4em 0 0; padding-left: 20px; }

@media (max-width: 900px) {
  .bp-article .bp-keys { grid-template-columns: 1fr; }
}

/* Movil: reducir titulares y permitir quiebre para que NUNCA se recorten
   contra el borde derecho; tabla que cabe sin scroll lateral. */
@media (max-width: 640px) {
  .bp-article h2 { font-size: 22.4px !important; }
  .bp-article h3 { font-size: 18.4px !important; }
  .bp-article h4 { font-size: 16.8px !important; }
  .bp-article h1, .bp-article h2, .bp-article h3, .bp-article h4 { overflow-wrap: anywhere; }
  .bp-hero__text h1 { font-size: 25.6px; overflow-wrap: anywhere; }
  .bp-tldr, .bp-summary, .bp-ctabox { padding-left: 20px; padding-right: 20px; }
  .bp-article .bp-table table { min-width: 0; width: 100%; table-layout: fixed; font-size: 12.8px; }
  .bp-article .bp-table th, .bp-article .bp-table td { padding: 8px 8px; overflow-wrap: anywhere; }
}
