/* ════════════════════════════════════════════════════════════
   INNER PAGE HERO — Patrón para todas las páginas internas.
   ════════════════════════════════════════════════════════════ */

/* ─── ANIMACIONES DE ENTRADA ────────────────────────────── */
@keyframes heroBgReveal {
  from {
    opacity: 0;
    transform: scale(1.15);
    filter: brightness(0) saturate(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0.65) saturate(0.8);
  }
}

@keyframes heroContentReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breadcrumbReveal {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.inner-hero {
  position: relative;
  height: 70vh;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: calc(var(--section-padding) + 8rem) var(--side-padding) 4rem;
  margin-top: 0;
  background: var(--ink);
  /* Fondo oscuro preventivo para evitar gaps blancos */
}

.inner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.65) saturate(0.8);
  transition: transform 8s var(--ease-silk);
  animation: heroBgReveal 3s var(--ease-silk) both;
}

.inner-hero:hover .inner-hero-bg {
  transform: scale(1.05);
}

.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(28, 20, 16, 0.85) 0%,
      rgba(28, 20, 16, 0.15) 50%,
      rgba(28, 20, 16, 0.45) 100%);
  /* Doble degradado para proteger ambos textos */
}

.inner-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  animation: heroContentReveal 1.5s var(--ease-silk) both;
  animation-delay: 0.5s;
}

.breadcrumb {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0;
  /* Ya no necesita margen inferior */
  opacity: 1;
  animation: breadcrumbReveal 1.2s var(--ease-silk) both;
  animation-delay: 0.8s;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(237, 232, 224, 0.85);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--saffron);
}

.breadcrumb .breadcrumb-sep {
  color: var(--saffron);
  opacity: 0.4;
}

.breadcrumb span:last-child {
  color: var(--saffron);
  filter: brightness(1.2);
}

.inner-hero-title {
  font-family: var(--f-display);
  font-weight: 100;
  font-size: clamp(2rem, 5vw, 4.2rem);
  /* Reducimos ligeramente el máximo para mayor control */
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--parchment);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  /* Profundidad para separar del fondo */
}

.inner-hero-title em {
  display: block;
  margin-top: .8rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  color: rgba(237, 232, 224, 0.8);
  font-size: 0.92em;
}

/* ─── PATRÓN 1: INTRO ───────────────────────────────────── */
.block-intro {
  padding: 3rem 1.5rem;
  background: var(--parchment);
}

.block-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.block-intro-text p {
  font-size: 1.10rem;
  line-height: 1.8;
  color: var(--ink-80);
  margin-bottom: 1.4rem;
  text-align: justify;
  hyphens: auto;
}

.block-intro-img img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  filter: brightness(0.88) saturate(0.72) sepia(0.12);
  transition: transform 0.9s;
}

.block-intro-img:hover img {
  transform: scale(1.04);
}

/* ─── PATRÓN 2: PULLQUOTE ───────────────────────────────── */
.block-pullquote {
  padding: var(--section-padding) 4rem;
  background: var(--cedar);
  text-align: center;
  position: relative;
}

.block-pullquote-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.block-pullquote-text {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-style: italic;
  color: var(--stone);
}

/* ─── PATRÓN 3: MASTER (Editorial Profile) ──────────────── */
.block-master {
  padding: 3rem 1.5rem;
  background: var(--stone);
}

.block-master-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.block-master-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8rem;
  align-items: center;
}

.block-master-portrait {
  position: relative;
}

.block-master-portrait-img {
  width: 85%;
  /* aspect-ratio: 3/4; */
  object-fit: cover;
  filter: brightness(0.9) saturate(0.8) sepia(0.05);
  box-shadow: 20px 20px 0 rgba(30, 26, 22, 0.03);
}

.block-master-portrait-info {
  margin-top: 1.8rem;

}

.block-master-portrait-role {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.5rem;
}

.block-master-portrait-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--ink);
  line-height: 1.2;
}

.block-master-bio {
  position: relative;
}

.block-master-bio::before {
  display: none !important;
}

/* Elimina ornamentos no deseados */

.block-master-bio h3 {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 200;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.block-master-bio p {
  font-size: 1.10rem;
  line-height: 1.9;
  color: var(--ink-80);
  margin-bottom: 1.5rem;
  max-width: 750px;
  text-align: justify;
  hyphens: auto;
}

.block-master-bio p strong {
  font-weight: 400;
  color: var(--ink);
}


@media (max-width: 1024px) {
  .inner-hero {
    padding: 7rem 2rem 3rem;
  }

  .block-intro,
  .block-master {
    padding: 3rem 1.5rem;
  }

  .block-intro-grid,
  .block-master-layout {
    display: flex;
    flex-direction: column-reverse;
    /* Imagen (segundo hijo) arriba, texto abajo */
    gap: 1.5rem;
  }

  /* Excepción para block-master-layout si la imagen ya es el primer hijo */
  .block-master-layout {
    flex-direction: column;
    /* Aquí el retrato ya es el primer hijo */
  }

  /* Párrafo inicial con aire */
  .breadcrumb {
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .breadcrumb a,
  .breadcrumb span {
    font-size: 0.82rem;
    /* Aumento proporcional */
    letter-spacing: 0.3em;
    /* Un poco menos de tracking para que quepa en pantalla */
  }

  .block-intro-text p {
    font-size: 1.10rem;
    line-height: 1.8;
    margin-top: 1.5rem;
  }

  .block-master-bio p {
    font-size: 1.10rem;
    line-height: 1.75;
  }

  /* Imágenes Full-Width (A Sangre) */
  .block-intro-img,
  .block-master-portrait {
    margin: 0 -1.5rem;
    /* Compensa el padding del contenedor */
    width: calc(100% + 3rem);
    max-width: none;
  }

  .block-intro-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }

  .block-master-portrait-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Proporción más adecuada para retrato */
    object-fit: cover;
    object-position: top; /* Evita que se corte la cabeza */
    border-radius: 0;
    box-shadow: none;
  }

  .block-master-portrait-info {
    padding: 0 1.5rem;
    /* Alineamos el texto con el resto de la página */
  }

  /* Ajuste Pullquote para armonía con Home */
  .block-pullquote {
    padding: 4.5rem 1.5rem;
  }

  .block-pullquote-text {
    font-size: 1.8rem;
    line-height: 1.5;
  }
}

/* ─── PATRÓN 4: DUAL TEXT (SPLIT) ───────────────────────── */
.block-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.block-split-item {
  padding: 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 450px;
}

.block-split-item.bg-parchment {
  background: var(--parchment);
}

.block-split-item.bg-stone {
  background: var(--stone);
}

.block-split-item .section-tag {
  margin-bottom: 1.2rem;
}

.block-split-item .section-title {
  margin-bottom: 2rem;
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 200;
  line-height: 1.1;
  color: var(--ink);
}

.block-split-item .gold-rule {
  width: 40px;
  height: 1px;
  background: var(--saffron);
  margin-bottom: 2rem;
}

.block-split-item p {
  font-size: 1.10rem;
  line-height: 1.95;
  color: var(--ink-80);
  margin-bottom: 1.5rem;
  font-weight: 300;
  text-align: justify;
  hyphens: auto;
}

.block-split-item p strong {
  font-weight: 400;
  color: var(--ink);
}

@media (max-width: 1024px) {
  .block-split-row {
    grid-template-columns: 1fr;
  }

  .block-split-item {
    padding: 4rem 1.5rem;
    min-height: auto;
  }
}