    @font-face {
      font-family: 'Aeonik';
      src: url('assets/AeonikTRIAL-Light.otf') format('opentype');
      font-weight: 300;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'Aeonik';
      src: url('assets/AeonikTRIAL-LightItalic.otf') format('opentype');
      font-weight: 300;
      font-style: italic;
      font-display: swap;
    }
    @font-face {
      font-family: 'Aeonik';
      src: url('assets/AeonikTRIAL-Regular.otf') format('opentype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'Aeonik';
      src: url('assets/AeonikTRIAL-RegularItalic.otf') format('opentype');
      font-weight: 400;
      font-style: italic;
      font-display: swap;
    }
    @font-face {
      font-family: 'Aeonik';
      src: url('assets/AeonikTRIAL-Bold.otf') format('opentype');
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'Aeonik';
      src: url('assets/AeonikTRIAL-BoldItalic.otf') format('opentype');
      font-weight: 700;
      font-style: italic;
      font-display: swap;
    }

    :root {
      --yellow:      #ffc02f;
      --orange:      #ffab33;
      --orange-dark: #e39931;
      --red-pink:    #e50059;
      --red-dark:    #b8004e;
      --red-bright:  #ef2e14;
      --red:         #ca1f13;
      --gray:        #6f6e6e;

      --bg:         #f5f3f0;
      --surface:    #ffffff;
      --fg:         #1a1a1a;
      --muted:      #6f6e6e;
      --border:     #ddd9d4;
      --accent:     var(--red);
      --accent-hover: var(--red-dark);

      --font-body:   'Aeonik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      --font-display: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

      --fs-h1: clamp(36px, 5vw, 64px);
      --fs-h2: clamp(26px, 3.5vw, 42px);
      --fs-h3: 20px;
      --fs-body: 16px;
      --fs-small: 14px;
      --fs-meta: 13px;

      --container: 1120px;
      --gutter: 24px;
      --radius: 8px;
      --radius-lg: 14px;
    }

    [data-theme="dark"] {
      --bg:         #121212;
      --surface:    #1e1e1e;
      --fg:         #e0e0e0;
      --muted:      #999;
      --border:     #333;
      --card-bg:    #1a1a1a;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-body);
      font-size: var(--fs-body);
      line-height: 1.55;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }
    img { display: block; max-width: 100%; height: auto; }
    a { color: inherit; text-decoration: none; }
    p { text-wrap: pretty; }
    h1, h2, h3 { text-wrap: balance; }

    .container {
      max-width: var(--container);
      margin-inline: auto;
      padding-inline: var(--gutter);
    }
    .section {
      padding-block: clamp(48px, 7vw, 96px);
    }
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .section-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: var(--fs-h2);
      letter-spacing: -0.02em;
      position: relative;
    }
    .section-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 4px;
      background: var(--accent);
      margin-top: 10px;
      border-radius: 2px;
    }

    /* ── Portada del día (Carrusel) ────────────────── */
    .portada-section {
      background: var(--bg);
    }
    .portada-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
    .portada-carousel {
      position: relative;
      width: 100%;
      max-width: 509px;
    }
    .portada-track-container {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius-lg);
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
      cursor: grab;
      width: 100%;
    }
    .portada-track-container:active { cursor: grabbing; }
    .portada-track {
      display: flex;
      transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
      user-select: none;
      width: 100%;
    }
    .portada-slide {
      flex: 0 0 100%;
      min-width: 0; /* CRITICAL: prevents flex item from expanding to image's intrinsic width */
      width: 100%;
      overflow: hidden;
    }
    .portada-img {
      width: 100%;
      aspect-ratio: 1018 / 1440;
      object-fit: cover;
      display: block;
    }
    .portada-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 5;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(0,0,0,0.5);
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, transform 0.15s;
      backdrop-filter: blur(4px);
    }
    .portada-arrow:hover { background: rgba(0,0,0,0.7); transform: translateY(-50%) scale(1.1); }
    .portada-arrow-left { left: -20px; }
    .portada-arrow-right { right: -20px; }
    .portada-dots {
      display: flex;
      gap: 8px;
      justify-content: center;
    }
    .portada-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid var(--muted);
      background: transparent;
      cursor: pointer;
      padding: 0;
      transition: all 0.2s;
    }
    .portada-dot.active {
      background: var(--accent);
      border-color: var(--accent);
      transform: scale(1.2);
    }
    .portada-fb-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 28px;
      background: #1877F2;
      color: #fff;
      border-radius: var(--radius);
      font-weight: 700;
      font-size: var(--fs-small);
      transition: background 0.2s, transform 0.15s;
    }
    .portada-fb-btn:hover {
      background: #0d65d9;
      transform: translateY(-2px);
    }
    .portada-fb-btn svg { flex-shrink: 0; }
    @media (max-width: 560px) {
      .portada-arrow-left { left: 8px; }
      .portada-arrow-right { right: 8px; }
    }

    .header {
      background: url('assets/Header Pagina Propuesta 2.png') center center no-repeat;
      background-size: cover;
      padding: 16px 0;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .header-logo { height: 56px; width: auto; }
    .header-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 2px;
      color: #fff;
    }
    .header-location {
      font-size: 13px;
      font-weight: 400;
      opacity: 0.9;
    }
    .header-clock {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.04em;
      font-variant-numeric: tabular-nums;
    }
    .theme-toggle {
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.3);
      color: #fff;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .theme-toggle:hover { background: rgba(255,255,255,0.3); }

    @media (max-width: 640px) {
      .header-logo { height: 48px; }
      .header-location { font-size: 11px; }
      .header-clock { font-size: 16px; }
      .theme-toggle { width: 30px; height: 30px; font-size: 13px; }
    }

    .hero-slider {
      position: relative;
      width: 100%;
      height: clamp(320px, 55vw, 560px);
      overflow: hidden;
      background: #1a1a1a;
    }
    .hero-slides {
      position: relative;
      width: 100%;
      height: 100%;
    }
    .hero-slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 0.8s ease, transform 0.8s ease;
      transform: scale(1.05);
      display: flex;
      align-items: center;
      pointer-events: none;
    }
    .hero-slide.active {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }
    .hero-slide-loading {
      background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
      opacity: 1;
      transform: none;
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.2) 100%);
    }
    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 680px;
      color: #fff;
    }
    .hero-category {
      display: inline-block;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 5px 12px;
      background: var(--accent);
      border-radius: 4px;
      margin-bottom: 16px;
    }
    .hero-content h2 {
      font-family: var(--font-display);
      font-size: clamp(28px, 4.5vw, 52px);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.1;
      margin-bottom: 14px;
    }
    .hero-content p {
      font-size: clamp(14px, 1.8vw, 18px);
      opacity: 0.85;
      font-weight: 300;
      line-height: 1.4;
      max-width: 560px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hero-date {
      display: inline-block;
      margin-top: 16px;
      font-size: var(--fs-meta);
      opacity: 0.6;
    }
    .hero-dots {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 2;
    }
    .hero-dots button {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.5);
      background: transparent;
      cursor: pointer;
      padding: 0;
      transition: background 0.3s, border-color 0.3s, transform 0.2s;
    }
    .hero-dots button.active {
      background: #fff;
      border-color: #fff;
      transform: scale(1.2);
    }
    .hero-dots button:hover {
      border-color: #fff;
    }

    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
    }
    .news-loading {
      display: contents;
    }
    .news-skeleton {
      height: 340px;
      border-radius: var(--radius-lg);
      background: linear-gradient(110deg, #e8e4e0 30%, #f5f3f0 50%, #e8e4e0 70%);
      background-size: 200% 100%;
      animation: shimmer 1.5s ease-in-out infinite;
    }
    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    .news-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px 20px;
      color: var(--muted);
    }
    .news-card {
      background: var(--surface);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
    }
    .news-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    }
    .news-card-img {
      width: 100%;
      aspect-ratio: 16 / 10;
      background-size: cover;
      background-position: center;
      background-color: #e8e4e0;
    }
    .news-card-img-placeholder {
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--red), var(--yellow));
      color: rgba(255,255,255,0.4);
    }
    .news-card-img-placeholder svg {
      width: 48px;
      height: 48px;
    }
    .news-card-body {
      padding: 18px 20px 22px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .news-card-category {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--accent);
    }
    .news-card-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.01em;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .news-card-excerpt {
      font-size: var(--fs-small);
      color: var(--muted);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-top: 2px;
    }
    .news-card-date {
      font-size: var(--fs-meta);
      color: var(--muted);
      font-weight: 300;
      margin-top: 6px;
    }

    @media (max-width: 640px) {
      .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }

    .filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 28px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
    }
    .filter-btn {
      background: none;
      border: 2px solid var(--border);
      padding: 6px 18px;
      border-radius: 100px;
      font-family: var(--font-body);
      font-size: var(--fs-small);
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      color: var(--muted);
    }
    .filter-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    .filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .expand-strip {
      text-align: center;
      margin-top: 36px;
    }
    .expand-btn {
      background: none;
      border: 2px solid var(--accent);
      color: var(--accent);
      padding: 10px 32px;
      border-radius: 100px;
      font-family: var(--font-body);
      font-size: var(--fs-small);
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
    }
    .expand-btn:hover {
      background: var(--accent);
      color: #fff;
    }
    .multimedia-section {
      background: var(--surface);
    }
    .multimedia-separator {
      text-align: center;
      margin-bottom: 24px;
    }
    .multimedia-label {
      display: inline-block;
      font-family: var(--font-display);
      font-size: var(--fs-h3);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      border-bottom: 3px solid var(--accent);
      padding-bottom: 6px;
    }
    .multimedia-slider {
      position: relative;
      max-width: 640px;
      margin: 0 auto;
    }
    .multimedia-slides {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: #111;
    }
    .multimedia-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.6s ease;
    }
    .multimedia-slide.active {
      opacity: 1;
    }
    .multimedia-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .multimedia-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(transparent 50%, rgba(0,0,0,0.8));
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 24px;
      color: #fff;
    }
    .multimedia-play {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      background: rgba(255,0,0,0.9);
      border-radius: 50%;
      margin-bottom: 10px;
    }
    .multimedia-title {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.3;
    }
    .multimedia-dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 14px;
    }
    .multimedia-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid var(--border);
      background: transparent;
      cursor: pointer;
      padding: 0;
      transition: all 0.2s;
    }
    .multimedia-dot.active {
      background: var(--accent);
      border-color: var(--accent);
    }
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      backdrop-filter: blur(4px);
    }
    .modal-panel {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: 680px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      animation: modalIn 0.25s ease;
    }
    @keyframes modalIn {
      from { opacity: 0; transform: translateY(20px) scale(0.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 24px;
      border-bottom: 1px solid var(--border);
    }
    .modal-category {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--accent);
    }
    .modal-close {
      background: none;
      border: none;
      font-size: 22px;
      cursor: pointer;
      color: var(--muted);
      padding: 4px 8px;
      line-height: 1;
      transition: color 0.2s;
    }
    .modal-close:hover { color: var(--fg); }
    .modal-body {
      padding: 24px;
    }
    .modal-title {
      font-family: var(--font-display);
      font-size: var(--fs-h2);
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 16px;
      letter-spacing: -0.01em;
    }
    .modal-summary {
      font-size: var(--fs-body);
      line-height: 1.7;
      color: var(--fg);
    }
    .modal-summary iframe {
      max-width: 100%;
      border-radius: var(--radius);
    }
    .modal-media {
      margin-top: 20px;
    }
    .modal-media iframe {
      width: 100%;
      border-radius: var(--radius-lg);
      aspect-ratio: 16 / 9;
    }
    .modal-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 24px;
      padding-top: 18px;
      border-top: 1px solid var(--border);
    }
    .modal-footer-left {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: var(--fs-small);
      color: var(--muted);
    }
    .modal-footer-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .modal-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 18px;
      border-radius: 100px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      font-family: var(--font-body);
    }
    .modal-action-fb {
      background: #1877f2;
      color: #fff;
      text-decoration: none;
    }
    .modal-action-fb:hover { background: #166fe5; }
    .modal-action-share {
      background: var(--accent);
      color: #fff;
    }
    .modal-action-share:hover { background: var(--accent-hover); }

    .youtube-section {
      background: var(--bg);
    }
    .youtube-wrapper {
      position: relative;
      width: 100%;
      max-width: 1056px;
      margin: 0 auto;
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(0,0,0,0.10);
      background: #000;
    }
    .youtube-wrapper iframe {
      width: 100%;
      aspect-ratio: 16 / 9;
      display: block;
      border: 0;
    }
    .yt-placeholder {
      width: 100%;
      aspect-ratio: 16 / 9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #111;
      color: rgba(255,255,255,0.7);
      text-align: center;
      padding: 32px;
      gap: 12px;
    }
    .yt-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
    .yt-placeholder p { font-size: var(--fs-small); max-width: 360px; }
    .yt-link-wrap { text-align: center; margin-top: 20px; }
    .youtube-channel-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 24px;
      background: #ff0000;
      color: #fff;
      border-radius: var(--radius);
      font-weight: 700;
      font-size: var(--fs-small);
      transition: background 0.2s;
    }
    .youtube-channel-link:hover { background: #cc0000; }

    .footer {
      background: url('assets/Fondo footer.png') center / cover no-repeat;
      color: rgba(255,255,255,0.85);
      padding: 48px 0 32px;
    }
    .footer-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
      text-align: center;
    }
    .footer-logo { height: 40px; width: auto; opacity: 0.9; }
    .footer-social {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .footer-social a {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: var(--radius);
      background: rgba(255,255,255,0.08);
      color: #fff;
      font-size: var(--fs-small);
      font-weight: 500;
      transition: background 0.2s, transform 0.15s;
    }
    .footer-social a:hover {
      background: rgba(255,255,255,0.16);
      transform: translateY(-2px);
    }
    .footer-social a svg { width: 20px; height: 20px; flex-shrink: 0; }
    .footer-contact {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      margin-top: 8px;
    }
    .footer-contact-title {
      font-size: var(--fs-small);
      color: rgba(255,255,255,0.7);
      font-weight: 500;
    }
    .footer-contact a {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: var(--radius);
      background: rgba(255,255,255,0.05);
      color: #fff;
      font-size: var(--fs-small);
      font-weight: 500;
      transition: background 0.2s, transform 0.15s;
    }
    .footer-contact a:hover {
      background: rgba(255,255,255,0.12);
      transform: translateY(-2px);
    }
    .footer-contact a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }
    .footer-copy {
      font-size: var(--fs-meta);
      opacity: 0.6;
      border-top: 1px solid rgba(255,255,255,0.10);
      padding-top: 24px;
      width: 100%;
    }

    [data-theme="dark"] .news-card {
      box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    }
    [data-theme="dark"] .news-card:hover {
      box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    }
    [data-theme="dark"] .news-card-img {
      background-color: #222;
    }
    [data-theme="dark"] .news-skeleton {
      background: linear-gradient(110deg, #222 30%, #2a2a2a 50%, #222 70%);
    }
    [data-theme="dark"] .filter-btn {
      border-color: #444;
      color: #aaa;
    }
    [data-theme="dark"] .expand-btn {
      border-color: var(--accent);
      color: var(--accent);
    }
