/* Fuente única del proyecto: se fuerza el WOFF2 servido por la app para evitar
   que iOS Safari resuelva una familia local distinta. */
@font-face {
  font-family: "IberPangeaVAR";
  src: url("/static/fonts/IberPangeaVAR.woff2?v=20260429") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IberPangea VAR";
  src: url("/static/fonts/IberPangeaVAR.woff2?v=20260429") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html,
body {
  font-family: "IberPangeaVAR", "IberPangea VAR", sans-serif;
  font-synthesis: none;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (hover: hover) and (pointer: fine) {
  html.pulse-custom-cursor,
  html.pulse-custom-cursor body,
  html.pulse-custom-cursor *,
  html.pulse-custom-cursor *::before,
  html.pulse-custom-cursor *::after {
    cursor: none !important;
  }
}

.pulse-diff-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #27bf63;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 30000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 120ms ease;
}

.pulse-diff-cursor.is-visible {
  opacity: 1;
}

/* Safari/iOS can ignore font-weight with variable fonts in some breakpoints.
   Mirror Tailwind font utility classes to the variable "wght" axis. */
.font-thin { font-variation-settings: "wght" 100; }
.font-extralight { font-variation-settings: "wght" 200; }
.font-light { font-variation-settings: "wght" 300; }
.font-normal { font-variation-settings: "wght" 400; }
.font-medium { font-variation-settings: "wght" 500; }
.font-semibold { font-variation-settings: "wght" 600; }
.font-bold { font-variation-settings: "wght" 700; }
.font-extrabold { font-variation-settings: "wght" 800; }
.font-black { font-variation-settings: "wght" 900; }

.pulse-shell {
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

:root {
  --pulse-design-width: 1440;
}

/* Keep desktop proportions while viewport shrinks (pixel-perfect scale-down). */
@media (min-width: 901px) and (max-width: 1439px) {
  #pulse-scale-shell {
    width: calc(var(--pulse-design-width) * 1px);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    zoom: calc(100vw / (var(--pulse-design-width) * 1px));
  }
}

@supports not (zoom: 1) {
  @media (min-width: 901px) and (max-width: 1439px) {
    #pulse-scale-shell {
      width: calc(var(--pulse-design-width) * 1px);
      position: relative;
      left: 50%;
      transform-origin: top center;
      transform: translateX(-50%) scale(calc(100vw / (var(--pulse-design-width) * 1px)));
    }
  }
}

input,
button,
textarea,
select {
  font-family: inherit;
}

.pulse-hero-title {
  font-size: clamp(82px, 6.8vw, 100px);
  line-height: clamp(74px, 6.1vw, 90px);
}

.pulse-hero-title__top {
  white-space: nowrap;
}

.pulse-nav-link,
.pulse-bottom__unsubscribe {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.pulse-logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9999px;
  background: #FEF6ED;
}

.pulse-logo-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  transform-origin: center;
  animation-duration: 9s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-iteration-count: infinite;
}

.pulse-logo-circle--green {
  background: #003020;
  animation-name: pulseOrange;
}

.pulse-logo-circle--orange {
  background: #FF9C1A;
  animation-name: pulseGreen;
}

.pulse-logo-circle--blue {
  background: #0E9FEE;
  animation-name: pulseBlue;
}

.pulse-logo-text-svg {
  width: 105.297px;
  height: 32px;
  margin-left: 9px;
  flex: none;
  object-fit: contain;
}

/* VERDE: GRANDE -> PEQUENO -> MEDIANO -> GRANDE */
@keyframes pulseGreen {
  0% {
    transform: scale(1.0);
    z-index: 1;
  }
  11% {
    transform: scale(0.3);
    z-index: 3;
  }
  33.3% {
    transform: scale(0.3);
    z-index: 3;
  }
  44.3% {
    transform: scale(0.6);
    z-index: 2;
  }
  66.6% {
    transform: scale(0.6);
    z-index: 2;
  }
  77.6% {
    transform: scale(1.0);
    z-index: 1;
  }
  100% {
    transform: scale(1.0);
    z-index: 1;
  }
}

/* NARANJA: MEDIANO -> GRANDE -> PEQUENO -> MEDIANO */
@keyframes pulseOrange {
  0% {
    transform: scale(0.6);
    z-index: 2;
  }
  11% {
    transform: scale(1.0);
    z-index: 1;
  }
  33.3% {
    transform: scale(1.0);
    z-index: 1;
  }
  44.3% {
    transform: scale(0.3);
    z-index: 3;
  }
  66.6% {
    transform: scale(0.3);
    z-index: 3;
  }
  77.6% {
    transform: scale(0.6);
    z-index: 2;
  }
  100% {
    transform: scale(0.6);
    z-index: 2;
  }
}

/* AZUL: PEQUENO -> MEDIANO -> GRANDE -> PEQUENO */
@keyframes pulseBlue {
  0% {
    transform: scale(0.3);
    z-index: 3;
  }
  11% {
    transform: scale(0.6);
    z-index: 2;
  }
  33.3% {
    transform: scale(0.6);
    z-index: 2;
  }
  44.3% {
    transform: scale(1.0);
    z-index: 1;
  }
  66.6% {
    transform: scale(1.0);
    z-index: 1;
  }
  77.6% {
    transform: scale(0.3);
    z-index: 3;
  }
  100% {
    transform: scale(0.3);
    z-index: 3;
  }
}

@media (max-width: 900px) {
  .pulse-logo-mark {
    width: 19.743px;
    height: 19.743px;
  }

  .pulse-logo-circle {
    width: 19.743px;
    height: 19.743px;
  }

  .pulse-logo-text-svg {
    width: 64.903px;
    height: 19.743px;
    margin-left: 5.552px;
  }
}

.pulse-nav-link::after,
.pulse-bottom__unsubscribe::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.pulse-nav-link:hover::after,
.pulse-nav-link:focus-visible::after,
.pulse-bottom__unsubscribe:hover::after,
.pulse-bottom__unsubscribe:focus-visible::after {
  transform: scaleX(1);
}

/* Date nav arrows: base styles so buttons stay visible even if Tailwind is stale */
.pulse-date-nav__btn {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #003f28;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pulse-date-nav__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 63, 40, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.pulse-date-nav__btn:hover:not(:disabled)::after {
  opacity: 1;
}

.arrow-icon {
  position: relative;
  z-index: 2;
  will-change: transform;
}

#pulse-date-nav-next:hover .arrow-icon,
.pulse-invite__button:hover .arrow-icon {
  animation: arrow-slide-right 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes arrow-slide-right {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(30px);
    opacity: 0;
  }
  41% {
    transform: translateX(-30px);
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#pulse-date-nav-prev:hover .arrow-icon {
  animation: arrow-slide-left 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes arrow-slide-left {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(-30px);
    opacity: 0;
  }
  41% {
    transform: translateX(30px);
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.pulse-date-nav__btn:focus-visible {
  outline: 2px solid #003f28;
  outline-offset: 3px;
}

.pulse-date-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 900px) {
  .pulse-date-nav__btn {
    width: 48px;
    height: 48px;
  }
}

.design-grid-helper.is-hidden {
  display: none;
}

.pulse-page-wrap {
  display: grid;
  width: 100%;
}

.pulse-content-wrap {
  position: relative;
  z-index: 100;
  background-color: #fff5ec;
  margin-bottom: 100vh;
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
}

.pulse-content-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: #fff5ec;
  z-index: -1;
  pointer-events: none;
}

.pulse-footer-placeholder {
  position: sticky;
  bottom: 0;
  z-index: 0;
  width: 100%;
  grid-area: 1 / 1;
  align-self: end;
  min-width: 0;
}

.pulse-bottom-shell {
  position: relative;
  z-index: 0;
  width: 100%;
}

.pulse-bottom__copy {
  margin: 0;
  color: var(--5, #00402a);
  font-family: "IberPangeaVAR", "IberPangea VAR", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Mobile/tablet: disable sticky-reveal footer to avoid clipping/overlap issues
   across viewport heights and browser UI chrome changes. */
@media (max-width: 900px) {
  .pulse-content-wrap {
    margin-bottom: 0;
  }

  .pulse-footer-placeholder {
    position: relative;
    bottom: auto;
  }
}

/* Guard fixed-width sections against subpixel horizontal overflow on tablet/desktop */
.duo-news,
.layered-news,
.pulse-invite {
  max-width: 100%;
}

.pulse-invite__content {
  max-width: 100%;
}

.pulse-bottom,
.pulse-bottom__brand {
  max-width: 100%;
}

.hero-card,
.featured-card,
.duo-news__card,
.layered-news__headline,
.layered-news__bottom .layered-news__card {
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.plus-btn {
  --plus-hover-mask: rgba(0, 0, 0, 0.08);
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1);
  /* position comes from Tailwind `absolute` on the same element; do not set
     `position: relative` here — pulse.css loads after tailwind.css and would
     override `absolute`, breaking corner placement on cards. */
}

.plus-btn:hover {
  transform: scale(1);
}

.plus-btn::before,
.plus-btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.plus-btn::before {
  left: 50%;
  top: 50%;
  height: 20px;
  width: 20px;
  transform: translate(-50%, -50%);
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size:
    2px 20px,
    20px 2px;
  background-image:
    linear-gradient(var(--plus-glyph-color), var(--plus-glyph-color)),
    linear-gradient(var(--plus-glyph-color), var(--plus-glyph-color));
}

.plus-btn::after {
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  opacity: 0;
  background: var(--plus-hover-mask);
  transition: opacity 0.3s ease;
}

.plus-btn--blue {
  background: #0E9FEE;
  --plus-glyph-color: #003F28;
}

.plus-btn--dark {
  background: #003020;
  --plus-glyph-color: #ffffff;
  --plus-hover-mask: rgba(255, 255, 255, 0.18);
}

.plus-btn--green {
  background: #00a443;
  --plus-glyph-color: #003F28;
}

.plus-btn--orange {
  background: #D68010;
  --plus-glyph-color: #003F28;
}

.plus-btn--white {
  background: #fff5ec;
  --plus-glyph-color: #003F28;
}

.pulse-invite__button:focus-visible {
  outline: 2px solid #003f28;
  outline-offset: 3px;
}

.hero-card__image,
.featured-card__image,
.duo-news__image,
.layered-news__headline-image,
.layered-news__bottom .layered-news__icon {
  transition: transform 0.4s ease;
  transform-origin: center;
}

.hero-card:hover .hero-card__image,
.hero-card:focus-within .hero-card__image {
  transform: scale(1.03);
}

.featured-card:hover .featured-card__image,
.featured-card:focus-within .featured-card__image,
.duo-news__card:hover .duo-news__image,
.duo-news__card:focus-within .duo-news__image {
  transform: scale(1.03);
}

.layered-news__bottom .layered-news__card:hover .layered-news__icon,
.layered-news__bottom .layered-news__card:focus-within .layered-news__icon {
  transform: scale(1.03);
}

.layered-news__headline:hover .layered-news__headline-image,
.layered-news__headline:focus-within .layered-news__headline-image {
  transform: scale(1.03);
}

.hero-card:hover .plus-btn::after,
.hero-card:focus-within .plus-btn::after,
.featured-card:hover .plus-btn::after,
.featured-card:focus-within .plus-btn::after,
.duo-news__card:hover .plus-btn::after,
.duo-news__card:focus-within .plus-btn::after,
.layered-news__headline:hover .plus-btn::after,
.layered-news__headline:focus-within .plus-btn::after,
.layered-news__bottom .layered-news__card:hover .plus-btn::after,
.layered-news__bottom .layered-news__card:focus-within .plus-btn::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-logo-circle {
    animation: none;
  }

  .pulse-logo-circle--green {
    transform: scale(1.0);
    z-index: 1;
  }

  .pulse-logo-circle--orange {
    transform: scale(0.6);
    z-index: 2;
  }

  .pulse-logo-circle--blue {
    transform: scale(0.3);
    z-index: 3;
  }

  .pulse-bottom-shell {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .plus-btn {
    transition: none;
  }

  .hero-card__image,
  .featured-card__image,
  .duo-news__image,
  .layered-news__headline-image,
  .layered-news__bottom .layered-news__icon {
    transition: none;
  }

  .plus-btn:hover {
    transform: scale(1);
  }

  .hero-card:hover .hero-card__image,
  .hero-card:focus-within .hero-card__image {
    transform: none;
  }

  .featured-card:hover .featured-card__image,
  .featured-card:focus-within .featured-card__image,
  .duo-news__card:hover .duo-news__image,
  .duo-news__card:focus-within .duo-news__image,
  .layered-news__bottom .layered-news__card:hover .layered-news__icon,
  .layered-news__bottom .layered-news__card:focus-within .layered-news__icon {
    transform: none;
  }

  .layered-news__headline:hover .layered-news__headline-image,
  .layered-news__headline:focus-within .layered-news__headline-image {
    transform: none;
  }
}

.hero-card__title,
.featured-card__title,
.duo-news__title,
.layered-news__headline-title,
.layered-news__title {
  display: -webkit-box;
  /* autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-card__title,
.featured-card__title,
.duo-news__summary,
.layered-news__headline-title,
.layered-news__summary {
  line-height: normal !important;
}

.duo-news__title,
.layered-news__title {
  font-size: 40px !important;
  line-height: 40px !important;
}

.pulse-invite__copy {
  line-height: normal !important;
}

.hero-card__title {
  line-clamp: 6;
  -webkit-line-clamp: 6;
}

.featured-card__title {
  line-clamp: 4;
  -webkit-line-clamp: 4;
}

.duo-news__title,
.layered-news__title {
  line-clamp: 5;
  -webkit-line-clamp: 5;
}

.layered-news__headline-title {
  font-size: 24px !important;
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

@media (max-width: 900px) {
  .featured-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    box-sizing: border-box;
  }

  .featured-card__media {
    left: 20px !important;
    right: 20px !important;
    top: 20px !important;
    width: auto !important;
  }

  .featured-card__title,
  .featured-card .card-title {
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    padding-right: 64px !important;
    top: 251px !important;
    bottom: 124px !important;
  }

  /* Featured cards had desktop top-position on mobile; pin CTA to bottom */
  .featured-card__plus {
    top: auto !important;
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 10 !important;
  }

  /* Safari iOS can ignore line-clamp intermittently: force a hard text box */
  .featured-card__title {
    display: -webkit-box !important;
    /* autoprefixer: ignore next */
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4;
    overflow: hidden !important;
    max-height: 5.2em;
  }

  /* Keep a safe area for the action button in remaining mobile cards */
  .duo-news__summary,
  .layered-news__summary {
    width: calc(100% - 112px) !important;
  }

  /* Avoid plus button overlapping media blocks on large cards */
  .duo-news__media {
    width: calc(100% - 96px) !important;
  }

  .layered-news__icon-box {
    width: calc(100% - 96px) !important;
    max-width: 210px;
  }

  /* Robust mobile layout for featured cards (avoid odd spacing/overlaps) */
  .featured-card {
    height: auto !important;
    min-height: 0 !important;
    padding: 20px 20px 76px !important;
  }

  .featured-card__media {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 215px !important;
  }

  .featured-card__title,
  .featured-card .card-title {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: 14px !important;
    padding-right: 64px !important;
  }

  .featured-card__plus {
    bottom: 20px !important;
    right: 20px !important;
  }

  /* Mobile: avoid oversized loading animations covering most of viewport */
  #lectura.is-pulse-loading .hero-card::before,
  #lectura.is-pulse-loading .featured-card::before,
  #lectura.is-pulse-loading .duo-news__card:has(.duo-news__image)::before,
  #lectura.is-pulse-loading .layered-news__headline::before,
  #lectura.is-pulse-loading .layered-news__bottom .layered-news__card:has(.layered-news__icon-box)::before,
  #lectura.is-pulse-loading .hero-card::after,
  #lectura.is-pulse-loading .featured-card::after,
  #lectura.is-pulse-loading .duo-news__card::after,
  #lectura.is-pulse-loading .layered-news__headline::after,
  #lectura.is-pulse-loading .layered-news__bottom .layered-news__card::after {
    display: none !important;
    animation: none !important;
  }

  .pulse-hero-title__top {
    white-space: normal;
  }

  .pulse-hero-title {
    font-size: 36px;
    line-height: 34px;
  }

  .pulse-hero-title > span {
    width: 329px;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-section {
    padding-bottom: 0 !important;
  }

  .featured-section h2 {
    margin-top: 80px !important;
    margin-bottom: 68px !important;
    font-size: 32px !important;
    line-height: 1.05 !important;
  }

  .duo-news {
    margin-top: 20px !important;
  }

  .featured-grid--next {
    padding-top: 20px !important;
    padding-bottom: 112px !important;
  }

  .duo-news__title,
  .layered-news__title {
    font-size: 32px !important;
    line-height: 32px !important;
  }

  .layered-news__headline-title {
    font-size: 22px !important;
    line-height: 1.1 !important;
    top: 330px !important;
  }

  .layered-news__headline,
  .layered-news__bottom .layered-news__card,
  .duo-news .duo-news__card {
    min-height: 500px;
  }

  #audio {
    padding-top: 88px !important;
    padding-bottom: 120px !important;
  }

  #audio h2 {
    font-size: clamp(40px, 11vw, 52px) !important;
  }

  #audio p,
  #audio span {
    font-size: 20px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  .pulse-bottom__links {
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    row-gap: 0;
    column-gap: 16px;
  }

  .pulse-bottom {
    padding-left: 21px !important;
    padding-right: 30px !important;
    padding-top: 80px !important;
    padding-bottom: 72px !important;
  }

  .pulse-bottom__brand {
    display: block;
    width: min(100%, 560px) !important;
    height: auto !important;
    aspect-ratio: 1361.95 / 406.607;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
  }

  .pulse-bottom__meta {
    margin-top: 80px !important;
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }

  .pulse-bottom__copy {
    max-width: 30ch;
    font-size: 16px;
    line-height: 1.28 !important;
  }

  .pulse-bottom__unsubscribe,
  .pulse-bottom__year {
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
  }

  .pulse-bottom__links {
    margin-top: 40px;
  }

  .pulse-bottom__iberdrola {
    width: min(220px, 62vw) !important;
    height: auto !important;
    margin-top: 77px;
    align-self: center;
    justify-self: center !important;
  }
}

@media (max-width: 480px) {
  .pulse-bottom {
    padding-left: 21px !important;
    padding-right: 24px !important;
  }

  .hero-card {
    height: 558px !important;
  }

  .duo-news__card,
  .layered-news__headline,
  .layered-news__bottom .layered-news__card {
    min-height: 470px;
  }

  .pulse-invite__image-wrap {
    height: 300px !important;
  }

  .news-detail-source-arrow {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 360px) {
  .pulse-date-nav__btn {
    width: 42px;
    height: 42px;
  }

  #pulse-date-label {
    font-size: 20px;
  }

  .plus-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 900px) {
  .hero-card__media {
    position: absolute !important;
    top: 100px !important;
    left: 50% !important;
    right: auto !important;
    width: min(171.571px, calc(100% - 40px)) !important;
    height: 171.57px !important;
    transform: translateX(-50%) !important;
  }

  .hero-card__title {
    top: 311.57px !important;
    left: 47px !important;
    right: 47px !important;
    width: auto !important;
    transform: none !important;
  }

  .plus-btn {
    width: 44px;
    height: 44px;
  }

  .duo-news__title,
  .layered-news__title {
    line-height: 32px !important;
  }

  .hero-card__title {
    display: -webkit-box !important;
    /* autoprefixer: ignore next */
    -webkit-box-orient: vertical !important;
    line-clamp: 3 !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }

  .featured-card__title {
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }

  .duo-news__title,
  .layered-news__title {
    line-clamp: 4;
    -webkit-line-clamp: 4;
  }

  .layered-news__headline-title {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .pulse-bottom__copy {
    line-height: 1.35 !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* Touch devices: remove oversized motion effects */
  #pulse-date-nav-next:hover .arrow-icon,
  #pulse-date-nav-prev:hover .arrow-icon,
  .pulse-invite__button:hover .arrow-icon,
  .news-detail-source-item:hover .news-detail-source-arrow svg,
  .news-detail-source-item:focus-visible .news-detail-source-arrow svg,
  .news-detail-source-item:focus-within .news-detail-source-arrow svg {
    animation: none !important;
  }

  .hero-card:hover .hero-card__image,
  .featured-card:hover .featured-card__image,
  .duo-news__card:hover .duo-news__image,
  .layered-news__headline:hover .layered-news__headline-image,
  .layered-news__bottom .layered-news__card:hover .layered-news__icon {
    transform: none !important;
  }
}

.news-detail-overlay {
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 24, 16, 0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: background-color 420ms cubic-bezier(0.33, 0.86, 0.2, 1);
}

.news-detail-overlay.news-detail-overlay--shown {
  background: rgba(0, 24, 16, 0.62);
}

/* Primer frame con flex: panel ligeramente bajo y atenuado; --shown activa la transición */
.news-detail-overlay.flex:not(.news-detail-overlay--shown) .news-detail-panel {
  opacity: 0.86;
  transform: translateY(14px) scale(0.988);
}

.news-detail-overlay.news-detail-overlay--shown .news-detail-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.news-detail-panel {
  position: relative;
  margin: 25px auto 40px;
  width: calc(100% - 2.5rem);
  border-radius: 20px;
  border: 1px solid rgba(0, 63, 40, 0.12);
  border-bottom: 1px solid rgba(0, 63, 40, 0.12);
  box-shadow: none;
  background: #fff5ec;
  transition:
    opacity 440ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-detail-panel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 901px) {
  .news-detail-panel {
    width: calc(100% - 2.5rem);
  }
}

.news-detail-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 40px 40px 44px;
}

@media (min-width: 901px) {
  .news-detail-header {
    width: calc(100vw - 40px);
    margin-left: calc((100vw - 40px - 100%) / -2);
  }
}

.news-detail-scroll {
  padding: 0;
}

.news-detail-content {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding-bottom: 0;
}

#news-detail-title {
  width: min(670px, 100%);
  margin-left: auto;
  margin-right: auto;
  color: #003f28;
  text-align: center;
  font-family: "IberPangeaVAR", "IberPangea VAR", sans-serif;
  font-size: 46px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 59px;
}

#news-detail-tags {
  margin-top: 24px;
}

#news-detail-image-wrap {
  margin-top: 45px;
}

@media (min-width: 901px) {
  #news-detail-title {
    width: 670px;
    font-size: 64px;
  }

  #news-detail-tags {
    margin-top: 40px;
  }
}

.news-detail-link-wrap {
  margin-top: 80px;
  margin-bottom: 0;
  padding-bottom: 112px;
  display: flex;
  justify-content: center;
}

.news-detail-link {
  transition: background-color 0.2s ease;
}

.news-detail-link:hover {
  background-color: #005236;
}

.news-detail-link:focus-visible {
  outline: 2px solid #0ab2fe;
  outline-offset: 3px;
}

.news-detail-sources-list {
  width: min(670px, 100%);
  margin-top: 80px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 112px;
}

.news-detail-sources-list.is-visible {
  display: block;
}

.news-detail-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid #f8ddc4;
  text-decoration: none;
}

.news-detail-source-content {
  min-width: 0;
  flex: 1;
}

.news-detail-source-title {
  margin: 0;
  color: #003f28;
  font-family: "IberPangeaVAR", "IberPangea VAR", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  white-space: normal;
}

.news-detail-source-arrow {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #fff;
  overflow: hidden;
}

.news-detail-source-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: #003f28;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  will-change: transform, opacity;
}

.news-detail-source-item:hover .news-detail-source-arrow svg,
.news-detail-source-item:focus-visible .news-detail-source-arrow svg,
.news-detail-source-item:focus-within .news-detail-source-arrow svg {
  animation: source-arrow-slide-diagonal 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes source-arrow-slide-diagonal {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  40% {
    transform: translate(22px, -22px);
    opacity: 0;
  }
  41% {
    transform: translate(-22px, 22px);
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.news-detail-close {
  border: none;
  padding: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Mask above the icon: the close SVG is a solid white circle, so an underlay
   would never show through — the overlay must sit on top of the image. */
.news-detail-close::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 63, 40, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.news-detail-close:hover::after,
.news-detail-close:focus-visible::after {
  opacity: 1;
}

.news-detail-close > img {
  position: relative;
  z-index: 0;
}

.news-detail-close:focus-visible {
  outline: 2px solid #0ab2fe;
  outline-offset: 3px;
}

.news-detail-paragraph {
  color: #003f28;
  font-family: "IberPangeaVAR", "IberPangea VAR", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.news-detail-source-meta {
  box-sizing: border-box;
  display: inline-flex;
  height: 18px;
  padding: 0 4px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  width: fit-content;
  border-radius: 4px;
  background: #ebd9ca;
  color: #003f2a;
  font-family: "IberPangeaVAR", "IberPangea VAR", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
}

.news-detail-source-meta__icon {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
}

.news-detail-source-meta__icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

.news-detail-source-meta__domain,
.news-detail-source-meta__count {
  color: inherit;
  font: inherit;
  line-height: 1;
}

.news-detail-source-meta__icon.is-fallback {
  background: #003f2a;
}

/* Detail media always renders in a 16:9 mask. Large images are cropped,
   small images are zoomed to cover while keeping center focus. */
#news-detail-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

#news-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .news-detail-link {
    transition: background-color 0.15s ease;
  }

  .news-detail-overlay {
    transition: none;
  }

  .news-detail-overlay,
  .news-detail-overlay.news-detail-overlay--shown {
    background: rgba(0, 24, 16, 0.62);
  }

  .news-detail-panel {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }

  .news-detail-source-item:hover .news-detail-source-arrow svg,
  .news-detail-source-item:focus-visible .news-detail-source-arrow svg,
  .news-detail-source-item:focus-within .news-detail-source-arrow svg {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .news-detail-panel {
    margin: 1rem auto 2rem;
    width: calc(100% - 1rem);
    border-radius: 1rem;
  }

  .news-detail-header {
    width: auto;
    margin-left: 0;
    padding: 1.25rem 1.25rem 1.25rem;
  }

  .news-detail-scroll {
    padding: 0;
  }

  /* Keep detail image from becoming an oversized block on mobile */
  #news-detail-image-wrap {
    box-sizing: border-box;
    width: min(670px, calc(100% - 40px));
    max-height: min(42vh, 260px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
    aspect-ratio: 16 / 10;
  }

  .news-detail-link-wrap {
    margin-top: 64px;
    margin-bottom: 0;
    padding-bottom: 64px;
  }

  .news-detail-sources-list {
    margin-top: 48px;
    padding-bottom: 64px;
  }

  .news-detail-source-item {
    gap: 14px;
    padding: 20px 0;
  }

  .news-detail-source-title {
    font-size: 24px;
    line-height: 1.05;
  }
}

/* --- Pulse: skeleton / loading state for news cards --- */
@keyframes pulse-card-loading-shimmer {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse-skeleton-image-slot {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.95;
  }
}

/* Image-area skeletons (above the card veil, aligned with real image slots) */
#lectura.is-pulse-loading .hero-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 135px;
  width: 208.534px;
  height: 208.532px;
  transform: translateX(-50%);
  border-radius: 12.087px;
  z-index: 21;
  background: linear-gradient(
    145deg,
    rgba(235, 235, 235, 0.98) 0%,
    rgba(200, 200, 200, 0.95) 50%,
    rgba(225, 225, 225, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  animation: pulse-skeleton-image-slot 1.25s ease-in-out infinite;
}

@media (max-width: 900px) {
  #lectura.is-pulse-loading .hero-card::before {
    top: 20px;
    width: calc(100% - 40px);
    height: 208px;
  }
}

#lectura.is-pulse-loading .featured-card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 285px;
  height: 215px;
  border-radius: 8.936px;
  z-index: 21;
  background: linear-gradient(
    145deg,
    rgba(235, 235, 235, 0.98) 0%,
    rgba(200, 200, 200, 0.95) 50%,
    rgba(225, 225, 225, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  animation: pulse-skeleton-image-slot 1.25s ease-in-out infinite;
}

@media (max-width: 900px) {
  #lectura.is-pulse-loading .featured-card::before {
    width: calc(100% - 40px);
  }
}

#lectura.is-pulse-loading .duo-news__card:has(.duo-news__image)::before {
  content: "";
  position: absolute;
  left: 30px;
  bottom: 30px;
  width: 287.087px;
  height: 217.776px;
  border-radius: 8.936px;
  z-index: 21;
  background: linear-gradient(
    145deg,
    rgba(235, 235, 235, 0.98) 0%,
    rgba(200, 200, 200, 0.95) 50%,
    rgba(225, 225, 225, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  animation: pulse-skeleton-image-slot 1.25s ease-in-out infinite;
}

@media (max-width: 900px) {
  #lectura.is-pulse-loading .duo-news__card:has(.duo-news__image)::before {
    left: 20px;
    right: 20px;
    bottom: auto;
    top: 250px;
    width: auto;
    height: 220px;
  }
}

#lectura.is-pulse-loading .layered-news__headline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 188px;
  width: 210px;
  height: 210px;
  transform: translateX(-50%);
  border-radius: 8.936px;
  z-index: 21;
  background: linear-gradient(
    145deg,
    rgba(235, 235, 235, 0.98) 0%,
    rgba(200, 200, 200, 0.95) 50%,
    rgba(225, 225, 225, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  animation: pulse-skeleton-image-slot 1.25s ease-in-out infinite;
}

#lectura.is-pulse-loading .layered-news__bottom .layered-news__card:has(.layered-news__icon-box)::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 288px;
  width: 210px;
  height: 210px;
  border-radius: 8.936px;
  z-index: 21;
  background: linear-gradient(
    145deg,
    rgba(235, 235, 235, 0.98) 0%,
    rgba(200, 200, 200, 0.95) 50%,
    rgba(225, 225, 225, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  animation: pulse-skeleton-image-slot 1.25s ease-in-out infinite;
}

@media (max-width: 900px) {
  #lectura.is-pulse-loading .layered-news__bottom .layered-news__card:has(.layered-news__icon-box)::before {
    left: 20px;
    top: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lectura.is-pulse-loading .hero-card::before,
  #lectura.is-pulse-loading .featured-card::before,
  #lectura.is-pulse-loading .duo-news__card:has(.duo-news__image)::before,
  #lectura.is-pulse-loading .layered-news__headline::before,
  #lectura.is-pulse-loading .layered-news__bottom .layered-news__card:has(.layered-news__icon-box)::before {
    animation: none;
    opacity: 0.85;
  }
}

#lectura.is-pulse-loading .hero-card::after,
#lectura.is-pulse-loading .featured-card::after,
#lectura.is-pulse-loading .duo-news__card::after,
#lectura.is-pulse-loading .layered-news__headline::after,
#lectura.is-pulse-loading .layered-news__bottom .layered-news__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
  background: rgba(115, 115, 115, 0.8);
  pointer-events: none;
  animation: pulse-card-loading-shimmer 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #lectura.is-pulse-loading .hero-card::after,
  #lectura.is-pulse-loading .featured-card::after,
  #lectura.is-pulse-loading .duo-news__card::after,
  #lectura.is-pulse-loading .layered-news__headline::after,
  #lectura.is-pulse-loading .layered-news__bottom .layered-news__card::after {
    animation: none;
    opacity: 0.9;
  }
}

#lectura.is-pulse-loading .hero-card__image,
#lectura.is-pulse-loading .hero-card__title,
#lectura.is-pulse-loading .featured-card__image,
#lectura.is-pulse-loading .featured-card__title,
#lectura.is-pulse-loading .duo-news__image,
#lectura.is-pulse-loading .duo-news__title,
#lectura.is-pulse-loading .duo-news__summary,
#lectura.is-pulse-loading .layered-news__badge,
#lectura.is-pulse-loading .layered-news__headline-image,
#lectura.is-pulse-loading .layered-news__headline-title,
#lectura.is-pulse-loading .layered-news__bottom .layered-news__title,
#lectura.is-pulse-loading .layered-news__bottom .layered-news__summary,
#lectura.is-pulse-loading .layered-news__bottom .layered-news__icon,
#lectura.is-pulse-loading .layered-news__bottom .layered-news__icon-box,
#lectura.is-pulse-loading .plus-btn {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 900px) {
  main#lectura .featured-section > h2 {
    margin-top: 80px !important;
    margin-bottom: 68px !important;
    font-size: 32px !important;
  }

  .featured-grid .featured-card,
  .featured-grid--next .featured-card {
    width: 373.06px !important;
    height: 497.413px !important;
    aspect-ratio: 3 / 4 !important;
    max-width: none !important;
  }

  .duo-news .duo-news__card:first-child .duo-news__media {
    width: 176.738px !important;
    height: 134.069px !important;
    left: 20px !important;
    bottom: 20px !important;
    top: auto !important;
  }

  .duo-news__title,
  .layered-news__headline-title,
  .layered-news__title {
    font-size: 24px !important;
  }

  .layered-news__headline-title {
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    top: 330px !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 40px) !important;
    height: auto !important;
    transform: translateX(-50%) !important;
  }

  .duo-news .duo-news__card,
  .layered-news__bottom .layered-news__card {
    width: 374px !important;
    height: 374.003px !important;
    min-height: 0 !important;
  }

  .layered-news__bottom .layered-news__summary {
    left: 20px !important;
    bottom: 20px !important;
  }

  .layered-news__bottom .layered-news__card:last-child .layered-news__icon-box {
    width: 176.74px !important;
    height: 134.07px !important;
    left: 20px !important;
    bottom: 20px !important;
    top: auto !important;
  }

  main#lectura #invitar {
    margin-top: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    width: 373px !important;
    height: 897.65px !important;
    max-width: none !important;
    padding: 20px !important;
    grid-template-columns: none !important;
  }

  main#lectura #invitar .pulse-invite__image-wrap {
    order: 1;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 332.87px !important;
    height: 443.57px !important;
    border-radius: 12px !important;
    margin-left: auto;
    margin-right: auto;
  }

  main#lectura #invitar .pulse-invite__image {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 332.87px !important;
    height: 443.57px !important;
    aspect-ratio: 332.87 / 443.57 !important;
    margin-left: auto;
    margin-right: auto;
  }

  main#lectura #invitar .pulse-invite__content {
    order: 2;
    width: 332.87px !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  main#lectura #invitar .pulse-invite__title {
    position: static !important;
    width: 100% !important;
    font-size: 32px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
  }

  main#lectura #invitar .pulse-invite__copy {
    position: static !important;
    width: 100% !important;
    max-width: 320px;
    margin-top: 20px !important;
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
  }

  main#lectura #invitar .pulse-invite__form {
    position: static !important;
    width: 100% !important;
    max-width: 332px;
    margin-top: 24px !important;
  }
}

/* Keep the exact mobile design but prevent horizontal overflow on very narrow screens. */
@media (max-width: 420px) {
  .featured-grid .featured-card,
  .featured-grid--next .featured-card,
  .duo-news .duo-news__card,
  .layered-news__bottom .layered-news__card {
    width: 100% !important;
    max-width: 100% !important;
  }

  main#lectura #invitar {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  main#lectura #invitar .pulse-invite__image-wrap,
  main#lectura #invitar .pulse-invite__image,
  main#lectura #invitar .pulse-invite__content,
  main#lectura #invitar .pulse-invite__form {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-card__media {
    left: 50% !important;
    right: auto !important;
    width: min(171.571px, calc(100% - 40px)) !important;
    transform: translateX(-50%) !important;
  }

  .hero-card__title {
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .featured-grid,
  .featured-grid--next,
  .duo-news,
  .layered-news,
  .layered-news__bottom {
    justify-items: center;
  }

  .hero-card,
  .featured-card,
  .duo-news .duo-news__card,
  .layered-news__headline,
  .layered-news__bottom .layered-news__card,
  main#lectura #invitar {
    width: min(100%, 374px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .pulse-invite {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .pulse-hero-title > span {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .layered-news__headline-title {
    left: 50% !important;
    right: auto !important;
    width: min(217px, calc(100% - 40px)) !important;
    transform: translateX(-50%) !important;
  }

  main#lectura #invitar .pulse-invite__image-wrap {
    height: auto !important;
    aspect-ratio: 332.87 / 443.57 !important;
  }

  main#lectura #invitar .pulse-invite__image {
    height: 100% !important;
  }
}

@media (max-width: 360px) {
  .pulse-hero-title > span {
    width: 100% !important;
  }

  .access-footer,
  .pulse-bottom__links {
    gap: 12px;
  }
}

.pulse-cta-underline {
  color: #003F2A;
  text-align: right;
  font-family: "IberPangea VAR", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.pulse-cta-underline:hover::after,
.pulse-cta-underline:focus-visible::after {
  transform: scaleX(1);
}

.pulse-today-card-wrap {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.pulse-today-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 220;
  width: min(92vw, 760px);
  min-height: 420px;
  border-radius: 20px;
  background: #FFA61C;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0, 48, 32, 0.18);
}

.pulse-today-card.is-hidden {
  display: none;
}

.pulse-today-card__item {
  margin: 0;
  color: #003F28;
  text-align: center;
  font-family: "IberPangea VAR", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px;
  opacity: 0.32;
  transition: opacity 0.2s ease;
}

.pulse-today-card__item.is-selected {
  opacity: 1;
}

.pulse-today-card__close {
  align-self: flex-end;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 9999px;
  background: #EEF8F4;
  color: #003F28;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pulse-today-card__close > span {
  position: relative;
  z-index: 1;
  transform: translateY(-1px);
}

.pulse-today-card__close::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 63, 40, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pulse-today-card__close:hover::after,
.pulse-today-card__close:focus-visible::after {
  opacity: 1;
}

.pulse-today-card__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding: 16px 28px 22px;
}

.pulse-today-card__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.pulse-today-wheel {
  width: 100%;
  height: 220px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: y mandatory;
  padding: 86px 0;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.pulse-today-wheel::-webkit-scrollbar {
  display: none;
}

.pulse-today-wheel .pulse-today-card__item {
  scroll-snap-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-today-wheel .pulse-today-card__item.is-disabled {
  opacity: 0.38;
  color: #2a2a2a;
}

.pulse-today-wheel .pulse-today-card__item.is-selected.is-disabled {
  opacity: 1;
  color: #2f2f2f;
}

/* AAFF centrado solo escritorio; en ≤900px copia absoluta top 33px / right 15px */
.pulse-header-aaff-desktop {
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  width: min(267px, calc(100% - 32px));
  height: auto;
  max-height: clamp(48px, 12vw, 94px);
  object-fit: contain;
}

.pulse-header-aaff-mobile-wrap {
  display: none;
}

.pulse-header-aaff-mobile {
  display: block;
  width: 92.212px;
  height: 32.564px;
  object-fit: contain;
}

.pulse-header-invite {
  width: 150px;
  height: 64px;
  border-radius: 74px;
  background: #FFA61C;
  color: #003F28;
  font-family: "IberPangea VAR", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600 !important;
  font-variation-settings: "wght" 600;
  line-height: normal;
  padding: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pulse-header-invite::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 63, 40, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pulse-header-invite:hover::after,
.pulse-header-invite:focus-visible::after {
  opacity: 1;
}

/* 83px del círculo al título en móvil: fila solo logo (~20px), sin hueco extra bajo el círculo */
.pulse-header-title-stack {
  margin-top: 92px;
}

.pulse-header-title-image {
  display: block;
  box-sizing: border-box;
  width: 655.95px;
  height: 179.522px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.pulse-header-meta-row {
  margin-top: 120px;
}

/* Ámbitos: subrayado solo en activo; hover mueve la línea con salida RTL / entrada LTR a la vez */
.pulse-section-tab {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  padding-bottom: 3px;
  -webkit-tap-highlight-color: transparent;
}

.pulse-section-tab__label {
  display: inline-block;
}

.pulse-section-tab__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: currentColor;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
}

.pulse-section-tab__line--static-on {
  transform: scaleX(1);
  transform-origin: left center;
}

.pulse-section-tab__line--static-off {
  transform: scaleX(0);
  transform-origin: right center;
}

.pulse-section-tab__line--anim-in {
  animation: pulse-tab-line-in 0.22s ease forwards;
}

.pulse-section-tab__line--anim-out {
  animation: pulse-tab-line-out 0.22s ease forwards;
}

@keyframes pulse-tab-line-in {
  from {
    transform: scaleX(0);
    transform-origin: left center;
  }

  to {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@keyframes pulse-tab-line-out {
  from {
    transform: scaleX(1);
    transform-origin: right center;
  }

  to {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-section-tab__line--anim-in,
  .pulse-section-tab__line--anim-out {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

@media (max-width: 900px) {
  .pulse-header-aaff-mobile-wrap {
    display: block;
    position: absolute;
    top: 33px;
    right: 15px;
    z-index: 2;
    line-height: 0;
  }

  .pulse-header-title-stack {
    margin-top: 83px;
  }

  .pulse-header-title-image {
    width: min(100%, 520px);
    height: calc(min(100%, 520px) * 179.522 / 655.95);
  }

  .pulse-header-meta-row {
    margin-top: 79px;
  }

  .pulse-today-card {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: none;
    min-height: 0;
    height: auto;
    z-index: 10000;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }

  .pulse-today-card__close {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }

  .pulse-today-card__grid {
    padding: 12px 0 0;
    gap: 12px;
  }

  .pulse-today-card__item {
    font-size: 32px;
    line-height: 32px;
  }

  .pulse-today-wheel {
    height: 180px;
    padding: 74px 0;
  }

  .pulse-today-wheel .pulse-today-card__item {
    min-height: 32px;
  }
}

@media (max-width: 600px) {
  /* Logo Pulse a 20px (px-5 en header) y 40px del borde superior; AAFF sigue absolute (≤900px) para no empujar el carrusel */
  .pulse-content-wrap > header {
    padding-top: 40px;
  }

  .pulse-header-title-stack {
    margin-top: 83px;
  }

  .pulse-header-invite {
    width: 112px;
    height: 48px;
    font-size: 14px;
    padding: 8px 12px;
  }

  .pulse-header-logo-link {
    width: 19.738px;
    height: 19.738px;
    aspect-ratio: 1 / 1;
  }

  .pulse-header-circle-carousel {
    width: 19.738px;
    height: 19.738px;
    aspect-ratio: 1 / 1;
  }

  /* Mayor especificidad que `img` (Preflight) y utilidades; tamaño Figma móvil */
  img.pulse-header-title-image {
    width: 372.489px;
    max-width: 100%;
    height: 101.944px;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .pulse-header-meta-row {
    align-items: flex-end;
    gap: 16px;
  }
}

@media (max-width: 400px) {
  .pulse-today-card {
    width: calc(100% - 20px);
    padding: 20px 16px;
  }
}

/* --- Circle Carousel (DIV layers, synchronized) --- */
.pulse-header-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-header-circle-carousel {
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
}

@media (min-width: 601px) {
  .pulse-header-logo-link {
    width: 64px;
    height: 64px;
  }

  .pulse-header-circle-carousel {
    width: 64px;
    height: 64px;
  }
}

.carousel-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 1;
  will-change: width, height, z-index, opacity;
}

.carousel-orange {
  background: #FF9C1A;
  animation: carousel-orange 9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.carousel-dark {
  background: #00402A;
  animation: carousel-dark 9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.carousel-light {
  background: #00A443;
  animation: carousel-light 9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

@keyframes carousel-light {
  0%   { width: 23px; height: 23px; z-index: 3; opacity: 1; }
  22%  { width: 23px; height: 23px; z-index: 3; opacity: 1; }
  33%  { width: 43px; height: 43px; z-index: 2; opacity: 1; }
  55%  { width: 43px; height: 43px; z-index: 2; opacity: 1; }
  66%  { width: 64px; height: 64px; z-index: 1; opacity: 1; }
  88%  { width: 64px; height: 64px; z-index: 1; opacity: 1; }
  90%  { width: 18px; height: 18px; z-index: 4; opacity: 0; }
  91%  { width: 0px;  height: 0px;  z-index: 4; opacity: 0; }
  100% { width: 23px; height: 23px; z-index: 3; opacity: 1; }
}

@keyframes carousel-dark {
  0%   { width: 43px; height: 43px; z-index: 2; opacity: 1; }
  22%  { width: 43px; height: 43px; z-index: 2; opacity: 1; }
  33%  { width: 64px; height: 64px; z-index: 1; opacity: 1; }
  55%  { width: 64px; height: 64px; z-index: 1; opacity: 1; }
  57%  { width: 18px; height: 18px; z-index: 4; opacity: 0; }
  58%  { width: 0px;  height: 0px;  z-index: 4; opacity: 0; }
  66%  { width: 23px; height: 23px; z-index: 3; opacity: 1; }
  88%  { width: 23px; height: 23px; z-index: 3; opacity: 1; }
  100% { width: 43px; height: 43px; z-index: 2; opacity: 1; }
}

@keyframes carousel-orange {
  0%   { width: 64px; height: 64px; z-index: 1; opacity: 1; }
  22%  { width: 64px; height: 64px; z-index: 1; opacity: 1; }
  24%  { width: 18px; height: 18px; z-index: 4; opacity: 0; }
  25%  { width: 0px;  height: 0px;  z-index: 4; opacity: 0; }
  33%  { width: 23px; height: 23px; z-index: 3; opacity: 1; }
  55%  { width: 23px; height: 23px; z-index: 3; opacity: 1; }
  66%  { width: 43px; height: 43px; z-index: 2; opacity: 1; }
  88%  { width: 43px; height: 43px; z-index: 2; opacity: 1; }
  100% { width: 64px; height: 64px; z-index: 1; opacity: 1; }
}

/* Móvil: escala 19.738 / 64 respecto al carrusel desktop */
@keyframes carousel-light-sm {
  0%   { width: 7.093px; height: 7.093px; z-index: 3; opacity: 1; }
  22%  { width: 7.093px; height: 7.093px; z-index: 3; opacity: 1; }
  33%  { width: 13.261px; height: 13.261px; z-index: 2; opacity: 1; }
  55%  { width: 13.261px; height: 13.261px; z-index: 2; opacity: 1; }
  66%  { width: 19.738px; height: 19.738px; z-index: 1; opacity: 1; }
  88%  { width: 19.738px; height: 19.738px; z-index: 1; opacity: 1; }
  90%  { width: 5.551px; height: 5.551px; z-index: 4; opacity: 0; }
  91%  { width: 0px; height: 0px; z-index: 4; opacity: 0; }
  100% { width: 7.093px; height: 7.093px; z-index: 3; opacity: 1; }
}

@keyframes carousel-dark-sm {
  0%   { width: 13.261px; height: 13.261px; z-index: 2; opacity: 1; }
  22%  { width: 13.261px; height: 13.261px; z-index: 2; opacity: 1; }
  33%  { width: 19.738px; height: 19.738px; z-index: 1; opacity: 1; }
  55%  { width: 19.738px; height: 19.738px; z-index: 1; opacity: 1; }
  57%  { width: 5.551px; height: 5.551px; z-index: 4; opacity: 0; }
  58%  { width: 0px; height: 0px; z-index: 4; opacity: 0; }
  66%  { width: 7.093px; height: 7.093px; z-index: 3; opacity: 1; }
  88%  { width: 7.093px; height: 7.093px; z-index: 3; opacity: 1; }
  100% { width: 13.261px; height: 13.261px; z-index: 2; opacity: 1; }
}

@keyframes carousel-orange-sm {
  0%   { width: 19.738px; height: 19.738px; z-index: 1; opacity: 1; }
  22%  { width: 19.738px; height: 19.738px; z-index: 1; opacity: 1; }
  24%  { width: 5.551px; height: 5.551px; z-index: 4; opacity: 0; }
  25%  { width: 0px; height: 0px; z-index: 4; opacity: 0; }
  33%  { width: 7.093px; height: 7.093px; z-index: 3; opacity: 1; }
  55%  { width: 7.093px; height: 7.093px; z-index: 3; opacity: 1; }
  66%  { width: 13.261px; height: 13.261px; z-index: 2; opacity: 1; }
  88%  { width: 13.261px; height: 13.261px; z-index: 2; opacity: 1; }
  100% { width: 19.738px; height: 19.738px; z-index: 1; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-light,
  .carousel-dark,
  .carousel-orange {
    animation: none;
  }

  .carousel-light { width: 23px; height: 23px; z-index: 3; opacity: 1; }
  .carousel-dark { width: 43px; height: 43px; z-index: 2; opacity: 1; }
  .carousel-orange { width: 64px; height: 64px; z-index: 1; opacity: 1; }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .carousel-light {
    width: 7.093px;
    height: 7.093px;
  }

  .carousel-dark {
    width: 13.261px;
    height: 13.261px;
  }

  .carousel-orange {
    width: 19.738px;
    height: 19.738px;
  }
}

/* Tras las reglas base `.carousel-* { animation: … }`: animación móvil con keyframes escalados */
@media (max-width: 600px) and (not (prefers-reduced-motion: reduce)) {
  .carousel-light {
    animation: carousel-light-sm 9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  }

  .carousel-dark {
    animation: carousel-dark-sm 9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  }

  .carousel-orange {
    animation: carousel-orange-sm 9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  }
}
