.news-card {
    border: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
  }

  .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
  }

  .news-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
  }

  .news-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .news-card:hover .news-image {
    transform: scale(1.05);
  }

  .news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0d6efd;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .news-date {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
  }

  .news-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
  }

  .news-link:hover {
    color: #084298;
  }

  /* ===== NUEVO: slider ===== */
  .noticias-slider-wrapper {
    position: relative;
    padding: 0 45px; /* espacio para flechas */
  }

  #noticias {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity; /* menos brusco que "mandatory" */
    scroll-padding-left: 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* inercia en iOS */
    padding-bottom: 12px;
    cursor: grab;
    user-select: none;

    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease;
  }
  #noticias.arrastrando {
    cursor: grabbing;
    scroll-snap-type: none; /* mientras se arrastra no interrumpe con el snap */
    scroll-behavior: auto;
  }
  #noticias.cargado {
    opacity: 1;
    visibility: visible;
  }

  #noticias::-webkit-scrollbar { height: 8px; }
  #noticias::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

  .noticia-slide {
    flex: 0 0 auto;
    width: 340px;
    scroll-snap-align: start;
  }

  .slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .slider-arrow:hover { background: #0d6efd; color: #fff; }
  .slider-prev { left: 0; }
  .slider-next { right: 0; }

  #noticias-loader {
    width: 100%;
  }

  @media (max-width: 576px) {
    .noticia-slide { width: 85%; }
    .noticias-slider-wrapper { padding: 0 35px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 15px; }
  }