/* Base legible para las copias Gutenberg procedentes de Divi. */
body:has(.forjando-migrated-section) .ct-container-full {
  padding-block: 0 !important;
}

body:has(.forjando-migrated-section) .hero-section,
body:has(.forjando-migrated-section) .entry-header {
  display: none !important;
}

body:has(.forjando-migrated-section) .entry-content {
  margin-block: 0 !important;
}

body:has(.forjando-migrated-section) .entry-content > * + * {
  margin-block-start: 0 !important;
}

.entry-content.is-layout-constrained > .forjando-migrated-section {
  width: 100vw;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) !important;
}

.forjando-migrated-section:not(.forjando-rendered-composition) {
  padding: clamp(64px, 7vw, 112px) max(24px, calc((100vw - 1240px) / 2));
  background: #122939;
  color: #f6f5f0;
}

/* Las páginas de secciones son escenas completas; los artículos conservan
   su ritmo de lectura y nunca reciben una altura artificial. */
body.page:has(.forjando-migrated-section) .entry-content > .forjando-migrated-section:not(.forjando-rendered-composition) {
  box-sizing: border-box;
  min-height: 100svh !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.single-post:has(.forjando-migrated-section) .entry-content > .forjando-migrated-section:first-child {
  min-height: min(85svh, 900px);
}

.forjando-migrated-section:not(.forjando-rendered-composition):not(.forjando-injected-section):nth-of-type(even) {
  background: #0d2130;
}

.forjando-migrated-section:is(.wp-block-cover) {
  isolation: isolate;
}

.forjando-migrated-section .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(8, 22, 32, .88), rgba(8, 22, 32, .54)) !important;
}

.forjando-migrated-section:is(.wp-block-cover) > .wp-block-cover__inner-container {
  width: 100%;
}

.forjando-motion-ready .forjando-migrated-section.wp-block-cover > .wp-block-cover__image-background {
  transform: translate3d(0, var(--forjando-image-shift, 0px), 0) scale(1.08);
  will-change: transform;
}

.forjando-migrated-section .forjando-migrated-row {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

.forjando-migrated-section .wp-block-columns {
  align-items: center !important;
  gap: clamp(28px, 4vw, 72px);
}

.forjando-migrated-section .wp-block-column {
  min-width: 0;
}

.forjando-migrated-section .forjando-migrated-column > * + *,
.forjando-migrated-section .wp-block-column > * + * {
  margin-block-start: clamp(12px, 1.8vw, 24px) !important;
}

.forjando-migrated-section:not(.forjando-rendered-composition) :is(h1, h2, h3, h4, h5, h6) {
  max-width: none;
  color: #f6f5f0 !important;
  overflow-wrap: normal;
  text-wrap: balance;
}

.forjando-migrated-section:not(.forjando-rendered-composition) h1 {
  max-width: 16ch;
  font-size: clamp(3.1rem, 5vw, 5.4rem);
  line-height: .9;
}

.forjando-migrated-section:not(.forjando-rendered-composition) h2 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  line-height: .94;
}

.forjando-migrated-section:not(.forjando-rendered-composition) h3 {
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.03;
}

.forjando-migrated-section:not(.forjando-rendered-composition):has(h1 + h2) h1 {
  max-width: 25ch;
  margin-inline: auto;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
}

.forjando-migrated-section:not(.forjando-rendered-composition):has(h1 + h2) h2 {
  max-width: 38ch;
  margin-inline: auto;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 1.15;
}

.forjando-migrated-section:not(.forjando-rendered-composition) :is(p, li, blockquote, .wp-block-html, summary) {
  color: #dce4e6 !important;
  font-size: clamp(1rem, 1.2vw, 1.17rem);
  line-height: 1.55;
}

.forjando-migrated-section:not(.forjando-rendered-composition) :is(p, li, blockquote) {
  max-width: 76ch;
}

.forjando-migrated-section:not(.forjando-rendered-composition) :is(p[class*="eyebrow"], p[class*="kicker"]) {
  color: #63e9b5 !important;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.forjando-migrated-section:not(.forjando-rendered-composition) p span,
.forjando-migrated-section:not(.forjando-rendered-composition) :is(h1, h2, h3) span {
  color: inherit !important;
}

.forjando-migrated-section .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.forjando-migrated-section .wp-block-image:has(img[src*="logo" i]),
.forjando-migrated-section .wp-block-image:has(img[src*="Estamos-en-los-medios-4" i]) {
  width: min(100%, 260px);
  margin-inline: 0;
}

.forjando-migrated-section .wp-block-image:has(img[src*="logo" i]) img,
.forjando-migrated-section .wp-block-image:has(img[src*="Estamos-en-los-medios-4" i]) img {
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
}

.forjando-migrated-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.forjando-migrated-gallery .wp-block-image {
  margin: 0;
}

.forjando-migrated-gallery img {
  width: 100%;
  height: 230px !important;
  object-fit: cover;
}

.forjando-migrated-icon {
  color: #63e9b5;
  font-size: 2.25rem;
  line-height: 1;
}

.forjando-legacy-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 24px;
  background: #0d2130;
}

.forjando-legacy-feature img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.forjando-legacy-feature h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.forjando-migrated-section .wp-block-button__link {
  color: #081620 !important;
}

.forjando-migrated-section .wp-block-button__link:hover,
.forjando-migrated-section .wp-block-button__link:focus-visible {
  background: #63e9b5;
  color: #081620 !important;
}

.forjando-migrated-section .wp-block-details {
  padding: 20px 0;
  border-block-end: 1px solid rgba(246, 245, 240, .25);
}

.forjando-migrated-section .wp-block-details summary {
  color: #f6f5f0 !important;
  font-weight: 800;
}

.forjando-contact-form {
  width: 100%;
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid rgba(246, 245, 240, .24);
  background: #172f40;
  color: #f6f5f0;
}

.forjando-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.forjando-contact-form label {
  display: block;
  color: #f6f5f0;
  font-weight: 650;
}

.forjando-contact-form label span {
  color: #c7cbc8;
  font-weight: 400;
}

.forjando-contact-form input:not([type='checkbox']):not([type='hidden']),
.forjando-contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(246, 245, 240, .45);
  border-radius: 0;
  background: #0d2130;
  color: #f6f5f0;
  font: inherit;
}

.forjando-contact-form :is(input, textarea):focus-visible {
  outline: 2px solid #63e9b5;
  outline-offset: 2px;
}

.forjando-contact-form__full {
  grid-column: 1 / -1;
}

.forjando-contact-form__privacy {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
}

.forjando-contact-form__privacy input {
  margin-top: 6px;
}

.forjando-contact-form__actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.forjando-contact-form__captcha {
  min-width: 135px;
}

.forjando-contact-form__captcha input {
  max-width: 120px;
}

.forjando-contact-form button {
  min-height: 50px;
  padding: 12px 28px;
  border: 0;
  border-radius: 0;
  background: #ff7a16;
  color: #081620;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  cursor: pointer;
}

.forjando-contact-form__notice {
  padding: 12px 16px;
  border-inline-start: 3px solid #63e9b5;
}

.forjando-contact-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 781px) {
  .forjando-migrated-section .forjando-migrated-column:has(> table) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .forjando-migrated-section .forjando-migrated-column > table {
    min-width: 620px;
  }

  /* En móvil, las escenas de texto siguen su contenido: una altura forzada
     dejaba grandes vacíos entre tarjetas, formularios y llamadas a la acción. */
  body.page:has(.forjando-migrated-section) .entry-content > .forjando-migrated-section:not(:first-child):not(.wp-block-cover):not(.forjando-rendered-composition) {
    min-height: auto !important;
  }

  .forjando-migrated-section:not(.forjando-rendered-composition) {
    padding: 64px 24px;
  }

  .forjando-migrated-section .wp-block-columns {
    gap: 28px;
  }

  .forjando-migrated-section .wp-block-cover__background {
    background: linear-gradient(0deg, rgba(8, 22, 32, .93), rgba(8, 22, 32, .32)) !important;
  }

  .forjando-migrated-section:not(.forjando-rendered-composition) h1 {
    font-size: clamp(2.6rem, 11vw, 4.8rem);
  }

  .forjando-migrated-section:not(.forjando-rendered-composition) h2 {
    font-size: clamp(2.3rem, 9vw, 4rem);
  }

  .forjando-migrated-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forjando-legacy-feature {
    grid-template-columns: 1fr;
  }

  .forjando-contact-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .forjando-motion-ready .forjando-migrated-section.wp-block-cover > .wp-block-cover__image-background {
    transform: none;
    will-change: auto;
  }
}

/* Secuencia editorial común: solo se activa desde page-stack.js en las páginas
   que no tienen una coreografía específica. Cada capítulo cubre al anterior al
   alcanzar el borde superior; las escenas extensas mantienen el flujo para que
   el contenido se pueda leer entero. */
@media (min-width: 768px) {
  html.forjando-page-stack-active body.page .entry-content > .forjando-stack-section {
    position: relative;
    z-index: var(--forjando-stack-index);
    isolation: isolate;
  }

  html.forjando-page-stack-active body.page .entry-content > .forjando-stack-section:not(.forjando-stack-section--flow) {
    position: sticky;
    top: 0;
    min-height: 100svh !important;
    /* Cada capítulo debe actuar como un panel opaco al elevarse sobre el
       anterior. Las composiciones ya definen su propio color o imagen. */
    background-clip: padding-box;
    box-shadow: 0 -18px 38px rgba(4, 15, 23, .18);
  }
}

html.forjando-page-stack-active .forjando-stack-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .68s cubic-bezier(.2, .76, .22, 1),
    transform .68s cubic-bezier(.2, .76, .22, 1);
  transition-delay: var(--forjando-stack-delay, 0ms);
}

html.forjando-page-stack-active .forjando-stack-reveal.is-stack-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html.forjando-page-stack-active .forjando-stack-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Información que Divi insertaba en tiempo de ejecución: horarios, precios,
   contacto y reserva siguen visibles y legibles en las copias Gutenberg. */
.forjando-injected-section > :is(.alfa-schedule-details__inner, .alfa-price-details__inner, .alfa-contact-details__inner) {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}
.forjando-injected-section :is(h2, h3, p, ul) { margin-block: 0; }
.forjando-injected-section :is(.alfa-schedule-details__eyebrow, .alfa-price-details__eyebrow, .forjando-injected-section__eyebrow, .alfa-contact-details__heading > p) {
  color: #63e9b5 !important;
  font-size: .76rem !important;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.forjando-injected-section :is(.alfa-schedule-details__heading, .alfa-price-details__heading, .alfa-contact-details__heading) {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(30px, 5vw, 70px);
}
.forjando-injected-section :is(.alfa-schedule-details__grid, .alfa-price-conditions, .alfa-price-rules__grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-block: clamp(28px, 4vw, 55px);
}
.forjando-injected-section :is(.alfa-schedule-details__item, .alfa-price-conditions article, .alfa-price-rules__grid article, .alfa-contact-details__card) {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 2.5vw, 36px);
  border: 1px solid rgba(246,245,240,.2);
  background: #193547;
}
.forjando-injected-section :is(.alfa-schedule-details__item, .alfa-price-conditions article, .alfa-price-rules__grid article) > :is(span, b, .alfa-price-conditions__number) {
  color: #63e9b5 !important;
  font-size: clamp(2rem, 3.5vw, 3.8rem) !important;
  font-weight: 900;
  line-height: 1;
}
.forjando-injected-section .alfa-price-rules {
  margin-top: clamp(64px, 8vw, 120px);
}
.forjando-injected-section .alfa-price-rules__heading {
  display: grid;
  gap: 20px;
}
.forjando-injected-section .alfa-contact-details__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.forjando-injected-section .alfa-contact-details__card a {
  color: #63e9b5;
  /* Las llamadas y enlaces se parten solo entre palabras; nunca por letras. */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.forjando-injected-section .alfa-contact-details__card address {
  color: #f6f5f0;
  font-style: normal;
  line-height: 1.6;
}
.forjando-magazine-posts__inner { width: 100%; max-width: 1240px; margin-inline: auto; }
.forjando-magazine-posts__eyebrow { color: #63e9b5 !important; font-size: .76rem !important; font-weight: 850; letter-spacing: .16em; }
.forjando-magazine-posts__filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0; }
.forjando-magazine-posts__filters a,
.forjando-magazine-posts__pagination a { padding: 10px 15px; border: 1px solid rgba(246,245,240,.3); color: #f6f5f0; font-size: .75rem; font-weight: 800; text-decoration: none; }
.forjando-magazine-posts__filters a:hover,
.forjando-magazine-posts__pagination a:hover { border-color: #63e9b5; color: #63e9b5; }
.forjando-magazine-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.forjando-magazine-posts__card { padding-bottom: 24px; border-bottom: 1px solid rgba(246,245,240,.25); }
.forjando-magazine-posts__card:first-child { grid-column: span 2; grid-row: span 2; }
.forjando-magazine-posts__card img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; margin-bottom: 18px; }
.forjando-magazine-posts__card a { color: #f6f5f0; text-decoration: none; }
.forjando-magazine-posts__card a:hover { color: #63e9b5; }
.forjando-magazine-posts__card span { display: block; color: #63e9b5; font-size: .76rem; letter-spacing: .12em; }
.forjando-magazine-posts__card h3 { margin: 12px 0; }
.forjando-magazine-posts__pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 36px; color: #dce4e6; }
#forjando-reservation-form > * { max-width: 900px; }
#forjando-reservation-form > * + * { margin-top: 24px; }
#forjando-reservation-form .forjando-contact-form { max-width: 900px; margin-top: 48px; }
@media (max-width: 800px) {
  .forjando-magazine-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forjando-injected-section :is(.alfa-schedule-details__grid, .alfa-price-conditions, .alfa-price-rules__grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .forjando-magazine-posts__grid { grid-template-columns: 1fr; }
  .forjando-magazine-posts__card:first-child { grid-column: auto; grid-row: auto; }
  .forjando-injected-section :is(.alfa-schedule-details__grid, .alfa-price-conditions, .alfa-price-rules__grid, .alfa-contact-details__cards) {
    grid-template-columns: 1fr;
  }
}

/* COPE se construía exclusivamente desde PHP en Divi. Su copia privada
   conserva las cinco escenas y el audio, con el lenguaje visual Blocksy. */
.forjando-cope-section > :is(.alfa-cope__hero-inner, .alfa-cope__story-grid, .alfa-cope__audio-inner, .alfa-cope__principles-inner) {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}
.forjando-cope-section :is(h1, h2, h3) { letter-spacing: -.065em; }
.forjando-cope-section h1 { font-size: clamp(3rem, 6vw, 6.5rem); }
.forjando-cope-section h2 { font-size: clamp(2.5rem, 5vw, 5.2rem); }
.forjando-cope-section .alfa-cope__eyebrow {
  color: #63e9b5 !important;
  font-size: .76rem !important;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.forjando-cope-section :is(.alfa-cope__hero-inner, .alfa-cope__story-grid, .alfa-cope__audio-inner) {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
}
.forjando-cope-section.alfa-cope__hero {
  background: radial-gradient(circle at 83% 20%, rgba(99, 233, 181, .14), transparent 32%), #0d2130;
}
.forjando-cope-section .alfa-cope__hero-copy > * + *,
.forjando-cope-section .alfa-cope__article > * + *,
.forjando-cope-section .alfa-cope__audio-inner > div:first-child > * + * {
  margin-top: clamp(16px, 2.5vw, 32px);
}
.forjando-cope-section .alfa-cope__lead { max-width: 39rem; font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important; }
.forjando-cope-section .alfa-cope__byline { color: #aebdc3 !important; font-size: .85rem !important; }
.forjando-cope-section .alfa-cope__masthead {
  display: grid;
  gap: 30px;
  align-content: center;
  padding-inline-start: clamp(24px, 4vw, 56px);
  border-inline-start: 1px solid rgba(246, 245, 240, .24);
}
.forjando-cope-section .alfa-cope__masthead img { display: block; width: min(100%, 270px); height: auto; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.forjando-cope-section .alfa-cope__masthead span { color: #63e9b5; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 900; line-height: .9; }
.forjando-cope-section.alfa-cope__story { background: #183448; }
.forjando-cope-section .alfa-cope__image { position: relative; margin: 0; overflow: hidden; }
.forjando-cope-section .alfa-cope__image img { display: block; width: 100%; height: min(70svh, 620px); object-fit: cover; }
.forjando-cope-section .alfa-cope__image figcaption { padding: 12px 0; color: #c7cbc8; font-size: .8rem; }
.forjando-cope-section blockquote { margin: 28px 0 0; padding-inline-start: 20px; border-inline-start: 3px solid #63e9b5; font-size: clamp(1.3rem, 2vw, 1.8rem); }
.forjando-cope-section.alfa-cope__audio { background: #0d2130; }
.forjando-cope-section .alfa-cope__player { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(99, 233, 181, .35); background: #183448; }
.forjando-cope-section .alfa-cope__player-label { color: #63e9b5; font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.forjando-cope-section audio { width: 100%; max-width: 100%; }
.forjando-cope-section a { color: #f6f5f0; font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 5px; }
.forjando-cope-section a:hover,
.forjando-cope-section a:focus-visible { color: #63e9b5; }
.forjando-cope-section.alfa-cope__principles { background: #122939; }
.forjando-cope-section .alfa-cope__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 6vw, 80px); background: rgba(246,245,240,.2); }
.forjando-cope-section .alfa-cope__cards article { padding: clamp(22px, 2.5vw, 36px); background: #122939; }
.forjando-cope-section .alfa-cope__cards span { color: #63e9b5; font-size: clamp(2.6rem, 4vw, 4.5rem); font-weight: 900; }
.forjando-cope-section .alfa-cope__cards h3 { margin: 30px 0 14px; }
.forjando-cope-section.alfa-cope__cta {
  background: linear-gradient(90deg, rgba(13,33,48,.94), rgba(13,33,48,.42)), url('/wp-content/uploads/2025/06/IMG_0589-scaled.jpg') center / cover no-repeat;
}
.forjando-cope-section.alfa-cope__cta > div { width: 100%; max-width: 1240px; margin-inline: auto; }
.forjando-cope-section.alfa-cope__cta > div > * + * { margin-top: 24px; }

/* TVE: composición editorial para que cada bloque tenga presencia propia. */
body:has(.alfa-menu-hero--tve) .alfa-menu-intro,
body:has(.alfa-menu-hero--tve) .alfa-tve-video,
body:has(.alfa-menu-hero--tve) .alfa-tve-principles,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section,
body:has(.alfa-menu-hero--tve) .alfa-menu-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro {
  background:
    radial-gradient(circle at 94% 12%, rgba(88, 237, 187, .16), transparent 26rem),
    linear-gradient(135deg, #0c1d28 0%, #112d3c 100%) !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 42rem);
  aspect-ratio: 1;
  right: -12rem;
  bottom: -18rem;
  border: 1px solid rgba(115, 244, 196, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(115, 244, 196, .035), 0 0 0 9rem rgba(115, 244, 196, .025);
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-intro__row {
  display: grid !important;
  grid-template-columns: minmax(16rem, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 6.5rem) !important;
  align-items: stretch !important;
  width: min(100% - 3rem, 74rem);
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid rgba(236, 240, 237, .18);
  border-radius: 1.5rem;
  background: rgba(5, 18, 27, .29);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .2);
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: clamp(1.5rem, 4vw, 5rem);
  border-right: 1px solid rgba(236, 240, 237, .2);
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro h2 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.1vw, 5.65rem) !important;
  line-height: .89 !important;
  letter-spacing: -.065em !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-rule {
  width: 5.25rem;
  height: .35rem;
  margin-bottom: 2rem;
  background: #67edbd;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .wp-block-column:last-child {
  align-self: center;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro p {
  max-width: 39rem;
  font-size: clamp(1.05rem, 1.45vw, 1.38rem) !important;
  line-height: 1.55 !important;
  color: rgba(248, 249, 246, .83) !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 119, 24, .16), transparent 27rem),
    linear-gradient(150deg, #102d3d 0%, #09202d 58%, #071821 100%) !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video .alfa-tve-video__row {
  width: min(100% - 3rem, 74rem);
  padding: clamp(1.75rem, 3vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 1.5rem;
  background: rgba(4, 16, 24, .3);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .18);
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video .wp-block-video,
body:has(.alfa-menu-hero--tve) .alfa-tve-video .wp-block-embed {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .3);
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video video,
body:has(.alfa-menu-hero--tve) .alfa-tve-video iframe {
  display: block;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-licurgo .alfa-tve-licurgo__row {
  width: min(100% - 3rem, 74rem);
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 1.5rem;
  background: rgba(3, 12, 17, .42);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .28);
  backdrop-filter: blur(4px);
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles {
  background:
    radial-gradient(circle at 8% 92%, rgba(103, 237, 189, .12), transparent 30rem),
    linear-gradient(135deg, #071a25, #102f3e) !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem !important;
  width: min(100% - 3rem, 74rem);
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .wp-block-column,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card {
  min-height: clamp(19rem, 28vw, 25rem);
  margin: 0 !important;
  padding: clamp(1.5rem, 2.5vw, 2.25rem) !important;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.25rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(7, 23, 32, .56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1.25rem 2.5rem rgba(0, 0, 0, .16);
  transition: transform .32s ease, border-color .32s ease, background .32s ease;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .wp-block-column:hover,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card:hover {
  transform: translateY(-.5rem);
  border-color: rgba(103, 237, 189, .75);
  background: linear-gradient(155deg, rgba(103, 237, 189, .17), rgba(7, 23, 32, .6));
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principle,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card > p:first-child {
  margin: 0 auto auto 0 !important;
  color: #67edbd !important;
  font-size: clamp(2.75rem, 4.2vw, 4.5rem) !important;
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .86 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles h3,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card h3 {
  margin: 1.5rem 0 .6rem !important;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem) !important;
  line-height: .94 !important;
  color: #fbfbf8 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles span,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card p:not(:first-child) {
  color: rgba(248, 249, 246, .76) !important;
  line-height: 1.5;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section {
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 119, 24, .17), transparent 24rem),
    linear-gradient(150deg, #102f3e, #071b27) !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card > p:first-child {
  color: #ff7918 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-cta {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .22), transparent 28rem),
    linear-gradient(120deg, #f56716 0%, #ff8119 48%, #ff9b31 100%) !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-cta h2,
body:has(.alfa-menu-hero--tve) .alfa-menu-cta p {
  color: #071923 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-cta h2 {
  font-size: clamp(3rem, 7vw, 7.5rem) !important;
  line-height: .86 !important;
  letter-spacing: -.075em !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-cta .wp-block-button__link {
  border: 1px solid #071923 !important;
  background: #071923 !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-intro__row {
    grid-template-columns: 1fr;
    gap: 2rem !important;
  }
  body:has(.alfa-menu-hero--tve) .alfa-menu-intro .wp-block-column:first-child {
    padding: 0 0 2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(236, 240, 237, .2);
  }
  body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row,
  body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid {
    grid-template-columns: 1fr;
  }
  body:has(.alfa-menu-hero--tve) .alfa-tve-principles .wp-block-column,
  body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card {
    min-height: 17rem;
  }
}

/* TVE: tarjetas con contenido real, lectura breve y una jerarquía estable.
   No se asignan alturas: cada tarjeta crece únicamente con su propio texto. */
body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 1.5vw, 1.35rem) !important;
  align-items: stretch !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row > .wp-block-column,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid > .wp-block-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
  padding: clamp(1.35rem, 2.3vw, 2rem) !important;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(5, 21, 29, .2));
  box-shadow: 0 .9rem 2.2rem rgba(0, 0, 0, .15);
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles p.alfa-tve-principle,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section p.alfa-menu-card__number {
  margin: 0 !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  letter-spacing: .16em !important;
  line-height: 1.1 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles p.alfa-tve-principle { color: #67edbd !important; }
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section p.alfa-menu-card__number { color: #ff7a18 !important; }

body:has(.alfa-menu-hero--tve) .alfa-tve-principles h3.alfa-tve-principle,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section h3.alfa-menu-card {
  margin: .4rem 0 0 !important;
  color: #f6f5f0 !important;
  font-size: clamp(1.35rem, 1.7vw, 1.85rem) !important;
  font-weight: 850 !important;
  letter-spacing: -.045em !important;
  line-height: 1 !important;
  text-wrap: balance;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles span.alfa-tve-principle,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section p.alfa-menu-card:not(.alfa-menu-card__number) {
  display: block;
  margin: 0 !important;
  color: rgba(246, 245, 240, .82) !important;
  font-size: clamp(.97rem, 1.1vw, 1.08rem) !important;
  line-height: 1.52 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video .alfa-tve-video__row {
  border-inline-start: 3px solid #ff7a18;
  padding-inline-start: clamp(1.25rem, 3vw, 2.5rem);
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video .wp-block-video {
  overflow: hidden;
  border: 1px solid rgba(246, 245, 240, .22);
  border-radius: .9rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .28);
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video .wp-block-video video { display: block; }

@media (max-width: 900px) {
  body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row,
  body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid {
    grid-template-columns: 1fr;
    gap: .85rem !important;
  }
  body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row > .wp-block-column,
  body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid > .wp-block-column {
    padding: 1.35rem !important;
  }
  body:has(.alfa-menu-hero--tve) .alfa-tve-video .alfa-tve-video__row {
    padding-inline-start: 1.25rem;
  }
}

@media (max-width: 600px) {
  body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-intro__row,
  body:has(.alfa-menu-hero--tve) .alfa-tve-video .alfa-tve-video__row,
  body:has(.alfa-menu-hero--tve) .alfa-tve-licurgo .alfa-tve-licurgo__row {
    width: min(100% - 2rem, 74rem);
    padding: 1.5rem;
    border-radius: 1rem;
  }
  body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row,
  body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid {
    width: min(100% - 2rem, 74rem);
  }
}

/* TVE: la identificación de emisión forma parte del reportaje, no de una
   escena independiente. Se coloca bajo el vídeo como una franja compacta. */
.alfa-tve-video .alfa-tve-video__broadcast {
  display: grid !important;
  grid-template-columns: minmax(110px, 160px) minmax(110px, 160px) minmax(0, 1fr);
  align-items: center !important;
  gap: clamp(22px, 3vw, 46px) !important;
  margin-top: clamp(34px, 5vw, 64px) !important;
  padding-top: clamp(26px, 3.5vw, 44px);
  border-top: 1px solid rgba(246, 245, 240, .2);
}
.alfa-tve-video .alfa-tve-video__broadcast > .wp-block-column { flex: none !important; }
.alfa-tve-video .alfa-tve-video__broadcast .alfa-tve-broadcast__logo {
  width: min(100%, 155px);
  margin: 0;
}
.alfa-tve-video .alfa-tve-video__broadcast .alfa-tve-broadcast__logo img {
  width: 100%;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}
.alfa-tve-video .alfa-tve-video__broadcast .alfa-tve-broadcast__copy { margin: 0 !important; }
.alfa-tve-video .alfa-tve-video__broadcast .alfa-tve-broadcast__copy + .alfa-tve-broadcast__copy {
  margin-top: 10px !important;
}

@media (max-width: 900px) {
  .forjando-cope-section :is(.alfa-cope__hero-inner, .alfa-cope__story-grid, .alfa-cope__audio-inner) { grid-template-columns: 1fr; }
  .forjando-cope-section .alfa-cope__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alfa-tve-video .alfa-tve-video__broadcast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .alfa-tve-video .alfa-tve-video__broadcast > .wp-block-column:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .forjando-cope-section .alfa-cope__masthead { border-inline-start: 0; border-block-start: 1px solid rgba(246,245,240,.24); padding: 24px 0 0; }
  .forjando-cope-section .alfa-cope__cards { grid-template-columns: 1fr; }
  .forjando-cope-section .alfa-cope__image img { height: auto; max-height: 620px; }
}

/* TVE: conservar la composición y los tamaños originales del contenido.
   Los acabados visuales nunca deben alterar la retícula editorial de la página. */
body:has(.alfa-menu-hero--tve) .alfa-menu-intro,
body:has(.alfa-menu-hero--tve) .alfa-tve-video,
body:has(.alfa-menu-hero--tve) .alfa-tve-principles,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section,
body:has(.alfa-menu-hero--tve) .alfa-menu-cta {
  isolation: auto;
  overflow: visible;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro::after { content: none; }

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-intro__row,
body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid {
  display: flex !important;
  width: 100%;
  max-width: 1240px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-intro__row {
  align-items: center !important;
  gap: clamp(28px, 4vw, 72px) !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .wp-block-column:first-child {
  display: block;
  padding: 0;
  border: 0;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro h2 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 3.8vw, 4rem) !important;
  line-height: .94 !important;
  letter-spacing: normal !important;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-rule {
  width: auto;
  height: auto;
  margin-bottom: 0;
  background: transparent;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-intro .wp-block-column:last-child { align-self: auto; }

body:has(.alfa-menu-hero--tve) .alfa-menu-intro p {
  max-width: 76ch;
  font-size: clamp(1rem, 1.2vw, 1.17rem) !important;
  line-height: 1.55 !important;
  color: #dce4e6 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video .alfa-tve-video__row,
body:has(.alfa-menu-hero--tve) .alfa-tve-licurgo .alfa-tve-licurgo__row {
  width: 100%;
  max-width: 1240px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-video .wp-block-video,
body:has(.alfa-menu-hero--tve) .alfa-tve-video .wp-block-embed {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .wp-block-column,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card {
  display: block;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .wp-block-column:hover,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principle,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card > p:first-child {
  margin: 0 !important;
  font-size: clamp(1rem, 1.2vw, 1.17rem) !important;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: 1.55 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles h3,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card h3 {
  margin: 0 !important;
  font-size: clamp(1.5rem, 2vw, 2.3rem) !important;
  line-height: 1.03 !important;
}

body:has(.alfa-menu-hero--tve) .alfa-tve-principles span,
body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-card p:not(:first-child) {
  color: #dce4e6 !important;
  line-height: 1.55;
}

body:has(.alfa-menu-hero--tve) .alfa-menu-cta h2 {
  font-size: clamp(2.4rem, 3.8vw, 4rem) !important;
  line-height: .94 !important;
  letter-spacing: normal !important;
}

@media (max-width: 900px) {
  body:has(.alfa-menu-hero--tve) .alfa-menu-intro .alfa-menu-intro__row,
  body:has(.alfa-menu-hero--tve) .alfa-tve-principles .alfa-tve-principles__row,
  body:has(.alfa-menu-hero--tve) .alfa-menu-grid-section .alfa-menu-grid {
    display: flex !important;
  }
  body:has(.alfa-menu-hero--tve) .alfa-menu-intro .wp-block-column:first-child {
    padding: 0;
    border: 0;
  }
}
