/* ============================================================
   single-post.css — Estilos de la ficha individual de Blog (post nativo)
   ------------------------------------------------------------
   Se encola SOLO en los singles del post type "post" (is_singular('post'))
   desde inc/single-post-assets.php. NO es CSS global y NO afecta a páginas
   Elementor: no toca --e-global-color-*, solo tokens propios --base/etc.

   Incluye una copia VERBATIM de los tokens y helpers del diseño
   (web/styles.css) para que la plantilla se renderice correctamente
   aunque el Kit de Elementor no los tuviera cargados. Diseño canónico:
   web/blog-post.html.
   ============================================================ */

/* ── Tokens (idénticos a web/styles.css :root) ── */
:root {
  --base:#9B9A84; --moss:#9C9584; --sage:#8C9C84; --warm:#9C9884;
  --base-dk:#797869; --base-lt:#b8b7a4;
  --base-pale:rgba(155,154,132,.10); --base-line:rgba(155,154,132,.22);
  --white:#faf8f5; --sand:#f2ede4; --sand2:#e8e1d5; --sand3:#d8d0c4;
  --text:#252018; --text-70:rgba(37,32,24,.70); --text-40:rgba(37,32,24,.40); --text-15:rgba(37,32,24,.15);
  --serif:'Cormorant Garamond',Georgia,serif; --sans:'Jost',sans-serif;
  --shadow-sm:0 2px 8px rgba(37,32,24,.08); --shadow-md:0 8px 22px rgba(37,32,24,.16);
  --shadow-lg:0 16px 42px rgba(37,32,24,.22); --shadow-xl:0 30px 70px rgba(37,32,24,.28);
  --radius-sm:4px; --radius-md:12px; --radius-lg:24px; --radius-pill:60px;
}

/* ── Helpers de sección (verbatim del diseño) — namespaced a .bp-page para
      no pisar nada fuera de la ficha aunque el nombre sea global ── */
.bp-page { font-family:var(--sans); color:var(--text); background:var(--white); }
.bp-page .s-eye { font-size:.7rem; font-weight:500; letter-spacing:.28em; text-transform:uppercase; color:var(--base-dk); margin-bottom:.9rem; display:inline-flex; align-items:center; gap:.55rem; }
.bp-page .s-eye::before { content:''; width:22px; height:1.5px; background:var(--base); }
.bp-page .s-h2 { font-family:var(--serif); font-size:clamp(2.4rem,3.8vw,3.8rem); font-weight:400; line-height:1.12; letter-spacing:-.01em; color:var(--text); }
.bp-page .s-h2 em { font-style:italic; font-weight:300; color:var(--base-dk); }
.bp-page .s-rule { width:40px; height:2px; background:var(--base); margin:1.6rem 0; }
.bp-page .s-body { font-size:.95rem; color:var(--text-70); max-width:580px; line-height:1.78; }
.bp-page .btn-base { padding:.9rem 1.75rem; background:var(--text); color:#fff; font-family:var(--sans); font-size:.8rem; font-weight:500; letter-spacing:.08em; text-transform:uppercase; display:inline-block; border-radius:60px; transition:background .3s, transform .2s; text-decoration:none; }
.bp-page .btn-base:hover { background:var(--base-dk); transform:translateY(-2px); }
.bp-page .btn-with-icon { display:inline-flex !important; align-items:center; gap:.55rem; }
.bp-page .btn-with-icon svg { width:16px; height:16px; }
@media (min-width:721px){ .bp-page .nowrap-dt { white-space:nowrap; } }

/* ── Reveal: entrada por CSS (NO depende de JS; el contenido SIEMPRE acaba visible) ── */
.bp-page .reveal { animation: bp-reveal .8s ease both; }
@keyframes bp-reveal { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
.bp-page .reveal.in { opacity:1; transform:none; } /* compat con single-post.js */
.bp-page .d1 { animation-delay:.1s; } .bp-page .d2 { animation-delay:.22s; } .bp-page .d3 { animation-delay:.34s; }
@media (prefers-reduced-motion: reduce) { .bp-page .reveal { animation:none; opacity:1; transform:none; } }

/* ── POST HEADER (categoría + título, full-width) ── */
.bp-head {
  width: 100%;
  padding: 2.5rem 4.5rem 2.4rem;
  text-align: center;
  background: var(--white);
}
.bp-head-cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: #7a8a6b; font-weight: 500;
  margin-bottom: 1.4rem;
  text-decoration: none;
}
.bp-head-cat::before {
  content: ""; display: inline-block;
  width: 26px; height: 1px; background: #7a8a6b;
  vertical-align: middle; margin-right: .8rem;
  transform: translateY(-2px);
}
.bp-head-cat::after {
  content: ""; display: inline-block;
  width: 26px; height: 1px; background: #7a8a6b;
  vertical-align: middle; margin-left: .8rem;
  transform: translateY(-2px);
}
.bp-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--text);
  max-width: 1000px;
  margin: 0 auto;
}
.bp-title em { font-style: italic; font-weight: 400; color: var(--base-dk); }

/* ── HERO IMAGE — ancho completo ── */
.bp-hero {
  position: relative;
  width: 100%;
  height: 56vh; min-height: 380px;
  overflow: hidden;
  background: var(--text);
}
.bp-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── META (autor, fecha, lectura) tras imagen ── */
.bp-meta-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 4.5rem 2.4rem;
}
.bp-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--sand2);
  font-size: .78rem; color: var(--text-70);
  letter-spacing: .04em;
}
.bp-meta .bp-author {
  display: flex; align-items: center; gap: .7rem;
}
.bp-author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.bp-author-name { font-family: var(--serif); font-size: 1rem; color: var(--text); font-weight: 500; line-height: 1.15; }
.bp-author-role { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--base); }
.bp-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sand3); }

/* ── 2-COLUMN LAYOUT ── */
.bp-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4.5rem;
}
.bp-content {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.bp-content > * + * { margin-top: 1.4rem; }
.bp-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 400; line-height: 1.2;
  color: var(--text); letter-spacing: -.01em;
  margin: 3rem 0 1.2rem;
}
.bp-content h2 em { font-style: italic; color: var(--base-dk); }
.bp-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 500; line-height: 1.3;
  color: var(--text);
  margin: 2.4rem 0 .8rem;
}
.bp-content p { color: var(--text); }
.bp-content p strong { color: var(--text); font-weight: 500; }
.bp-content a {
  color: var(--base-dk); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s;
}
.bp-content a:hover { color: var(--text); }
.bp-content ul, .bp-content ol {
  padding-left: 1.4rem;
  color: var(--text);
}
.bp-content li { margin: .5rem 0; }
.bp-content li::marker { color: var(--base); }
.bp-content blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; font-weight: 400; line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--base);
  padding: .4rem 0 .4rem 1.8rem;
  margin: 2.6rem 0;
  max-width: 90%;
}
.bp-content blockquote cite {
  display: block;
  font-family: var(--sans); font-style: normal;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--base); margin-top: 1rem;
}
.bp-content figure {
  margin: 2.6rem 0;
}
.bp-content figure img {
  width: 100%; height: auto;
  border-radius: 4px;
}
.bp-content figcaption {
  font-size: .8rem; color: var(--text-40);
  font-style: italic; text-align: center;
  margin-top: .8rem;
}

/* CTA inline dentro del post */
.bp-cta-inline {
  background: var(--sand);
  border-left: 4px solid #7a8a6b;
  padding: 1.8rem 2rem;
  margin: 2.8rem 0;
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}
.bp-cta-inline-text {
  flex: 1; min-width: 220px;
}
.bp-cta-inline-text strong {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  color: var(--text); display: block; margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.bp-cta-inline-text span { font-size: .9rem; color: var(--text-70); }
.bp-cta-inline a {
  text-decoration: none;
  background: #7a8a6b;
  color: #fff;
  padding: .85rem 1.6rem;
  font-family: var(--sans); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: background .25s, transform .25s;
}
.bp-cta-inline a:hover { background: #6b7a5d; transform: translateY(-1px); }

/* Share row */
.bp-share {
  display: flex; align-items: center; gap: 1rem;
  margin: 3.4rem 0 1.4rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--sand2);
  border-bottom: 1px solid var(--sand2);
}
.bp-share-label {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-40);
}
.bp-share a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sand2);
  color: var(--text-70);
  transition: background .2s, color .2s, border-color .2s;
}
.bp-share a:hover { background: var(--text); color: var(--white); border-color: var(--text); }

/* ── SIDEBAR ── */
.bp-sidebar {
  position: relative;
}
.bp-sidebar-inner {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 2rem;
}
.bp-side-card {
  background: var(--white);
  border: 1px solid var(--sand2);
  padding: 1.4rem 1.4rem 1.5rem;
}
.bp-side-eye {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--base); font-weight: 500;
  margin-bottom: .8rem; display: block;
}
.bp-side-bio { text-align: center; }
.bp-side-bio-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  margin: 0 auto 1rem;
  border: 3px solid var(--sand);
}
.bp-side-bio h4 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  color: var(--text); margin: 0 0 .2rem;
}
.bp-side-bio-role {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--base); margin-bottom: 1rem; display: block;
}
.bp-side-bio p {
  font-size: .88rem; color: var(--text-70);
  line-height: 1.6; margin-bottom: 1.2rem;
}
.bp-side-cta-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #7a8a6b; color: #fff;
  padding: .75rem 1rem;
  box-sizing: border-box;
  font-family: var(--sans); font-size: .74rem;
  letter-spacing: .05em; text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background .25s, transform .25s;
}
.bp-side-cta-wa:hover { background: #6b7a5d; transform: translateY(-1px); }
.bp-side-cta-wa svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Sidebar booking card — destacado */
.bp-side-book {
  background: linear-gradient(135deg, #e8dcc8 0%, #f5ede0 100%);
  border-left: 4px solid #7a8a6b;
  padding: 1.6rem 1.4rem;
}
.bp-side-book h4 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  color: var(--text); margin: .3rem 0 .6rem; line-height: 1.25;
  letter-spacing: -.01em;
}
.bp-side-book h4 strong { color: #7a8a6b; font-weight: 600; }
.bp-side-book ul {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
}
.bp-side-book li {
  font-size: .82rem; color: var(--text-70);
  display: flex; align-items: center; gap: .5rem;
  margin: .35rem 0;
}
.bp-side-book li::before {
  content: '✓'; color: #7a8a6b; font-weight: 700;
}
.bp-side-book-foot {
  font-size: .72rem; color: var(--text-40);
  text-align: center; font-style: italic;
  margin-top: .8rem;
}

/* Related mini cards in sidebar */
.bp-related-mini {
  display: flex; flex-direction: column; gap: 1rem;
}
.bp-related-mini a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .9rem;
  align-items: center;
  text-decoration: none;
  transition: transform .25s;
}
.bp-related-mini a:hover { transform: translateX(2px); }
.bp-related-mini img {
  width: 72px; height: 72px;
  object-fit: cover;
}
.bp-related-mini h5 {
  font-family: var(--serif); font-size: .95rem; font-weight: 500;
  color: var(--text); line-height: 1.3; margin: 0;
}
.bp-related-mini span {
  display: block;
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--base); margin-top: .25rem;
}

/* Newsletter sidebar */
.bp-side-news input {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--sand2);
  background: var(--white);
  font-family: var(--sans); font-size: .85rem;
  margin-bottom: .6rem;
  outline: none;
  box-sizing: border-box;
}
.bp-side-news input:focus { border-color: var(--base); }
.bp-side-news button {
  width: 100%;
  background: var(--text); color: #fff;
  padding: .8rem 1rem;
  border: none;
  font-family: var(--sans); font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s;
}
.bp-side-news button:hover { background: #000; }
.bp-side-news p {
  font-size: .7rem; color: var(--text-40);
  margin: .8rem 0 0; line-height: 1.4;
}

/* ── COMMENTS ── */
.bp-comments {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4.5rem 4rem;
}
.bp-comments-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand2);
}
.bp-comments-head h2 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 400;
  color: var(--text); margin: 0;
}
.bp-comments-head span {
  font-size: .8rem; color: var(--text-40);
  letter-spacing: .04em;
}
.bp-comments ol.comment-list { list-style: none; margin: 0; padding: 0; }
.bp-comments ol.comment-list ol.children { list-style: none; margin: 0 0 0 3.2rem; padding: 0; }
.bp-comment {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--sand2);
}
.bp-comment-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.2rem;
  color: var(--base-dk); font-weight: 500;
  overflow: hidden;
}
.bp-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-comment-body strong {
  display: block; font-family: var(--serif);
  font-size: 1rem; font-weight: 500;
  color: var(--text); margin-bottom: .2rem;
}
.bp-comment-body time {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-40); display: block; margin-bottom: .6rem;
}
.bp-comment-body p {
  font-size: .95rem; color: var(--text-70);
  line-height: 1.7; margin: 0;
}
.bp-comment-awaiting-moderation {
  font-size: .8rem; font-style: italic; color: var(--text-40);
}
.bp-comment-reply {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--base); margin-top: .6rem; display: inline-block;
  cursor: pointer;
}
.bp-comment-reply a { color: inherit; text-decoration: none; }
.bp-comment-reply:hover { color: var(--text); }
.bp-comment-form {
  margin-top: 2.4rem;
  display: grid; gap: 1rem;
}
.bp-comment-form-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--text); margin: 1rem 0 0;
}
.bp-comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.bp-comment-form p { margin: 0; }
.bp-comment-form input, .bp-comment-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--sand2);
  background: var(--white);
  font-family: var(--sans); font-size: .9rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
.bp-comment-form input:focus, .bp-comment-form textarea:focus { border-color: var(--base); }
.bp-comment-form button {
  justify-self: start;
  background: var(--text); color: #fff;
  padding: .9rem 2rem;
  border: none;
  font-family: var(--sans); font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; cursor: pointer;
  transition: background .25s;
}
.bp-comment-form button:hover { background: #000; }

/* ── SIGUE LEYENDO (blog-grid / blog-card, verbatim de web/styles.css, namespaced) ── */
.bp-page .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.8rem;
}
.bp-page .blog-card {
  background: var(--white);
  border: 1px solid var(--sand2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
}
.bp-page .blog-card:hover { box-shadow: 0 6px 24px rgba(37,32,24,.1); transform: translateY(-3px); }
.bp-page .blog-card-img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block;
}
.bp-page .blog-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex; flex-direction: column; gap: .45rem; flex: 1;
}
.bp-page .blog-card-tag {
  font-family: var(--sans); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--base); font-weight: 500;
}
.bp-page .blog-card-body h4 {
  font-family: var(--serif); font-size: 1rem; font-weight: 500;
  line-height: 1.38; color: var(--text); margin: 0;
}
.bp-page .blog-card-link {
  font-family: var(--sans); font-size: .78rem; color: var(--base-dk);
  text-decoration: none; font-weight: 500; margin-top: auto; padding-top: .5rem;
  letter-spacing: .04em;
}
.bp-page .blog-card-link:hover { color: var(--text); }

/* ── RELATED POSTS (bottom) ── */
.bp-related {
  background: var(--sand);
  padding: 4.4rem 4.5rem;
}
.bp-related-inner {
  max-width: 1180px; margin: 0 auto;
}
.bp-related-head {
  text-align: center; margin-bottom: 2.8rem;
}
.bp-related-head .s-rule { margin: 1.4rem auto; }

/* ── FINAL CRO BANNER ── */
.bp-final-cro {
  background: var(--moss);
  padding: 4.6rem 4.5rem;
  text-align: center;
  color: #fff;
}
.bp-final-cro-inner { max-width: 760px; margin: 0 auto; }
.bp-final-cro-eye {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 1rem; display: inline-block;
}
.bp-final-cro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 300; line-height: 1.15;
  color: #fff; letter-spacing: -.015em;
  margin: 0 0 1rem;
}
.bp-final-cro h2 em { font-style: italic; font-weight: 300; color: #f5ede0; }
.bp-final-cro p {
  font-size: 1rem; color: rgba(255,255,255,.78);
  max-width: 540px; margin: 0 auto 2rem;
  line-height: 1.7;
}
.bp-final-cro-actions {
  display: flex; justify-content: center; align-items: center;
  gap: 1.2rem; flex-wrap: wrap;
}
.bp-final-cro-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--text);
  padding: 1rem 2rem;
  font-family: var(--sans); font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background .25s, transform .25s;
}
.bp-final-cro-btn:hover { background: #f5ede0; transform: translateY(-2px); }
.bp-final-cro-sub {
  font-size: .78rem; color: rgba(255,255,255,.6);
  letter-spacing: .04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .bp-head { padding: 6.6rem 2rem 2rem; }
  .bp-hero { height: 44vh; min-height: 280px; }
  .bp-meta-block { padding: 1.6rem 2rem 2rem; }
  .bp-layout { padding: 0 2rem 3rem; grid-template-columns: 1fr; gap: 3rem; }
  .bp-sidebar-inner { position: static; }
  .bp-comments { padding: 0 2rem 3rem; }
  .bp-related { padding: 3rem 2rem; }
  .bp-final-cro { padding: 3.4rem 2rem; }
}
@media (max-width: 600px) {
  .bp-head { padding: 5.6rem 1.2rem 1.6rem; }
  .bp-head-cat::before, .bp-head-cat::after { width: 18px; margin: 0 .5rem; }
  .bp-meta-block { padding: 1.2rem 1.2rem 1.4rem; }
  .bp-meta { gap: 1rem; }
  .bp-layout { padding: 0 1.2rem 2.4rem; gap: 2.4rem; }
  .bp-cta-inline { padding: 1.4rem; }
  .bp-cta-inline a { width: 100%; text-align: center; justify-content: center; }
  .bp-comments { padding: 0 1.2rem 2.4rem; }
  .bp-comments-head h2 { font-size: 1.4rem; }
  .bp-comment-form .row { grid-template-columns: 1fr; }
  .bp-related { padding: 2.4rem 1.2rem; }
  .bp-final-cro { padding: 2.6rem 1.2rem; }
  .bp-content blockquote { font-size: 1.2rem; padding-left: 1.2rem; }
  .bp-page .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
}
