.school-home {
  background: #f8f8f4;
}

.school-home .school-header-inner {
  min-height: 74px;
}

.home-highlights,
.home-tabs,
.home-directory,
.home-quick-links,
.school-home .school-notice {
  width: min(1380px, calc(100% - clamp(28px, 6vw, 104px)));
}

.home-highlights {
  margin-block-start: clamp(12px, 2vw, 24px);
}

.school-home [data-home-panel][hidden],
.school-home [data-home-view="section"] .home-highlights,
.school-home [data-home-enhanced] .home-directory-entry > summary,
.school-home [data-home-view="section"] .school-notice {
  display: none;
}

.home-tabs {
  display: flex;
  gap: 5px;
  align-items: stretch;
  overflow-x: auto;
  margin-top: 12px;
  padding: 5px;
  border: 1px solid var(--school-line);
  border-radius: 11px;
  background: #edf1f5;
  scrollbar-width: thin;
  scrollbar-color: #a4b3c6 transparent;
  scroll-padding-inline: 7px;
}

.school-home [data-home-view="section"] .home-tabs {
  position: sticky;
  top: calc(var(--school-header-offset, 90px) - 12px);
  z-index: 20;
}

.school-home .home-tabs a {
  display: flex;
  flex: 1 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 6px clamp(10px, 1vw, 17px);
  border-radius: 7px;
  color: #243d5f;
  font-size: .89rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.school-home .home-tabs a:hover {
  background: #dce5ee;
}

.school-home .home-tabs a[aria-selected="true"] {
  background: #182e50;
  color: #fff;
}

.school-home .home-tabs a:focus-visible {
  outline-offset: -3px;
}

.home-carousel {
  position: relative;
  overflow: hidden;
  overflow: clip;
  border-radius: clamp(14px, 2vw, 28px);
  background: #15294b;
  color: #fff;
  box-shadow: 0 14px 36px #142b4b20;
}

.home-slide {
  position: relative;
  isolation: isolate;
  display: flex;
  min-block-size: clamp(348px, 49vh, 490px);
  align-items: center;
  padding: clamp(32px, 5vw, 76px) clamp(27px, 5.5vw, 90px) 78px;
}

.home-slide[hidden],
.home-carousel-controls[hidden] {
  display: none;
}

.home-slide-photo,
.home-slide-photo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home-slide-photo img {
  margin-inline-start: auto;
  width: 78%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}

.home-slide-photo::after {
  content: "";
  z-index: auto;
  background:
    linear-gradient(90deg, #142747 8%, #142747f5 27%, #142747d9 43%, #1427474f 66%, #14274708 100%),
    linear-gradient(0deg, #1427477d 0%, transparent 36%);
}

.home-slide:nth-of-type(2) img {
  width: 68%;
  object-position: 55% 51%;
}

.home-slide:nth-of-type(3) img {
  object-position: 38% 55%;
}

.home-slide:nth-of-type(4) img {
  object-position: 61% 54%;
}

.home-slide-mascot {
  position: absolute;
  top: 50%;
  right: 19%;
  width: clamp(112px, 18vw, 230px);
  transform: translateY(-50%);
}

.home-slide .home-slide-mascot img {
  width: 100%;
  height: auto;
  mask-image: none;
  filter: drop-shadow(0 9px 16px #12274659);
}

.home-slide-copy {
  max-width: min(57%, 640px);
}

.home-slide-copy::before {
  display: block;
  width: 52px;
  height: 3px;
  margin-bottom: clamp(14px, 2.2vw, 22px);
  border-radius: 2px;
  background: #efc657;
  content: "";
}

.school-home .home-slide h2 {
  margin: 0 0 14px;
  max-width: 15ch;
  font-size: clamp(2.5rem, 5.1vw, 5.15rem);
  font-weight: 650;
  line-height: .98;
}

.home-slide-copy p {
  max-width: 40ch;
  color: #f4f7fc;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.5;
}

.school-home .home-slide-credit {
  position: absolute;
  inset: 16px 16px auto auto;
  margin: 0;
  max-width: calc(100% - 32px);
  padding: 4px 10px;
  border-radius: 6px;
  background: #10223bdc;
  color: #fff;
  font-size: .72rem;
  line-height: 1.45;
}

.school-home .home-hero-button {
  display: inline-flex;
  min-height: 48px;
  gap: 14px;
  align-items: center;
  margin-block-start: 8px;
  padding: 10px 17px;
  border: 0;
  border-radius: 8px;
  background: #f0cb62;
  color: #142747;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.home-hero-button:hover {
  background: #f8da83;
}

.home-slide-copy .home-quindia-status {
  margin: 9px 0 0;
  font-size: .82rem;
  line-height: 1.35;
}

.school-home .home-carousel :focus-visible {
  outline-color: #ffdc72;
}

.home-carousel-controls {
  position: absolute;
  inset: auto 16px 16px auto;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  border: 1px solid #fff3;
  border-radius: 11px;
  background: #10223bf0;
  color: #fff;
}

.home-carousel-progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: #e9eef526;
  pointer-events: none;
}

.home-carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #f0cb62;
  transform: scaleX(0);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .home-slide[data-home-arriving] .home-slide-photo {
    animation: home-photo-arrival .52s cubic-bezier(.22, .75, .28, 1) both;
  }

  .home-slide[data-home-arriving] .home-slide-copy {
    animation: home-copy-arrival .4s cubic-bezier(.22, .75, .28, 1) both;
  }
}

@keyframes home-photo-arrival {
  from { opacity: .75; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes home-copy-arrival {
  from { opacity: .86; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-carousel-count {
  padding-inline: 10px;
  color: #ecf1f7;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-carousel-controls button {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: #fff0;
  color: inherit;
  font-size: 1.65rem;
  line-height: 1;
}

.home-carousel-controls button:hover {
  background: #f3f6ff26;
}

.home-carousel-controls [data-home-toggle] {
  min-width: 89px;
  padding-inline: 10px;
  background: #e6eef8;
  color: #15294b;
  font-size: .875rem;
  font-weight: 700;
}

.home-carousel-controls [data-home-toggle]:hover {
  background: #fff;
}

.home-enrollment-popup {
  position: absolute;
  inset: auto 16px 84px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #c9d5e2;
  border-radius: 13px;
  background: #f9fbfd;
  box-shadow: 0 6px 24px #13284648;
}

.home-enrollment-popup[hidden] {
  display: none;
}

.home-enrollment-popup a {
  display: grid;
  width: 210px;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.home-enrollment-popup img {
  width: 100%;
  height: auto;
}

.home-enrollment-popup button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  color: #2b4668;
  font-size: 1.45rem;
  line-height: 1;
}

.home-enrollment-popup button:hover {
  background: #e6edf6;
}

@media (prefers-reduced-motion: no-preference) {
  .home-enrollment-popup {
    animation: home-enrollment-enter .28s ease-out .4s both;
  }
}

@keyframes home-enrollment-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1.4vw, 20px);
  margin-block: clamp(10px, 1.5vw, 21px) 20px;
}

.school-home .home-quick-links a {
  display: grid;
  min-height: 74px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1.25vw, 16px);
  border: 1px solid #dce4ed;
  border-radius: 11px;
  background: #fff;
  color: #142747;
  font-size: clamp(.92rem, 1.15vw, 1.12rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.school-home .home-quick-links a:hover {
  border-color: #a7bace;
  background: #f0f4f9;
}

.home-quick-icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 8px;
  background: #edf2f7;
  color: #234f7c;
}

.home-quick-links a:first-child .home-quick-icon {
  background: #f7ebc7;
  color: #5f460a;
}

.home-quick-arrow {
  color: #52667c;
  font-size: 1.15rem;
}

.home-directory {
  margin-block: 20px 26px;
}

.home-directory:not(:has(.home-directory-entry:not([hidden]))) {
  display: none;
}

.home-directory-entry {
  border: 1px solid var(--school-line);
  border-radius: 10px;
  background: #fff;
  scroll-margin-top: var(--school-header-offset, 90px);
}

.home-directory-entry + .home-directory-entry {
  margin-top: 7px;
}

.home-directory-entry > summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(15px, 3vw, 30px);
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}

.home-directory-entry > summary::-webkit-details-marker {
  display: none;
}

.home-directory-entry > summary span:last-child {
  flex: 0 0 .6rem;
  height: .6rem;
  border: solid #52667c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.home-directory-entry[open] > summary {
  border-bottom: 1px solid var(--school-line);
}

.home-directory-entry[open] > summary span:last-child {
  transform: rotate(225deg);
}

.home-directory .site-section {
  padding-block: clamp(22px, 4vw, 50px);
}

.home-directory .site-section > .site-container {
  width: calc(100% - clamp(24px, 6vw, 72px));
}

.home-directory .site-section-heading h2 {
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
}

.home-networks {
  padding: clamp(16px, 4vw, 46px);
}

.home-networks > header {
  margin-bottom: 20px;
}

.home-networks h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.08;
}

.home-networks p {
  margin: 6px 0 0;
  color: #4b5d73;
}

.home-network-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}

.home-network-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  padding: 16px;
  border: 1px solid #d8e2ed;
  border-radius: 14px;
  background: #f7f9fc;
}

.home-network-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.home-network-card p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.home-network-mark {
  border-radius: 12px;
  background: #192639;
  color: #fff;
}

.home-network-instagram .home-network-mark {
  background: linear-gradient(145deg, #553da7, #9d2864);
}

.home-network-whatsapp .home-network-mark {
  background: #176b50;
}

.home-network-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.home-network-actions button[hidden],
.home-network-preview[hidden] {
  display: none;
}

.home-network-preview {
  max-width: 780px;
  margin: 16px auto 0;
}

.home-network-preview iframe {
  display: block;
  width: 100%;
  height: 390px;
  border: 1px solid #d8e2ed;
  border-radius: 14px;
}

.home-instagram-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  max-width: none;
}

.home-instagram-post {
  width: min(100%, 464px);
  margin-inline: auto;
  padding: 14px;
  border: 1px solid #d8e2ed;
  border-radius: 14px;
  background: #f7f9fc;
}

.home-instagram-post h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.home-instagram-post iframe {
  height: auto;
  min-height: 450px;
  aspect-ratio: 4 / 5;
  background: #fff;
}

.home-instagram-post > a {
  display: inline-block;
  margin-top: 10px;
}

#matriculas-2027 .site-section-heading {
  display: block;
  margin-bottom: 16px;
}

#matriculas-2027 .site-section-heading h2 {
  max-width: none;
  margin: 5px 0 7px;
}

#matriculas-2027 .site-section-intro {
  max-width: 64ch;
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}

.home-admissions-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2vw, 24px);
}

.home-admissions-options article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: clamp(10px, 1.5vw, 20px);
  padding: clamp(16px, 2.5vw, 34px);
  border: 1px solid var(--school-line);
  border-radius: 12px;
  background: #f4f6f9;
}

.home-admissions-options .home-admissions-request {
  border-color: #1b365b;
  background: linear-gradient(142deg, #182e50, #234c72);
  color: #fff;
}

.home-admissions-options .home-admissions-request .home-quick-icon {
  background: #f4d477;
  color: #172e50;
}

.home-admissions-options article h3 {
  margin: 0 0 8px;
  font-size: clamp(1.24rem, 2.2vw, 1.67rem);
}

.home-admissions-options p {
  margin-bottom: 14px;
  color: var(--school-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.home-admissions-options .home-admissions-request p {
  color: #e6edf7;
}

.home-admissions-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
}

.school-home .home-admissions-actions .site-button {
  min-height: 44px;
  padding: 8px 13px;
  font-size: .92rem;
}

.school-home .home-admissions-primary {
  border-color: #f4d477;
  background: #f4d477;
  color: #172e50 !important;
}

.school-home .home-admissions-primary:hover {
  background: #ffe49a;
}

.home-welcome {
  margin-bottom: 32px;
  padding: clamp(16px, 3vw, 30px);
  border-inline-start: 3px solid #efc657;
  background: #f4f7fa;
}

.home-welcome p:not(.site-kicker) {
  max-width: 65ch;
}

@media (max-width: 760px) {
  .school-home .school-header-inner {
    min-height: 66px;
  }

  .school-home .school-header .school-brand {
    max-width: 64vw;
  }

  .school-home .school-header .site-button-small {
    display: none;
  }

  .home-slide {
    min-block-size: 360px;
    align-items: end;
    padding: 76px 19px 75px;
  }

  .home-slide .home-slide-photo img {
    width: 100%;
    object-position: center 35%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-slide-photo::after {
    background: linear-gradient(0deg, #15294b 15%, #15294bef 35%, #15294ba8 66%, #15294b22 100%);
  }

  .home-slide-copy {
    max-width: 100%;
  }

  .school-home .home-slide h2 {
    font-size: clamp(2.25rem, 8.8vw, 3.5rem);
  }

  .school-home .home-slide-credit {
    inset: 10px 10px auto auto;
  }

  .home-carousel-controls {
    inset: auto 10px 10px auto;
  }

  .home-enrollment-popup {
    inset: 8px auto auto 8px;
  }

  .home-enrollment-popup a {
    width: 177px;
  }

  .home-slide:has(.home-enrollment-popup:not([hidden])) {
    padding-block-start: 100px;
  }

  .home-slide:nth-of-type(3) .home-slide-photo > img {
    object-position: 64% 30%;
  }

  .home-slide-mascot {
    top: 12px;
    right: 22px;
    width: 98px;
    transform: none;
  }

  .home-slide:nth-of-type(5) .home-slide-credit {
    inset: 10px auto auto 10px;
  }

  .home-slide:has(.home-enrollment-popup:not([hidden])) .home-slide-credit {
    clip-path: inset(50%);
  }

  .home-admissions-options {
    grid-template-columns: 1fr;
  }

  .home-admissions-options article {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
  }

  .home-admissions-options .home-quick-icon {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 28px;
    height: 28px;
  }

  .home-admissions-options article h3 {
    display: flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 8px;
    padding-inline-start: 36px;
  }

  .home-admissions-options p {
    margin-bottom: 8px;
    font-size: .88rem;
    line-height: 1.4;
  }

  #matriculas-2027 .site-section-intro {
    display: none;
  }

  #matriculas-2027 .site-section-heading {
    margin-bottom: 12px;
  }

  .home-admissions-actions {
    gap: 4px 8px;
  }

  .school-home .home-admissions-actions .site-button {
    padding-inline: 10px;
    font-size: .85rem;
  }

  .home-admissions-actions .site-text-link {
    padding-block: 4px;
    font-size: .85rem;
  }

  .home-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-home .home-quick-links a {
    min-height: 60px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    font-size: .89rem;
  }

  .home-quick-icon {
    width: 31px;
    height: 31px;
    padding: 6px;
  }

  .home-quick-arrow {
    display: none;
  }
}

@media (max-width: 360px) {
  .school-home .site-preview-banner > span {
    display: none;
  }

  .school-home .school-menu-button {
    min-width: 40px;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }

  .school-home .school-brand small {
    display: none;
  }

  .school-home .home-quick-links a {
    padding-inline: 7px;
    font-size: .84rem;
    overflow-wrap: normal;
  }
}

@media print {
  .home-carousel-controls,
  .home-quick-links {
    display: none;
  }
}
