/* Inicio 2027: ajustes locales; no alterar componentes de otras páginas. */
.page-home .footer #footer-brand-heading,
.page-home .footer .footer__heading {
  display: block;
  margin: 0 0 1rem;
  color: var(--color-violet-light);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .footer__bottom {
  width: 100%;
  gap: 1.5rem 3rem;
}

.page-home .footer__bottom > p {
  margin: 0;
}

@media (min-width: 768px) {
  .page-home .footer__bottom {
    justify-content: space-between;
  }

  .page-home .footer__bottom > p:last-child {
    margin-left: auto;
    text-align: right;
  }
}

.page-home .footer .footer__section--social {
  align-items: center;
  text-align: center;
}

.page-home .footer .footer__social-list {
  width: 100%;
  justify-content: center;
}

@media (min-width: 1024px) {
  .page-home .footer {
    padding-block: 6.5rem;
  }

  .page-home .footer__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) minmax(0, 4fr) minmax(max-content, 6fr);
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 3.5rem;
    align-items: start;
  }

  .page-home .footer__contact-row a {
    white-space: nowrap;
  }

  .page-home .footer__section {
    min-width: 0;
    margin-top: 0;
  }

  .page-home .footer__section--brand {
    max-width: none;
    justify-self: stretch;
  }
}

@media (min-width: 1024px) {
  .page-home #sobre-mi {
    --about-padding: clamp(1rem, 3vh, 2.5rem);
    --about-height: 100dvh;
    box-sizing: border-box;
    min-height: var(--about-height);
    padding-block: var(--about-padding);
    display: flex;
    align-items: center;
  }

  .page-home .home-about__layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .page-home .home-about__photo {
    width: min(100%, 24rem, calc((var(--about-height) - 2 * var(--about-padding)) * 0.8));
    max-height: none;
    margin-inline: auto;
  }

  .page-home #sobre-mi-heading {
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    font-size: clamp(1.875rem, 4.5vh, 2.25rem);
  }

  .page-home .home-about__copy {
    line-height: 1.5;
  }

  .page-home .home-about__cta {
    margin-top: clamp(1rem, 2.5vh, 2rem);
  }

  .page-home .home-about__stats {
    margin-top: clamp(1rem, 3vh, 2rem);
    padding-top: clamp(0.75rem, 2vh, 1.5rem);
    gap: 1rem;
  }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .page-home .home-about__copy {
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .page-home .home-about__copy > p + p {
    margin-top: 0.75rem;
  }

  .page-home .home-about__stats .stat-number {
    font-size: 1.875rem;
  }
}

.page-home .home-school {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary-active), var(--color-primary-hover));
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.page-home .home-school__inner {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .home-school__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  min-width: 0;
}

.page-home .home-school__eyebrow {
  margin-bottom: 1rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-light);
}

.page-home .home-school__title {
  font-family: 'Gilda Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-home .home-school__title-highlight {
  color: var(--color-violet-light);
}

.page-home .home-school__subtitle {
  margin-top: 1.25rem;
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.65;
  color: var(--color-primary-light);
}

.page-home .home-school__paths,
.page-home .home-school__formats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.page-home .home-school__paths {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 30%);
}

.page-home .home-school__paths li,
.page-home .home-school__formats li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  line-height: 1.5;
}

.page-home .home-school svg {
  flex: 0 0 auto;
  margin-top: 0.125rem;
  color: var(--color-primary-light);
}

.page-home .home-school__footer {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}

.page-home .home-school__formats {
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 30%);
  font-size: 0.875rem;
  gap: 0.75rem;
  color: var(--color-primary-light);
}

.page-home .home-school__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-primary-active);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.page-home .home-school__cta:hover {
  background: var(--color-primary-light);
}

.page-home .home-school__cta:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

.page-home .home-school__identity {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.page-home .home-school__logo {
  width: min(100%, 18rem);
  height: auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .page-home .home-school__cta {
    justify-self: center;
  }
}

@media (min-width: 768px) {
  .page-home .home-school__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .page-home .home-school__logo {
    width: 100%;
    max-width: 32rem;
  }
}

@media (min-width: 1024px) {
  .page-home .home-school {
    min-height: 100vh;
    min-height: 100dvh;
    padding-block: clamp(1.5rem, 4vh, 3rem);
    display: flex;
    align-items: center;
  }

  .page-home .home-school__inner {
    padding-inline: 3rem;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(2rem, 3vw, 3rem);
  }

  .page-home .home-school__content {
    gap: clamp(1rem, 2.5vh, 2rem);
    justify-content: space-between;
  }

  .page-home .home-school__title {
    font-size: clamp(2rem, min(3vw, 5vh), 2.75rem);
  }

  .page-home .home-school__subtitle {
    margin-top: 1rem;
    line-height: 1.5;
  }

  .page-home .home-school__footer {
    gap: 1rem;
  }

  .page-home .home-school__logo {
    max-height: 65vh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .home-school__cta {
    transition: background-color 180ms ease, transform 180ms ease;
  }

  .page-home .home-school__cta:hover {
    transform: translateY(-2px);
  }

  /* Mejora progresiva: contenido visible también sin scroll timelines. */
  @supports (animation-timeline: view()) {
    .page-home .home-school__content,
    .page-home .home-school__identity {
      animation: homeSchoolReveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes homeSchoolReveal {
  from { opacity: 0.6; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .nav-bar-inner {
  min-height: 4.5rem;
  padding-block: 0.5rem;
  gap: 1rem;
}

.page-home .home-brand {
  font-family: 'Allura', 'Gilda Display', Georgia, cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.625rem);
  line-height: 1.2;
  color: var(--color-white);
  white-space: nowrap;
}

.page-home .nav-right {
  gap: 1.25rem;
}

.page-home .nav-bar .nav-link {
  color: var(--color-white) !important;
  font-size: 1rem;
  letter-spacing: 0;
  white-space: nowrap;
  padding-block: 0.75rem;
}

.page-home .nav-bar .nav-link::after {
  background: var(--color-white);
  bottom: 0.25rem;
}

.page-home .nav-bar .home-nav-school,
.page-home .nav-menu-mobile-links .home-nav-school {
  background: var(--color-primary-light);
  color: var(--color-primary-active) !important;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
}

.page-home .nav-bar .home-nav-school::after {
  content: none;
}

.page-home .nav-menu-link,
.page-home .nav-menu-cta {
  color: var(--color-white);
}

.page-home .nav-menu-link:hover,
.page-home .nav-menu-cta:hover {
  color: var(--color-primary-active);
  background: var(--color-primary-light);
}

.page-home .nav-menu-cta {
  background: transparent;
  margin-top: 0;
}

.page-home .nav-bar a:focus-visible,
.page-home .nav-menu-mobile-panel a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.page-home #inicio {
  padding-block: 1.5rem 2rem;
  scroll-margin-top: 4.5rem;
}

.page-home .home-hero-layout {
  gap: 1rem;
}

.page-home .home-hero__intro {
  gap: 0.75rem;
}

.page-home .home-hero__title {
  font-size: clamp(2rem, 7vw, 3rem);
}

.page-home .home-hero__content {
  order: 2;
  margin: 0;
  gap: 1rem;
}

.page-home .home-hero__copy {
  gap: 0.75rem;
}

.page-home .home-hero__lead {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 1.25rem;
  line-height: 1.35;
}

.page-home .home-hero__mobile-divider {
  display: none;
}

.page-home .home-hero__actions {
  margin-top: 0;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.page-home .home-hero__actions .hero-cta {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  white-space: normal;
}

.page-home .hero-cta--primary {
  background-color: var(--color-primary-active);
}

.page-home .hero-cta--primary:hover {
  background-color: var(--color-primary-hover);
}

.page-home .hero-cta--secondary {
  color: var(--color-primary-active);
  border-color: var(--color-primary-active);
}

.page-home .hero-cta:focus-visible {
  outline: 2px solid var(--color-primary-active);
  outline-offset: 3px;
}

.page-home .home-hero__photo {
  order: 3;
  justify-content: center;
}

.page-home #inicio .home-hero__photo-frame {
  max-width: 15rem;
  aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
  .page-home #inicio {
    padding-block: 2.5rem;
  }

  .page-home .home-hero-layout {
    column-gap: 2rem;
    row-gap: 1.25rem;
  }

  .page-home .home-hero__content {
    order: initial;
  }

  .page-home .home-hero__photo {
    order: initial;
    justify-content: flex-end;
  }

  .page-home #inicio .home-hero__photo-frame {
    max-width: 23rem;
  }

  .page-home .home-hero__cta-group {
    width: 100%;
    gap: 0.75rem;
  }

  .page-home .home-hero__actions .hero-cta {
    flex: 1 1 12rem;
  }

}

@media (min-width: 1024px) {
  .page-home #inicio {
    padding-block: 3rem;
    /* main.js sincroniza --nav-menu-top con la altura real del Navbar. */
    min-height: calc(100vh - var(--nav-menu-top, 4.5rem));
    min-height: calc(100dvh - var(--nav-menu-top, 4.5rem));
    display: flex;
    align-items: center;
  }

  .page-home .home-hero__inner {
    width: 100%;
  }

  .page-home .home-hero-layout {
    column-gap: 3rem;
  }

  .page-home .home-hero__title {
    font-size: 3.25rem;
  }
}
