/* Estilos del blog en MDX (Cierto Rooftop). Convencion del grupo: posts = MDX, no
   HTML congelado. Identidad de Cierto (rooftop, atardeceres): base oscura calida
   (--bp-primary espresso) + crema (--bp-cream) + amarillo de marca (--bp-accent,
   el mismo del wordmark/labels). Tipografia: titulares en Archivo, cuerpo en
   Raleway (las que carga la home). Sitio motor BRICKS: el chrome (header/footer)
   llega por sus propios CSS de Bricks; aca solo va lo del cuerpo del blog.
   OJO MOTOR BRICKS: root html en 62.5% (=10px) -> los tamanos van en PX (no rem)
   para no colapsar a ~2/3, y los h2/h3/h4 del articulo se fuerzan con !important
   para ganarle a las reglas del tema Bricks. */

:root {
  --bp-primary: #241E1A;      /* espresso: paneles oscuros, velo del hero, base */
  --bp-cream: #EFE7D9;        /* crema: texto sobre oscuro */
  --bp-cream-soft: #F6F1EA;   /* crema mas clara: fondos de cards/callouts */
  --bp-accent: #F4C430;       /* amarillo de marca: labels, numeros, acentos, botones */
  --bp-text: #211D1A;         /* texto cuerpo */
  --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: 'Raleway', system-ui, sans-serif; }

/* ---- Hero base (foto + texto). El look final es full-bleed con velo espresso
   (ver bloque HERO full-bleed mas abajo). ---- */
.bp-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 70vh;
}
.bp-hero__text {
  background: var(--bp-primary);
  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;
  color: var(--bp-accent); font-weight: 700; 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 (amarillo de marca con texto espresso). */
.bp-hero__cta {
  display: inline-block; width: max-content; margin-top: 24px;
  background: var(--bp-accent); color: var(--bp-primary); 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: #ffd54a; }
.bp-hero__share a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(239, 231, 217, 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-accent); color: var(--bp-primary); border-color: var(--bp-accent); }
.bp-hero__share a svg { width: 17px; height: 17px; }
.bp-hero__media { position: relative; background-size: cover; background-position: center; min-height: 320px; }

/* ============================================================
   HERO full-bleed: la foto ocupa todo el ancho y el texto va ENCIMA
   con un velo espresso difuminado. VELO DOBLE: un gradiente 180deg
   oscuro ARRIBA (para que el nav/menu resalte sobre la imagen) + el
   90deg lateral (para el contraste del titulo/texto).
   ============================================================ */
.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 {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(36,30,26,0.62) 0%, rgba(36,30,26,0.28) 14%, rgba(36,30,26,0) 30%),
    linear-gradient(90deg,
      rgba(36,30,26,0.92) 0%, rgba(36,30,26,0.80) 30%, rgba(36,30,26,0.42) 55%, rgba(36,30,26,0) 88%);
}
.bp-hero__text {
  position: relative; z-index: 2; background: transparent !important;
  max-width: 680px; padding: 140px 56px 64px;
}
@media (max-width: 900px) {
  /* Movil: 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(36,30,26,0.20) 0%, rgba(36,30,26,0.52) 48%, rgba(36,30,26,0.95) 100%);
  }
  .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%; }
  .bp-hero__cta { width: 100%; text-align: center; }
}

/* ---- 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. EN PX (root 10px de Bricks). */
.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; text-decoration-color: var(--bp-accent); }
.bp-article a:hover { color: var(--bp-accent); }
.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-accent);
  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 (lo reubica el JS de BlogPost
   tras la "Respuesta rapida") y arranca colapsado. */
@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 amarillo con chevron oscuro (contraste sobre la caja oscura). */
.bp-toc__toggle {
  background: var(--bp-accent) !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: #e0b21f !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-accent); color: var(--bp-accent); }
.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; }

/* Boton "Reserva tu mesa" al final del TOC (amarillo sobre la caja espresso). */
.bp-toc__reserva {
  display: block; margin: 14px 0 2px; text-align: center;
  background: var(--bp-accent); color: var(--bp-primary) !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: #ffd54a; color: var(--bp-primary) !important; }

/* ---- 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-accent); color: var(--bp-primary); }
.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 la base oscura. */
.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) - Cierto Rooftop
   Paleta: amarillo #F4C430 (acento) + crema #EFE7D9 + espresso #241E1A
   (paneles oscuros de marca). Tipografia: Archivo (titulares) / Raleway
   (cuerpo). Tamanos en PX (Bricks root 10px).
   ================================================================= */

/* Respuesta rapida / TL;DR - sobre el espresso de marca. */
.bp-article .bp-tldr {
  background: var(--bp-primary); 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-accent); margin: 0 0 10px;
}
.bp-article .bp-tldr p { margin: 0.4em 0; color: var(--bp-cream); }
.bp-article .bp-tldr a { color: var(--bp-accent); }
/* 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 amarillo. */
.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 amarillo. */
.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-accent);
}
.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: 800; font-size: 13px; color: var(--bp-primary); background: var(--bp-accent);
}
.bp-article .bp-cal.tip::before { content: "\2713"; background: var(--bp-ok); color: #fff; }
.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; font-size: 17.12px; }

/* Pasos numerados - numero en circulo amarillo con texto espresso. */
.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;
  font-size: 17.12px;
}
.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-accent); color: var(--bp-primary);
  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 (amarillo con texto espresso). */
.bp-article .bp-cta-wrap { margin: 28px 0; }
.bp-btn {
  display: inline-block; background: var(--bp-accent); color: var(--bp-primary) !important;
  text-decoration: none !important; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.02em; transition: background 0.2s;
}
.bp-btn:hover { background: #ffd54a; color: var(--bp-primary) !important; }

/* CTA rompelecturas - panel espresso destacado que corta la lectura, con boton
   amarillo para contraste sobre el fondo oscuro. */
.bp-article .bp-ctabox {
  background: var(--bp-primary); 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: var(--bp-cream); opacity: 0.9; font-size: 17.12px; }
.bp-article .bp-ctabox__btn {
  display: inline-block; background: var(--bp-accent); color: var(--bp-primary) !important;
  text-decoration: none !important; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.02em; transition: background 0.2s;
}
.bp-article .bp-ctabox__btn:hover { background: #ffd54a; color: var(--bp-primary) !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-accent); color: var(--bp-primary) !important;
  text-decoration: none !important; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; letter-spacing: 0.02em; transition: background 0.2s;
}
.bp-article a[href*="cluvi.co"]:not(.bp-ctabox__btn):hover,
.bp-article a[href*="fourvenues.com"]:not(.bp-ctabox__btn):hover { background: #ffd54a; color: var(--bp-primary) !important; }

/* FAQ desplegable (<details>). */
.bp-article .bp-faq { margin: 0.4em 0 1.6em; }
.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-accent); 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; font-size: 17.12px; }

/* Resumen final - borde punteado amarillo. */
.bp-article .bp-summary {
  background: var(--bp-cream-soft); border: 1px dashed var(--bp-accent); 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. */
@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; }
}
