/* Colegio Evangélico Virtud y Ciencia — landing */

:root {
  --navy: #0a1e44;
  --navy-deep: #06132c;
  --navy-mid: #143066;
  --gold: #d4a017;
  --gold-soft: #f0c75e;
  --gold-dark: #a67c0a;
  --crimson: #9e1b1b;
  --ink: #142033;
  --muted: #5a6a7e;
  --paper: #f7f8fb;
  --white: #ffffff;
  --line: rgba(10, 30, 68, 0.12);
  --shadow: 0 18px 50px rgba(6, 19, 44, 0.18);
  --radius: 4px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --header-h: 76px;
  --topbar-h: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-head p:last-child {
  color: var(--muted);
  margin: 0;
}

.section-head--light .eyebrow {
  color: var(--gold-soft);
}

.section-head--light h2,
.section-head--light p {
  color: var(--white);
}

.section-head--light p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn--sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn--gold:hover {
  background: var(--gold-soft);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-mid);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Topbar — Intellego-style */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  min-height: var(--topbar-h);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  padding: 0.55rem 0;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.topbar__item:hover {
  color: var(--gold-soft);
}

.topbar__item--place {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .topbar__item--place {
    display: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.35rem;
    background: var(--navy-deep);
    border-bottom: 3px solid var(--gold);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__link {
    padding: 0.85rem 0.5rem;
  }

  .nav .btn {
    width: 100%;
  }
}

/* Hero — full-bleed, brand-first */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--header-h));
  min-height: calc(100svh - var(--topbar-h) - var(--header-h));
  display: grid;
  align-items: end;
  padding: 4rem 0 3.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(6, 19, 44, 0.55) 0%, rgba(10, 30, 68, 0.72) 45%, rgba(6, 19, 44, 0.88) 100%),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(212, 160, 23, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(158, 27, 27, 0.18), transparent 60%);
  animation: glowShift 12s ease-in-out infinite alternate;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
}

@keyframes glowShift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 2%, 0) scale(1.05);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin-left: max(calc((100% - 1120px) / 2), 1.25rem);
  margin-right: auto;
  width: min(44rem, calc(100% - 2.5rem));
  padding-bottom: 1.5rem;
}

.hero__crest {
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  animation: crestIn 1s var(--ease) both;
}

@keyframes crestIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
}

.hero__title {
  color: var(--white);
  margin: 0 0 1rem;
}

.hero__lead {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__verse {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__verse q {
  quotes: "“" "”";
}

.hero__verse cite {
  display: inline-block;
  margin-left: 0.5rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Levels — Intellego numbered blocks */
.levels {
  padding: 5rem 0 4.5rem;
  background: var(--white);
}

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

.level {
  position: relative;
  padding: 2.5rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.level:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.level__badge {
  position: absolute;
  top: -18px;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.level p {
  color: var(--muted);
  font-size: 0.98rem;
}

.level__link {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.level__link:hover {
  background: var(--navy-mid);
}

@media (max-width: 860px) {
  .levels__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* About */
.about {
  padding: 5rem 0;
  background:
    linear-gradient(180deg, var(--paper), var(--white));
}

.about__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.about__copy p {
  color: var(--muted);
}

.quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--gold);
  background: rgba(10, 30, 68, 0.04);
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.quote footer {
  font-size: 0.88rem;
  color: var(--muted);
}

.about__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem;
  background: var(--navy);
  color: var(--white);
}

.stat__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
}

.stat__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* Values */
.values {
  padding: 5rem 0;
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy-mid) 55%, #1a3a78);
  color: var(--white);
}

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

.value h3 {
  color: var(--gold-soft);
}

.value p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

@media (max-width: 800px) {
  .values__row {
    grid-template-columns: 1fr;
  }
}

/* English / AulaEcho */
.english {
  padding: 5rem 0 3.5rem;
  background: var(--white);
}

.english__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.english__copy p {
  color: var(--muted);
}

.stages {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.stages li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.stages__num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
  width: 2rem;
}

.stages strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.stages span {
  font-size: 0.88rem;
  color: var(--muted);
}

.english__note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .english__grid {
    grid-template-columns: 1fr;
  }
}

/* Audiences */
.audiences {
  padding: 4.5rem 0 5rem;
  background: var(--paper);
}

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

.audience {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-top: 3px solid var(--gold);
}

.audience__tag {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}

.audience p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 800px) {
  .audiences__grid {
    grid-template-columns: 1fr;
  }
}

/* CTA */
.cta {
  padding: 5rem 0;
  background:
    linear-gradient(120deg, rgba(6, 19, 44, 0.92), rgba(10, 30, 68, 0.88)),
    url("https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?auto=format&fit=crop&w=1600&q=80") center / cover;
  color: var(--white);
  text-align: center;
}

.cta__inner {
  max-width: 36rem;
}

.cta .eyebrow {
  color: var(--gold-soft);
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact__list li {
  display: grid;
  gap: 0.25rem;
}

.contact__list strong {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.contact__list a {
  color: var(--navy);
  font-weight: 500;
}

.contact__list a:hover {
  color: var(--crimson);
}

.contact__form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.contact__form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 30, 68, 0.12);
}

.form-note {
  margin: 0;
  color: var(--navy-mid);
  font-weight: 600;
}

@media (max-width: 800px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  border-top: 3px solid var(--gold);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer__brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.footer__brand p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 28rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.82rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.levels__grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.levels__grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.audiences__grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.audiences__grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__crest,
  .hero__gradient {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
