/* Home especifico */
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.section-title--center{
  justify-content:center;
  text-align:center;
}

.page-home .hero{
  background-image: url("/assets/img/inicio/INICIO-2.png");
}
@media (max-width: 980px){
  .page-home .hero{
    background-image: url("/assets/img/inicio/INICIO-TABLET.png");
  }
}
@media (max-width: 520px){
  .page-home .hero{
    background-image: url("/assets/img/inicio/INICIO-MOBILE.png");
  }
}


.lead{
  font-size:1.05rem;
  opacity:.95;
}

/* About (texto + imagen) */
.about{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:center;
}

.about__text{
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.about__copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-self:center;
}

.about__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.about__media{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.about__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height: 240px;
}

/* Cards con imagen (Carreras) */
.cards-media{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 450px));
  gap:22px;
  justify-content:center;
}

.card-media{
  display:grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}

.card-media:hover{
  transform: translateY(-6px); /* -20px era demasiado en desktop */
}

.card-media__img{
  height: 390px;
  background: var(--muted);
}

.card-media__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.card-media__body{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 190px;
}

.page-home .card-media__body h3{
  margin: 0;
  color: var(--blue);
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.card-media__body p{
  margin: 0;
  opacity: .86;
}

.card-media__link{
  color: var(--blue);
  font-weight: 700;
  margin-top:auto;
}

.home-video{
  margin-top: 10px;
}

.home-video--split{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  justify-items:center;
  text-align:center;
}

.home-video__copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  align-items:center;
}

.home-video__copy h2{
  margin:0;
}

.home-video__intro{
  max-width: 760px;
  margin:0;
}

.home-video__frame{
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.home-video__frame::before{
  content: "";
  display: block;
  padding-top: 56.25%;
}

.home-video__frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA final */
.cta-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.cta-box__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Novedades limpio (home) */
.news-slider--clean .news-slider__btn{
  display:none;
}
.news-row--clean{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:24px 28px;
  overflow: visible;
  padding: 0;
}
.news-row--clean .news-card{
  display:grid;
  grid-template-columns: 84px 1fr;
  gap:14px;
  align-items:start;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.news-row--clean .news-card__img{
  width:84px;
  height:84px;
  border-radius: 6px;
  overflow:hidden;
  border: 0;
  padding: 0;
}
.news-row--clean .news-card__img img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.news-row--clean .news-card__body{
  padding: 0;
  gap:8px;
}
.news-row--clean .news-card__meta{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  justify-content:flex-start;
}
.news-row--clean .news-card__tag{
  color: #6b7280;
  font-weight:800;
}
.news-row--clean .news-card__date,
.news-row--clean .news-card__text,
.news-row--clean .news-card__more{
  display:none;
}
.news-row--clean .news-card__title{
  margin:0;
  color:#212529;
  font-weight:700;
  line-height:1.35;
  font-size: .95rem;
}
.news-row--clean .news-card__text{
  display:block;
  color:#4b5563;
  line-height:1.5;
}

/* Responsive */
@media (max-width: 920px){
  .about{ grid-template-columns:1fr; }
  .cards-media{ grid-template-columns:1fr; justify-content:stretch; }
  .cta-box{ flex-direction:column; align-items:flex-start; }
  .news-row--clean{ grid-template-columns:1fr; }
  .page-home .card-media__img{
    height: auto;
    aspect-ratio: auto;
    background: transparent;
  }
  .page-home .card-media__img img{
    width: 100%;
    height: auto;
    object-fit: unset;
  }
  .page-home .card-media__body h3{
    font-size: clamp(18px, 5.2vw, 24px);
  }
}

/* Mobile: el slider se desliza con dedo, ocultamos flechas */
@media (max-width: 520px){
  .news-slider__btn{ display:none; }
}

/* Convenios en Home sin borde */
.page-home .home-convenios{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

