/* =========================================================
   Páginas internas: blog, entradas, páginas y 404
   ========================================================= */

/* Cabecera de página */
.page-hero {
  position: relative; min-height: 52vh; display: flex; align-items: flex-end;
  padding: 180px 0 70px; text-align: center; isolation: isolate; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--bg) center 40% / cover no-repeat, var(--earth);
  animation: kenburns 40s ease-in-out infinite alternate;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,14,16,.55) 0%, rgba(8,14,16,.45) 50%, var(--night) 100%);
}
.page-hero__inner { display: flex; flex-direction: column; align-items: center; }
.page-hero .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: .7; }
.page-hero__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 72px); line-height: 1.08;
  max-width: 900px; margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0,0,0,.45);
}

/* Listado del blog */
.blog { background: var(--night); }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: rgba(255,255,255,.025); border: 1px solid rgba(212,169,79,.16);
  transition: transform .5s var(--ease), border-color .4s;
}
.post-card:hover { transform: translateY(-8px); border-color: rgba(212,169,79,.5); }
.post-card__img {
  display: block; aspect-ratio: 16 / 10;
  background: var(--bg, linear-gradient(160deg, var(--coca), var(--earth))) center / cover no-repeat;
}
.post-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-card h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.post-card h2 a:hover { color: var(--gold-soft); }
.post-card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.blog__pagination { margin-top: 60px; display: flex; justify-content: center; }
.blog__pagination .nav-links { display: flex; gap: 8px; }
.blog__pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold-soft); transition: background .3s, color .3s;
}
.blog__pagination .page-numbers.current, .blog__pagination .page-numbers:hover { background: var(--gold); color: #1a140a; border-color: var(--gold); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Contenido de entradas y páginas */
.entry { max-width: 780px; font-size: 18px; line-height: 1.85; color: rgba(243,236,224,.86); }
.entry--center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.entry > * + * { margin-top: 1.2em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--serif); font-weight: 500; color: var(--ivory); line-height: 1.2; margin-top: 1.8em; }
.entry h2 { font-size: 38px; } .entry h3 { font-size: 30px; } .entry h4 { font-size: 24px; }
.entry a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry a.btn { text-decoration: none; color: #1a140a; }
.entry strong { color: var(--ivory); font-weight: 500; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry blockquote {
  margin: 2em 0; padding: 10px 0 10px 28px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.45; color: var(--ivory);
}
.entry img, .entry figure { max-width: 100%; height: auto; border-radius: 14px; }
.entry figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 12px; border-bottom: 1px solid rgba(243,236,224,.1); text-align: left; }
.entry .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }

.entry__cta {
  margin-top: 3em !important; padding: 40px; border-radius: var(--radius); text-align: center;
  background: radial-gradient(ellipse at top, rgba(212,169,79,.14), transparent 70%), rgba(255,255,255,.02);
  border: 1px solid var(--line);
}
.entry__cta p { font-family: var(--serif); font-size: 28px; color: var(--ivory); margin-bottom: 18px; }
.entry__nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; border-top: 1px solid var(--line); font-size: 15px; }
.entry__nav a { text-decoration: none; }

/* Comentarios */
.comments-area { margin-top: 3em; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid rgba(243,236,224,.08); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; color: var(--ivory);
  background: rgba(255,255,255,.05); border: 1px solid rgba(243,236,224,.22); font: inherit; font-size: 15px;
}
.comment-form .submit {
  padding: 14px 30px; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--gold); color: #1a140a; font: 500 13px var(--sans); letter-spacing: .18em; text-transform: uppercase;
}

/* Barra de administración de WordPress */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

@media (max-width: 1024px) { .blog__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .blog__grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 40vh; padding: 140px 0 50px; }
  .entry { font-size: 17px; }
  .entry__nav { flex-direction: column; }
}

/* ---------- Portada editable (v1.1) ---------- */
.calling__stats .calling__stat-txt { display: block; max-width: 150px; font-size: 13px; line-height: 1.5; }
.card__desc { font-size: 14.5px !important; line-height: 1.6; color: var(--muted); margin-bottom: 14px !important; flex: 0 0 auto !important; }
.calling__body p { color: var(--muted); margin-bottom: 20px; max-width: 540px; }
/* Lápices del Personalizador por encima de las animaciones */
.customize-partial-edit-shortcut button { z-index: 30 !important; }
.footer .footer__title { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 26px; }

/* ---------- Pie ampliado (v1.4): enlaces, métodos de pago y WhatsApp flotante ---------- */
.footer__grid--enlaces { padding-top: 54px; border-top: 1px solid rgba(212,169,79,.14); }
.footer__links { list-style: none; display: grid; gap: 4px; }
.footer__links li { margin: 0; }
.footer__links a {
  display: inline-flex; align-items: flex-start; gap: 10px; padding: 4px 0;
  font-size: 15px; color: var(--muted); transition: color .3s, transform .3s var(--ease);
}
.footer__links a::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  border: 1.5px solid var(--gold); transition: background .3s;
}
.footer__links a:hover { color: var(--gold-soft); transform: translateX(3px); }
.footer__links a:hover::before { background: var(--gold); }
.contact li > span { line-height: 1.5; }
.pagos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; }
.pagos li {
  margin: 0; height: 56px; display: grid; place-items: center; border-radius: 10px;
  background: #fff; box-shadow: 0 8px 20px -12px rgba(0,0,0,.6); transition: transform .3s var(--ease);
}
.pagos li:hover { transform: translateY(-3px); }
.pagos svg { width: 78%; height: 70%; }
.pagos__img { max-width: 320px; border-radius: 12px; background: #fff; padding: 10px; }

.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transition: transform .3s var(--ease), box-shadow .3s;
  animation: waLatido 2.8s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 36px -8px rgba(37,211,102,.9); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waLatido { 0%, 100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.45); } 50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,0); } }
/* el botón de volver arriba sube para no tapar al de WhatsApp */
.to-top { bottom: 96px; right: 29px; }
@media (max-width: 760px) {
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 18px; bottom: 82px; }
  .pagos { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

.footer__aviso { font-size: 13px; color: var(--gold-soft); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.footer__aviso a { color: var(--gold); text-decoration: underline; }

/* Libro de Reclamaciones (distintivo del pie, siempre visible) */
.lr-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 18px 10px 12px;
  border-radius: 12px; background: #fff; color: #1f1f1f; max-width: 320px;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.8); transition: transform .2s, box-shadow .2s;
}
.lr-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(212,169,79,.55); color: #1f1f1f; }
.lr-badge svg { width: 42px; height: 35px; flex: none; fill: none; stroke: #1f1f1f; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.lr-badge span { display: grid; gap: 1px; line-height: 1.2; }
.lr-badge strong { font: 600 13.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.lr-badge small { font-size: 12px; color: #5b5b5b; }