/*
Theme Name: Nathan Hale Institute
Theme URI: https://nathanhaleinstitute.com
Author: Nathan Hale Institute
Description: Landing clara con difuminados de marca — Educación Continua Bilingüe.
Version: 1.2.0
Text Domain: nathanhale
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --nh-navy: #000b52;
  --nh-magenta: #ee026c;
  --nh-green: #6be25b;
  --nh-yellow: #fcf200;
  --nh-white: #ffffff;
  --nh-ink: #12152a;
  --nh-muted: #5c6478;
  --nh-bg: #f7f8fc;
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wa: #25d366;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--nh-ink);
  background: var(--nh-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.nh-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Soft brand blurs */
.nh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.nh-glow--magenta {
  background: rgba(238, 2, 108, 0.45);
  width: 420px;
  height: 420px;
}

.nh-glow--navy {
  background: rgba(0, 11, 82, 0.28);
  width: 480px;
  height: 480px;
}

.nh-glow--green {
  background: rgba(107, 226, 91, 0.4);
  width: 360px;
  height: 360px;
}

.nh-glow--yellow {
  background: rgba(252, 242, 0, 0.4);
  width: 320px;
  height: 320px;
}

/* Header */
.nh-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.85rem 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.nh-header.is-scrolled {
  background: rgba(247, 248, 252, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 11, 82, 0.08);
}

.nh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nh-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--nh-navy);
}

.nh-brandmark strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nh-brandmark strong span { color: var(--nh-magenta); }

.nh-brandmark em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nh-navy);
  opacity: 0.75;
}

.nh-petals { width: 32px; height: 32px; }

.nh-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--nh-navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.nh-nav a:hover { color: var(--nh-magenta); }

.nh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nh-btn:hover { transform: translateY(-2px); }

.nh-btn--primary {
  background: var(--nh-magenta);
  color: #fff;
  box-shadow: 0 12px 28px rgba(238, 2, 108, 0.28);
}

.nh-btn--primary:hover { background: #d40160; }

.nh-btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--nh-navy);
  border: 1.5px solid rgba(0, 11, 82, 0.18);
  backdrop-filter: blur(8px);
}

.nh-btn--ghost:hover { background: #fff; }

.nh-btn--academia {
  background: linear-gradient(135deg, var(--nh-navy), #1a237e);
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(0, 11, 82, 0.2);
}

.nh-btn--academia:hover { filter: brightness(1.08); }

/* Hero light with photo + color wash */
.nh-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  color: var(--nh-ink);
  overflow: hidden;
  isolation: isolate;
  padding: 7rem 0 4rem;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(238, 2, 108, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 15%, rgba(107, 226, 91, 0.22), transparent 40%),
    radial-gradient(ellipse at 70% 85%, rgba(252, 242, 0, 0.2), transparent 45%),
    radial-gradient(ellipse at 20% 90%, rgba(0, 11, 82, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 55%, #fff5fa 100%);
}

.nh-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
}

.nh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.nh-hero__slide.is-active { opacity: 1; }

.nh-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: nh-ken 16s var(--ease) infinite alternate;
  filter: saturate(1.05);
}

.nh-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(247, 248, 252, 0.92) 0%, rgba(247, 248, 252, 0.72) 48%, rgba(255, 255, 255, 0.35) 100%);
}

.nh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.nh-pill {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 11, 82, 0.08);
  box-shadow: 0 6px 18px rgba(0, 11, 82, 0.06);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nh-navy);
}

.nh-hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--nh-navy);
  animation: nh-rise 0.85s var(--ease) both;
}

.nh-hero h1 span { color: var(--nh-magenta); }

.nh-hero__lead {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--nh-muted);
  animation: nh-rise 0.85s 0.1s var(--ease) both;
}

.nh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: nh-rise 0.85s 0.18s var(--ease) both;
}

.nh-hero__dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 2.2rem;
}

.nh-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 11, 82, 0.2);
  cursor: pointer;
}

.nh-hero__dot.is-active { background: var(--nh-magenta); }

/* Sections */
.nh-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.nh-section--dark,
.nh-section--panel {
  background: transparent;
  color: var(--nh-ink);
}

.nh-section--panel {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(107, 226, 91, 0.16), transparent 42%),
    radial-gradient(ellipse at 8% 80%, rgba(238, 2, 108, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff, #f8f9ff);
}

.nh-section--dark {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(0, 11, 82, 0.1), transparent 45%),
    radial-gradient(ellipse at 85% 70%, rgba(252, 242, 0, 0.16), transparent 42%),
    linear-gradient(180deg, #f7f8fc, #ffffff);
}

.nh-section--soft {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(238, 2, 108, 0.1), transparent 40%),
    radial-gradient(ellipse at 100% 50%, rgba(107, 226, 91, 0.14), transparent 42%),
    linear-gradient(180deg, #ffffff, #fff8fb 60%, #f7f8fc);
  color: var(--nh-ink);
}

.nh-kicker {
  margin: 0 0 0.55rem;
  color: var(--nh-magenta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nh-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--nh-navy);
}

.nh-copy {
  margin: 0;
  max-width: 62ch;
  color: var(--nh-muted);
  font-size: 1.02rem;
}

.nh-accent {
  width: 3.2rem;
  height: 4px;
  margin: 0 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nh-green), var(--nh-yellow), var(--nh-magenta));
}

.nh-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.nh-step {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 1.1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 11, 82, 0.12);
}

.nh-step img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.nh-step::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 15%, rgba(0, 11, 82, 0.78));
}

.nh-step > * { position: relative; z-index: 2; }

.nh-step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.nh-step p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.nh-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: center;
}

.nh-split--rev { grid-template-columns: 0.95fr 1.05fr; }
.nh-split--rev .nh-media { order: -1; }

.nh-media {
  overflow: hidden;
  border-radius: 1.2rem;
  min-height: 340px;
  box-shadow:
    0 22px 50px rgba(0, 11, 82, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.nh-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.nh-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.nh-list li {
  display: flex;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--nh-ink);
}

.nh-list li::before {
  content: "▶";
  color: var(--nh-magenta);
  flex: 0 0 auto;
}

.nh-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.nh-card {
  padding: 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 11, 82, 0.06);
  box-shadow: 0 14px 34px rgba(0, 11, 82, 0.06);
  backdrop-filter: blur(12px);
}

.nh-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--nh-navy);
}

.nh-card p {
  margin: 0;
  color: var(--nh-muted);
  font-size: 0.95rem;
}

.nh-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}

.nh-mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 11, 82, 0.1);
}

.nh-mosaic figure:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.nh-mosaic figure:nth-child(2) { grid-column: span 2; }

.nh-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.nh-mosaic figure:hover img { transform: scale(1.05); }

.nh-mosaic figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 11, 82, 0.72));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.nh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.nh-stat {
  padding: 1.4rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 11, 82, 0.06);
  box-shadow: 0 12px 28px rgba(0, 11, 82, 0.06);
  backdrop-filter: blur(10px);
}

.nh-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--nh-magenta);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.nh-stat span {
  color: var(--nh-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nh-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.nh-contact-box {
  padding: 1.5rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 11, 82, 0.06);
  box-shadow:
    0 18px 40px rgba(0, 11, 82, 0.08),
    0 0 60px rgba(238, 2, 108, 0.08);
  backdrop-filter: blur(14px);
}

.nh-contact-box a {
  color: var(--nh-navy);
  font-weight: 700;
}

.nh-contact-box a:hover { color: var(--nh-magenta); }

.nh-contact-box ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.nh-footer {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 5.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(107, 226, 91, 0.18), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(238, 2, 108, 0.14), transparent 40%),
    linear-gradient(180deg, #ffffff, #eef0f8);
  color: var(--nh-muted);
  font-size: 0.9rem;
}

.nh-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nh-float-wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
  animation: nh-pulse 2.4s ease-in-out infinite;
}

.nh-float-wa:hover { transform: scale(1.06); }
.nh-float-wa svg { width: 30px; height: 30px; fill: currentColor; }

.nh-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.nh-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes nh-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes nh-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@keyframes nh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

.nh-menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid rgba(0, 11, 82, 0.15);
  color: var(--nh-navy);
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nh-nav { display: none; }
  .nh-menu-toggle { display: inline-flex; }
  .nh-header.is-open .nh-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 1rem;
    border-radius: 0.8rem;
    box-shadow: 0 16px 40px rgba(0, 11, 82, 0.12);
  }

  .nh-steps,
  .nh-trio,
  .nh-stats,
  .nh-split,
  .nh-split--rev,
  .nh-contact-grid,
  .nh-mosaic {
    grid-template-columns: 1fr;
  }

  .nh-split--rev .nh-media { order: 0; }

  .nh-mosaic { grid-auto-rows: 200px; }

  .nh-mosaic figure:nth-child(1),
  .nh-mosaic figure:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .nh-stats { grid-template-columns: 1fr 1fr; }
}
