﻿/* Program cards retain their original category colors and photographs. */
#fullpage .home-programs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px 52px;
}
#fullpage .home-programs .main-programs__title__principal {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
}
#fullpage .home-programs .main-programs-title {
  margin: 0;
  color: #0a3046;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
}
#fullpage .home-programs .programs-intro:after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: #be4579;
}
#fullpage .home-programs .programs-intro {
  max-width: 540px;
  margin: 14px auto 0;
  color: #687782;
  font-size: 1rem;
  line-height: 1.5;
}
#fullpage .home-programs .main-programs__item {
  width: 100%;
  min-width: 0;
  padding: 0;
}
#fullpage .home-programs .program-card {
  --program-color: #be4579;
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--program-color);
  border: 1px solid rgba(10, 48, 70, .08);
  border-bottom: 5px solid var(--program-color);
  border-radius: 18px 18px 30px 8px;
  box-shadow: 0 8px 22px rgba(10,48,70,.14);
  transition: transform .25s ease, box-shadow .25s ease;
}
#fullpage .home-programs .main-programs__ninos { --program-color: #1e843d; }
#fullpage .home-programs .main-programs__primaria { --program-color: #1a9bf1; }
#fullpage .home-programs .main-programs__jovenes { --program-color: #be4579; }
#fullpage .home-programs .main-programs__preparacion { --program-color: #ff5722; }
#fullpage .home-programs .main-programs__vacaciones { --program-color: #805900; }
#fullpage .home-programs .program-card:after { display: none; }
#fullpage .home-programs .program-card:before {
  content: '';
  position: absolute;
  top: -34px;
  right: -34px;
  width: 112px;
  height: 112px;
  border: 18px solid rgba(255,255,255,.15);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}
#fullpage .home-programs .program-card > a {
  display: block;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
#fullpage .home-programs .main-programs__img {
  position: relative;
  min-height: 230px;
  height: 100%;
  isolation: isolate;
}
#fullpage .home-programs .main-programs__img > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .16;
  transition: transform .45s ease, opacity .35s ease;
}
#fullpage .home-programs .main-programs__img:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.16));
  pointer-events: none;
  z-index: 1;
}
#fullpage .home-programs .program-number {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(10,30,45,.2);
  color: #fff;
  font-size: .75rem;
  font-weight: bold;
}
#fullpage .home-programs .main-programs__title {
  display: block;
  position: absolute;
  top: auto;
  left: 0;
  bottom: 72px;
  z-index: 2;
  width: 100%;
  height: auto;
  padding: 0 18px;
  margin: 0;
  transform: none;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  overflow-wrap: anywhere;
}
#fullpage .home-programs .program-action {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .85rem;
  font-weight: bold;
}
#fullpage .home-programs .program-action__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 1.1rem;
  transition: background .25s ease, color .25s ease;
}
#fullpage .home-programs .program-card:focus-within {
  outline: 3px solid #1a9bf1;
  outline-offset: 4px;
}
#fullpage .home-programs .program-card > a:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  #fullpage .home-programs .program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(10,48,70,.22);
  }
  #fullpage .home-programs .program-card:hover .main-programs__img > img { transform: scale(1.05); opacity: .3; }
  #fullpage .home-programs .program-card:hover .program-action__arrow { background: #fff; color: var(--program-color); }
}
@media screen and (min-width: 640px) {
  #fullpage .home-programs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 52px; }
  #fullpage .home-programs .main-programs__img { min-height: 310px; }
  #fullpage .home-programs .main-programs__title { font-size: 1.15rem; }
}
@media screen and (min-width: 1024px) {
  #fullpage .home-programs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #fullpage .home-programs .program-card,
  #fullpage .home-programs .main-programs__img > img,
  #fullpage .home-programs .program-action__arrow { transition: none; }
  #fullpage .home-programs .program-card:hover,
  #fullpage .home-programs .program-card:hover .main-programs__img > img { transform: none; }
}
