/* =============================================
   Instituto Posadas Educa – Estilos principales
   ============================================= */

/* --- Variables --- */
:root {
  --green:   #1a7a3c;
  --green-dark: #145e2e;
  --green-light: #e8f5ee;
  --violet:  #6b2a8c;
  --violet-dark: #521f6d;
  --violet-light: #f3eaf8;
  --yellow:  #f5c518;
  --yellow-dark: #d4a90e;
  --red:     #d93025;
  --orange:  #e07b00;
  --blue:    #1e56a0;
  --blue-light: #eaf1fb;
  --white:   #ffffff;
  --dark:    #1a1a2e;
  --gray:    #6c757d;
  --gray-light: #f4f6f8;
  --text:    #2d2d2d;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  --radius: 10px;
  --radius-lg: 18px;
  --transition: 0.28s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,122,60,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--green);
}

.btn--nivel {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  padding: 10px 22px;
  font-size: 0.85rem;
  margin-top: 16px;
}
.btn--nivel:hover {
  background: var(--green);
  color: var(--white);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
  font-size: 1rem;
  padding: 14px 32px;
}
.btn--whatsapp:hover {
  background: #1fb358;
  border-color: #1fb358;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section--alt { background: var(--gray-light); }

.section__header {
  text-align: center;
  margin-bottom: 52px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section__title--left::after { margin-left: 0; }

.section__subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-top: 8px;
}

.section__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}

/* =============================================
   WHIPALA STRIPE
   ============================================= */
.whipala-stripe {
  display: flex;
  height: 6px;
  width: 100%;
}
.whipala-stripe span { flex: 1; }
.wh-red    { background: #d93025; }
.wh-orange { background: #e07b00; }
.wh-yellow { background: #f5c518; }
.wh-white  { background: #e8e8e8; }
.wh-green  { background: #1a7a3c; }
.wh-blue   { background: #1e56a0; }
.wh-violet { background: #6b2a8c; }

.whipala-stripe--footer { height: 8px; }

.whipala-divider {
  display: flex;
  height: 5px;
}
.whipala-divider span { flex: 1; }
.whipala-divider span:nth-child(1) { background: #d93025; }
.whipala-divider span:nth-child(2) { background: #e07b00; }
.whipala-divider span:nth-child(3) { background: #f5c518; }
.whipala-divider span:nth-child(4) { background: #e8e8e8; }
.whipala-divider span:nth-child(5) { background: #1a7a3c; }
.whipala-divider span:nth-child(6) { background: #1e56a0; }
.whipala-divider span:nth-child(7) { background: #6b2a8c; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 7px 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__left a,
.topbar__left span {
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
}
.topbar__left a:hover { color: var(--yellow); }

.topbar__right a {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  transition: color var(--transition);
}
.topbar__right a:hover { color: var(--yellow); }

.topbar__whatsapp {
  background: #25d366;
  color: var(--white) !important;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar__whatsapp:hover { background: #1fb358; color: var(--white) !important; }

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

/* Centrar el nav en el espacio disponible */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Botón Inscripciones flotando a la derecha (solo desktop) */
.header__cta-btn {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 50px;
  background: var(--green);
  color: var(--white) !important;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.header__cta-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Inscripciones dentro de la lista nav (solo visible en mobile) */
.nav__item--mobile-only { display: none; }

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-placeholder {
  width: 60px;
  height: 70px;
  flex-shrink: 0;
}

.logo-placeholder svg { width: 100%; height: 100%; }

.logo-placeholder--footer {
  width: 70px;
  height: 82px;
}

.logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img--footer {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item { position: relative; }

.nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--green);
  background: var(--green-light);
}

.nav__link--cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 50px;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  background: transparent;
  min-width: 200px;
  z-index: 999;
}

.dropdown__inner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--green);
  overflow: hidden;
}

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown.dropdown--open .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: all var(--transition);
}

.dropdown li a:hover {
  background: var(--green-light);
  color: var(--green);
  padding-left: 24px;
}

/* Override: en mobile el dropdown se muestra en línea, sin absolute */
@media (max-width: 768px) {
  .dropdown__inner { box-shadow: none; border-top: none; border-left: 3px solid var(--green); border-radius: 0; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--green-dark) 0%, #0d4a24 40%, var(--violet-dark) 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,197,24,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(107,42,140,0.2) 0%, transparent 55%);
}

/* Decorative whipala circles */
.hero__bg::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: conic-gradient(
    #d93025 0deg 51.4deg,
    #e07b00 51.4deg 102.8deg,
    #f5c518 102.8deg 154.2deg,
    #e8e8e8 154.2deg 205.7deg,
    #1a7a3c 205.7deg 257.1deg,
    #1e56a0 257.1deg 308.5deg,
    #6b2a8c 308.5deg 360deg
  );
  opacity: 0.08;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
  padding: 80px 24px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--yellow);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.92);
}

.hero__title strong {
  font-weight: 800;
  color: var(--white);
  display: block;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero__quote {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: rgba(255,255,255,0.6);
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  margin-bottom: 36px;
  line-height: 1.6;
  font-style: normal;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero__scroll a {
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  transition: color var(--transition);
}
.hero__scroll a:hover { color: var(--yellow); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   NIVELES
   ============================================= */
.niveles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nivel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.nivel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.nivel-card__icon {
  padding: 32px 24px 16px;
  font-size: 2.5rem;
  text-align: center;
}

.nivel-card__color-bar {
  height: 5px;
  width: 100%;
}

.nivel-card--inicial .nivel-card__icon { color: var(--orange); }
.nivel-card--inicial .nivel-card__color-bar { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.nivel-card--inicial .btn--nivel { color: var(--orange); border-color: var(--orange); }
.nivel-card--inicial .btn--nivel:hover { background: var(--orange); color: var(--white); }

.nivel-card--primario .nivel-card__icon { color: var(--green); }
.nivel-card--primario .nivel-card__color-bar { background: linear-gradient(90deg, var(--green), #2ea857); }

.nivel-card--secundario .nivel-card__icon { color: var(--violet); }
.nivel-card--secundario .nivel-card__color-bar { background: linear-gradient(90deg, var(--violet), #8f3db8); }
.nivel-card--secundario .btn--nivel { color: var(--violet); border-color: var(--violet); }
.nivel-card--secundario .btn--nivel:hover { background: var(--violet); color: var(--white); }

.nivel-card__body {
  padding: 20px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nivel-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.nivel-card__body p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.65;
}

.nivel-card__body ul {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nivel-card__body ul li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nivel-card__body ul li i {
  color: var(--green);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* =============================================
   INSTITUCIONAL
   ============================================= */
.institucional__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.img-placeholder {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray);
  min-height: 340px;
}

.img-placeholder--building {
  background: linear-gradient(135deg, #e8f5ee 0%, #f3eaf8 100%);
  border: 2px dashed #c5d9cc;
}

.img-placeholder--building i {
  font-size: 4rem;
  color: var(--green);
  opacity: 0.5;
}

.institucional__img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  display: block;
}

.institucional__foto {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  display: block;
}

.img-placeholder--news {
  min-height: 180px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--green-light), var(--violet-light));
  border: none;
}

.img-placeholder--news i {
  font-size: 2.5rem;
  color: var(--green);
  opacity: 0.5;
}

.institucional__text p {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.75;
}

.institucional__stats {
  display: flex;
  gap: 32px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   PILARES
   ============================================= */
.pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pilar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 4px solid transparent;
}

.pilar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pilar:nth-child(1) { border-bottom-color: var(--green); }
.pilar:nth-child(2) { border-bottom-color: var(--violet); }
.pilar:nth-child(3) { border-bottom-color: var(--blue); }
.pilar:nth-child(4) { border-bottom-color: var(--yellow); }
.pilar:nth-child(5) { border-bottom-color: var(--orange); }
.pilar:nth-child(6) { border-bottom-color: var(--red); }

.pilar__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}

.pilar__icon--green  { background: var(--green-light);  color: var(--green); }
.pilar__icon--violet { background: var(--violet-light); color: var(--violet); }
.pilar__icon--blue   { background: var(--blue-light);   color: var(--blue); }
.pilar__icon--yellow { background: #fef9e7;             color: var(--yellow-dark); }
.pilar__icon--orange { background: #fff3e0;             color: var(--orange); }
.pilar__icon--red    { background: #fdecea;             color: var(--red); }

.pilar h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.pilar p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* =============================================
   NOVEDADES
   ============================================= */
.novedades__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.novedad-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.novedad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.novedad-card__body {
  padding: 22px 24px 26px;
}

.novedad-card__tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.novedad-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.novedad-card__body p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}

.novedad-card__link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.novedad-card__link:hover { gap: 10px; }

/* =============================================
   CTA INSCRIPCIONES
   ============================================= */
.cta-inscripciones {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}

.whipala-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--violet-dark) 100%);
  z-index: 0;
}

.whipala-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(245,197,24,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 50%, rgba(30,86,160,0.2) 0%, transparent 55%);
}

.cta-inscripciones__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-inscripciones__text {
  color: var(--white);
  max-width: 520px;
}

.cta-inscripciones__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-inscripciones__text p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.cta-inscripciones__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   MISIÓN Y VISIÓN
   ============================================= */
.mision__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mision__card {
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.mision__card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.mision__card--green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

.mision__card--violet {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
}

.mision__icon {
  font-size: 2rem;
  margin-bottom: 18px;
  opacity: 0.9;
}

.mision__card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.mision__card p {
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
}

.mision__somos {
  margin-top: 44px;
  text-align: center;
}

.mision__somos-titulo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mision__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mision__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--green-light);
  color: var(--text);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.mision__chip i {
  color: var(--green);
  font-size: 0.8rem;
}

/* =============================================
   CONTACTO
   ============================================= */
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contacto__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.contacto__item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 2px;
}

.contacto__item span,
.contacto__item a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--transition);
}

.contacto__item a:hover { color: var(--green); }

.contacto__social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all var(--transition);
}

.social-btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366);
  color: var(--white);
}
.social-btn--instagram:hover { opacity: 0.85; transform: translateY(-1px); }

.social-btn--facebook {
  background: #1877f2;
  color: var(--white);
}
.social-btn--facebook:hover { background: #1463ce; transform: translateY(-1px); }

.contacto__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contacto__map iframe { display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 24px 40px;
}

.footer__brand { display: flex; flex-direction: column; gap: 8px; }

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-top: 4px;
}

.footer__brand-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--green);
  color: var(--white);
}

.footer__links h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.footer__links ul { display: flex; flex-direction: column; gap: 8px; }

.footer__links ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__links ul li a::before {
  content: '›';
  color: var(--green);
  font-size: 1rem;
  line-height: 1;
}

.footer__links ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__siteva {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.footer__siteva img {
  height: 19px;
  width: auto;
  opacity: 0.6;
  vertical-align: middle;
}

/* =============================================
   IDEARIO
   ============================================= */
.ideario__quote {
  background: linear-gradient(135deg, var(--green-dark), #0d4a24);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  margin: 0 0 32px;
  position: relative;
}

.ideario__quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 8rem;
  color: rgba(255,255,255,0.12);
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
}

.ideario__quote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  position: relative;
}

.ideario__quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--yellow);
  font-family: var(--font-heading);
  font-weight: 600;
}

.ideario__intro {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto 44px;
  text-align: center;
}

.ideario__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ideario__valor {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ideario__valor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ideario__icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  color: var(--green);
}

.ideario__valor h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.ideario__valor p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  .ideario__grid { grid-template-columns: 1fr; }
  .ideario__quote { padding: 24px 28px; }
  .ideario__quote p { font-size: 1.1rem; }
}

/* =============================================
   HISTORIA – Timeline de hitos
   ============================================= */
.historia__timeline {
  margin-top: 56px;
  padding-bottom: 8px;
}

.hito {
  display: flex;
  gap: 28px;
  padding-bottom: 40px;
  position: relative;
}

.hito::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--green-light);
}

.hito:last-child::after { display: none; }

.hito__marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hito__marker--green  { background: var(--green); }
.hito__marker--violet { background: var(--violet); }
.hito__marker--yellow { background: var(--yellow); }

.hito__year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
}

.hito__marker--yellow .hito__year { color: var(--dark); }

.hito__content {
  padding-top: 12px;
  flex: 1;
}

.hito__content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hito__content h4 i { color: var(--green); font-size: 0.9rem; }

.hito__content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

/* =============================================
   NIVELES PAGE – botones por nivel
   ============================================= */
.nivel__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* =============================================
   PAGE HERO (páginas internas)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d4a24 55%, var(--violet-dark) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(245,197,24,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 60%, rgba(107,42,140,0.15) 0%, transparent 50%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 16px;
}

.page-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =============================================
   NAV – CAMPUS VIRTUAL LINK
   ============================================= */
.nav__link--campus {
  color: var(--green) !important;
  font-weight: 700;
  gap: 6px;
}
.nav__link--campus:hover {
  background: var(--green-light);
  color: var(--green-dark) !important;
}

/* =============================================
   RESEÑAS GOOGLE
   ============================================= */
.resenas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.resena-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.resena-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.resena-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resena-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resena-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.resena-card__avatar--a { background: #4285F4; }
.resena-card__avatar--b { background: #EA4335; }
.resena-card__avatar--c { background: #34A853; }
.resena-card__avatar--d { background: #FBBC05; color: var(--dark); }
.resena-card__avatar--e { background: #9C27B0; }
.resena-card__avatar--f { background: #00BCD4; }

.resena-card__avatar--photo { font-size: 1.3rem; }

.resena-card__meta { flex: 1; }

.resena-card__name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
  margin-bottom: 3px;
}

.resena-card__stars {
  color: #FBBC05;
  font-size: 0.82rem;
  display: flex;
  gap: 2px;
}

.resena-card__text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}

.resena-card__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.resena-card__footer i { color: #4285F4; font-size: 0.85rem; }

.resenas__cta {
  text-align: center;
}

.resenas__cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4285F4;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.resenas__cta a:hover { color: #1a56db; }

/* =============================================
   CAMPUS VIRTUAL
   ============================================= */
.campus {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.campus__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, #0f2d1a 50%, var(--green-dark) 100%);
  z-index: 0;
}

.campus__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(26,122,60,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 50%, rgba(245,197,24,0.08) 0%, transparent 55%);
}

.campus__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
}

.campus__icon-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--yellow);
}

.campus__text {
  color: var(--white);
  max-width: 640px;
}

.campus__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.campus__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--white);
}

.campus__text p {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.campus__features {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.campus__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
}

.campus__feature i {
  color: var(--yellow);
  font-size: 1rem;
}

.btn--campus {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
  font-size: 1rem;
  padding: 14px 32px;
  font-weight: 800;
}

.btn--campus:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,197,24,0.4);
  color: var(--dark);
}

/* =============================================
   ESPACIO PARA FAMILIAS
   ============================================= */
.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.testimonio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--green);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonio-card:nth-child(2) { border-top-color: var(--violet); }
.testimonio-card:nth-child(3) { border-top-color: var(--blue); }

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonio-card__stars {
  color: var(--yellow-dark);
  font-size: 0.9rem;
  display: flex;
  gap: 3px;
}

.testimonio-card__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonio-card__autor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.testimonio-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonio-card:nth-child(2) .testimonio-card__avatar { background: var(--violet); }
.testimonio-card:nth-child(3) .testimonio-card__avatar { background: var(--blue); }

.testimonio-card__autor strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.testimonio-card__autor span {
  font-size: 0.75rem;
  color: var(--gray);
}

/* Formulario de familia */
.familias__form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.familias__form-header {
  text-align: center;
  margin-bottom: 36px;
}

.familias__form-header i {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 14px;
  display: block;
}

.familias__form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.familias__form-header p {
  color: var(--gray);
  font-size: 0.9rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form__group label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form__required { color: var(--red); }

.form__group input,
.form__group select,
.form__group textarea {
  padding: 12px 16px;
  border: 2px solid #dde1e7;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,122,60,0.12);
}

.form__group textarea { resize: vertical; min-height: 110px; }

.form__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form__note {
  font-size: 0.78rem;
  color: var(--gray);
}

.form__error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 12px;
  font-weight: 600;
}

/* WhatsApp por nivel – sección contacto */
.contacto__wa-niveles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.wa-nivel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--transition);
}

.wa-nivel-link:hover { color: #25d366; }

.wa-nivel-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.wa-nivel-badge--secre    { background: #e8f5ee; color: var(--green); }
.wa-nivel-badge--inicial  { background: #fff3e0; color: var(--orange); }
.wa-nivel-badge--primario { background: #e8f5ee; color: var(--green-dark); }
.wa-nivel-badge--secundario { background: var(--violet-light); color: var(--violet); }

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .niveles__grid      { grid-template-columns: 1fr 1fr; }
  .pilares__grid      { grid-template-columns: 1fr 1fr; }
  .novedades__grid    { grid-template-columns: 1fr 1fr; }
  .testimonios__grid  { grid-template-columns: 1fr 1fr; }
  .resenas__grid      { grid-template-columns: 1fr 1fr; }
  .footer__inner      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .institucional__inner { gap: 40px; }
  .campus__inner      { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  /* Topbar */
  .topbar__left span { display: none; }

  /* Nav mobile */
  .nav-toggle { display: flex; margin-left: auto; }
  .header__cta-btn { display: none; }
  .nav__item--mobile-only { display: list-item; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 16px;
    border-top: 3px solid var(--green);
  }

  .nav.open { display: block; }

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

  .nav__link {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .nav__item--dropdown .dropdown {
    display: none !important;
  }

  .nav__item--dropdown.dropdown--open .dropdown {
    display: block !important;
    position: static;
    padding-top: 0;
  }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  /* Grids */
  .niveles__grid      { grid-template-columns: 1fr; }
  .pilares__grid      { grid-template-columns: 1fr 1fr; }
  .novedades__grid    { grid-template-columns: 1fr; }
  .testimonios__grid  { grid-template-columns: 1fr; }
  .resenas__grid      { grid-template-columns: 1fr; }
  .institucional__inner { grid-template-columns: 1fr; }
  .mision__inner      { grid-template-columns: 1fr; }
  .contacto__inner    { grid-template-columns: 1fr; }
  .cta-inscripciones__inner { flex-direction: column; text-align: center; }
  .cta-inscripciones__actions { justify-content: center; }
  .footer__inner      { grid-template-columns: 1fr; gap: 28px; }
  /* Campus */
  .campus__inner      { flex-direction: column; text-align: center; gap: 32px; }
  .campus__features   { justify-content: center; }
  /* Familias form */
  .familias__form-wrapper { padding: 32px 24px; }
  .form__row          { grid-template-columns: 1fr; }
  .form__actions      { flex-direction: column; align-items: flex-start; }

  /* Stats */
  .institucional__stats { justify-content: center; }
}

@media (max-width: 480px) {
  .pilares__grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .hero__title { font-size: 2rem; }
  .section__title { font-size: 1.6rem; }
  .mision__card { padding: 32px 24px; }
}

/* =============================================
   EGRESADOS
   ============================================= */

.promos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.promos-grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.promo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.promo-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promo-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-card__photo-placeholder {
  font-size: 3.5rem;
  color: var(--gray);
}

.promo-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--white);
  border-radius: 50px;
  padding: 4px 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.promo-card__body {
  padding: 24px;
}

.promo-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
}

.promo-card__names {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-card__names li {
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50px;
  padding: 4px 13px;
  font-size: 0.82rem;
  font-family: var(--font-body);
}

.promo-card__empty {
  color: var(--gray);
  font-style: italic;
  font-size: 0.9rem;
}

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

.promo-card--hidden {
  display: none;
}

.promos-ver-mas-wrap {
  text-align: center;
  margin-top: 32px;
}

.btn--outline-dark {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}

.btn--outline-dark:hover {
  background: var(--green);
  color: var(--white);
}

/* =============================================
   EQUIPO
   ============================================= */

.equipo__grupo {
  margin-bottom: 56px;
}
.equipo__grupo:last-child { margin-bottom: 0; }

.equipo__grupo-titulo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 10px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equipo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.equipo__grid--center {
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
}

.equipo__miembro {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.equipo__miembro:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.equipo__foto {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--green-light);
}

.equipo__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equipo__foto-placeholder {
  width: 100%;
  height: 100%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--green);
}

.equipo__nombre {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.equipo__rol {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}

.equipo__bio {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.75;
  text-align: left;
}

@media (max-width: 1024px) {
  .equipo__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .equipo__grid { grid-template-columns: 1fr; }
  .equipo__grid--center { grid-template-columns: 1fr; }
}


/* =============================================
   PROYECTOS — GESTIÓN
   ============================================= */
.gestion__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}

.gestion__card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  align-items: flex-start;
}

.gestion__body {
  flex: 1;
}

.gestion__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.gestion__icon--green  { background: var(--green-light);  color: var(--green); }
.gestion__icon--violet { background: var(--violet-light); color: var(--violet); }
.gestion__icon--blue   { background: #e8f0fb; color: #3b5bdb; }
.gestion__icon--orange { background: #fff0e0; color: #e07000; }

.gestion__titulo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
}
.gestion__subtitulo {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.gestion__desc {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.7;
}

.gestion__detalle {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.gestion__detalle--open {
  max-height: 1200px;
}
.gestion__detalle p {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.7;
  margin-top: 10px;
}

.gestion__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 0;
  margin-top: 2px;
}
.gestion__toggle i {
  transition: transform 0.3s ease;
  font-size: 0.78rem;
}
.gestion__toggle--open i {
  transform: rotate(180deg);
}

/* =============================================
   PROYECTOS — PROYECTO DESTACADO
   ============================================= */
.proyecto {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 48px;
}

.proyecto__header {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 0;
  height: 380px;
}

.proyecto__portada {
  position: relative;
  overflow: hidden;
}

.proyecto__portada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proyecto__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green);
  color: var(--white);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.proyecto__info {
  padding: 36px 32px;
  overflow: hidden;
}

.proyecto__titulo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  margin: 6px 0 16px;
}

.proyecto__desc {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 20px;
}

.proyecto__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proyecto__chip {
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-heading);
}
.proyecto__chip i { margin-right: 5px; }

/* Galería */
.galeria {
  padding: 28px 32px 32px;
  border-top: 1px solid var(--gray-light);
}

.galeria__titulo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.galeria__titulo i { color: var(--green); margin-right: 8px; }

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.galeria__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.galeria__img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.galeria__img--hidden {
  display: none;
}

.galeria__ver-mas-wrap {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .proyecto__header { grid-template-columns: 1fr; }
  .proyecto__portada { height: 260px; }
  .proyecto__info { padding: 24px; }
  .galeria { padding: 20px 24px 24px; }
  .galeria__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* =============================================
   PROYECTOS — PROYECTOS MINI (sin foto)
   ============================================= */
.proyectos-otros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.proyecto-mini {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.proyecto-mini__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.proyecto-mini__icon--violet { background: var(--violet-light); color: var(--violet); }
.proyecto-mini__icon--green  { background: var(--green-light);  color: var(--green); }
.proyecto-mini__icon--yellow { background: #fffbe6; color: #b58a00; }
.proyecto-mini__icon--blue   { background: #e8f0fb; color: #3b5bdb; }
.proyecto-mini__icon--orange { background: #fff0e0; color: #e07000; }

.proyecto-mini__body h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.proyecto-mini__body p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}

.proyecto-mini__pronto {
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
}
.proyecto-mini__pronto i { margin-right: 4px; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox--open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.3); }

.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .proyectos-otros { grid-template-columns: 1fr; }
  .galeria__grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* Proyecto como enlace clickeable */
a.proyecto--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.proyecto--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.proyecto__ver-mas {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
}
.proyecto__ver-mas i { margin: 0 4px; }
