/* =========================================================
   PÁGINAS INTERNAS – diseño moderno compartido
   Lo usan: inicial, primaria, secundaria (niveles)
            optica, traductorado, crimi (carreras)
   Se carga después de los estilos que cada página tiene
   en su propio <style>. Va junto con assets/js/niveles.js
   ========================================================= */

:root{
  --az-oscuro: #0a2a66;
  --az-medio: #1a5276;
  --az-claro: #eef3fb;
  --rojo: #ce1b28;
  --rojo-hover: #a9151f;
  --amarillo: #f2c94c;
  --verde-wa: #25d366;
  --texto: #1d2738;
  --texto-suave: #4a5568;
  --fuente: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* La página tenía html,body{height:100%;overflow-x:hidden}: eso hace que
   scrollee el body y no la ventana, y los efectos al bajar no se enteran. */
html, body{ height: auto !important; overflow-x: clip !important; }

body, input, select, textarea, button{ font-family: var(--fuente); }
body{
  background: #fff !important;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}
body::before{ display: none; }
html{ scroll-behavior: smooth; }

/* ── Barra superior ── */
.brand-text{ font-family: var(--fuente) !important; font-weight: 800 !important; font-size: 15px !important; letter-spacing: .02em; }
.main-nav a{ color: var(--az-oscuro) !important; font-size: .82rem; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover{ background: var(--az-claro); }
.topbar.is-scrolled{ box-shadow: 0 8px 30px rgba(10,42,102,.12); }

/* =========================================================
   HERO
   ========================================================= */
.nv-hero{
  position: relative;
  min-height: clamp(440px, 72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 80px 20px 120px;
  background: var(--az-oscuro);
}
.nv-hero__foto{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: nvKenBurns 14s ease-out both;
}
@keyframes nvKenBurns{
  from{ transform: scale(1.2) translate3d(-2%, 1%, 0); }
  to  { transform: scale(1.03) translate3d(0, 0, 0); }
}
.nv-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10,20,45,.45) 0%, rgba(10,20,45,.1) 70%),
    linear-gradient(180deg, rgba(10,42,102,.75) 0%, rgba(10,42,102,.45) 50%, rgba(10,30,70,.85) 100%);
}
.nv-hero__contenido{ position: relative; z-index: 2; max-width: 860px; }

.nv-migas{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}
.nv-migas li + li::before{ content: "›"; margin-right: .4rem; opacity: .7; }
.nv-migas a{ color: rgba(255,255,255,.9); text-decoration: none; }
.nv-migas a:hover{ color: #fff; text-decoration: underline; }

.nv-chip{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nv-chip::before{
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amarillo);
  animation: nvPing 1.8s ease-out infinite;
}
@keyframes nvPing{
  0%  { box-shadow: 0 0 0 0 rgba(242,201,76,.7); }
  100%{ box-shadow: 0 0 0 12px rgba(242,201,76,0); }
}
.nv-hero h1{
  margin: 0 0 .8rem;
  font-family: var(--fuente) !important;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 12px 35px rgba(0,0,0,.35);
}
.nv-hero h1 span{
  background: linear-gradient(90deg, #fff 0%, var(--amarillo) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nvBrillo 5s linear infinite;
}
@keyframes nvBrillo{ to{ background-position: 200% center; } }
.nv-hero__sub{
  margin: 0 auto 2rem;
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
/* Entrada escalonada */
.nv-hero__contenido > *{ animation: nvSubir .7s ease both; }
.nv-hero__contenido > *:nth-child(2){ animation-delay: .1s; }
.nv-hero__contenido > *:nth-child(3){ animation-delay: .2s; }
.nv-hero__contenido > *:nth-child(4){ animation-delay: .32s; }
.nv-hero__contenido > *:nth-child(5){ animation-delay: .44s; }
@keyframes nvSubir{
  from{ opacity: 0; transform: translateY(22px); filter: blur(4px); }
  to  { opacity: 1; transform: none; filter: none; }
}
/* Onda inferior */
.nv-onda{
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 80px;
  display: block;
}

/* ── Botones ── */
.nv-botones{ display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.nv-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.nv-btn svg{ width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; }
.nv-btn:hover{ transform: translateY(-3px); }
.nv-btn:hover svg.flecha{ transform: translateX(4px); }
.nv-btn--rojo{ background: var(--rojo); color: #fff !important; box-shadow: 0 10px 30px rgba(206,27,40,.4); }
.nv-btn--rojo:hover{ background: var(--rojo-hover); box-shadow: 0 14px 34px rgba(206,27,40,.5); }
.nv-btn--vidrio{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff !important; backdrop-filter: blur(6px); }
.nv-btn--vidrio:hover{ background: #fff; color: var(--az-oscuro) !important; }
.nv-btn--wa{ background: var(--verde-wa); color: #fff !important; box-shadow: 0 10px 30px rgba(37,211,102,.35); }
.nv-btn--wa:hover{ filter: brightness(1.05); }
.nv-btn--wa svg{ fill: currentColor; }
@media (max-width: 560px){ .nv-btn{ width: 100%; max-width: 320px; } }

/* =========================================================
   SECCIONES
   ========================================================= */
.nv-seccion{ padding: clamp(3.5rem, 7vw, 5.5rem) 20px; position: relative; }
.nv-seccion--clara{ background: linear-gradient(180deg, #f4f7fc 0%, #eaf0fa 100%); }
.nv-contenedor{ max-width: 1150px; margin: 0 auto; }

.nv-encabezado{ text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.nv-kicker{
  display: inline-block;
  margin-bottom: .7rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rojo);
}
.nv-titulo{
  margin: 0 0 .7rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--az-oscuro) !important;
  text-transform: none;
  letter-spacing: 0;
}
.nv-titulo::after{
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rojo), var(--amarillo));
}
.nv-intro .nv-titulo::after{ margin-left: 0; }
.nv-bajada{ margin: 0; font-size: 1.05rem; color: var(--texto-suave); line-height: 1.6; }

/* ── Intro en dos columnas ── */
.nv-intro{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.nv-intro p{ font-size: 1.08rem; line-height: 1.8; color: var(--texto-suave); margin: 0 0 1.1rem; }
.nv-intro p strong{ color: var(--az-oscuro); }
.nv-intro__foto{ position: relative; }
.nv-intro__foto::before{
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--rojo), var(--amarillo));
  opacity: .9;
}
.nv-intro__foto img{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(10,42,102,.25);
}
.nv-insignia{
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(10,42,102,.22);
  animation: nvFlotar 4s ease-in-out infinite;
}
.nv-insignia__ico{
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--az-claro);
}
.nv-insignia strong{ display: block; font-size: .95rem; color: var(--az-oscuro); }
.nv-insignia small{ display: block; font-size: .78rem; color: var(--texto-suave); font-weight: 600; }
@keyframes nvFlotar{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-10px); }
}
@media (max-width: 860px){
  .nv-intro{ grid-template-columns: 1fr; }
  .nv-intro__foto{ max-width: 560px; margin: 0 auto; width: 100%; }
  .nv-intro__foto::before{ inset: 14px -10px -14px 14px; }
  .nv-insignia{ left: 10px; }
}

/* ── Tarjetas de beneficios ── */
.nv-beneficios{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.nv-beneficio{
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e1e9f5;
  box-shadow: 0 8px 24px rgba(10,42,102,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .6s ease !important;
}
.nv-beneficio::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rojo), var(--amarillo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nv-beneficio.is-visible:hover{ transform: translateY(-8px); box-shadow: 0 20px 44px rgba(10,42,102,.14); border-color: transparent; }
.nv-beneficio:hover::after{ transform: scaleX(1); }
.nv-beneficio__ico{
  width: 58px; height: 58px;
  margin-bottom: 1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: linear-gradient(135deg, #e8effb, #d5e2f6);
  transition: transform .4s ease;
}
.nv-beneficio:hover .nv-beneficio__ico{ transform: rotate(-8deg) scale(1.1); }
.nv-beneficio h3{
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--az-oscuro) !important;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Orientaciones (secundaria) ── */
.nv-orientaciones{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.nv-orientacion{
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2rem;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--az-oscuro) 0%, #1e4f9c 100%);
  box-shadow: 0 18px 40px rgba(10,42,102,.25);
  transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease !important;
}
.nv-orientacion:nth-child(2){ background: linear-gradient(135deg, #8e1420 0%, var(--rojo) 100%); box-shadow: 0 18px 40px rgba(206,27,40,.25); }
.nv-orientacion::before{
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -70px; top: -70px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: transform .5s ease;
}
.nv-orientacion.is-visible:hover{ transform: translateY(-6px); }
.nv-orientacion:hover::before{ transform: scale(1.3); }
.nv-orientacion__ico{ font-size: 2.4rem; display: block; margin-bottom: 1rem; }
.nv-orientacion h3{ margin: 0 0 .7rem; font-size: 1.3rem; font-weight: 900; color: #fff !important; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.nv-orientacion p{ margin: 0; font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.88); }

/* ── Destacado (Campus Raco) ── */
.nv-destacado{
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 2.2rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e1e9f5;
  box-shadow: 0 12px 34px rgba(10,42,102,.08);
}
.nv-destacado__ico{
  flex-shrink: 0;
  width: 84px; height: 84px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  background: linear-gradient(135deg, #e3f4e6, #c8ead0);
}
.nv-destacado h3{ margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 900; color: var(--az-oscuro) !important; text-transform: none; letter-spacing: 0; }
.nv-destacado p{ margin: 0; color: var(--texto-suave); line-height: 1.65; }
@media (max-width: 600px){ .nv-destacado{ flex-direction: column; text-align: center; padding: 1.8rem 1.4rem; } }

/* =========================================================
   GALERÍA
   ========================================================= */
.nv-galeria{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}
.nv-galeria__item{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #dfe7f3;
  box-shadow: 0 8px 22px rgba(10,42,102,.1);
}
.nv-galeria__item:first-child{ grid-column: span 2; grid-row: span 2; }
.nv-galeria__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.nv-galeria__item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,42,102,.7), rgba(10,42,102,0) 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.nv-galeria__lupa{
  position: absolute;
  left: 50%; top: 50%;
  z-index: 1;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.95);
  transform: scale(.4);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.nv-galeria__lupa svg{ width: 24px; height: 24px; stroke: var(--az-oscuro); }
.nv-galeria__item:hover img,
.nv-galeria__item:focus-visible img{ transform: scale(1.1); }
.nv-galeria__item:hover::after,
.nv-galeria__item:focus-visible::after{ opacity: 1; }
.nv-galeria__item:hover .nv-galeria__lupa,
.nv-galeria__item:focus-visible .nv-galeria__lupa{ transform: scale(1); opacity: 1; }
@media (max-width: 900px){
  .nv-galeria{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 480px){
  .nv-galeria{ grid-auto-rows: 140px; gap: 10px; }
}

/* ── Visor de fotos ── */
.nv-visor{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6,14,32,.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.nv-visor.abierto{ opacity: 1; visibility: visible; transition: opacity .3s ease; }
.nv-visor img{
  max-width: min(1200px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.94);
  transition: transform .3s ease;
}
.nv-visor.abierto img{ transform: scale(1); }
.nv-visor button{
  position: absolute;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.12);
  transition: background-color .2s ease;
}
.nv-visor button:hover{ background: rgba(255,255,255,.25); }
.nv-visor__cerrar{ top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; }
.nv-visor__ant, .nv-visor__sig{ top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; font-size: 1.8rem; }
.nv-visor__ant{ left: 18px; }
.nv-visor__sig{ right: 18px; }
.nv-visor__contador{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
}
@media (max-width: 600px){
  .nv-visor__ant, .nv-visor__sig{ top: auto; bottom: 12px; margin-top: 0; }
}

/* =========================================================
   LLAMADO FINAL
   ========================================================= */
.nv-cta{
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5rem) 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--az-oscuro) 0%, #163f8a 55%, var(--az-medio) 100%);
}
.nv-cta::before,
.nv-cta::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  animation: nvDerivar 14s ease-in-out infinite;
}
.nv-cta::before{ width: 380px; height: 380px; left: -120px; top: -160px; }
.nv-cta::after { width: 260px; height: 260px; right: -60px; bottom: -120px; animation-delay: -7s; }
@keyframes nvDerivar{
  0%,100%{ transform: translate3d(0,0,0); }
  50%    { transform: translate3d(40px,24px,0); }
}
.nv-cta__contenido{ position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.nv-cta h2{
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
}
.nv-cta p{ margin: 0 0 2rem; font-size: 1.08rem; color: rgba(255,255,255,.85); line-height: 1.6; }

/* =========================================================
   APARICIÓN AL HACER SCROLL
   ========================================================= */
.nv-aparece{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.nv-aparece--izq{ transform: translateX(-40px); }
.nv-aparece--der{ transform: translateX(40px); }
.nv-aparece--zoom{ transform: scale(.92); }
.nv-aparece.is-visible{ opacity: 1; transform: none; }

/* Botón volver arriba */
.volver-arriba{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--az-oscuro);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(10,42,102,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background-color .2s ease;
}
.volver-arriba svg{ width: 20px; height: 20px; fill: #fff; }
.volver-arriba.visible{ opacity: 1; transform: none; pointer-events: auto; }
.volver-arriba:hover{ background: var(--rojo); }

/* ── Menos movimiento ── */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .nv-aparece{ opacity: 1; transform: none; }
}

/* Distribución de la galería según cantidad de fotos (sin huecos) */
.nv-galeria--4 .nv-galeria__item:last-child{ grid-column: span 2; }
.nv-galeria--6{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){
  .nv-galeria--6{ grid-template-columns: repeat(2, 1fr); }
  .nv-galeria--6 .nv-galeria__item:last-child{ grid-column: span 2; }
}

/* =========================================================
   PÁGINAS DE CARRERA (óptica, traductorado, criminalística)
   ========================================================= */

/* ── Ficha con los datos principales de la carrera ── */
.nv-datos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.nv-dato{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e1e9f5;
  box-shadow: 0 8px 24px rgba(10,42,102,.07);
  transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease !important;
}
.nv-dato.is-visible:hover{ transform: translateY(-5px); box-shadow: 0 16px 36px rgba(10,42,102,.13); }
.nv-dato__ico{
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #e8effb, #d5e2f6);
}
.nv-dato small{
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: .2rem;
}
.nv-dato strong{
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--az-oscuro);
}
@media (max-width: 800px){ .nv-datos{ grid-template-columns: 1fr; } }

/* ── Tarjetas de salida laboral / áreas de pericia ── */
.nv-campos{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}
.nv-campo{
  position: relative;
  overflow: hidden;
  padding: 1.8rem 1.6rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e1e9f5;
  box-shadow: 0 8px 24px rgba(10,42,102,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .6s ease !important;
}
.nv-campo::before{
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--rojo), var(--amarillo));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
}
.nv-campo.is-visible:hover{ transform: translateY(-6px); box-shadow: 0 20px 44px rgba(10,42,102,.14); border-color: transparent; }
.nv-campo:hover::before{ transform: scaleY(1); }
.nv-campo__ico{
  display: block;
  margin-bottom: .9rem;
  font-size: 2.1rem;
  line-height: 1;
  transition: transform .4s ease;
}
.nv-campo:hover .nv-campo__ico{ transform: scale(1.15) rotate(-6deg); }
.nv-campo h3{
  margin: 0 0 .5rem;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--az-oscuro) !important;
  text-transform: none;
  letter-spacing: 0;
}
.nv-campo p{ margin: 0; font-size: .95rem; line-height: 1.6; color: var(--texto-suave); }

/* ── Video en la columna de la foto (traductorado) ── */
.nv-intro__foto video{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(10,42,102,.25);
  display: block;
}

/* ── Bloque "educación a distancia" ── */
.nv-distancia{
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
  padding: 1.8rem 2rem;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--az-oscuro) 0%, #1e4f9c 100%);
  box-shadow: 0 18px 40px rgba(10,42,102,.22);
}
.nv-distancia__ico{
  flex-shrink: 0;
  width: 76px; height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  background: rgba(255,255,255,.14);
}
.nv-distancia h3{ margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 900; color: #fff !important; text-transform: none; letter-spacing: 0; }
.nv-distancia p{ margin: 0; font-size: .97rem; line-height: 1.65; color: rgba(255,255,255,.88); }
@media (max-width: 600px){ .nv-distancia{ flex-direction: column; text-align: center; padding: 1.6rem 1.3rem; } }

/* Las tarjetas de beneficios con texto largo necesitan más aire */
.nv-beneficio--texto h3{ font-weight: 700; font-size: .95rem; }
.nv-beneficio--texto h3 strong{ display: block; font-weight: 900; color: var(--rojo); margin-bottom: .2rem; }

/* =========================================================
   CELULARES – ajustes finales
   ========================================================= */
@media (max-width: 700px){
  /* La barra pasa a dos filas: así no se encima el nombre con el menú */
  .topbar__inner{
    flex-wrap: wrap;
    height: auto !important;
    padding: 10px 14px !important;
    gap: 8px !important;
    justify-content: center;
  }
  .brand{ margin-right: auto; }
  .main-nav{ margin-left: 0 !important; width: 100%; }
  .main-nav > ul{
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px !important;
    padding-bottom: 4px !important;
  }
  .main-nav > ul > li{ padding: 0 !important; }
  .main-nav a{ font-size: .75rem !important; padding: .4rem .55rem !important; }

  /* Títulos largos como "CONTACTOLOGÍA" no deben salirse de la pantalla */
  .nv-hero h1{
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
    hyphens: auto;
    overflow-wrap: break-word;
  }
  .nv-hero{ padding-left: 16px; padding-right: 16px; }
  .nv-hero__sub{ font-size: 1rem; }
  .nv-migas{ font-size: .72rem; }
}

/* =========================================================
   PÁGINA DE PREINSCRIPCIONES
   ========================================================= */

/* ── Pasos del proceso ── */
.nv-pasos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  counter-reset: paso;
}
.nv-paso{
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e1e9f5;
  box-shadow: 0 8px 24px rgba(10,42,102,.06);
  transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease !important;
}
.nv-paso.is-visible:hover{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,42,102,.13); }
.nv-paso::before{
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  top: -20px; left: 1.6rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--rojo), #e8603a);
  box-shadow: 0 8px 20px rgba(206,27,40,.35);
}
.nv-paso h3{
  margin: .6rem 0 .5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--az-oscuro) !important;
  text-transform: none;
  letter-spacing: 0;
}
.nv-paso p{ margin: 0; font-size: .94rem; line-height: 1.6; color: var(--texto-suave); }
@media (max-width: 820px){ .nv-pasos{ grid-template-columns: 1fr; gap: 2rem; } }

/* ── Tarjeta del formulario ── */
.pre-tarjeta{
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e1e9f5;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(10,42,102,.1);
  overflow: hidden;
}
.pre-tarjeta__cabecera{
  padding: 2rem 2.2rem 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--az-oscuro) 0%, #1e4f9c 100%);
}
.pre-tarjeta__cabecera h2{
  margin: 0 0 .4rem;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 900;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
}
.pre-tarjeta__cabecera p{ margin: 0; font-size: .97rem; line-height: 1.6; color: rgba(255,255,255,.85); }
.pre-cuerpo{ padding: 2rem 2.2rem 2.2rem; }
@media (max-width: 600px){
  .pre-tarjeta__cabecera{ padding: 1.6rem 1.3rem 1.3rem; }
  .pre-cuerpo{ padding: 1.5rem 1.3rem 1.8rem; }
}

/* ── Secciones y campos ── */
.pre-grupo{ margin-bottom: 2rem; }
.pre-grupo:last-of-type{ margin-bottom: 1.2rem; }
.pre-grupo__titulo{
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.2rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid #eef3fb;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--az-oscuro);
}
.pre-grupo__titulo span[aria-hidden]{ font-size: 1.15rem; }

.pre-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.pre-grid .full{ grid-column: 1 / -1; }
@media (max-width: 620px){ .pre-grid{ grid-template-columns: 1fr; } }

.pre-campo label{
  display: block;
  margin-bottom: .4rem;
  font-size: .83rem;
  font-weight: 700;
  color: var(--texto);
}
.pre-campo .req{ color: var(--rojo); }
.pre-campo input,
.pre-campo select,
.pre-campo textarea{
  width: 100%;
  padding: .8rem .95rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--texto);
  background: #f8fafd;
  border: 1.5px solid #dce6f5;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pre-campo input::placeholder{ color: #9aa8bd; }
.pre-campo input:focus,
.pre-campo select:focus,
.pre-campo textarea:focus{
  background: #fff;
  border-color: var(--az-oscuro);
  box-shadow: 0 0 0 4px rgba(10,42,102,.1);
}
.pre-campo input:disabled, .pre-campo select:disabled{ opacity: .55; cursor: not-allowed; }

/* Bloques que aparecen según el nivel elegido */
.pre-condicional{ display: none; }
.pre-condicional.visible{ display: block; animation: nvSubir .4s ease both; }
.pre-oculto{ display: none !important; }

/* ── Botón de envío ── */
.pre-enviar{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: var(--rojo);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(206,27,40,.35);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pre-enviar:hover:not(:disabled){ background: var(--rojo-hover); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(206,27,40,.45); }
.pre-enviar:disabled{ opacity: .7; cursor: wait; transform: none; }
.pre-enviar svg{ width: 18px; height: 18px; }
.pre-enviar .girando{ animation: nvGirar .9s linear infinite; }
@keyframes nvGirar{ to{ transform: rotate(360deg); } }

.pre-captcha{ display: flex; justify-content: center; margin-bottom: 1.3rem; }

/* ── Avisos de resultado ── */
.pre-aviso{
  display: none;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  font-size: .95rem;
  line-height: 1.55;
  animation: nvSubir .4s ease both;
}
.pre-aviso.visible{ display: flex; }
.pre-aviso__ico{ flex-shrink: 0; font-size: 1.3rem; line-height: 1.2; }
.pre-aviso--ok{ background: #e8f6ed; border: 1.5px solid #9bd8b2; color: #176336; }
.pre-aviso--error{ background: #fdecec; border: 1.5px solid #f0b0b0; color: #8e1b1b; }
.pre-aviso a{ color: inherit; font-weight: 800; }

/* ── Ayuda al costado ── */
.pre-ayuda{
  max-width: 880px;
  margin: 1.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pre-ayuda__item{
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid #e1e9f5;
  font-size: .9rem;
  color: var(--texto-suave);
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.pre-ayuda__item:hover{ background: #fff; transform: translateY(-3px); }
.pre-ayuda__item strong{ display: block; color: var(--az-oscuro); font-size: .95rem; }
.pre-ayuda__ico{ font-size: 1.5rem; flex-shrink: 0; }
@media (max-width: 760px){ .pre-ayuda{ grid-template-columns: 1fr; } }

/* =========================================================
   TARJETAS DE CARRERA (superior.html)
   ========================================================= */
.nv-carreras{
  display: grid;
  /* se acomoda sola a la cantidad de carreras que haya */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 700px){ .nv-carreras{ grid-template-columns: 1fr; max-width: 560px; } }

.nv-carrera{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e1e9f5;
  box-shadow: 0 10px 30px rgba(10,42,102,.08);
  transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease !important;
}
.nv-carrera.is-visible:hover{ transform: translateY(-8px); box-shadow: 0 26px 54px rgba(10,42,102,.18); }

.nv-carrera__foto{
  position: relative;
  height: clamp(200px, 17vw, 250px);
  overflow: hidden;
}
.nv-carrera__foto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.nv-carrera:hover .nv-carrera__foto img{ transform: scale(1.07); }
.nv-carrera__foto::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,70,.65), rgba(10,30,70,0) 55%);
}
.nv-carrera__etiqueta{
  position: absolute;
  left: 1.2rem; bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.nv-carrera__etiqueta span{ font-size: 1.4rem; }

.nv-carrera__cuerpo{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.6rem;
}
.nv-carrera__cuerpo p{
  margin: 0 0 1.3rem;
  font-size: .94rem;
  line-height: 1.65;
  color: var(--texto-suave);
}
.nv-carrera__pie{ margin-top: auto; }
.nv-carrera__btn{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  background: var(--az-oscuro);
  color: #fff !important;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color .2s ease, transform .2s ease, gap .2s ease;
}
.nv-carrera__btn::after{ content: "→"; transition: transform .2s ease; }
.nv-carrera__btn:hover{ background: var(--rojo); transform: translateY(-2px); }
.nv-carrera__btn:hover::after{ transform: translateX(4px); }

/* =========================================================
   PÁGINA DE INSTITUCIÓN (about.html)
   ========================================================= */

/* Ficha de datos con 4 columnas */
.nv-datos--4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .nv-datos--4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .nv-datos--4{ grid-template-columns: 1fr; } }

/* ── Línea de tiempo ── */
.nv-linea{
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: .5rem 0;
}
/* el riel vertical */
.nv-linea::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rojo), #d9a93c 50%, var(--az-oscuro));
}
.nv-hito{
  position: relative;
  width: 50%;
  padding: 0 2.6rem 2.4rem 0;
  transition: opacity .7s ease, transform .7s ease;
}
.nv-hito:nth-child(even){
  margin-left: 50%;
  padding: 0 0 2.4rem 2.6rem;
}
.nv-hito:last-child{ padding-bottom: 0; }

/* el punto sobre el riel */
.nv-hito::before{
  content: "";
  position: absolute;
  top: 1.6rem;
  right: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--rojo);
  box-shadow: 0 0 0 5px rgba(206,27,40,.14);
  z-index: 1;
  transition: transform .3s ease, border-color .3s ease;
}
.nv-hito:nth-child(even)::before{ right: auto; left: -9px; border-color: var(--az-oscuro); box-shadow: 0 0 0 5px rgba(10,42,102,.14); }
.nv-hito:hover::before{ transform: scale(1.25); }

.nv-hito__caja{
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e1e9f5;
  box-shadow: 0 8px 24px rgba(10,42,102,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.nv-hito:hover .nv-hito__caja{ transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,42,102,.13); }
.nv-hito__anio{
  display: inline-block;
  margin-bottom: .6rem;
  padding: .25rem .85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rojo), #e8603a);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.nv-hito:nth-child(even) .nv-hito__anio{ background: linear-gradient(135deg, var(--az-oscuro), #1e4f9c); }
.nv-hito__caja p{ margin: 0; font-size: .95rem; line-height: 1.65; color: var(--texto-suave); }
.nv-hito__caja p strong{ color: var(--az-oscuro); }

/* En pantallas chicas, todo en una sola columna */
@media (max-width: 760px){
  .nv-linea::before{ left: 9px; }
  .nv-hito,
  .nv-hito:nth-child(even){
    width: 100%;
    margin-left: 0;
    padding: 0 0 1.8rem 2.4rem;
  }
  .nv-hito::before,
  .nv-hito:nth-child(even)::before{ left: 0; right: auto; top: 1.4rem; }
}

/* ── Bloque de dos columnas con la foto a la izquierda ── */
.nv-intro--invertido .nv-intro__foto{ order: -1; }
.nv-intro--invertido .nv-intro__foto::before{ inset: 22px 22px -22px -22px; }
@media (max-width: 860px){
  .nv-intro--invertido .nv-intro__foto{ order: 0; }
  .nv-intro--invertido .nv-intro__foto::before{ inset: 14px -10px -14px 14px; }
}

/* Descripción debajo del título de cada beneficio */
.nv-beneficio p{
  margin: .55rem 0 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--texto-suave);
}

/* =========================================================
   ÍCONOS DE LÍNEA
   Reemplazan a los emojis. Colección Lucide (licencia ISC,
   https://lucide.dev). Se insertan como SVG en el HTML y
   toman el tamaño y el color del texto que los rodea.
   ========================================================= */
.ic{
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -.14em;
  flex-shrink: 0;
}

/* Cajitas de color con ícono */
.nv-beneficio__ico{ font-size: 1.55rem; color: var(--az-oscuro); }
.nv-dato__ico{ font-size: 1.45rem; color: var(--az-oscuro); }
.nv-insignia__ico{ font-size: 1.35rem; color: var(--rojo); }
.nv-destacado__ico{ font-size: 2.3rem; color: #2f7a45; }
.nv-distancia__ico{ font-size: 2.1rem; color: #fff; }
.nv-orientacion__ico{ font-size: 2.3rem; color: #fff; }
.nv-orientacion__ico .ic{ stroke-width: 1.75; }
.nv-campo__ico{ font-size: 1.9rem; color: var(--rojo); }
.nv-campo__ico .ic{ stroke-width: 1.75; }

/* El ícono cambia de color al pasar el mouse por la tarjeta */
.nv-beneficio__ico, .nv-dato__ico{ transition: transform .4s ease, color .3s ease, background-color .3s ease; }
.nv-beneficio:hover .nv-beneficio__ico{ color: var(--rojo); }

/* Etiqueta sobre la foto de cada carrera */
.nv-carrera__etiqueta span{ display: inline-flex; font-size: 1.25rem; }

/* Formulario de preinscripción */
.pre-grupo__titulo span[aria-hidden]{ display: inline-flex; color: var(--rojo); font-size: 1.15rem; }
.pre-ayuda__ico{ display: inline-flex; color: var(--az-oscuro); font-size: 1.5rem; }
.pre-aviso__ico{ display: inline-flex; font-size: 1.3rem; }

/* Pie de página */
.footer-info-item .fi-ico{ display: inline-flex; align-items: center; margin-top: .22rem; color: rgba(255,255,255,.7); }
.footer-info-item:hover .fi-ico{ color: #fff; }

/* Botón cerrar del visor de fotos */
.nv-visor__cerrar{ display: grid; place-items: center; }

/* =========================================================
   TEXTOS LARGOS (propuesta educativa de Primaria)
   ========================================================= */

/* Primer párrafo, más grande */
.nv-lead{
  font-size: 1.2rem !important;
  line-height: 1.65 !important;
  font-weight: 600;
  color: var(--az-oscuro) !important;
}

/* Franja con las palabras clave: "Aprender. Crecer. Descubrir. Ser." */
.nv-palabras{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem 1.8rem;
  margin: 0 0 3.2rem;
  padding: 1.7rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--az-oscuro) 0%, #1e4f9c 100%);
  box-shadow: 0 18px 40px rgba(10,42,102,.2);
}
.nv-palabras span{
  font-size: clamp(1.6rem, 4.2vw, 2.7rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
}
.nv-palabras span:nth-child(even){ color: var(--amarillo); }

/* Separación entre bloques de dos columnas seguidos */
.nv-intro + .nv-intro{ margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Tarjetas grandes con varios párrafos */
.nv-orientacion p + p{ margin-top: .9rem; }
.nv-orientaciones--texto .nv-orientacion{ padding: 2.4rem 2.2rem; }

/* Cita de cierre */
.nv-cita{
  max-width: 820px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.nv-cita .ic{ font-size: 2.4rem; color: var(--rojo); }
.nv-cita p{
  margin: .7rem 0 0;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--az-oscuro);
}
.nv-cita p span{ color: var(--rojo); }

/* Beneficios con descripción larga: tres columnas en vez de cuatro */
/* (si la última fila queda incompleta, sus tarjetas se centran) */
.nv-beneficios--largo{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nv-beneficios--largo > *{ flex: 1 1 300px; max-width: calc((100% - 2.4rem) / 3); }
@media (max-width: 1000px){ .nv-beneficios--largo > *{ max-width: calc((100% - 1.2rem) / 2); } }
@media (max-width: 680px){ .nv-beneficios--largo > *{ max-width: 100%; } }

/* =========================================================
   GALERÍA POR GRADO (álbumes)
   ========================================================= */
.nv-albumes{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.6rem;
}
@media (max-width: 900px){ .nv-albumes{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .nv-albumes{ grid-template-columns: 1fr; } }

.nv-album{
  display: block;
  width: 100%;
  padding: 14px 14px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .6s ease, transform .6s ease !important;
}
/* La portada con dos "fotos" asomando por detrás, como un mazo */
.nv-album__pila{
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
}
.nv-album__pila::before,
.nv-album__pila::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d9e3f2;
  box-shadow: 0 6px 18px rgba(10,42,102,.08);
  transition: transform .35s ease;
}
.nv-album__pila::before{ transform: rotate(-5deg) translate(-6px, 4px); }
.nv-album__pila::after { transform: rotate(4deg) translate(8px, 2px); }
.nv-album:hover .nv-album__pila::before{ transform: rotate(-9deg) translate(-16px, 6px); }
.nv-album:hover .nv-album__pila::after { transform: rotate(8deg) translate(18px, 4px); }

.nv-album__portada{
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(10,42,102,.18);
  transition: transform .35s ease, box-shadow .35s ease;
}
.nv-album:hover .nv-album__portada{ transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,42,102,.26); }
.nv-album__portada img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  transition: transform .6s ease;
}
.nv-album:hover .nv-album__portada img{ transform: scale(1.06); }
.nv-album__portada::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,70,.85) 0%, rgba(10,30,70,.2) 45%, rgba(10,30,70,0) 65%);
}

.nv-album__info{
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .6rem;
  color: #fff;
}
.nv-album__info strong{
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.nv-album__cantidad{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.nv-album__ver{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  font-size: .88rem;
  font-weight: 800;
  color: var(--az-oscuro);
}
.nv-album__ver .ic{ transition: transform .2s ease; }
.nv-album:hover .nv-album__ver{ color: var(--rojo); }
.nv-album:hover .nv-album__ver .ic{ transform: translateX(4px); }

/* Título del álbum dentro del visor */
.nv-visor__titulo{
  position: absolute;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
}

/* =========================================================
   BENEFICIOS CON FOTO
   ========================================================= */
.nv-beneficio--foto{ padding: 0; display: flex; flex-direction: column; }
.nv-beneficio__foto{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--az-oscuro) 0%, #1e4f9c 100%);
}
.nv-beneficio__foto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;   /* las fotos verticales se recortan cuidando las caras */
  display: block;
  transition: transform .6s ease;
}
.nv-beneficio--foto:hover .nv-beneficio__foto img{ transform: scale(1.07); }

/* Si todavía no hay foto: fondo del colegio con el ícono grande */
.nv-beneficio__foto--vacia{
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(242,201,76,.28), transparent 50%),
    linear-gradient(135deg, var(--az-oscuro) 0%, #1e4f9c 100%);
  color: rgba(255,255,255,.9);
  font-size: 3.4rem;
}
.nv-beneficio__foto--vacia .ic{ stroke-width: 1.5; }

.nv-beneficio__cuerpo{ padding: 0 1.4rem 1.6rem; }
/* el ícono "monta" sobre el borde de la foto */
.nv-beneficio--foto .nv-beneficio__ico{
  position: relative;
  z-index: 1;
  margin-top: -29px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(10,42,102,.16);
}

/* Las fotos verticales en los bloques de texto se recortan cuidando las caras */
.nv-intro__foto img{ object-position: 50% 30%; }
