/* ===== Colegio Numen — Ingresantes ===== */

:root{
  --numen-blue: #1a3fb5;
  --numen-blue-dark: #12297e;
  --numen-blue-light: #e9edfb;

  --jardin-yellow: #ffcd3c;
  --jardin-blue: #2f8fd6;
  --jardin-red: #e6473c;
  --jardin-green: #3fae5c;

  --ink: #1b1b2b;
  --muted: #565b76;
  --bg: #fbfbff;
  --white: #ffffff;

  --radius: 20px;
  --shadow: 0 10px 30px rgba(26, 63, 181, 0.12);
  --shadow-strong: 0 18px 40px rgba(26, 63, 181, 0.22);

  font-size: 16px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4{
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  margin: 0;
  line-height: 1.15;
}

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

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

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26,63,181,0.08);
}

.topbar__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--numen-blue-dark);
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.95rem;
  min-width: 0;
}

.brand__logo{ height: 32px; width: auto; flex-shrink: 0; }

.brand__text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav{
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar{ display: none; }

.nav a{
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--numen-blue-dark);
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 600px){
  .brand{ font-size: 1.1rem; gap: 10px; }
  .brand__logo{ height: 40px; }
  .nav{ gap: 8px; }
  .nav a{ padding: 8px 14px; font-size: 0.92rem; }
  .topbar__inner{ padding: 10px 20px; }
}

.nav a:hover{
  background: var(--numen-blue);
  color: var(--white);
}

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f4ff 0%, #ffffff 65%);
  padding: 40px 18px;
}

.hero__blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  z-index: 0;
}

.hero__blob--1{
  width: 260px; height: 260px;
  background: var(--jardin-yellow);
  top: -90px; left: -80px;
  opacity: 0.35;
}
.hero__blob--2{
  width: 240px; height: 240px;
  background: var(--jardin-blue);
  bottom: -100px; right: -70px;
  opacity: 0.3;
}
.hero__blob--3{
  width: 160px; height: 160px;
  background: var(--jardin-red);
  top: 40%; right: 5%;
  opacity: 0.15;
}

@media (min-width: 700px){
  .hero__blob--1{ width: 420px; height: 420px; top: -140px; left: -120px; }
  .hero__blob--2{ width: 380px; height: 380px; bottom: -160px; right: -100px; }
  .hero__blob--3{ width: 260px; height: 260px; opacity: 0.18; }
}

.hero__inner{
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__logo{
  height: 140px;
  margin: 0 auto 22px;
}

.hero h1{
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  color: var(--numen-blue-dark);
  font-weight: 800;
}

.hero__tagline{
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--numen-blue);
}

.hero__desc{
  margin: 26px auto 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 90%;
}

@media (min-width: 600px){
  .hero__logo{ height: 180px; margin-bottom: 26px; }
  .hero__tagline{ margin-top: 10px; font-size: 1.3rem; }
  .hero__desc{ margin-top: 30px; font-size: 1.2rem; max-width: 640px; }
}

.scroll-cue{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  z-index: 1;
}

@media (min-width: 900px){
  .scroll-cue{ display: none; }
}

.scroll-cue span{
  display: block;
  width: 22px;
  height: 34px;
  border: 2px solid var(--numen-blue);
  border-radius: 20px;
  position: relative;
}
.scroll-cue span::after{
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--numen-blue);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue{
  0%{ opacity: 1; top: 6px; }
  70%{ opacity: 0; top: 18px; }
  100%{ opacity: 0; top: 18px; }
}

/* ===== Selector ===== */
.selector{
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 18px 60px;
  text-align: center;
}

.selector__title{
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: var(--numen-blue-dark);
}

.selector__subtitle{
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.selector__cards{
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px){
  .selector{ padding: 70px 20px 90px; }
  .selector__cards{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 40px; }
}

.level-card{
  border-radius: var(--radius);
  padding: 30px 24px;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 720px){
  .level-card{ padding: 40px 28px; }
}

.level-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.level-card__icon{
  font-size: 3rem;
  margin-bottom: 14px;
}

.level-card__logo{
  height: 110px;
  width: auto;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  padding: 8px;
}

@media (min-width: 600px){
  .level-card__logo{ height: 140px; }
}

.level-card h3{
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.level-card p{
  opacity: 0.95;
  font-size: 1rem;
  margin: 0;
}

.level-card__cta{
  display: inline-block;
  margin-top: 22px;
  font-weight: 800;
  background: rgba(255,255,255,0.22);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.level-card--inicial{
  background: linear-gradient(135deg, var(--jardin-blue), var(--jardin-green));
}
.level-card--primario{
  background: linear-gradient(135deg, var(--numen-blue), var(--numen-blue-dark));
}

/* ===== Level sections ===== */
.level-section{
  padding: 50px 18px;
}

@media (min-width: 720px){
  .level-section{ padding: 90px 20px; }
}

.level-section__inner{
  max-width: 1100px;
  margin: 0 auto;
}

.level-section--inicial{
  background: linear-gradient(180deg, #fffef4 0%, #f2fbff 100%);
}

.level-section--primario{
  background: var(--numen-blue-light);
}

.section-badge{
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.level-section--inicial .section-badge{
  background: var(--jardin-yellow);
  color: #6b4a00;
}
.level-section--primario .section-badge{
  background: var(--numen-blue);
  color: var(--white);
}

.level-section h2{
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--numen-blue-dark);
}

.level-section__meta{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
}

.salas{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.sala-chip{
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sala-chip--yellow{ background: var(--jardin-yellow); color: #6b4a00; }
.sala-chip--blue{ background: var(--jardin-blue); }
.sala-chip--red{ background: var(--jardin-red); }
.sala-chip--gold{ background: #e0a800; }

.feature-grid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px){
  .feature-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
}
@media (min-width: 1000px){
  .feature-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 40px; }
}

.feature-card{
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

@media (min-width: 600px){
  .feature-card{ padding: 24px; }
}
.feature-card:hover{ transform: translateY(-4px); }

.feature-card__icon{
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.feature-card h4{
  font-size: 1.05rem;
  color: var(--numen-blue-dark);
  margin-bottom: 8px;
}

.feature-card p{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Contacto ===== */
.contacto{
  padding: 50px 18px;
  background: var(--numen-blue-dark);
  color: var(--white);
  text-align: center;
}

@media (min-width: 720px){
  .contacto{ padding: 90px 20px; }
}

.contacto__inner{
  max-width: 900px;
  margin: 0 auto;
}

.contacto__icon{
  font-size: 2.6rem;
  margin-bottom: 10px;
}

@media (min-width: 600px){
  .contacto__icon{ font-size: 3.2rem; margin-bottom: 14px; }
}

.contacto h2{
  font-size: clamp(1.6rem, 6vw, 2.4rem);
}

.contacto__grid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
}

@media (min-width: 560px){
  .contacto__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
}
@media (min-width: 900px){
  .contacto__grid{ grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 40px; }
}

.contacto__card{
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
}

.contacto__card h4{
  color: var(--jardin-yellow);
  font-size: 1rem;
  margin-bottom: 8px;
}

.contacto__card p{
  margin: 4px 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

/* ===== Footer ===== */
.footer{
  padding: 22px;
  text-align: center;
  background: #0d1d5c;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
