/* ============================================================
   KABBALAH SHORTS GALLERY — Museo Digital Premium
   Clase aplicada al grupo: .kabbalah-shorts-gallery
   ============================================================ */

.kabbalah-shorts-gallery {
  position: relative;
  overflow: hidden;
}

/* Filete dorado superior */
.kabbalah-shorts-gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, #C9A84C 30%, #E8C96A 50%, #C9A84C 70%, transparent 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Resplandor ambiental dorado de fondo */
.kabbalah-shorts-gallery::after {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(201,168,76,0.05) 0%, transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Heading */
.kabbalah-shorts-gallery h2 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  padding-bottom: 0.5em;
  margin-bottom: 1.5em;
  position: relative;
}

/* Línea dorada bajo el título */
.kabbalah-shorts-gallery h2::after {
  content: '';
  display: block;
  width: 55px;
  height: 1.5px;
  background: linear-gradient(90deg, #C9A84C, #E8C96A, transparent);
  margin-top: 0.45em;
}

/* Etiquetas "Short #N" */
.kabbalah-shorts-gallery .wp-block-column p {
  font-family: Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #C9A84C !important;
  padding: 0.6em 0.8em 0.8em;
  margin: 0;
}

/* Tarjetas */
.kabbalah-shorts-gallery .wp-block-column {
  background: #161616 !important;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 1px 6px rgba(201,168,76,0.07);
  overflow: hidden;
  transition:
    transform 0.36s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.36s cubic-bezier(0.4,0,0.2,1),
    border-color 0.36s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  z-index: 1;
}

/* Filete dorado superior de cada tarjeta */
.kabbalah-shorts-gallery .wp-block-column::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #C9A84C 0%, #E8C96A 50%, transparent 100%);
  opacity: 0.65;
}

/* Hover: elevación + zoom ligero */
.kabbalah-shorts-gallery .wp-block-column:hover {
  transform: translateY(-7px) scale(1.018);
  box-shadow: 0 20px 52px rgba(0,0,0,0.78), 0 3px 18px rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.52);
}

/* Iframes */
.kabbalah-shorts-gallery .wp-block-embed__wrapper {
  overflow: hidden;
}

.kabbalah-shorts-gallery .wp-block-embed__wrapper iframe {
  display: block;
  border: none;
  transition: filter 0.36s ease;
}

.kabbalah-shorts-gallery .wp-block-column:hover .wp-block-embed__wrapper iframe {
  filter: brightness(1.07) contrast(1.02);
}

/* Espaciado entre filas */
.kabbalah-shorts-gallery .wp-block-columns {
  gap: clamp(0.8rem, 2vw, 1.6rem) !important;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Responsive: tablet */
@media (max-width: 860px) {
  .kabbalah-shorts-gallery .wp-block-columns {
    flex-direction: column;
  }
  .kabbalah-shorts-gallery .wp-block-column {
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto;
  }
  .kabbalah-shorts-gallery .wp-block-column:hover {
    transform: translateY(-3px) scale(1.01);
  }
}

/* Responsive: móvil */
@media (max-width: 580px) {
  .kabbalah-shorts-gallery .wp-block-column {
    border-radius: 7px;
  }
}

/* ============================================================
   FIX — Heading vacío | Crítica Bíblica Avanzada (page-id-15)
   ============================================================ */

body.page-id-15 .wp-site-blocks > h2.wp-block-heading:empty {
  display: none !important;
}

\n\n/* BESA — Gmirkin — post 2785 */\n.postid-2785 {
  background: #f8f4ec;
  color: #292722;
}

.postid-2785 .wp-block-post-date {
  color: #6f685e;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.postid-2785 .wp-block-post-title {
  max-width: 940px;
  color: #aa8242;
  font-family: "Alvarado", "EB Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.besa-gmirkin {
  --besa-paper: #f8f4ec;
  --besa-ink: #292722;
  --besa-muted: #6f685e;
  --besa-rule: #cfc5b3;
  --besa-gold: #aa8242;
  --besa-blue: #1b2c4e;
  box-sizing: border-box;
  color: var(--besa-ink);
  font-family: "Alvarado", "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.78;
  letter-spacing: 0.004em;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.besa-gmirkin * {
  box-sizing: border-box;
}

.besa-gmirkin > * {
  max-width: 780px;
}

.besa-gmirkin p {
  margin-top: 0 !important;
  margin-bottom: 1.35em !important;
  color: var(--besa-ink);
  font-size: 20px !important;
  line-height: 1.78 !important;
  text-align: left !important;
  text-wrap: pretty;
  hyphens: none;
}

.besa-gmirkin > p:first-of-type {
  max-width: 900px;
  margin-bottom: clamp(2rem, 5vw, 4rem) !important;
  color: var(--besa-blue);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem) !important;
  line-height: 1.28 !important;
  text-align: center !important;
  text-wrap: balance;
}

.besa-gmirkin > .wp-block-separator:first-of-type {
  width: 96px;
  margin: 0 auto clamp(2.25rem, 5vw, 4rem);
  border: 0;
  border-top: 1px solid var(--besa-gold);
  opacity: 0.8;
}

.besa-gmirkin h2,
.besa-gmirkin h3 {
  font-family: "Alvarado", "EB Garamond", Georgia, serif;
  text-wrap: balance;
}

.besa-gmirkin h2 {
  position: relative;
  margin-top: clamp(4.5rem, 9vw, 8rem) !important;
  margin-bottom: 1.15rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--besa-rule);
  color: var(--besa-blue);
  font-size: clamp(2rem, 3.7vw, 3.05rem) !important;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08 !important;
}

.besa-gmirkin h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 78px;
  border-top: 3px solid var(--besa-gold);
}

.besa-gmirkin h3 {
  margin-top: 3rem !important;
  margin-bottom: 0.8rem !important;
  color: var(--besa-blue);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
  font-weight: 600;
  line-height: 1.2 !important;
}

.besa-gmirkin h3:nth-of-type(-n + 4) {
  margin-top: 2.1rem !important;
  color: var(--besa-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35 !important;
  text-transform: uppercase;
}

.besa-gmirkin h3:nth-of-type(1) + p,
.besa-gmirkin h3:nth-of-type(2) + p {
  margin-bottom: 2.3rem !important;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-left: 3px solid var(--besa-gold);
  background: rgba(255, 255, 255, 0.42);
  color: #403c35;
  font-size: 18.5px !important;
  line-height: 1.7 !important;
}

.besa-gmirkin h3:nth-of-type(3) + p,
.besa-gmirkin h3:nth-of-type(4) + p {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--besa-rule);
  color: var(--besa-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

.besa-gmirkin em {
  font-style: italic;
}

.besa-gmirkin a {
  color: var(--besa-blue);
  text-decoration-color: var(--besa-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

.besa-gmirkin a:hover {
  color: var(--besa-gold);
}

.besa-gmirkin a:focus-visible {
  outline: 2px solid var(--besa-gold);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .postid-2785 .wp-block-post-title {
    max-width: calc(100vw - 40px);
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.02;
  }

  .besa-gmirkin {
    width: min(100%, calc(100vw - 32px));
    font-size: 18px;
    line-height: 1.7;
  }

  .besa-gmirkin p {
    font-size: 18px !important;
    line-height: 1.72 !important;
  }

  .besa-gmirkin > p:first-of-type {
    font-size: clamp(1.25rem, 7vw, 1.65rem) !important;
  }

  .besa-gmirkin h2 {
    margin-top: 4.25rem !important;
    font-size: clamp(1.75rem, 9vw, 2.35rem) !important;
  }
}



.besa-gmirkin a {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* BESA — Critias, Atlantis y Génesis (post 2794) */
.postid-2794 {
  background: #f6f0e5;
  color: #282621;
}

.postid-2794 .wp-block-post-date {
  color: #70685e;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.postid-2794 .wp-block-post-title {
  max-width: 980px;
  color: #9a6b35;
  font-family: "Alvarado", "EB Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.35rem);
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 0.98;
  text-wrap: balance;
}

.postid-2794 .wp-block-post-featured-image {
  margin-top: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.postid-2794 .wp-block-post-featured-image img {
  border: 1px solid rgba(101, 72, 39, 0.28);
  border-radius: 2px;
  box-shadow: 0 22px 52px rgba(35, 30, 25, 0.18);
}

.besa-critias {
  --besa-paper: #f6f0e5;
  --besa-ink: #282621;
  --besa-muted: #70685e;
  --besa-rule: #cec2ad;
  --besa-gold: #9a6b35;
  --besa-blue: #172b4d;
  --besa-terracotta: #8a4837;
  box-sizing: border-box;
  color: var(--besa-ink);
  font-family: "Alvarado", "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.78;
  letter-spacing: 0.004em;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.besa-critias * {
  box-sizing: border-box;
}

.besa-critias > * {
  max-width: 780px;
}

.besa-critias p {
  margin-top: 0 !important;
  margin-bottom: 1.35em !important;
  color: var(--besa-ink);
  font-size: 20px !important;
  line-height: 1.78 !important;
  text-align: left !important;
  text-wrap: pretty;
  hyphens: none;
}

.besa-critias > p:first-of-type {
  max-width: 920px;
  margin-bottom: clamp(2rem, 5vw, 4rem) !important;
  color: var(--besa-blue);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem) !important;
  line-height: 1.28 !important;
  text-align: center !important;
  text-wrap: balance;
}

.besa-critias > .wp-block-separator:first-of-type {
  width: 96px;
  margin: 0 auto clamp(2.25rem, 5vw, 4rem);
  border: 0;
  border-top: 1px solid var(--besa-gold);
  opacity: 0.82;
}

.besa-critias h2,
.besa-critias h3 {
  font-family: "Alvarado", "EB Garamond", Georgia, serif;
  text-wrap: balance;
}

.besa-critias h2 {
  position: relative;
  margin-top: clamp(4.5rem, 9vw, 8rem) !important;
  margin-bottom: 1.15rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--besa-rule);
  color: var(--besa-blue);
  font-size: clamp(2rem, 3.7vw, 3.05rem) !important;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08 !important;
}

.besa-critias h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 78px;
  border-top: 3px solid var(--besa-terracotta);
}

.besa-critias h3 {
  margin-top: 3rem !important;
  margin-bottom: 0.8rem !important;
  color: var(--besa-blue);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
  font-weight: 600;
  line-height: 1.2 !important;
}

.besa-critias h3:nth-of-type(-n + 4) {
  margin-top: 2.1rem !important;
  color: var(--besa-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35 !important;
  text-transform: uppercase;
}

.besa-critias h3:nth-of-type(1) + p,
.besa-critias h3:nth-of-type(2) + p {
  margin-bottom: 2.3rem !important;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-left: 3px solid var(--besa-terracotta);
  background: rgba(255, 255, 255, 0.45);
  color: #403b34;
  font-size: 18.5px !important;
  line-height: 1.7 !important;
}

.besa-critias h3:nth-of-type(3) + p,
.besa-critias h3:nth-of-type(4) + p {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--besa-rule);
  color: var(--besa-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

.besa-critias em {
  font-style: italic;
}

.besa-critias a {
  color: var(--besa-blue);
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration-color: var(--besa-terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

.besa-critias a:hover {
  color: var(--besa-terracotta);
}

.besa-critias a:focus-visible {
  outline: 2px solid var(--besa-gold);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .postid-2794 .wp-block-post-title {
    max-width: calc(100vw - 40px);
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.02;
  }

  .postid-2794 .wp-block-post-featured-image {
    margin-bottom: 3rem;
  }

  .besa-critias {
    width: min(100%, calc(100vw - 32px));
    font-size: 18px;
    line-height: 1.7;
  }

  .besa-critias p {
    font-size: 18px !important;
    line-height: 1.72 !important;
  }

  .besa-critias > p:first-of-type {
    font-size: clamp(1.25rem, 7vw, 1.65rem) !important;
  }

  .besa-critias h2 {
    margin-top: 4.25rem !important;
    font-size: clamp(1.75rem, 9vw, 2.35rem) !important;
  }
}

