    :root {
      --dot-inactive: rgba(255, 255, 255, 0.45);
      --dot-active: #ffffff;
      --dot-size: 10px;
      --dot-active-width: 34px;
      --font-title: "Arial Black", "Roboto", Arial, sans-serif;
      --font-text: "Roboto", Arial, sans-serif;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      min-height: 100%;
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    body {
      min-height: 100%;
      font-family: var(--font-text);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: var(--font-title);
      font-weight: 800;
    }

    /* Header a pantalla completa en PC, tablet y móvil */
    .hero {
      position: relative;
      width: 100%;
      height: 100vh;
      /* Mejor soporte en móviles (barras del navegador dinámicas) */
      height: 100svh;
      overflow: hidden;
      background: #111;
    }

    /* ===== Menú transparente (barra superior) ===== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 24px;
      background: transparent;
      transition: background-color 0.3s ease;
    }

    .navbar.scrolled {
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    /* Botón hamburguesa: 3 líneas, la primera más larga */
    .hamburger {
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    }

    .hamburger span {
      display: block;
      height: 3px;
      border-radius: 3px;
      background: #fff;
      transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
    }

    .hamburger span:nth-child(1) { width: 30px; }
    .hamburger span:nth-child(2) { width: 22px; }
    .hamburger span:nth-child(3) { width: 22px; }

    /* Estado abierto: se transforma en una X */
    .hamburger.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    /* Logo centrado y transparente */
    .logo {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: inline-flex;
      align-items: center;
      filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    }

    .logo img {
      display: block;
      width: var(--portal-logo-desktop, 180px);
      height: auto;
    }

    .admin-login-link {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #fff;
      font-size: 1rem;
      font-weight: 700;
      line-height: 1;
      text-decoration: none;
      filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
      transition: color .2s ease, transform .2s ease;
    }

    .admin-login-link svg {
      width: 24px;
      height: 24px;
      flex: 0 0 24px;
    }

    .admin-login-copy {
      display: grid;
      gap: 3px;
      max-width: 180px;
      min-width: 0;
      text-align: right;
    }

    .admin-login-copy strong,
    .admin-login-copy small {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .admin-login-copy strong { font-size: .92rem; line-height: 1.05; }
    .admin-login-copy small { color: rgba(255, 255, 255, .72); font-size: .7rem; font-weight: 500; line-height: 1; }
    .admin-login-avatar {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      overflow: hidden;
      color: #083344;
      background: linear-gradient(145deg, #67e8f9, #2dd4bf);
      border: 1px solid #000;
      border-radius: 50%;
      font-size: .85rem;
      font-weight: 800;
      box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    }
    .admin-login-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

    .admin-login-link:hover,
    .admin-login-link:focus-visible {
      color: #5eead4;
      outline: 0;
      transform: translateY(-1px);
    }

    @media (max-width: 1024px) {
      .logo img { width: var(--portal-logo-tablet, 150px); }
    }

    @media (max-width: 768px) {
      .navbar {
        padding: 14px 16px;
      }
      .logo img {
        width: var(--portal-logo-mobile, 115px);
      }
      .admin-login-link { padding: 8px; }
      .admin-login-link.is-guest > span { display: none; }
      .admin-login-link svg { width: 25px; height: 25px; flex-basis: 25px; }
      .admin-login-link.is-authenticated { gap: 7px; padding: 2px 0; }
      .admin-login-copy { max-width: 62px; gap: 2px; }
      .admin-login-copy strong { font-size: .72rem; }
      .admin-login-copy small { font-size: .6rem; }
      .admin-login-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: .76rem; }
    }

    /* Contenedor de los slides */
    .slider {
      position: absolute;
      inset: 0;
    }

    .slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 0;
      transition: opacity 1.2s ease-in-out;
      will-change: opacity;
    }

    .slide.active {
      opacity: 1;
    }

    /* Degradado para legibilidad del texto sobre la imagen */
    .slide::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 35%,
        rgba(0, 0, 0, 0) 65%
      );
      pointer-events: none;
    }

    /* Contenido de cada noticia (título y subtítulo) */
    .slide-content {
      position: absolute;
      left: 0;
      bottom: 0;
      padding: 0 24px 110px;
      max-width: 900px;
      z-index: 1;
    }

    .slide-tag {
      display: inline-block;
      font-size: clamp(0.75rem, 1vw, 0.9rem);
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: #5EEAD4;
      margin-bottom: 14px;
    }

    .slide-title {
      margin: 0 0 16px;
      max-width: 800px;
      font-size: clamp(1.8rem, 4.2vw, 3.6rem);
      font-weight: 800;
      line-height: 1.12;
      color: #fff;
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    }

    .slide-subtitle {
      margin: 0;
      max-width: 620px;
      font-size: clamp(1rem, 1.6vw, 1.25rem);
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.88);
      text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    }

    @media (max-width: 768px) {
      .slide-content {
        padding: 0 18px 76px;
      }
      .slide-tag {
        margin-bottom: 10px;
      }
      .slide-title {
        margin-bottom: 12px;
      }
    }

    /* Indicadores tipo píldora, abajo a la izquierda, dentro del slider */
    .dots {
      position: absolute;
      left: 24px;
      bottom: 24px;
      z-index: 10;
      display: flex;
      gap: 8px;
    }

    .dot {
      width: var(--dot-size);
      height: var(--dot-size);
      border: none;
      border-radius: 999px;
      background: var(--dot-inactive);
      cursor: pointer;
      padding: 0;
      transition: width 0.4s ease, background-color 0.4s ease;
    }

    .dot.active {
      width: var(--dot-active-width);
      background: var(--dot-active);
    }

    @media (max-width: 768px) {
      .dots {
        left: 18px;
        bottom: 18px;
      }
    }

    /* Flecha de scroll (indicador centrado abajo) */
    .scroll-down {
      position: absolute;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      color: #fff;
      border: 2px solid rgba(255, 255, 255, 0.65);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.06);
      filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
      cursor: pointer;
      transition: border-color 0.3s ease, background-color 0.3s ease;
      animation: scroll-float 2s ease-in-out infinite;
    }

    .scroll-down:hover {
      border-color: #fff;
      background: rgba(255, 255, 255, 0.18);
    }

    .scroll-down svg {
      width: 24px;
      height: 24px;
    }

    @keyframes scroll-float {
      0%, 100% { transform: translate(-50%, 0); }
      50% { transform: translate(-50%, 8px); }
    }

    @media (max-width: 768px) {
      .scroll-down {
        bottom: 18px;
        width: 40px;
        height: 40px;
      }
      .scroll-down svg {
        width: 20px;
        height: 20px;
      }
    }

    /* ===== Menú desplegable a pantalla completa ===== */
    .menu-overlay {
      position: fixed;
      inset: 0;
      z-index: 50;
      background: rgba(0, 0, 0, 0.93); /* negro con transparencia mínima */
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .menu-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    /* Botón cerrar minimalista (arriba a la derecha) */
    .close-btn {
      position: absolute;
      top: 24px;
      right: 24px;
      width: 48px;
      height: 48px;
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .close-btn span {
      position: absolute;
      width: 30px;
      height: 2px;
      background: #fff;
      border-radius: 2px;
      transition: background-color 0.3s ease;
    }

    .close-btn span:nth-child(1) { transform: rotate(45deg); }
    .close-btn span:nth-child(2) { transform: rotate(-45deg); }
    .close-btn:hover span { background: #5EEAD4; }

    /* Logo del menú (arriba centrado) */
    .menu-logo {
      position: absolute;
      top: 24px;
      left: 50%;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    }

    .menu-logo img {
      display: block;
      width: var(--portal-logo-desktop, 180px);
      height: auto;
    }

    @media (max-width: 1024px) {
      .menu-logo img {
        width: var(--portal-logo-tablet, 150px);
      }
    }

    .menu-news-search {
      position: relative;
      z-index: 2;
      display: block;
      width: min(680px, calc(100vw - 96px));
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .45s ease, transform .45s ease;
    }

    .menu-overlay.open .menu-news-search {
      opacity: 1;
      transform: translateY(0);
      transition-delay: .08s;
    }

    .menu-news-search-field {
      display: flex;
      height: 62px;
      align-items: center;
      gap: 12px;
      padding: 0 20px;
      border: 1px solid rgba(255, 255, 255, .9);
      border-radius: 999px;
      color: #fff;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .menu-news-search-field:focus-within {
      border-color: #5eead4;
      box-shadow: 0 0 0 3px rgba(94, 234, 212, .16);
    }

    .menu-news-search-field svg {
      width: 21px;
      height: 21px;
      flex: 0 0 21px;
    }

    .menu-news-search-field input {
      width: 100%;
      min-width: 0;
      height: 60px;
      padding: 0;
      border: 0;
      outline: 0;
      background: transparent;
      color: #fff;
      font: inherit;
      font-size: 1.12rem;
    }

    .menu-news-search-field input::placeholder { color: rgba(255, 255, 255, .68); }
    .menu-news-search-field input::-webkit-search-cancel-button { filter: invert(1); }

    .menu-news-search-results {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      right: 0;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .46);
      border-radius: 0;
      background: rgba(8, 10, 14, .98);
      box-shadow: 0 22px 60px rgba(0, 0, 0, .48);
    }

    .menu-news-search-results[hidden] { display: none; }

    .menu-news-search-result {
      display: grid;
      width: 100%;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 18px;
      align-items: center;
      padding: 14px;
      border: 0;
      border-bottom: 1px solid rgba(255, 255, 255, .42);
      background: transparent;
      color: #fff;
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition: background-color .18s ease;
    }

    .menu-news-search-result:last-child { border-bottom: 0; }
    .menu-news-search-result:hover,
    .menu-news-search-result:focus-visible {
      outline: 0;
      background: rgba(94, 234, 212, .12);
    }

    .menu-news-search-result-media {
      width: 112px;
      height: 78px;
      overflow: hidden;
      border-radius: 0;
      background: linear-gradient(135deg, #1f2937, #475569);
    }

    .menu-news-search-result-media img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .menu-news-search-result-copy { min-width: 0; }
    .menu-news-search-result-title {
      display: block;
      overflow: hidden;
      margin-bottom: 4px;
      font-size: 1.08rem;
      font-weight: 800;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .menu-news-search-result-description {
      display: -webkit-box;
      overflow: hidden;
      color: rgba(255, 255, 255, .68);
      font-size: .9rem;
      line-height: 1.35;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .menu-news-search-state {
      display: block;
      padding: 18px 20px;
      color: rgba(255, 255, 255, .72);
      font-size: .86rem;
      text-align: center;
    }

    @media (max-width: 768px) {
      .menu-overlay {
        gap: 0;
      }
      .close-btn {
        top: 16px;
        right: 16px;
      }
      .menu-logo {
        top: 16px;
      }
      .menu-logo img {
        width: var(--portal-logo-mobile, 115px);
      }
      .menu-news-search {
        width: calc(100vw - 32px);
      }
      .menu-news-search-field {
        height: 56px;
        gap: 10px;
        padding: 0 16px;
      }
      .menu-news-search-field input {
        height: 54px;
        font-size: 1.02rem;
      }
      .menu-news-search-results {
        max-height: 60svh;
        overflow-y: auto;
        border-radius: 0;
      }
      .menu-news-search-result {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
      }
      .menu-news-search-result-media {
        width: 88px;
        height: 68px;
        border-radius: 0;
      }
      .menu-news-search-result-title { font-size: 1rem; }
      .menu-news-search-result-description { font-size: .84rem; }
    }

    /* ===== Feed de noticias estilo red social (solo móvil) ===== */
    .news-feed {
      display: none;
    }

    .feed-ad-item {
      display: none;
    }

    .news-load-more-wrap {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 10px;
      padding: 44px 20px 52px;
      overflow-anchor: none;
    }

    .news-feed-items,
    .pc-news-grid {
      overflow-anchor: none;
    }

    .news-load-more-button {
      display: inline-flex;
      min-width: 190px;
      min-height: 48px;
      align-items: center;
      justify-content: center;
      padding: 11px 24px;
      border: 1px solid #111;
      border-radius: 0;
      background: transparent;
      color: #111;
      font: inherit;
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    }

    .news-load-more-button:hover,
    .news-load-more-button:focus-visible {
      background: #111;
      color: #fff;
    }

    .news-load-more-button:focus-visible {
      outline: 3px solid #0f766e;
      outline-offset: 3px;
    }

    .news-load-more-button:disabled {
      opacity: 0.55;
      cursor: wait;
    }

    .news-load-more-status {
      min-height: 1.2em;
      color: #64748b;
      font-size: 0.78rem;
      text-align: center;
    }

    @media (max-width: 768px) {
      .news-feed {
        display: block;
        background: #fff;
      }

      .news-feed .news-load-more-wrap {
        padding-top: 38px;
        padding-bottom: 46px;
      }

      /* Foto (o galería) a pantalla completa con el título encima */
      .feed-media {
        position: relative;
        height: 100svh;
        overflow: hidden;
        background: #0f172a;
      }

      .feed-media-empty {
        background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
      }

      .feed-media > img,
      .feed-frame img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      /* Galería con deslizamiento nativo: sin temporizador, la mueve el dedo */
      .feed-track {
        display: flex;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .feed-track::-webkit-scrollbar {
        display: none;
      }

      .feed-frame {
        flex: 0 0 100%;
        height: 100%;
        scroll-snap-align: center;
      }

      /* Degradado de legibilidad; no debe interceptar el deslizamiento */
      .feed-media::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 45%);
        pointer-events: none;
      }

      /* El margen inferior deja libre la franja de los controles. Sin galería
         no hay puntos ni lupa, así que el título puede bajar más. */
      .feed-media-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        margin: 0 20px 28px;
        pointer-events: none;
      }

      /* Con galería, la lupa ocupa de 16px a 60px del borde: el título tiene
         que arrancar por encima de los 60px o se le monta encima. */
      .feed-gallery .feed-media-content {
        margin-bottom: 68px;
      }

      .feed-media-tag {
        display: block;
        margin-bottom: 10px;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #5EEAD4;
      }

      .feed-media-title {
        margin: 0;
        font-size: 1.7rem;
        font-weight: 800;
        line-height: 1.15;
        color: #fff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
      }

      .feed-dots {
        position: absolute;
        left: 20px;
        bottom: 20px;
        z-index: 3;
        display: flex;
        gap: 6px;
      }

      .feed-dot {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.45);
        transition: width 0.3s ease, background-color 0.3s ease;
      }

      .feed-dot.active {
        width: 22px;
        background: #fff;
      }

      .feed-gallery-expand {
        position: absolute;
        right: 18px;
        bottom: 16px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: #111;
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
        cursor: pointer;
        backdrop-filter: blur(8px);
      }

      .feed-gallery-expand svg {
        width: 21px;
        height: 21px;
      }

      .feed-text {
        background: #fff;
        color: #1a1a1a;
        padding: 28px 20px 40px;
      }

      .feed-summary {
        margin: 0;
        color: #333;
        font-size: 1.05rem;
        line-height: 1.6;
      }

      .feed-video {
        margin-top: 20px;
      }

      .feed-video iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        border: 0;
        border-radius: 12px;
        background: #0f172a;
      }

      /* Publicidad móvil: card real debajo de cada resumen. */
      .feed-ad-item {
        display: block;
        background: #fff;
        padding: 0 20px 40px;
      }

      .feed-ad-card {
        display: flex;
        min-width: 0;
        flex-direction: column;
        margin: 0;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
      }

      .feed-ad-media {
        width: 100%;
        aspect-ratio: 1 / 1;
        margin: 0;
        overflow: hidden;
        background: #fff;
      }

      .feed-ad-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .feed-ad-footer {
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0 16px;
        border-top: 1px solid #e5e7eb;
      }

      .feed-ad-label {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

      .feed-ad-social {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 12px;
        margin-left: auto;
        padding-left: 15px;
        border-left: 1px solid #cbd5e1;
      }

      .feed-ad-social-link {
        display: inline-flex;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        align-items: center;
        justify-content: center;
        color: #111;
        text-decoration: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
      }

      .feed-ad-social-link:not(.is-disabled):hover {
        opacity: 0.62;
        transform: translateY(-1px);
      }

      .feed-ad-social-link.is-disabled {
        color: #94a3b8;
        opacity: 0.68;
      }

      .feed-ad-social-link:focus-visible {
        outline: 2px solid #111;
        outline-offset: 3px;
      }

      .feed-ad-social-link svg {
        display: block;
        width: 20px;
        height: 20px;
      }

      .feed-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
        font-size: 0.85rem;
        color: #555;
      }

      .feed-meta svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: #111;
      }

      .feed-meta .feed-author {
        font-weight: 600;
        color: #111;
      }

      .feed-actions {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
        padding-top: 18px;
        padding-bottom: 22px;
      }

      .feed-actions::after {
        content: "";
        position: absolute;
        right: 12px;
        bottom: 0;
        left: 12px;
        height: 1px;
        background: #94a3b8;
      }

      /* Separación amplia a propósito: el voto no se puede deshacer, así que
         conviene reducir los toques por error entre botones vecinos. */
      .feed-vote {
        display: flex;
        align-items: center;
        gap: 22px;
      }

      .feed-share {
        display: flex;
        align-items: center;
        gap: 14px;
      }

    }

    /* ===== Botones de voto y compartir (compartidos PC + móvil) ===== */
    .vote-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      font-size: 0.85rem;
      font-weight: 600;
      color: #111;
      transition: opacity 0.2s ease, color 0.2s ease;
    }

    .vote-btn svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }

    .vote-btn:hover {
      opacity: 0.6;
    }

    /* El voto es definitivo: una vez emitido los dos botones quedan quietos.
       El votado se resalta; el otro se atenúa pero sigue mostrando su número. */
    .vote-btn:disabled {
      cursor: default;
    }

    .vote-btn:disabled:hover {
      opacity: 1;
    }

    .vote-btn:disabled:not(.voted) {
      opacity: 0.45;
    }

    .vote-btn.voted {
      color: #0f766e;
    }

    .vote-btn.voted svg {
      fill: rgba(15, 118, 110, 0.14);
    }

    /* tabular-nums evita que el botón salte de ancho al pasar de 9 a 10. */
    .vote-count {
      font-size: 0.78rem;
      font-weight: 600;
      color: #666;
      font-variant-numeric: tabular-nums;
    }

    .vote-count:empty {
      display: none;
    }

    .vote-btn.voted .vote-count {
      color: #0f766e;
    }

    .vote-btn.enviando {
      opacity: 0.5;
      cursor: progress;
    }

    .share-btn {
      display: inline-flex;
      align-items: center;
      color: #111;
      transition: opacity 0.2s ease;
    }

    .share-btn svg {
      width: 20px;
      height: 20px;
    }

    .share-btn:hover {
      opacity: 0.6;
    }

    /* ===== Vista inferior de nota completa (solo móvil) ===== */
    .story-sheet-trigger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      margin-top: 26px;
      padding: 11px 18px;
      color: #111;
      border: 1px solid #111;
      border-radius: 0;
      background: transparent;
      font: inherit;
      font-size: 0.78rem;
      font-weight: 750;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: color 0.2s ease, background-color 0.2s ease;
    }

    .story-sheet-trigger:hover,
    .story-sheet-trigger:focus-visible {
      color: #fff;
      background: #111;
      outline: none;
    }

    .story-sheet {
      position: fixed;
      inset: 0;
      z-index: 180;
      display: none;
      align-items: flex-end;
      justify-content: center;
      visibility: hidden;
      pointer-events: none;
      transition: visibility 0s linear 0.42s;
    }

    .story-sheet.open {
      visibility: visible;
      pointer-events: auto;
      transition-delay: 0s;
    }

    .story-sheet-backdrop {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      padding: 0;
      border: 0;
      background: rgba(15, 23, 42, 0);
      cursor: default;
      transition: background-color 0.38s ease;
    }

    .story-sheet.open .story-sheet-backdrop {
      background: rgba(15, 23, 42, 0.48);
    }

    .story-sheet-panel {
      position: relative;
      z-index: 1;
      width: min(100%, 960px);
      height: 60vh;
      height: 60svh;
      overflow: hidden;
      color: #111;
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-bottom: 0;
      border-radius: 28px 28px 0 0;
      background: #fff;
      box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.22);
      transform: translateY(105%);
      transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }

    .story-sheet.open .story-sheet-panel {
      transform: translateY(0);
    }

    .story-sheet-panel:focus {
      outline: none;
    }

    .story-sheet-header {
      position: relative;
      z-index: 3;
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
      height: 72px;
      padding: 10px 64px 0;
      border-bottom: 1px solid #e5e7eb;
      background: #fff;
      cursor: grab;
      touch-action: none;
      user-select: none;
    }

    .story-sheet.dragging .story-sheet-header {
      cursor: grabbing;
    }

    .story-sheet.dragging .story-sheet-panel,
    .story-sheet.dragging .story-sheet-backdrop {
      transition: none;
    }

    .story-sheet-heading {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      color: #111;
      font-size: 1.05rem;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }

    .story-sheet-heading svg {
      width: 21px;
      height: 21px;
      flex: 0 0 auto;
      color: #64748b;
    }

    .story-sheet-handle {
      position: absolute;
      top: 8px;
      left: 50%;
      z-index: 1;
      width: 40px;
      height: 4px;
      border-radius: 999px;
      background: #cbd5e1;
      transform: translateX(-50%);
      pointer-events: none;
    }

    .story-sheet-close {
      position: absolute;
      top: 16px;
      right: 16px;
      z-index: 4;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      padding: 0;
      color: #111;
      border: 0;
      border-radius: 50%;
      background: #f1f1f1;
      box-shadow: none;
      cursor: pointer;
      transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .story-sheet-close:hover {
      transform: scale(1.05);
      background: #fff;
    }

    .story-sheet-close svg {
      width: 23px;
      height: 23px;
    }

    .story-sheet-scroll {
      height: calc(100% - 72px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: #94a3b8 transparent;
    }

    .story-sheet-scroll::-webkit-scrollbar {
      width: 6px;
    }

    .story-sheet-scroll::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: #94a3b8;
    }

    .story-sheet-gallery {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: #0f172a;
    }

    .story-sheet-gallery-track {
      display: flex;
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .story-sheet-gallery-track::-webkit-scrollbar {
      display: none;
    }

    .story-sheet-gallery-dots {
      position: absolute;
      left: 18px;
      bottom: 18px;
      z-index: 2;
      display: flex;
      gap: 6px;
      pointer-events: none;
    }

    .story-sheet-gallery-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.48);
      transition: width 0.25s ease, background-color 0.25s ease;
    }

    .story-sheet-gallery-dot.active {
      width: 22px;
      background: #fff;
    }

    .story-sheet-gallery-expand {
      position: absolute;
      right: 18px;
      bottom: 14px;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      padding: 0;
      color: #111;
      border: 1px solid rgba(255, 255, 255, 0.7);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
      cursor: pointer;
      backdrop-filter: blur(8px);
    }

    .story-sheet-gallery-expand svg {
      width: 21px;
      height: 21px;
    }

    .story-sheet-placement-ad-wrap {
      margin: 0 0 34px;
      background: #fff;
    }

    .story-sheet-placement-ad-footer {
      margin: 36px 0 0;
    }

    .story-sheet-placement-ad {
      display: flex;
      width: 100%;
      min-width: 0;
      margin: 0;
      overflow: hidden;
      flex-direction: column;
      border: 1px solid #e5e7eb;
      border-radius: 0;
      background: #fff;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .story-sheet-placement-ad .pc-news-ad-media {
      width: 100%;
      aspect-ratio: 1 / 1;
      margin: 0;
      overflow: hidden;
      background: #fff;
    }

    .story-sheet-placement-ad .pc-news-ad-media img {
      display: block;
      width: 100%;
      height: 100%;
      margin: 0;
      border-radius: 0;
      object-fit: contain;
    }

    .story-sheet-placement-ad .pc-news-ad-footer {
      display: flex;
      min-height: 64px;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 0 14px;
      border-top: 1px solid #e5e7eb;
    }

    .story-sheet-placement-ad .pc-news-ad-label {
      flex: 0 0 auto;
      color: #64748b;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .story-sheet-placement-ad .pc-news-ad-social {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: 12px;
      margin-left: auto;
      padding-left: 14px;
      border-left: 1px solid #cbd5e1;
    }

    .story-sheet-placement-ad .pc-news-ad-social-link {
      display: inline-flex;
      width: 24px;
      height: 24px;
      flex: 0 0 24px;
      align-items: center;
      justify-content: center;
      color: #111;
      text-decoration: none;
    }

    .story-sheet-placement-ad .pc-news-ad-social-link.is-disabled {
      color: #94a3b8;
      opacity: 0.68;
    }

    .story-sheet-placement-ad .pc-news-ad-social-link:focus-visible {
      outline: 2px solid #111;
      outline-offset: 3px;
    }

    .story-sheet-placement-ad .pc-news-ad-social-link svg {
      display: block;
      width: 20px;
      height: 20px;
    }

    .story-reading-tools {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      margin: -6px 0 26px;
    }

    .story-reading-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 1px;
      width: 44px;
      height: 44px;
      padding: 0;
      color: #111;
      border: 1px solid #cbd5e1;
      border-radius: 50%;
      background: #fff;
      font: inherit;
      font-size: 1.08rem;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
      transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    }

    .story-reading-button:hover,
    .story-reading-button:focus-visible {
      color: #fff;
      border-color: #111;
      background: #111;
      outline: none;
      transform: translateY(-1px);
    }

    .story-reading-button:disabled {
      color: #94a3b8;
      border-color: #e2e8f0;
      background: #f8fafc;
      cursor: not-allowed;
      transform: none;
    }

    .story-reading-symbol {
      font-size: 0.78em;
      font-weight: 900;
    }

    .story-reading-status {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .story-sheet-body {
      --reading-scale: 1;
      font-size: calc(1rem * var(--reading-scale));
    }

    .story-sheet-article .story-sheet-body p {
      font-size: calc(1.05rem * var(--reading-scale));
    }

    .story-sheet-article .story-sheet-body li {
      font-size: calc(1rem * var(--reading-scale));
    }

    .story-sheet-article .story-sheet-body h1 {
      font-size: calc(1.35rem * var(--reading-scale));
    }

    .story-sheet-article .story-sheet-body h2 {
      font-size: calc(1.2rem * var(--reading-scale));
    }

    .story-sheet-article .story-sheet-body h3 {
      font-size: calc(1.05rem * var(--reading-scale));
    }

    .story-sheet-photo {
      flex: 0 0 100%;
      max-height: 320px;
      aspect-ratio: 16 / 6;
      margin: 0;
      scroll-snap-align: center;
      overflow: hidden;
    }

    /* La especificidad evita que .rich-text img convierta la foto en alto
       automático y deje visible una franja azul variable debajo. */
    .story-sheet-article .story-sheet-photo img {
      display: block;
      width: 100%;
      max-width: none;
      height: 100%;
      object-fit: cover;
      margin: 0;
      border-radius: 0;
      cursor: zoom-in;
    }

    .story-sheet-copy {
      width: min(100%, 760px);
      margin: 0 auto;
      padding: 38px 40px 64px;
    }

    .story-sheet-tag {
      display: inline-block;
      margin-bottom: 12px;
      color: #0f766e;
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .story-sheet-title {
      margin: 0 60px 18px 0 !important;
      color: #111;
      font-size: clamp(2rem, 4vw, 3.4rem) !important;
      font-weight: 800 !important;
      line-height: 1.05 !important;
    }

    .story-sheet-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 30px;
      color: #64748b;
      font-size: 0.86rem;
    }

    .story-sheet-meta svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      color: #111;
    }

    .story-sheet-author {
      color: #111;
      font-weight: 700;
    }

    .story-sheet-actions {
      display: flex;
      align-items: center;
      margin-top: 32px;
      padding: 22px 0;
      border-top: 1px solid #e2e8f0;
      border-bottom: 1px solid #e2e8f0;
    }

    .story-sheet-vote {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .story-sheet-share {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-left: auto;
      padding-left: 17px;
      border-left: 1px solid #cbd5e1;
    }

    .story-sheet-actions .vote-btn {
      gap: 5px;
      color: #111;
      font-size: 0.78rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .story-sheet-actions .share-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      color: #111;
      text-decoration: none;
    }

    .story-sheet-actions .share-btn svg {
      width: 21px;
      height: 21px;
    }

    .story-sheet-ads {
      display: grid;
      gap: 22px;
      margin-top: 36px;
    }

    .story-sheet-ads-label {
      color: #64748b;
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .story-sheet-ad {
      width: 100%;
      margin: 0;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      border: 1px solid rgba(15, 23, 42, 0.1);
      background: #fff;
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    }

    .story-sheet-ad img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .story-latest {
      display: none;
    }

    @media (max-width: 768px) {
      .story-sheet {
        display: flex;
      }

      .story-sheet-panel {
        width: 100%;
        height: 85vh;
        height: 85svh;
        border-radius: 28px 28px 0 0;
      }

      .story-sheet-photo {
        max-height: none;
        /* 30% más alta que el 4:3 anterior: 0,75 × 1,30 = 0,975. */
        aspect-ratio: 40 / 39;
      }

      .story-sheet-copy {
        padding: 30px 20px 52px;
      }

      .story-sheet-title {
        margin-right: 42px !important;
        font-size: 1.8rem !important;
      }

      .story-sheet-close {
        top: 16px;
        right: 14px;
        width: 42px;
        height: 42px;
      }

      .story-sheet-vote { gap: 14px; }

      .story-latest {
        display: block;
        margin-top: 48px;
        padding-top: 4px;
      }

      .story-latest-header {
        display: grid;
        grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
      }

      .story-latest-header span {
        height: 1px;
        background: #cbd5e1;
      }

      .story-latest-header h2 {
        margin: 0 !important;
        color: #111;
        font-size: 1rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em;
        line-height: 1.2 !important;
        text-align: center;
        text-transform: uppercase;
      }

      .story-latest-list,
      .story-latest-entry {
        display: grid;
        gap: 18px;
      }

      .story-latest-entry:not(:last-child) {
        margin-bottom: 4px;
      }

      .story-latest-entry:last-child .story-latest-ad-card {
        display: none;
      }

      .story-latest .pc-news-card,
      .story-latest .pc-news-ad-card {
        width: 100%;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
      }

      .story-latest .pc-news-card-link {
        display: flex;
        min-height: 100%;
        flex-direction: column;
        color: inherit;
        text-decoration: none;
      }

      .story-latest .pc-news-card-link:focus-visible {
        outline: 3px solid #0f766e;
        outline-offset: -3px;
      }

      .story-latest .pc-news-card-media {
        width: 100%;
        aspect-ratio: 3 / 2;
        margin: 0;
        overflow: hidden;
        border-radius: 0;
        background: #e2e8f0;
      }

      .story-latest .pc-news-card-media img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        object-fit: cover;
      }

      .story-latest .pc-news-card-media-empty {
        background: linear-gradient(135deg, #0f172a, #334155);
      }

      .story-latest .pc-news-card-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 18px 18px 20px;
      }

      .story-latest .pc-news-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35em;
        margin: 0 0 6px;
        color: #52636d;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.035em;
        line-height: 1.35;
        text-transform: uppercase;
      }

      .story-latest .pc-news-card-meta span:first-child {
        color: #0f766e;
      }

      .story-latest .pc-news-card-title {
        display: -webkit-box;
        margin: 0 0 7px !important;
        overflow: hidden;
        color: #111;
        font-size: 1.38rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.025em;
        line-height: 1.08 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }

      .story-latest .pc-news-card-summary {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: #737373;
        font-size: 0.98rem;
        line-height: 1.42;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }

      .story-latest .pc-news-card-cta {
        display: inline-flex;
        min-height: 44px;
        align-self: flex-start;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        padding: 10px 15px;
        color: #111;
        border: 1px solid #111;
        border-radius: 0;
        background: transparent;
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
      }

      .story-latest .pc-news-ad-card {
        display: flex;
        flex-direction: column;
      }

      .story-latest .pc-news-ad-media {
        width: 100%;
        aspect-ratio: 1 / 1;
        margin: 0;
        overflow: hidden;
        background: #fff;
      }

      .story-latest .pc-news-ad-media img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        object-fit: contain;
      }

      .story-latest .pc-news-ad-footer {
        display: flex;
        min-height: 64px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0 14px;
        border-top: 1px solid #e5e7eb;
      }

      .story-latest .pc-news-ad-label {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .story-latest .pc-news-ad-social {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 12px;
        margin-left: auto;
        padding-left: 14px;
        border-left: 1px solid #cbd5e1;
      }

      .story-latest .pc-news-ad-social-link {
        display: inline-flex;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        align-items: center;
        justify-content: center;
        color: #111;
        text-decoration: none;
      }

      .story-latest .pc-news-ad-social-link.is-disabled {
        color: #94a3b8;
        opacity: 0.68;
      }

      .story-latest .pc-news-ad-social-link:focus-visible {
        outline: 2px solid #111;
        outline-offset: 3px;
      }

      .story-latest .pc-news-ad-social-link svg {
        display: block;
        width: 20px;
        height: 20px;
      }
    }

    /* En PC la misma nota completa aparece como drawer recto a la derecha. */
    @media (min-width: 769px) {
      .story-sheet {
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
      }

      .story-sheet-panel {
        width: 40vw;
        height: 100vh;
        height: 100svh;
        border: 0;
        border-left: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 0;
        box-shadow: -24px 0 70px rgba(15, 23, 42, 0.22);
        transform: translateX(105%);
      }

      .story-sheet.open .story-sheet-panel {
        transform: translateX(0);
      }

      .story-sheet-header {
        padding-top: 0;
        cursor: default;
        touch-action: auto;
      }

      .story-sheet-handle {
        display: none;
      }

      .story-sheet-photo {
        max-height: none;
        aspect-ratio: 4 / 3;
      }

      .story-sheet-copy {
        padding: 32px 30px 58px;
      }

      .story-sheet-title {
        margin-right: 46px !important;
        font-size: clamp(1.65rem, 2.1vw, 2.35rem) !important;
      }

      .story-latest {
        display: block;
        margin-top: 54px;
        padding-top: 4px;
      }

      .story-latest-header {
        display: grid;
        grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
        align-items: center;
        gap: 14px;
        margin-bottom: 26px;
      }

      .story-latest-header span {
        height: 1px;
        background: #cbd5e1;
      }

      .story-latest-header h2 {
        margin: 0 !important;
        color: #111;
        font-size: 1.08rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.045em;
        line-height: 1.2 !important;
        text-align: center;
        text-transform: uppercase;
      }

      .story-latest-list,
      .story-latest-entry {
        display: grid;
        gap: 22px;
      }

      .story-latest-entry {
        min-width: 0;
      }

      .story-latest-entry:not(:last-child) {
        margin-bottom: 4px;
      }

      .story-latest-entry:last-child .story-latest-ad-card {
        display: none;
      }

      .story-latest .pc-news-card,
      .story-latest .pc-news-ad-card {
        width: 100%;
      }

      .story-latest .pc-news-card-link {
        color: inherit;
        text-decoration: none;
      }

      .story-latest .pc-news-ad-social-link {
        color: #111;
      }

      .story-latest .pc-news-ad-social-link.is-disabled {
        color: #94a3b8;
      }

      .pc-news-card-cta {
        display: inline-flex;
        min-height: 44px;
        align-self: flex-start;
        align-items: center;
        justify-content: center;
        margin-top: 22px;
        padding: 10px 16px;
        color: #111;
        border: 1px solid #111;
        border-radius: 0;
        background: transparent;
        font-size: 0.75rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
        transition: color 0.2s ease, background-color 0.2s ease;
      }

      .pc-news-card-link:hover .pc-news-card-cta,
      .pc-news-card-link:focus-visible .pc-news-card-cta {
        color: #fff;
        background: #111;
      }
    }

    @media (min-width: 769px) and (max-width: 1100px) {
      .story-sheet-copy {
        padding-right: 24px;
        padding-left: 24px;
      }

      .story-sheet-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
      }

      .story-sheet-share {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
      }
    }

    @media (max-width: 360px) {
      .story-sheet-vote { gap: 10px; }
      .story-sheet-share { gap: 13px; padding-left: 13px; }
      .story-sheet-actions .vote-btn { font-size: 0.72rem; }
      .story-sheet-actions .vote-btn svg { width: 17px; height: 17px; }

      .story-sheet-header {
        padding-right: 66px;
        padding-left: 66px;
      }

      .story-sheet-heading {
        gap: 6px;
        font-size: 0.94rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .story-sheet,
      .story-sheet-backdrop,
      .story-sheet-panel,
      .story-reading-button {
        transition-duration: 0.01ms;
      }
    }

    /* ===== Visor ampliado de galerías (compartido PC + móvil) ===== */
    .gallery-lightbox {
      display: none;
    }

    .gallery-lightbox.open {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: rgba(0, 0, 0, 0.97);
      overscroll-behavior: contain;
    }

    .pc-lightbox-stage {
      position: absolute;
      inset: 34px 96px 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .pc-lightbox-stage img {
      display: block;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      user-select: none;
      cursor: zoom-in;
      transition: transform 0.16s ease;
      will-change: transform;
    }

    /* Durante la pinza o el arrastre la imagen sigue al dedo sin demora. */
    .gallery-lightbox.pinching .pc-lightbox-stage img,
    .gallery-lightbox.panning .pc-lightbox-stage img {
      transition: none;
    }

    .gallery-lightbox.panning .pc-lightbox-stage img {
      cursor: grabbing;
    }

    .pc-lightbox-close,
    .pc-lightbox-arrow {
      position: absolute;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.28);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .pc-lightbox-close:hover,
    .pc-lightbox-arrow:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: scale(1.05);
    }

    .pc-lightbox-close {
      top: 24px;
      right: 26px;
      width: 48px;
      height: 48px;
    }

    .pc-lightbox-close svg {
      width: 24px;
      height: 24px;
    }

    .pc-lightbox-arrow {
      top: 50%;
      width: 54px;
      height: 54px;
      transform: translateY(-50%);
    }

    .pc-lightbox-arrow:hover {
      transform: translateY(-50%) scale(1.05);
    }

    .pc-lightbox-arrow svg {
      width: 30px;
      height: 30px;
    }

    .pc-lightbox-prev { left: 24px; }
    .pc-lightbox-next { right: 24px; }

    .pc-lightbox-counter,
    .pc-lightbox-zoom {
      position: absolute;
      bottom: 23px;
      z-index: 2;
      color: rgba(255, 255, 255, 0.82);
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.03em;
    }

    .pc-lightbox-counter { left: 28px; }
    .pc-lightbox-zoom { left: 50%; transform: translateX(-50%); }

    /* En móvil se navega deslizando: sin flechas y con márgenes ajustados */
    @media (max-width: 768px) {
      .pc-lightbox-stage {
        inset: 72px 0 64px;
        touch-action: none;
      }

      .pc-lightbox-arrow {
        display: none;
      }

      .pc-lightbox-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
      }

      .pc-lightbox-counter {
        left: 20px;
        bottom: 20px;
      }

      .pc-lightbox-zoom {
        left: auto;
        right: 20px;
        bottom: 20px;
        transform: none;
      }
    }

    /* ===== Contenido HTML enriquecido (descripción de la noticia) =====
       Base compartida por el feed móvil y el de PC. El bloque de PC más abajo
       solo reajusta tamaños y márgenes; el resto vive acá una sola vez. */
    .rich-text h1,
    .rich-text h2,
    .rich-text h3 {
      line-height: 1.25;
      font-weight: 800;
      color: #111;
      margin: 1.2em 0 0.5em;
    }

    .rich-text h1 { font-size: 1.35rem; }
    .rich-text h2 { font-size: 1.2rem; }
    .rich-text h3 { font-size: 1.05rem; }

    .rich-text p {
      margin: 0 0 16px;
      font-size: 1.05rem;
      line-height: 1.6;
      color: #333;
    }

    .rich-text ul,
    .rich-text ol {
      padding-left: 1.5rem;
      margin-bottom: 16px;
      color: #333;
    }

    .rich-text ul { list-style: disc; }
    .rich-text ol { list-style: decimal; }

    .rich-text li {
      margin-bottom: 6px;
      font-size: 1rem;
      line-height: 1.6;
    }

    .rich-text blockquote {
      border-left: 3px solid #5EEAD4;
      padding-left: 14px;
      margin-bottom: 16px;
      color: #555;
      font-style: italic;
    }

    .rich-text code {
      background: #f1f5f9;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.85em;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .rich-text pre {
      background: #0f172a;
      color: #e2e8f0;
      padding: 14px;
      border-radius: 8px;
      overflow-x: auto;
      margin-bottom: 16px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.85rem;
    }

    .rich-text pre code {
      background: none;
      padding: 0;
      color: inherit;
    }

    .rich-text mark {
      background: #fef08a;
      color: inherit;
      border-radius: 2px;
      padding: 0 2px;
    }

    .rich-text sub,
    .rich-text sup {
      font-size: 0.75em;
    }

    .rich-text hr {
      border: none;
      border-top: 2px solid #eee;
      margin: 1.2em 0;
    }

    .rich-text img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 16px;
    }

    .rich-text a {
      color: #0ea5e9;
      text-decoration: underline;
    }

    /* Audios y videos compartidos por los feeds PC y móvil. */
    .story-media {
      display: grid;
      width: 100%;
      min-width: 0;
      gap: 20px;
      margin-top: 22px;
    }

    .story-media-group {
      display: grid;
      width: 100%;
      min-width: 0;
      gap: 12px;
    }

    .story-media-heading {
      margin: 0;
      color: #64748b;
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .story-audio {
      display: grid;
      width: 100%;
      min-width: 0;
      gap: 6px;
    }

    .story-audio span {
      color: #64748b;
      font-size: 0.76rem;
      font-weight: 600;
    }

    .story-audio audio {
      display: block;
      width: 100%;
      min-width: 100%;
      max-width: 100%;
      height: 42px;
    }

    .story-audio audio::-webkit-media-controls-enclosure,
    .story-audio audio::-webkit-media-controls-panel {
      width: 100%;
      max-width: 100%;
    }

    .story-video {
      overflow: hidden;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #0f172a;
      border-radius: 12px;
    }

    .story-video iframe {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
    }

    /* ===== Grilla editorial de noticias (solo PC) ===== */
    .pc-feed {
      display: none;
    }

    .pc-site-footer {
      position: relative;
      display: block;
      padding: 28px 20px 34px;
      background: transparent;
      color: #64748b;
      text-align: center;
    }

    .pc-site-footer::before {
      content: "";
      position: absolute;
      top: 0;
      right: 24px;
      left: 24px;
      height: 18px;
      background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.16) 0%,
        rgba(15, 23, 42, 0.075) 24%,
        rgba(15, 23, 42, 0.026) 56%,
        rgba(15, 23, 42, 0) 100%
      );
      filter: blur(0.45px);
      -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
      mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    }

    .pc-site-footer p {
      margin: 0;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.035em;
      line-height: 1.5;
    }

    .pc-site-footer a {
      color: #111;
      font-weight: 800;
      text-decoration: none;
      text-underline-offset: 3px;
    }

    .pc-site-footer a:hover {
      text-decoration: underline;
    }

    .pc-site-footer a:focus-visible {
      outline: 2px solid #111;
      outline-offset: 4px;
    }

    @media (min-width: 769px) {
      .pc-feed {
        display: block;
        width: 100%;
        padding: 112px 32px 32px;
        background: #fff;
      }

      .pc-news-filters {
        display: grid;
        grid-template-columns: minmax(190px, 1.35fr) minmax(170px, 1fr) minmax(132px, 0.7fr) minmax(132px, 0.7fr) minmax(104px, auto);
        gap: 12px;
        width: 100%;
        margin: 0 0 36px;
      }

      .pc-news-filter {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 50px;
        align-items: center;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #111;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      }

      .pc-news-filter:focus-within {
        border-color: #111;
        box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
      }

      .pc-news-filter input,
      .pc-news-filter select {
        width: 100%;
        min-width: 0;
        height: 48px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #111;
        font: inherit;
        font-size: 0.92rem;
        font-weight: 650;
      }

      .pc-news-filter-search svg {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        margin-left: 16px;
        color: #64748b;
      }

      .pc-news-filter-search input {
        padding: 0 14px 0 10px;
      }

      .pc-news-filter-category details {
        position: relative;
        width: 100%;
      }

      .pc-news-filter-category summary {
        display: flex;
        width: 100%;
        height: 48px;
        padding: 0 13px 0 14px;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        overflow: hidden;
        cursor: pointer;
        list-style: none;
        font-size: 0.92rem;
        font-weight: 650;
      }

      .pc-news-filter-category summary::-webkit-details-marker { display: none; }
      .pc-news-filter-category summary span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .pc-news-filter-category summary svg {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
        transition: transform .18s ease;
      }
      .pc-news-filter-category details[open] summary svg { transform: rotate(180deg); }

      .pc-news-filter-category-options {
        position: absolute;
        z-index: 40;
        top: calc(100% + 7px);
        left: -1px;
        min-width: calc(100% + 2px);
        max-height: 240px;
        overflow-y: auto;
        padding: 7px;
        border: 1px solid #cbd5e1;
        background: #fff;
        box-shadow: 0 14px 35px rgba(15, 23, 42, .16);
      }

      .pc-news-filter-category-options label {
        display: flex;
        min-height: 38px;
        padding: 7px 8px;
        align-items: center;
        gap: 9px;
        cursor: pointer;
      }
      .pc-news-filter-category-options label:hover { background: #f1f5f9; }
      .pc-news-filter-category-options input {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
        accent-color: #111;
      }

      .pc-news-filter-date {
        padding-left: 12px;
      }

      .pc-news-filter-date > span {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .pc-news-filter-date input {
        padding: 0 8px;
      }

      .pc-news-filter-submit {
        min-height: 50px;
        padding: 0 24px;
        border: 1px solid #111;
        background: #111;
        color: #fff;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
      }

      .pc-news-filter-submit:hover {
        background: #fff;
        color: #111;
      }

      .pc-news-filter-submit:active {
        transform: translateY(1px);
      }

      .pc-news-filter-submit:focus-visible {
        outline: 3px solid #0f766e;
        outline-offset: 3px;
      }

      .pc-news-filter-status {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .pc-news-results {
        min-height: calc(100vh - 96px);
        transition: opacity 0.18s ease;
      }

      .pc-news-results[aria-busy="true"] {
        opacity: 0.5;
        pointer-events: none;
      }

      .pc-news-filter-empty {
        display: flex;
        min-height: calc(100vh - 96px);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        text-align: center;
      }

      .pc-news-filter-empty strong {
        color: #111;
        font-size: 1.25rem;
      }

      .pc-news-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
        width: 100%;
      }

      .pc-news-card {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .pc-news-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
      }

      .pc-news-card-link {
        display: flex;
        min-height: 100%;
        flex-direction: column;
        color: inherit;
        text-decoration: none;
      }

      .pc-news-card-link:focus-visible {
        outline: 3px solid #0f766e;
        outline-offset: -3px;
      }

      .pc-news-card-media {
        width: 100%;
        aspect-ratio: 3 / 2;
        margin: 0;
        overflow: hidden;
        border-radius: 0;
        background: #e2e8f0;
      }

      .pc-news-card-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
      }

      .pc-news-card:hover .pc-news-card-media img {
        transform: scale(1.025);
      }

      .pc-news-card-media-empty {
        background: linear-gradient(135deg, #0f172a, #334155);
      }

      .pc-news-card-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 22px 24px 24px;
      }

      .pc-news-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35em;
        margin: 0 0 6px;
        color: #52636d;
        font-size: 0.86rem;
        font-weight: 800;
        letter-spacing: 0.035em;
        line-height: 1.35;
        text-transform: uppercase;
      }

      .pc-news-card-meta span:first-child {
        color: #0f766e;
      }

      .pc-news-card-title {
        display: -webkit-box;
        margin: 0 0 6px;
        overflow: hidden;
        color: #111;
        font-size: clamp(1.35rem, 1.85vw, 1.65rem);
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.025em;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }

      .pc-news-card-summary {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: #737373;
        font-size: 1.05rem;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }

      .pc-news-mixed-row {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
        min-width: 0;
      }

      .pc-news-ad-card {
        display: flex;
        min-width: 0;
        flex-direction: column;
        margin: 0;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
      }

      .pc-news-ad-media {
        width: 100%;
        aspect-ratio: 1 / 1;
        margin: 0;
        overflow: hidden;
        background: #fff;
      }

      .pc-news-ad-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .pc-news-ad-footer {
        display: flex;
        min-height: clamp(67px, calc(35px + 3.55vw), 86px);
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 0 18px;
        border-top: 1px solid #e5e7eb;
      }

      .pc-news-ad-label {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

      .pc-news-ad-social {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 13px;
        margin-left: auto;
        padding-left: 18px;
        border-left: 1px solid #cbd5e1;
      }

      .pc-news-ad-social-link {
        display: inline-flex;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        align-items: center;
        justify-content: center;
        color: #111;
        text-decoration: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
      }

      .pc-news-ad-social-link:not(.is-disabled):hover {
        opacity: 0.62;
        transform: translateY(-1px);
      }

      .pc-news-ad-social-link.is-disabled {
        color: #94a3b8;
        opacity: 0.68;
      }

      .pc-news-ad-social-link:focus-visible {
        outline: 2px solid #111;
        outline-offset: 3px;
      }

      .pc-news-ad-social-link svg {
        display: block;
        width: 20px;
        height: 20px;
      }

      .pc-site-footer {
        padding-right: 32px;
        padding-left: 32px;
      }

      .pc-site-footer::before {
        right: clamp(40px, 4.45vw, 64px);
        left: clamp(40px, 4.45vw, 64px);
      }

      @media (prefers-reduced-motion: reduce) {
        .pc-news-card,
        .pc-news-card-media img,
        .pc-news-results {
          transition: none;
        }
      }
    }

    @media (min-width: 1100px) {
      .pc-news-grid,
      .pc-news-mixed-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (min-width: 769px) and (max-width: 900px) {
      .pc-feed {
        padding: 104px 24px 24px;
      }

      .pc-news-grid {
        gap: 22px 18px;
      }

      .pc-news-mixed-row {
        gap: 22px 18px;
      }

      .pc-news-card-body {
        padding: 18px 18px 20px;
      }

      .pc-news-card-summary {
        font-size: 1rem;
      }

      .pc-news-filters {
        grid-template-columns: minmax(150px, 1.2fr) minmax(145px, 1fr) minmax(124px, 0.8fr) minmax(124px, 0.8fr) 92px;
        gap: 9px;
      }

      .pc-news-filter-submit {
        padding: 0 14px;
      }
    }
