/* =========================
NOTICIAS SECTION
========================= */

.news-section{
  padding: 90px 0;
  background: #fff;
}

/* GRID */
.news-cards{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:24px;
}

/* CARD */
.news-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.05);
  transition: all .35s cubic-bezier(.16,1,.3,1);
  opacity:0;
  transform: translateY(40px);
}

.news-card.visible{
  opacity:1;
  transform: translateY(0);
}

/* HOVER PRO */
.news-card:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* IMAGE */
.news-card__img{
  height:220px;
  overflow:hidden;
}

.news-card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .6s ease;
}

.news-card:hover img{
  transform: scale(1.08);
}

/* BODY */
.news-card__body{
  padding:22px;
}

.news-card__body h3{
  font-size:20px;
  margin:0 0 10px;
  line-height:1.2;
}

.news-card__body p{
  color:#5d5d5d;
  font-size:14px;
  margin-bottom:14px;
}

/* LINK */
.news-link{
  font-weight:700;
  color: var(--brand);
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:.2s;
}

.news-link:hover{
  gap:10px;
  color: var(--brand-dark);
}

/* RESPONSIVE */
@media (max-width:1000px){
  .news-cards{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:700px){
  .news-cards{
    grid-template-columns:1fr;
  }
}

/* =========================
ANIMACIONES HISTORIAS
========================= */

/* Estado inicial */
.story-post,
.stories-quote blockquote{
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.16,1,.3,1),
    box-shadow .3s ease;
  will-change: opacity, transform;
}

/* Estado visible */
.story-post.is-visible,
.stories-quote blockquote.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Retraso escalonado para las cards */
.story-post:nth-child(1){ transition-delay: .05s; }
.story-post:nth-child(2){ transition-delay: .12s; }
.story-post:nth-child(3){ transition-delay: .19s; }
.story-post:nth-child(4){ transition-delay: .26s; }

/* Hover más elegante */
.story-post{
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.16,1,.3,1),
    box-shadow .3s ease;
}

.story-post:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.story-post img{
  transition: transform .7s ease;
}

.story-post:hover img{
  transform: scale(1.05);
}

/* Cita con entrada un poco más protagonista */
.stories-quote blockquote{
  transform: translateY(45px) scale(.98);
}

.stories-quote blockquote.is-visible{
  transform: translateY(0) scale(1);
}

/* Línea decorativa opcional arriba de la cita */
.stories-quote blockquote{
  position: relative;
  overflow: hidden;
}

.stories-quote blockquote::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:0;
  height:4px;
  background: rgba(255,255,255,.85);
  transition: width .9s ease .25s;
}

.stories-quote blockquote.is-visible::before{
  width:100%;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .story-post,
  .stories-quote blockquote{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-post img,
  .stories-quote blockquote::before{
    transition: none !important;
  }
}

@media (max-width:860px){
  .menu-toggle{
    display:grid;
    place-items:center;
  }

  .nav__menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border-bottom:1px solid rgba(0,0,0,.06);
    padding:18px 20px 26px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    box-shadow:0 18px 30px rgba(0,0,0,.08);
    z-index:1000;
  }

  .nav__menu.is-open{
    display:flex;
  }

  .nav .btn--brand{
    display:none;
  }
}

.story-card{
  background:#fff;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(0,0,0,.08);
  transition:.4s;
}

.story-card:hover{
  transform:translateY(-10px);
  box-shadow:0 25px 50px rgba(0,0,0,.12);
}

.story-card__image{
  height:320px;
  overflow:hidden;
}

.story-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.8s;
}

.story-card:hover img{
  transform:scale(1.08);
}

.story-card__content{
  padding:28px;
}

.story-role{
  display:inline-block;
  background:#fff3eb;
  color:#f26a21;
  padding:8px 16px;
  border-radius:50px;
  font-size:13px;
  font-weight:600;
  margin-bottom:12px;
}

.story-btn{
  margin-top:15px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:#f26a21;
}