/* ============================================================
   HEADER — logo Viajar junto al logo del periódico
   ============================================================ */

header.scrollytelling h2 {
  display: flex !important;
  align-items: center !important;
  gap: 1.2rem !important;
}

header.scrollytelling h2::after {
  content: '';
  display: block;
  width: 160px;
  height: 50px;
  background: url('https://especiales-hub.informacion.es/Cinco-villas-aragon/images/logo-viajar.png') no-repeat center / contain;
  filter: invert(1);
  flex-shrink: 0;
}

/* ============================================================
   ANULAR píxel de tracking del CMS (fuera de .cuerpo)
   ============================================================ */

img[alt="stats"] {
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   CINCO VILLAS — estilos encapsulados bajo .cuerpo
   ============================================================ */

.cuerpo *,
.cuerpo *::before,
.cuerpo *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cuerpo {
  --c-bg:     #F9F6F1;
  --c-text:   #1A1207;
  --c-muted:  #6B5B4E;
  --c-rule:   #E0D6CC;
  --c-accent: #B5451B;
  --c-sand:   #F0EAE1;

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Cormorant Garamond', Georgia, serif;

  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.cuerpo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   HERO — DESKTOP (min-width: 601px)
   ============================================================ */

@media (min-width: 601px) {
  .cuerpo .hero-vid--mobile { display: none; }

  .cuerpo .post__hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .cuerpo .post__hero-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
  }

  .cuerpo .post__hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .cuerpo .post__hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    height: 100%;
    min-width: 100%;
    min-height: 56.25vw;
    object-fit: cover;
  }

  .cuerpo .hero-mute-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
  }
}

/* ============================================================
   HERO — MÓVIL (max-width: 600px)
   ============================================================ */

@media (max-width: 600px) {
  .cuerpo .hero-vid--mobile { display: none; }

  .cuerpo .post__hero {
    position: relative;
    height: auto;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .cuerpo .post__hero-inner {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .cuerpo .post__hero-video {
    position: relative;
    width: 100%;
    height: auto;
  }

  .cuerpo .post__hero-video video {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-width: unset;
    min-height: unset;
    transform: none;
    object-fit: contain;
  }

  .cuerpo .hero-mute-btn {
    display: flex;
    position: absolute;
    bottom: 0.8rem;
    left: 1rem;
    right: auto;
    z-index: 20;
  }
}

.cuerpo .post__hero-overlay {
  display: none;
}

/* Botón mute/unmute (solo desktop) */
.cuerpo .hero-mute-btn {
  width: 2.8rem;
  height: 2.8rem;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(10, 5, 2, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.cuerpo .hero-mute-btn:hover {
  background: rgba(10, 5, 2, .7);
  border-color: rgba(255,255,255,.9);
}

.cuerpo .hero-mute-btn__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.cuerpo .post__hero-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 2;
  background: rgba(10, 5, 2, .72);
  backdrop-filter: blur(6px);
  padding: 2.2rem clamp(1.5rem, 8vw, 9rem);
  transform: translateY(-50%);
}

.cuerpo .post__hero-band h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: #fff;
  letter-spacing: .01em;
  width: 80vw;
}

/* ============================================================
   LEAD
   ============================================================ */

.cuerpo .post__lead-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
  border-bottom: 1px solid var(--c-rule);
}

.cuerpo .post__lead {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  line-height: 1.78;
  color: var(--c-text);
}

/* ============================================================
   BANNER LOGOS
   ============================================================ */

.cuerpo .banner-logos {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #fff;
}

.cuerpo .banner-logos img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SPLIT — texto · imagen
   ============================================================ */

.cuerpo .block-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.cuerpo .block-split--reverse .block-split__text { order: 2; }
.cuerpo .block-split--reverse .block-split__img  { order: 1; }

.cuerpo .block-split__text {
  background: var(--c-sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(2rem, 5vw, 5.5rem);
}

.cuerpo .block-split__kicker {
  font-family: var(--ff-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
  display: block;
}

.cuerpo .block-split__text h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 1.4rem;
  letter-spacing: .01em;
}

.cuerpo .block-split__text p {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  color: #3A2515;
  margin-bottom: 1rem;
}

.cuerpo .block-split__text p:last-child { margin-bottom: 0; }

.cuerpo .block-split__text strong {
  font-weight: 600;
  color: #1A1207;
}

.cuerpo .block-split__text a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}

.cuerpo .block-split__text a:hover { opacity: .7; }

.cuerpo .block-split__img {
  overflow: hidden;
}

.cuerpo .block-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}

.cuerpo .block-split:hover .block-split__img img {
  transform: scale(1.05);
}

/* ============================================================
   COVER — texto sobre imagen
   ============================================================ */

.cuerpo .block-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cuerpo .block-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.cuerpo .block-cover:hover .block-cover__img {
  transform: scale(1.06);
}

.cuerpo .block-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 5, 2, .92) 0%,
    rgba(10, 5, 2, .55) 45%,
    rgba(10, 5, 2, .1) 100%
  );
}

.cuerpo .block-cover__content {
  position: relative;
  z-index: 2;
  padding: 5rem clamp(2rem, 8vw, 9rem);
  max-width: 860px;
}

.cuerpo .block-cover__kicker {
  font-family: var(--ff-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: block;
  margin-bottom: 1rem;
}

.cuerpo .block-cover__content h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: .01em;
}

.cuerpo .block-cover__content p {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  max-width: 680px;
  margin-bottom: 1rem;
}

.cuerpo .block-cover__content p:last-child { margin-bottom: 0; }

.cuerpo .block-cover__content strong {
  font-weight: 600;
  color: rgba(255,255,255,.95);
}

.cuerpo .block-cover__content a {
  color: var(--c-sand);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}

.cuerpo .block-cover__content a:hover { opacity: .75; }

/* ============================================================
   BLOCK STAT — tipografía gigante + dato
   ============================================================ */

.cuerpo .block-stat {
  position: relative;
  background: #111009;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 6rem clamp(2rem, 8vw, 9rem);
}

.cuerpo .block-stat__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
}

.cuerpo .block-stat__bg-number {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-serif);
  font-size: clamp(18rem, 30vw, 36rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.07);
  user-select: none;
  pointer-events: none;
  letter-spacing: -.02em;
}

.cuerpo .block-stat__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.cuerpo .block-stat__kicker {
  font-family: var(--ff-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: 2.5rem;
}

.cuerpo .block-stat__line {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  letter-spacing: .01em;
}

.cuerpo .block-stat__line--italic {
  font-style: italic;
  color: rgba(255,255,255,.4);
  margin-bottom: 2.5rem;
}

.cuerpo .block-stat__body {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  max-width: 520px;
}

.cuerpo .block-stat__body strong {
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

.cuerpo .block-stat__body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}

.cuerpo .block-stat__body a:hover { opacity: .75; }

/* ============================================================
   DUO — dos imágenes a pantalla completa
   ============================================================ */

.cuerpo .block-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.cuerpo .block-duo__img {
  overflow: hidden;
}

.cuerpo .block-duo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}

.cuerpo .block-duo__img:hover img {
  transform: scale(1.06);
}

/* ============================================================
   MOSAICO asimétrico
   ============================================================ */

.cuerpo .block-mosaic {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  height: 640px;
  overflow: hidden;
}

.cuerpo .block-mosaic__col {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.cuerpo .block-mosaic__img {
  overflow: hidden;
}

.cuerpo .block-mosaic__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}

.cuerpo .block-mosaic__img:hover img {
  transform: scale(1.07);
}

.cuerpo .block-mosaic__text {
  background: var(--c-sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
}

.cuerpo .block-mosaic__kicker {
  font-family: var(--ff-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: .9rem;
}

.cuerpo .block-mosaic__text h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 1rem;
}

.cuerpo .block-mosaic__text p {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.72;
  color: #3A2515;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {

  .cuerpo .block-split {
    min-height: auto;
  }

  .cuerpo .block-split__text {
    padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
    justify-content: flex-start;
  }

  .cuerpo .block-split__text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: .9rem;
  }

  .cuerpo .block-split__text p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .cuerpo .block-split__img {
    min-height: 420px;
  }

  .cuerpo .block-stat {
    min-height: auto;
    padding: 3.5rem clamp(2rem, 5vw, 6rem);
    align-items: flex-start;
  }

  .cuerpo .block-stat__line {
    font-size: clamp(2.2rem, 4vw, 4rem);
  }

  .cuerpo .block-stat__line--italic {
    margin-bottom: 1.5rem;
  }

  .cuerpo .block-stat__body {
    font-size: 1.05rem;
  }

  .cuerpo .block-cover {
    min-height: auto;
  }

  .cuerpo .block-cover__content {
    padding: 3.5rem clamp(2rem, 5vw, 6rem);
  }

  .cuerpo .block-cover__content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .cuerpo .block-cover__content p {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .cuerpo .block-duo {
    min-height: auto;
  }

  .cuerpo .block-duo__img {
    height: 45vw;
    min-height: 300px;
  }
}

@media (max-width: 900px) {

  .cuerpo .post__hero-band h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    width: 90vw;
  }

  .cuerpo .block-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cuerpo .block-split--reverse .block-split__text,
  .cuerpo .block-split--reverse .block-split__img {
    order: unset;
  }

  .cuerpo .block-split__img {
    height: 55vw;
    min-height: 260px;
  }

  .cuerpo .block-split__text {
    padding: 2.5rem 2rem;
    min-height: auto;
  }

  .cuerpo .block-split__text h2 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
  }

  .cuerpo .block-duo {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cuerpo .block-duo__img {
    height: 55vw;
    min-height: 260px;
  }

  .cuerpo .block-stat {
    padding: 3rem 2rem;
    min-height: auto;
    align-items: flex-start;
  }

  .cuerpo .block-stat__line {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .cuerpo .block-stat__line--italic {
    margin-bottom: 1.5rem;
  }

  .cuerpo .block-stat__bg-number {
    font-size: 60vw;
    opacity: .5;
  }

  .cuerpo .block-cover {
    min-height: 80vh;
  }

  .cuerpo .block-cover__content {
    padding: 2.5rem 2rem;
  }

  .cuerpo .block-cover__content h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
  }

  .cuerpo .block-cover__content p {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {

  .cuerpo .post__hero {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .cuerpo .post__hero-inner {
    height: 100%;
  }

  .cuerpo .post__hero-band {
    padding: 1.8rem 1.5rem;
  }

  .cuerpo .post__hero-band h1 {
    font-size: 1.5rem;
    width: 92vw;
    line-height: 1.2;
  }

  .cuerpo .banner-logos img {
    width: 100%;
  }

  .cuerpo .block-split__img {
    height: 60vw;
    min-height: 220px;
  }

  .cuerpo .block-split__text {
    padding: 2rem 1.5rem;
  }

  .cuerpo .block-split__text h2 {
    font-size: 1.5rem;
    margin-bottom: .8rem;
  }

  .cuerpo .block-split__text p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .cuerpo .block-duo__img {
    height: 55vw;
    min-height: 200px;
  }

  .cuerpo .block-stat {
    padding: 2.5rem 1.5rem;
  }

  .cuerpo .block-stat__line {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .cuerpo .block-stat__line--italic {
    margin-bottom: 1.2rem;
  }

  .cuerpo .block-stat__body {
    font-size: 1rem;
    max-width: 100%;
  }

  .cuerpo .block-stat__bg-number {
    font-size: 70vw;
    right: -.1em;
  }

  .cuerpo .block-cover {
    min-height: 90vh;
  }

  .cuerpo .block-cover__content {
    padding: 2rem 1.5rem;
  }

  .cuerpo .block-cover__content h2 {
    font-size: 1.7rem;
    margin-bottom: .8rem;
  }

  .cuerpo .block-cover__content p {
    font-size: .95rem;
    line-height: 1.65;
  }
}
