/* HOME — page-specific styles
   (Global chrome lives in css/global.css)
*/

/* ============================================================
   COLEGIO MARCELINA — MAIN STYLES (home page)
   Estilos específicos de página construidos sobre el sistema
   variables + animations + components + responsive.
   Fidelidad: PDF de diseño aprobado.
   ============================================================ */

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

button {
  font-family: inherit;
}

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


/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(67, 60, 235, 0.65) 0%, rgba(61, 56, 232, 0) 70%),
    radial-gradient(ellipse 70% 50% at 92% 50%, rgba(56, 78, 220, 0.40) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 15% 30%, rgba(58, 53, 165, 0.85) 0%, rgba(30, 27, 75, 0.95) 70%),
    linear-gradient(125deg, #1E1B4B 0%, #2A2780 40%, #3733C8 80%, #423EE0 100%);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 500px at 76% 55%, rgba(38, 75, 220, 0.25), transparent 65%),
    radial-gradient(circle at 12% 95%, rgba(0, 194, 240, 0.08), transparent 35%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px) clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 580px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(0, 194, 240, 0.10);
  border: 1px solid rgba(0, 194, 240, 0.35);
  color: #BEF0FF;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.7s var(--ease) both;
  animation-delay: 0.10s;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00D4F5;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0, 212, 245, 0.7);
  animation: pulseDotRing 2.4s ease infinite;
}

@keyframes pulseDotRing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 245, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 212, 245, 0);
  }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: white;
  margin: 0 0 22px;
  animation: fadeUp 0.7s var(--ease) both;
  animation-delay: 0.20s;
}

.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-lima);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0 0 32px;
  font-weight: 300;
  animation: fadeUp 0.7s var(--ease) both;
  animation-delay: 0.30s;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.7s var(--ease) both;
  animation-delay: 0.38s;
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.22s var(--ease);
  backdrop-filter: blur(6px);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.hero-btn-ghost-ico {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  padding-left: 1px;
}

/* Hero image — carrusel */
.hero-img {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 5 / 5.4;
  box-shadow: 0 30px 80px rgba(13, 11, 43, 0.45);
  animation: heroCardEnter 1s var(--ease) both;
  animation-delay: 0.35s;
}

@keyframes heroCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-carr-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
}

.hero-carr-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-carr-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carr-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hcdot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.28s var(--ease);
  padding: 0;
}

.hcdot.act {
  width: 22px;
  background: rgba(255, 255, 255, 0.95);
}


/* ──────────────────────────────────────────
   ESENCIA — Sección con grid texture
────────────────────────────────────────── */

.esencia {
  position: relative;
  background: var(--bg-white);
  text-align: center;
  padding: clamp(72px, 9vw, 110px) clamp(20px, 5vw, 56px);
  overflow: hidden;
}

.esencia::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 72, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 72, 200, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 30%, transparent 90%);
  pointer-events: none;
}

.esencia-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.esencia .eyebrow {
  display: inline-block;
  position: relative;
}

.esencia .eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-lima);
  border-radius: 2px;
  margin: 8px auto 0;
}

.esencia-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--color-indigo-deeper);
  margin: 14px 0 24px;
}

.esencia-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}

.esencia-title strong {
  font-weight: 800;
  display: block;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.esencia-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
}


/* ──────────────────────────────────────────
   NIVELES EDUCATIVOS
────────────────────────────────────────── */

.niveles {
  background: var(--bg-indigo-pale);
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 56px);
}

.niveles-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.niveles-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.niveles-hdr-text .eyebrow {
  margin-bottom: 10px;
}

.niveles-hdr h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: var(--color-indigo-deeper);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.niveles-hdr h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}

.niveles-nav {
  display: flex;
  gap: 8px;
}

.niveles-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(76, 72, 200, 0.18);
  color: var(--color-indigo);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.niveles-nav button:hover {
  background: var(--color-indigo);
  color: white;
  border-color: var(--color-indigo);
}

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

.nc-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border-left: 4px solid var(--lv, var(--color-indigo));
  box-shadow: 0 3px 12px rgba(15, 14, 36, 0.05);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.nc-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 48px rgba(15, 14, 36, 0.13);
}

.nc-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.nc-card:hover .nc-img img {
  transform: scale(1.05);
}

.nc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nc-card:hover .nc-img::after { opacity: 1; }

.nc-body {
  padding: 16px 18px 20px;
}

.nc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--lv, var(--color-indigo));
  text-transform: uppercase;
  margin: 0 0 6px;
}

.nc-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-indigo-deeper);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.nc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lv, var(--color-indigo));
  transition: gap 0.18s ease;
}
.nc-card:hover .nc-link {
  gap: 8px;
}


/* ──────────────────────────────────────────
   PROYECTO EDUCATIVO — Dark navy
────────────────────────────────────────── */

.proyecto {
  background: var(--bg-dark);
  color: white;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.proyecto::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 72, 200, 0.18), transparent 70%);
  pointer-events: none;
}

.proyecto-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.proyecto-carr {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 5 / 4.3;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.proyecto-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s var(--ease);
}

.proyecto-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.proyecto-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proyecto-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 11, 43, 0.75));
}

.proyecto-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 14px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.proyecto-arr:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-50%) scale(1.05);
}

.proyecto-arr.prev { left: 16px; }
.proyecto-arr.next { right: 16px; }

.proyecto-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proyecto-caption-text {
  font-size: 13.5px;
  font-weight: 500;
  color: white;
}

.proyecto-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-lima);
  color: var(--color-indigo-deeper);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  width: max-content;
}

.proyecto-dots {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.proyecto-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.24s var(--ease);
}

.proyecto-dot.act {
  width: 20px;
  background: white;
}

/* Proyecto content (right column) */
.proyecto-content .eyebrow {
  color: var(--color-lima);
  font-size: 10.5px;
  letter-spacing: 3px;
}

.proyecto-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}

.proyecto-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-lima);
  letter-spacing: -0.01em;
}

.proyecto-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  margin: 0 0 24px;
}

.proyecto-pilares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.pilar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 14px 14px 14px 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.24s var(--ease);
}

.pilar-card:hover {
  background: rgba(0, 194, 240, 0.06);
  border-color: rgba(0, 194, 240, 0.25);
  transform: translateX(3px);
}

.pilar-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.pilar-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin: 0 0 2px;
  font-family: var(--sans);
}

.pilar-text p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
}


/* ──────────────────────────────────────────
   VIDA ESCOLAR — Asymmetric grid gallery
────────────────────────────────────────── */

.vida {
  background: var(--bg-indigo-pale);
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 56px);
}

.vida-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.vida-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.vida-hdr-text .eyebrow {
  margin-bottom: 10px;
}

.vida-hdr h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: var(--color-indigo-deeper);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.vida-hdr h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}

.vida-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 480px;
}

.vida-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.vida-item:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 16px 36px rgba(15, 14, 36, 0.14);
}

.vida-item:nth-child(1) {
  grid-row: 1 / span 2;
}

.vida-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.vida-item:hover img {
  transform: scale(1.06);
}

.vida-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 11, 43, 0.62));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vida-item:hover::after { opacity: 1; }

.vida-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s var(--ease);
  letter-spacing: 0.2px;
}

.vida-item:hover .vida-label {
  opacity: 1;
  transform: translateY(0);
}


/* ──────────────────────────────────────────
   RED ESCOLAR — Dark with rings
────────────────────────────────────────── */

.red {
  background: var(--bg-dark);
  color: white;
  padding: clamp(64px, 8vw, 100px) clamp(20px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.red::before,
.red::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.red::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow:
    inset 0 0 0 80px transparent,
    0 0 0 60px rgba(255, 255, 255, 0.04);
}

.red::after {
  width: 380px;
  height: 380px;
  left: -160px;
  top: 30%;
  background: radial-gradient(circle, rgba(76, 72, 200, 0.18), transparent 70%);
  border: none;
}

.red-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.red .eyebrow {
  color: var(--color-lima);
  letter-spacing: 3px;
  font-size: 10.5px;
}

.red-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
}

.red-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-lima);
}

.red-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-weight: 300;
  margin: 0 auto 36px;
  max-width: 620px;
}

.red-subtitle {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: white;
  margin: 0 0 22px;
  letter-spacing: -0.005em;
}

.paises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.pais-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.pais-card:hover {
  background: rgba(0, 194, 240, 0.08);
  border-color: rgba(0, 194, 240, 0.30);
  transform: translateX(3px);
}

.pais-flag {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.pais-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin: 0 0 1px;
  font-family: var(--sans);
}

.pais-info p {
  font-size: 10.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.50);
  margin: 0;
  line-height: 1.3;
}


/* ──────────────────────────────────────────
   TESTIMONIOS — Light with mountain pattern
────────────────────────────────────────── */

.testimonios {
  position: relative;
  background: var(--bg-indigo-pale);
  padding: clamp(64px, 8vw, 100px) clamp(20px, 5vw, 56px);
  overflow: hidden;
}

/* Decorative mountain shapes */
.testimonios::before,
.testimonios::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(76, 72, 200, 0.12), rgba(76, 72, 200, 0));
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  pointer-events: none;
}

.testimonios::before {
  left: 40px;
  width: 90px;
  height: 110px;
}

.testimonios::after {
  right: 60px;
  width: 70px;
  height: 90px;
  background: linear-gradient(135deg, rgba(76, 72, 200, 0.15), rgba(76, 72, 200, 0));
}

.testimonios-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testi-hdr .eyebrow {
  margin-bottom: 10px;
  letter-spacing: 3.5px;
  font-size: 10.5px;
}

.testi-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: var(--color-indigo-deeper);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  line-height: 1.05;
}

.testi-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}

.testi-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  box-shadow: 0 14px 40px rgba(15, 14, 36, 0.10);
  text-align: center;
  margin-bottom: 28px;
  overflow: hidden;
}

.testi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-indigo) 0%, var(--color-cyan) 100%);
}

.testi-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(76, 72, 200, 0.07);
  pointer-events: none;
}

.testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B4B0FF 0%, #6D67E6 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.testi-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-lima);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.testi-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-primary);
  max-width: 540px;
  margin: 0 auto 22px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.testi-author {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-indigo-deeper);
  margin: 0 0 2px;
  position: relative;
  z-index: 1;
}

.testi-role {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  margin: 0;
  position: relative;
  z-index: 1;
}

.testi-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.testi-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(76, 72, 200, 0.18);
  color: var(--color-indigo);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.18s ease;
}

.testi-arrow:hover {
  background: var(--color-indigo);
  color: white;
  border-color: var(--color-indigo);
}

.testi-dots {
  display: flex;
  gap: 7px;
}

.tdot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(76, 72, 200, 0.30);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.24s var(--ease);
}

.tdot.act {
  width: 22px;
  background: var(--color-indigo);
}


/* ──────────────────────────────────────────
   PROCESO DE ADMISIÓN — White with subtle grid
────────────────────────────────────────── */

.proceso {
  position: relative;
  background: var(--bg-white);
  padding: clamp(64px, 8vw, 100px) clamp(20px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
}

.proceso::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 72, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 72, 200, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 90%);
  pointer-events: none;
}

.proceso-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.proceso-hdr {
  margin-bottom: 40px;
}

.proceso-hdr .eyebrow {
  margin-bottom: 10px;
  letter-spacing: 3px;
  font-size: 10.5px;
}

.proceso-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: var(--color-indigo-deeper);
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  line-height: 1.05;
}

.proceso-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}

.proceso-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-weight: 400;
  margin: 0 auto;
  max-width: 480px;
}

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0 40px;
  position: relative;
}

.paso {
  background: white;
  border: 1px solid rgba(76, 72, 200, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px 18px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.28s var(--ease);
  box-shadow: 0 2px 8px rgba(15, 14, 36, 0.04);
}

.paso::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(132, 204, 22, 0.10);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.paso:hover {
  transform: translateY(-6px);
  border-color: var(--color-indigo);
  box-shadow: 0 14px 36px rgba(76, 72, 200, 0.12);
}

.paso:hover::after {
  transform: scale(1.6);
  opacity: 0.7;
}

.paso-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-lima);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-indigo-deeper);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  transition: all 0.28s var(--ease);
}

.paso:hover .paso-num {
  background: var(--color-indigo);
  border-color: var(--color-indigo);
  color: white;
}

.paso-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-indigo-deeper);
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.paso-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.paso-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-indigo);
  background: var(--bg-indigo-pale);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  position: relative;
  z-index: 1;
}

.proceso-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.proceso-cta-note {
  font-size: 11.5px;
  color: var(--color-text-subtle);
  font-weight: 400;
}


/* ──────────────────────────────────────────
   CTA — Indigo with rings
────────────────────────────────────────── */

.cta {
  position: relative;
  background: linear-gradient(135deg, #4F4AC8 0%, #4438C0 100%);
  color: white;
  text-align: center;
  padding: clamp(72px, 9vw, 110px) clamp(20px, 5vw, 56px);
  overflow: hidden;
}

.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.cta-ring.r1 {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -120px;
}

.cta-ring.r2 {
  width: 560px;
  height: 560px;
  right: -180px;
  top: -180px;
}

.cta-ring.r3 {
  width: 340px;
  height: 340px;
  left: 30%;
  bottom: -180px;
  border-color: rgba(255, 255, 255, 0.06);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.04;
}

.cta-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-lima);
}

.cta-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 460px;
}


/* ──────────────────────────────────────────
   RESPONSIVE — Tablet + Mobile
────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 12.5px;
  }

  .hero-inner {
    grid-template-columns: 1fr 0.95fr;
    min-height: 520px;
  }

  .niveles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pasos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .paises-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proyecto-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .proyecto-carr {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .vida-grid {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    height: 72px;
  }
  .nav-logo img { height: 40px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { top: 72px; }
  .nav-cta .btn { padding: 10px 18px; font-size: 12.5px; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding-block: 56px;
    min-height: auto;
  }

  .hero-img {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .esencia,
  .niveles,
  .proyecto,
  .vida,
  .red,
  .testimonios,
  .proceso,
  .cta {
    padding-inline: 20px;
  }

  .niveles-grid {
    grid-template-columns: 1fr;
  }

  .niveles-hdr {
    flex-direction: column;
    align-items: flex-start;
  }

  .vida-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    gap: 10px;
  }

  .vida-item {
    aspect-ratio: 4 / 3;
  }

  .vida-item:nth-child(1) {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .vida-label {
    opacity: 1;
    transform: translateY(0);
  }

  .vida-item::after {
    opacity: 0.6;
  }

  .paises-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .pasos-grid {
    grid-template-columns: 1fr;
  }

  .proyecto-pilares {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: left;
  }

  .hero-btns {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-cta .btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .nav-cta .btn .arrow-ico { display: none; }

  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 13.5px; }
  .hero-btns .btn,
  .hero-btn-ghost { width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; gap: 10px; }

  .esencia,
  .niveles,
  .proyecto,
  .vida,
  .red,
  .testimonios,
  .proceso,
  .cta {
    padding-block: 56px;
    padding-inline: 16px;
  }

  .testi-card {
    padding: 28px 20px;
  }

  .testi-quote {
    font-size: 13.5px;
  }
}


/* ──────────────────────────────────────────
   ACCESIBILIDAD — Reduced motion
────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
