/* ENFORSA: estilos comunes. Los colores y letras de cada borrador están al final del archivo. */
:root {
  --wa: #128c4a; --wa-oscuro: #0d6e3a;
  --ancho: 76rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  --alto-cab: 4.75rem;
  --suave: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cab) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.65 var(--fuente); overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--fuente-titulos); line-height: 1.12; text-wrap: balance; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: inherit; text-underline-offset: .2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--acento); color: var(--sobre-acento); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
input, textarea { caret-color: var(--marca); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: .75rem; top: -5rem; z-index: 100; background: #fff; color: #000; padding: .6rem 1rem; }
.saltar:focus { top: .75rem; }
.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.angosto { max-width: 56rem; }
.seccion { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.ico { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .75rem 1.35rem; border: 2px solid transparent; border-radius: var(--radio); font: 700 1rem/1.2 var(--fuente); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--suave); }
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 1.2rem; height: 1.2rem; transition: transform .3s var(--suave); }
.btn:hover .ico { transform: translateX(3px); }
.btn svg:not(.ico) { width: 1.3rem; height: 1.3rem; flex: none; }
.btn-principal { background: var(--acento); color: var(--sobre-acento); }
.btn-principal:hover { background: var(--acento-hover); color: var(--sobre-hover); }
.btn-linea { border-color: currentColor; background: transparent; }
.btn-linea:hover { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-oscuro); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1.5rem; }
.enlace { font-weight: 700; text-decoration: underline; }

/* ===== Cabecera ===== */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--cab-fondo); color: #fff; transition: background-color .3s, box-shadow .3s; }
.cabecera.bajada { box-shadow: 0 10px 30px -18px rgba(0,0,0,.65); }
.cabecera-fila { max-width: 84rem; min-height: var(--alto-cab); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marca { flex: none; }
.marca img { width: clamp(8.5rem, 14vw, 10.5rem); }
.menu > ul { display: flex; align-items: center; gap: .15rem; }
.menu a, .sub-btn { display: block; padding: .65rem .7rem; font: 600 .97rem/1.2 var(--fuente); color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.menu a:hover, .sub-btn:hover, .menu a[aria-current="page"], .sub-btn.activo { color: var(--menu-activo); }
.sub-btn::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15em) rotate(45deg); }
.con-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 18rem; padding: .5rem; background: var(--cab-solido); border-radius: var(--radio); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .3s var(--suave), visibility .2s; }
.con-sub:hover .sub, .con-sub:focus-within .sub, .sub-btn[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: none; }
.menu .menu-tel a { display: flex; align-items: center; gap: .4rem; margin-left: .5rem; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radio); }
.menu .menu-tel .ico { width: 1.1rem; height: 1.1rem; }
.menu-btn { display: none; width: 3rem; height: 3rem; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radio); cursor: pointer; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { display: block; width: 1.35rem; height: 2px; margin: auto; background: #fff; content: ""; transition: transform .25s; }
.menu-btn span:first-child::before { transform: translateY(-7px); }
.menu-btn span:first-child::after { transform: translateY(5px); }
.menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] span:first-child::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 1099px) {
  .menu-btn { display: block; }
  .menu { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--alto-cab)); overflow-y: auto; background: var(--cab-solido); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .menu.abierto { display: block; }
  .js .menu > ul { flex-direction: column; align-items: stretch; }
  .menu > ul { flex-direction: column; align-items: stretch; }
  .menu a, .sub-btn { width: 100%; text-align: left; padding: .8rem .25rem; }
  .sub { position: static; min-width: 0; padding: 0 0 0 1rem; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .con-sub:hover .sub, .con-sub:focus-within .sub { display: none; }
  .sub-btn[aria-expanded="true"] + .sub { display: block; }
  .menu .menu-tel a { margin: .5rem 0 0; justify-content: center; }
}
html:not(.js) .menu { display: block; }

/* ===== Encabezado de páginas internas ===== */
.encabezado { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(20rem, 52vh, 30rem); padding-block: 3rem; background: var(--oscuro); color: #fff; overflow: hidden; }
.encabezado > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: acercar 14s var(--suave) both; }
.encabezado::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--velo); }
.encabezado h1 { margin-bottom: .35em; }
.encabezado p { font-size: 1.2rem; margin: 0; }
.encabezado.corto { min-height: 14rem; }
@keyframes acercar { from { transform: scale(1.09); } to { transform: scale(1); } }

/* Programa: índice y cursos */
.programa { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.programa.unico { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }
.indice { position: sticky; top: calc(var(--alto-cab) + 1.5rem); }
.indice h2 { font-size: 1.1rem; }
.indice li { border-top: 1px solid var(--borde); }
.indice a { display: block; padding: .75rem 0; font-weight: 600; line-height: 1.35; text-decoration: none; }
.indice a:hover { color: var(--marca); text-decoration: underline; }
.entrada { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; }
.curso { padding-block: 2.25rem; border-top: 1px solid var(--borde); }
.curso h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.modo { color: var(--tinta-2); }
.pendiente { padding: 1rem 1.25rem; border: 2px dashed #a15c00; background: #fff4dc; color: #6b3d00; font-weight: 600; border-radius: var(--radio); }
.otros { background: var(--papel-2); }
.otros ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.otros a { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radio); color: #fff; text-decoration: none; background: var(--oscuro); }
.otros img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--suave); }
.otros a:hover img { transform: scale(1.06); }
.otros span { position: relative; width: 100%; padding: 2.5rem 1rem .9rem; font: 700 1.1rem/1.25 var(--fuente-titulos); background: linear-gradient(transparent, rgba(0,0,0,.85)); }

/* Nosotros y galería */
.mision-vision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.mision-vision > div { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--papel-2); border-radius: var(--radio); }
.galeria-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.galeria-rejilla img { width: 100%; border-radius: var(--radio); }
.puntos li { position: relative; padding: .7rem 0 .7rem 2.1rem; border-top: 1px solid var(--linea-puntos, var(--borde)); }
.puntos li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: .95rem; height: .95rem; border: 2px solid var(--detalle); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--punto-fondo, var(--papel)); background: var(--detalle); }
.examen { width: 100%; height: min(80vh, 52rem); min-height: 34rem; border: 1px solid var(--borde); border-radius: var(--radio); background: #fff; margin-bottom: 1rem; }

/* Razones, banda de campus */
.razones li { display: flex; gap: 1.1rem; align-items: flex-start; }
.razones .ico { width: 2.75rem; height: 2.75rem; stroke-width: 1.5; color: var(--detalle); }
.razones h3 { margin-bottom: .35rem; }
.razones p { margin: 0; color: var(--tinta-2); }
.banda-campus { background: var(--banda); color: var(--banda-texto); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.banda-fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.banda-campus h2 { margin-bottom: .3em; }
.banda-campus p { margin: 0; }
.acreditacion .ico { width: 5rem; height: 5rem; stroke-width: 1.1; }

/* ===== Contacto y formulario ===== */
.contacto-rejilla { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.datos li { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; overflow-wrap: anywhere; }
.datos a { font-weight: 600; }
.ico-wa svg { width: 1.5rem; height: 1.5rem; }
.formulario { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--form-fondo); color: var(--tinta); border: 1px solid var(--borde); border-radius: var(--radio-caja); box-shadow: 0 30px 60px -40px rgba(5, 20, 30, .45); }
.campo.ancho { grid-column: 1 / -1; }
.campo label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .98rem; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 3.1rem; padding: .65rem .85rem; font: inherit; color: inherit; background: #fff; border: 1px solid #8b969c; border-radius: var(--radio-campo); }
.campo textarea { resize: vertical; }
.campo [aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.error { min-height: 1.3rem; margin: .15rem 0 0; color: #a1201a; font-size: .9rem; line-height: 1.35; }
.formulario .btn { width: 100%; }
.aviso { margin: .75rem 0 0; font-weight: 600; }
.aviso.bien { color: #0b6232; }
.aviso.mal { color: #a1201a; }
.trampa { position: absolute; left: -9999px; }
.mapa { width: 100%; height: 22rem; margin-top: 3rem; border: 0; border-radius: var(--radio-caja); background: var(--papel-2); }

/* ===== Pie ===== */
.pie { background: var(--pie); color: #dbe3e7; padding-top: 3.5rem; font-size: 1rem; }
.pie-rejilla { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.1fr); gap: 2.5rem; }
.pie h2 { color: #fff; font-size: 1.15rem; }
.pie-logo { width: 11rem; margin-bottom: 1rem; }
.pie nav li { margin-bottom: .45rem; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--menu-activo); text-decoration: underline; }
.redes { display: flex; gap: .6rem; margin-top: 1.25rem; }
.redes a { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background-color .25s, color .25s; }
.redes a:hover { background: var(--acento); color: var(--sobre-acento); }
.redes svg { width: 1.4rem; height: 1.4rem; }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: 2.5rem; padding-block: 1.25rem 6rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem; }
.pie-legal p { margin: 0; }

/* ===== WhatsApp flotante ===== */
.wa-flotante { position: fixed; right: clamp(.9rem, 2.5vw, 1.75rem); bottom: clamp(.9rem, 2.5vw, 1.75rem); z-index: 60; display: flex; flex-direction: row-reverse; align-items: center; height: 3.75rem; min-width: 3.75rem; padding: 0 .95rem; border-radius: 3rem; background: #25d366; color: #06301a; font-weight: 700; text-decoration: none; box-shadow: 0 14px 28px -10px rgba(0,0,0,.5); }
.wa-flotante svg { width: 1.85rem; height: 1.85rem; flex: none; color: #fff; }
.wa-flotante span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .45s var(--suave), opacity .3s, margin .45s var(--suave); }
.wa-flotante:hover span, .wa-flotante:focus-visible span { max-width: 12rem; margin-right: .7rem; opacity: 1; }
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: onda 2.8s var(--suave) infinite; pointer-events: none; }
@keyframes onda { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35, 1.5); opacity: 0; } }

/* Aparición al hacer scroll (solo con JavaScript) */
.revela { transition: opacity .7s var(--suave), transform .7s var(--suave); }
.revela.espera:not(.visible) { opacity: 0; transform: translateY(22px); }

/* Portadas: texto y acciones */
.portada { position: relative; isolation: isolate; }
.portada-texto > p { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 40rem; }

@media (max-width: 900px) {
  .programa, .galeria-rejilla, .contacto-rejilla { grid-template-columns: minmax(0, 1fr); }
  .indice { position: static; }
  .pie-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mision-vision, .formulario, .pie-rejilla { grid-template-columns: minmax(0, 1fr); }
  .acciones .btn { width: 100%; }
  .mapa { height: 17rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wa-flotante::before { display: none; }
}

/* Fotos propias dentro de los cursos y de la galería */
.curso-foto { max-width: 34rem; margin-bottom: 1.25rem; }
.curso-foto img { width: 100%; border-radius: var(--radio-caja); }
.instalaciones { padding-top: 0; }
.par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.par img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radio-caja); }
@media (max-width: 640px) { .par { grid-template-columns: minmax(0, 1fr); } }

/* ===== BORRADOR 2 «Diana»: grafito y verde del logo, portada con mira ===== */
:root {
  --tinta: #171c1e; --tinta-2: #4a5458; --marca: #46601a; --acento: #a6c93a; --acento-hover: #c1e35a;
  --sobre-acento: #141a04; --sobre-hover: #141a04; --detalle: #55750f; --foco: #7fa00f;
  --papel: #f7f8f4; --papel-2: #eceee6; --borde: #d3d7c9; --oscuro: #14181a;
  --cab-fondo: #14181a; --cab-solido: #14181a; --menu-activo: #c1e35a;
  --banda: #a6c93a; --banda-texto: #141a04; --pie: #0e1112; --form-fondo: #fff;
  --velo: linear-gradient(90deg, rgba(14,17,18,.93), rgba(14,17,18,.6) 45%, rgba(14,17,18,.08) 85%);
  --radio: 2px; --radio-caja: 2px; --radio-campo: 2px;
  --fuente: "Barlow", system-ui, sans-serif; --fuente-titulos: "Barlow Semi Condensed", system-ui, sans-serif;
}
body { font-size: 1.125rem; }
h1, h2, h3 { letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
.banda-campus .btn-principal { background: var(--oscuro); color: #fff; }
.banda-campus .btn-principal:hover { background: #000; }

.portada-mira { display: flex; align-items: flex-end; min-height: calc(100svh - var(--alto-cab)); max-height: 54rem; padding-block: 4rem clamp(3rem, 8vw, 6rem); background: var(--oscuro); color: #fff; overflow: hidden; }
.portada-mira .portada-medio { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: acercar 16s var(--suave) both; }
.portada-mira::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--velo); }
.portada-mira h1 { max-width: 14ch; }
.mira { position: absolute; left: 76%; top: 42%; width: clamp(9rem, 18vw, 16rem); aspect-ratio: 1; translate: -50% -50%; fill: none; stroke: var(--acento); stroke-width: 1.2; pointer-events: none; transition: left .45s var(--suave), top .45s var(--suave); animation: enfocar 1.4s var(--suave) both; }
.mira .punto { fill: var(--acento); }
@keyframes enfocar { from { scale: 1.6; opacity: 0; rotate: 45deg; } }

.franjas { display: flex; gap: .5rem; height: 32rem; }
.franja { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--oscuro); transition: flex-grow .6s var(--suave); }
.franja.abierta { flex-grow: 2.8; }
.franja img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85); transition: filter .5s; }
.franja.abierta img { filter: none; }
.franja > div { position: relative; width: 100%; padding: 5rem 1.25rem 1.25rem; background: linear-gradient(transparent, rgba(10,13,14,.92) 45%); }
.franja h3 { margin-bottom: .4rem; }
.franja p { display: none; font-size: 1.05rem; max-width: 30rem; }
.franja.abierta p { display: block; animation: aparecer .6s .2s both; }
@keyframes aparecer { from { opacity: 0; } }
.franja-ir { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--menu-activo); }

.lineas { background: var(--oscuro); color: #fff; }
.lineas .btn-linea:hover { background: #fff; border-color: #fff; color: #000; }
.lineas-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lineas figure img { width: 100%; }
.carriles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 3rem; }
.carriles li { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.75rem 1rem 0; text-align: center; font: 600 1.25rem/1.25 var(--fuente-titulos); border-top: 1px solid rgba(255,255,255,.22); }
.carriles li + li { border-left: 1px dashed rgba(255,255,255,.28); }
.carriles svg { width: 4.5rem; height: 4.5rem; fill: none; stroke: var(--acento); stroke-width: 1.5; transition: transform .5s var(--suave); }
.carriles circle:last-child { fill: var(--acento); }
.carriles li:hover svg { transform: scale(1.14); }

.porque .razones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
.porque .razones li { padding-block: 1.75rem; border-top: 2px solid var(--tinta); }
.contacto { background: var(--papel-2); }
.contacto .ico { color: var(--detalle); }
.contacto .btn .ico { color: inherit; }

@media (max-width: 900px) {
  .lineas-rejilla, .porque .razones { grid-template-columns: minmax(0, 1fr); }
  .franjas { flex-direction: column; height: auto; }
  .franja, .franja.abierta { min-height: 17rem; }
  .franja img { filter: none; }
  .franja p { display: block; }
  .carriles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carriles li:nth-child(odd) { border-left: 0; }
  .mira { left: 74%; top: 24%; }
}

/* ===== VERSIÓN ELEGIDA: formas redondeadas, cabecera flotante y portada sobria ===== */
:root {
  --radio: 3rem; --radio-caja: 1.5rem; --radio-campo: .85rem;
  --alto-cab: 5.75rem;
  --sombra: 0 24px 50px -30px rgba(14, 20, 22, .42);
}

/* Cabecera en cápsula flotante */
.v2 .cabecera { background: transparent; padding: .75rem clamp(.6rem, 1.6vw, 1.25rem) 0; height: var(--alto-cab); margin-bottom: calc(var(--alto-cab) * -1); pointer-events: none; }
.v2 .cabecera.bajada { box-shadow: none; }
.v2 .cabecera-fila { pointer-events: auto; min-height: 4.5rem; max-width: 82rem; padding-inline: 1.5rem .85rem; background: rgba(10, 28, 54, .86); border: 1px solid rgba(255, 255, 255, .12); border-radius: 3rem; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background-color .35s, box-shadow .35s; }
.v2 .cabecera.bajada .cabecera-fila { background: rgba(10, 28, 54, .96); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }
.v2 .menu > ul > li > a, .v2 .sub-btn { border-radius: 2rem; transition: background-color .25s, color .25s; }
.v2 .sub { border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, .1); }
.v2 .sub a { border-radius: .75rem; }
.v2 .menu a:hover, .v2 .sub-btn:hover { background: rgba(255, 255, 255, .08); }
.v2 .menu .menu-tel a { border-radius: 3rem; padding-inline: 1.1rem; }
.v2 .menu-btn { border-radius: 50%; }
.v2 main > :first-child:not(.portada) { padding-top: calc(var(--alto-cab) + 2rem); }
@media (max-width: 1099px) {
  .v2 .cabecera-fila { position: relative; padding-inline: 1.25rem .7rem; }
  .v2 .menu { top: calc(100% + .5rem); max-height: calc(100dvh - var(--alto-cab) - 1rem); padding: .6rem 1.1rem 1.1rem; border-radius: 1.5rem; box-shadow: var(--sombra); }
}

/* Portada */
.v2 .portada-mira { min-height: 100svh; max-height: 58rem; align-items: center; padding-block: calc(var(--alto-cab) + 2.5rem) 5rem; }
/* Fotos de portada: claras, sin movimiento al pasar el cursor */
.diapos { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.diapo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); filter: brightness(1.04) saturate(1.04); opacity: 0; }
.diapo.previa { opacity: 1; z-index: 1; }
.diapo.activa { opacity: 1; z-index: 2; }
/* 1. Fundido */
:where(.diapo.previa ~ .diapo.activa, .diapo.activa:has(~ .previa)) { animation: ef-fundido 1.6s ease both; }
@keyframes ef-fundido { from { opacity: 0; } }
/* Fundido diagonal (elegido): la foto nueva entra en diagonal con borde difuminado */
[data-efecto="diagonal"] .diapo.activa { -webkit-mask-image: linear-gradient(115deg, #000 38%, transparent 62%); mask-image: linear-gradient(115deg, #000 38%, transparent 62%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; animation-name: ef-diagonal; animation-duration: 1.7s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
@keyframes ef-diagonal { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.diapo.espejo { transform: scaleX(-1); object-position: var(--pos, center); }
/* Acercamiento lento mientras la foto está visible (no depende del cursor) */
.diapo { translate: 0 0; }
.diapo.activa { transition: scale 6s linear, translate 6s linear; scale: 1.09; translate: var(--kx, 0%) var(--ky, 0%); }
.diapo.previa { scale: 1.09; translate: var(--kx, 0%) var(--ky, 0%); }
@starting-style { .diapo.activa { scale: 1; translate: 0 0; } }
/* 2. Cortina diagonal */
[data-efecto="cortina"] .diapo.activa { animation-name: ef-cortina; animation-duration: 1.3s; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
@keyframes ef-cortina { from { clip-path: polygon(0 0, 0 0, -25% 100%, -25% 100%); } to { clip-path: polygon(0 0, 126% 0, 101% 100%, -25% 100%); } }
/* 3. Círculo que se abre, como un blanco de tiro */
[data-efecto="circulo"] .diapo.activa { animation-name: ef-circulo; animation-duration: 1.5s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
@keyframes ef-circulo { from { clip-path: circle(0% at 70% 48%); } to { clip-path: circle(135% at 70% 48%); } }
/* 4. Deslizamiento */
[data-efecto="deslizar"] .diapo.activa { animation-name: ef-entra; animation-duration: 1.2s; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
[data-efecto="deslizar"] .diapo.previa { animation: ef-sale 1.2s cubic-bezier(.76, 0, .24, 1) both; }
@keyframes ef-entra { from { translate: 100% 0; } }
@keyframes ef-sale { to { translate: -28% 0; } }
/* 5. Cuatro franjas, como las 4 líneas de tiro */
[data-efecto="lineas"] .diapo.activa { animation-name: ef-lineas; animation-duration: 1.5s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
@keyframes ef-lineas {
  0%   { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%, 0 0, 25% 0, 25% 0, 25% 100%, 25% 100%, 25% 0, 50% 0, 50% 0, 50% 100%, 50% 100%, 50% 0, 75% 0, 75% 0, 75% 100%, 75% 100%, 75% 0); }
  45%  { clip-path: polygon(0 0, 25% 0, 25% 100%, 0 100%, 0 0, 25% 0, 43% 0, 43% 100%, 25% 100%, 25% 0, 50% 0, 60% 0, 60% 100%, 50% 100%, 50% 0, 75% 0, 78% 0, 78% 100%, 75% 100%, 75% 0); }
  100% { clip-path: polygon(0 0, 25.2% 0, 25.2% 100%, 0 100%, 0 0, 25% 0, 50.2% 0, 50.2% 100%, 25% 100%, 25% 0, 50% 0, 75.2% 0, 75.2% 100%, 50% 100%, 50% 0, 75% 0, 100% 0, 100% 100%, 75% 100%, 75% 0); }
}
/* Sombra ligera: solo detrás del texto y de la cabecera */
.v2 .portada-mira::after { background: linear-gradient(90deg, rgba(7, 20, 40, .76) 0%, rgba(7, 20, 40, .56) 34%, rgba(7, 20, 40, .1) 62%, rgba(7, 20, 40, 0) 100%), linear-gradient(0deg, rgba(7, 20, 40, .42), rgba(7, 20, 40, 0) 28%); }
.v2 .portada-texto h1, .v2 .portada-texto > p { text-shadow: 0 2px 18px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .5); }

.v2 .portada-mira h1 { max-width: 15ch; font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
.foco { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s var(--suave);
  background: radial-gradient(24rem circle at var(--x, 70%) var(--y, 45%), rgba(226, 238, 210, .17), rgba(226, 238, 210, .06) 45%, transparent 72%); }
.anillo { position: absolute; left: var(--x, 70%); top: var(--y, 45%); width: 3.25rem; height: 3.25rem; translate: -50% -50%; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; pointer-events: none; opacity: 0; scale: .7; transition: opacity .45s, scale .55s var(--suave); }
.anillo::after { content: ""; position: absolute; inset: 0; margin: auto; width: 4px; height: 4px; border-radius: 50%; background: var(--acento); }
.con-foco .foco { opacity: 1; }
.con-foco .anillo { opacity: 1; scale: 1; }
.con-foco.sobre-accion .anillo { opacity: 0; scale: 1.5; }

/* Bloques redondeados */
.v2 .franjas { gap: .85rem; height: 33rem; }
.v2 .franja { border-radius: var(--radio-caja); isolation: isolate; }
.v2 .franja img { filter: grayscale(.35) brightness(.9); }
.v2 .franja.abierta img { filter: none; }
.v2 .franja > div { padding-inline: 1.5rem; padding-bottom: 1.5rem; }
.v2 .lineas figure img { border-radius: var(--radio-caja); aspect-ratio: 4 / 3; object-fit: cover; }
.v2 .carriles { gap: .85rem; }
.v2 .carriles li { padding: 2rem 1.25rem 1.75rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radio-caja); background: rgba(255, 255, 255, .045); transition: background-color .3s, border-color .3s; }
.v2 .carriles li:hover { background: rgba(255, 255, 255, .08); border-color: rgba(166, 201, 58, .55); }
.v2 .porque .razones { gap: 1.1rem; }
.v2 .porque .razones li { padding: 1.75rem; background: #fff; border: 1px solid #dde5f0; border-radius: var(--radio-caja); box-shadow: var(--sombra); }
.v2 .razones .ico { width: 3.5rem; height: 3.5rem; padding: .75rem; border-radius: 1.1rem; background: #e3ecf8; }
.v2 .banda-campus { background: transparent; padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.v2 .banda-fila { max-width: calc(var(--ancho) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); padding: clamp(1.75rem, 4vw, 3rem); background: var(--banda); border-radius: 2rem; }
.v2 .acreditacion { padding-top: 0; }
.v2 .indice { padding: 1.25rem; background: #fff; border: 1px solid #dde5f0; border-radius: var(--radio-caja); }
.v2 .indice li:first-child { border-top: 0; }
.v2 .curso { margin-bottom: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; border: 1px solid #dde5f0; border-radius: var(--radio-caja); }
.v2 .curso-foto { max-width: none; }
.v2 .curso-foto img { aspect-ratio: 16 / 8; object-fit: cover; border-radius: 1.1rem; }
.v2 .galeria-rejilla img, .v2 .mision-vision > div, .v2 .otros a, .v2 .examen, .v2 .pendiente { border-radius: var(--radio-caja); }
.v2 .formulario { border-radius: 2rem; border-color: #dde5f0; }
.v2 .mapa { border-radius: 2rem; }
.v2 .pie { margin-top: 0; border-radius: 2rem 2rem 0 0; }
.v2 .contacto { padding-bottom: clamp(3rem, 6vw, 5rem); }
.v2 .instalaciones { padding-top: 0; }
.ancha img { width: 100%; max-height: 36rem; object-fit: cover; border-radius: var(--radio-caja); }
.ancha figcaption { margin-top: .75rem; color: var(--tinta-2); font-size: .98rem; }
.v2 .encabezado { min-height: clamp(23rem, 58vh, 33rem); border-radius: 0 0 2rem 2rem; }
.v2 main > .encabezado:first-child { padding-top: calc(var(--alto-cab) + 2rem); }
.pie-legal .creditos { max-width: 60rem; font-size: .8rem; }

@media (max-width: 900px) {
  .v2 .franjas { height: auto; }
    .v2 .portada-mira { padding-bottom: 11rem; max-height: none; }
  .diapo { object-position: var(--pos-movil, center); }
    .v2 .portada-mira::after { background: linear-gradient(0deg, rgba(7, 20, 40, .78) 0%, rgba(7, 20, 40, .6) 52%, rgba(7, 20, 40, .28) 100%); }
}

/* ===== Botones: el relleno sube y el texto rueda (opción 2) ===== */
.v2 .btn { --rell: #0a1c36; --rell-texto: #fff; position: relative; isolation: isolate; overflow: hidden; transition: color .35s, border-color .35s, background-color .35s, transform .35s var(--suave); }
.v2 .portada .btn, .v2 .lineas .btn, .v2 .campus .btn, .v2 .pie .btn, .v2 .encabezado .btn, .v2 .mapa-tarjeta .btn { --rell: #fff; --rell-texto: #0a1c36; }
.v2 .btn::before { content: ""; position: absolute; z-index: -1; left: -5%; right: -5%; bottom: 0; height: 0; border-radius: 50% 50% 0 0 / 30% 30%; background: var(--rell); transition: height .5s var(--suave), border-radius .5s var(--suave); }
.v2 .btn .t { display: inline-block; height: 1.25em; overflow: hidden; line-height: 1.25; vertical-align: middle; }
.v2 .btn .rueda { display: block; transition: transform .45s var(--suave); }
.v2 .btn .rueda > span { display: block; height: 1.25em; }
.v2 .btn .ico { transition: transform .35s var(--suave); }
.v2 .btn:active { transform: scale(.97); }
.v2 .btn:focus-visible { color: var(--rell-texto); border-color: var(--rell); }
.v2 .btn:focus-visible::before { height: 120%; border-radius: 0; }
.v2 .btn:focus-visible .rueda { transform: translateY(-50%); }
.btn .onda { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: onda-clic .65s var(--suave) forwards; }
.btn-linea .onda { background: rgba(166, 201, 58, .45); }
@keyframes onda-clic { to { transform: scale(26); opacity: 0; } }
.v2 .menu .menu-tel a { transition: background-color .25s, border-color .25s, box-shadow .3s, translate .3s var(--suave); }
.v2 .redes a { transition: background-color .25s, color .25s, translate .3s var(--suave), box-shadow .3s; }
.franja-ir .ico { transition: translate .3s var(--suave); }
@media (hover: hover) {
  .v2 .btn:hover { color: var(--rell-texto); border-color: var(--rell); transform: none; box-shadow: none; }
  .v2 .btn-linea:hover { background: transparent; }
  .v2 .btn:hover::before { height: 120%; border-radius: 0; }
  .v2 .btn:hover .rueda { transform: translateY(-50%); }
  .v2 .btn:hover .ico { transform: rotate(-45deg); }
  .v2 .menu .menu-tel a:hover { translate: 0 -2px; border-color: var(--acento); box-shadow: 0 10px 20px -12px rgba(166, 201, 58, .8); }
  .v2 .redes a:hover { translate: 0 -4px; box-shadow: 0 12px 20px -12px rgba(166, 201, 58, .9); }
  .franja:hover .franja-ir .ico { translate: 6px 0; }
}

/* ===== Campus Virtual: con movimiento ===== */
.v2 .campus .banda-fila { position: relative; isolation: isolate; overflow: hidden; flex-wrap: nowrap; justify-content: flex-start; gap: clamp(1.25rem, 3vw, 2.25rem); border-radius: 3.5rem 1.5rem 3.5rem 1.5rem; }
.campus-texto { flex: 1; }
.campus-icono { display: grid; place-items: center; flex: none; width: 5rem; height: 5rem; border-radius: 1.5rem; background: #141a04; color: var(--acento); rotate: -6deg; transition: rotate .45s var(--suave), scale .45s var(--suave); }
.campus-icono .ico { width: 2.75rem; height: 2.75rem; }
.campus-diana { position: absolute; z-index: -1; right: -6rem; top: 50%; width: 26rem; height: 26rem; translate: 0 -50%; pointer-events: none; }
.campus-diana i { position: absolute; inset: 0; border: 2px solid rgba(20, 26, 4, .2); border-radius: 50%; animation: latido 4.5s ease-out infinite; }
.campus-diana i:nth-child(2) { animation-delay: 1.5s; }
.campus-diana i:nth-child(3) { animation-delay: 3s; }
@keyframes latido { from { scale: .25; opacity: 1; } to { scale: 1.15; opacity: 0; } }
.v2 .campus .btn { flex: none; min-height: 3.5rem; padding-inline: 1.75rem; animation: llamar 3.2s ease-out infinite; }
@keyframes llamar { 0% { outline: 2px solid rgba(20, 26, 4, .55); outline-offset: 0; } 55%, 100% { outline: 2px solid rgba(20, 26, 4, 0); outline-offset: 14px; } }
.v2 .campus .btn:focus-visible { animation: none; outline: 3px solid #141a04; outline-offset: 4px; }
@media (hover: hover) { .campus .banda-fila:hover .campus-icono { rotate: 6deg; scale: 1.08; } }

/* ===== Mapa: composición asimétrica ===== */
.v2 .contacto { overflow: hidden; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.mapa-zona { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 3rem auto 3rem; margin-top: 3.5rem; }
.mapa-marco { grid-column: 4 / -1; grid-row: 1 / -1; margin-right: min(0px, calc((var(--ancho) - 100vw) / 2)); overflow: hidden; border-radius: 1.5rem 0 0 9rem; box-shadow: var(--sombra); }
.v2 .mapa { height: 31rem; margin: 0; border-radius: 0; filter: grayscale(.85) contrast(1.05); transition: filter .6s var(--suave); }
.mapa-marco:hover .mapa, .mapa-marco:focus-within .mapa { filter: none; }
.mapa-tarjeta { position: relative; z-index: 1; grid-column: 1 / 6; grid-row: 2; align-self: end; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--oscuro); color: #fff; border-radius: 1.5rem 4rem 1.5rem 1.5rem; box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .7); transition: translate .4s var(--suave); }
.mapa-tarjeta h3 { font-size: 1.7rem; }
.mapa-tarjeta p { font-size: 1.15rem; }
.mapa-pin { position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--acento); color: #141a04; }
.mapa-pin .ico { width: 1.8rem; height: 1.8rem; }
.mapa-pin::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--acento); border-radius: 50%; animation: onda 2.4s var(--suave) infinite; }
@media (hover: hover) { .mapa-tarjeta:hover { translate: 0 -.5rem; } }
@media (max-width: 900px) {
  .mapa-zona { display: block; }
  .mapa-marco { margin: 0; border-radius: 1.25rem 4.5rem 1.25rem 1.25rem; }
  .v2 .mapa { height: 20rem; }
  .mapa-tarjeta { margin: -3rem .75rem 0; }
  .v2 .campus .banda-fila { flex-wrap: wrap; }
  .campus-texto { flex: 1 1 100%; }
  .v2 .campus .btn { width: 100%; }
}
.v2 .encabezado > img { object-position: center 28%; }

/* ===== Áreas de formación en zigzag (elegido) ===== */
.v2 .franja img { transition: filter .5s, scale .8s var(--suave), opacity .5s; filter: none; }
@media (min-width: 901px) {
  [data-diseno="5"] .franjas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 21rem; height: auto; }
  [data-diseno="5"] .franja:nth-child(1), [data-diseno="5"] .franja:nth-child(4) { grid-column: span 7; }
  [data-diseno="5"] .franja:nth-child(2), [data-diseno="5"] .franja:nth-child(3) { grid-column: span 5; }
  [data-diseno="5"] .franja { border-radius: 1.5rem; transition: border-radius .5s var(--suave), box-shadow .4s, opacity .8s var(--suave), transform .8s var(--suave); }
  [data-diseno="5"] .franja:nth-child(odd).espera:not(.visible) { transform: translateX(-3rem); }
  [data-diseno="5"] .franja:nth-child(even).espera:not(.visible) { transform: translateX(3rem); }
  [data-diseno="5"] .franja:hover { border-radius: 4.5rem 1.5rem; box-shadow: 0 28px 40px -22px rgba(10, 16, 12, .6); }
  [data-diseno="5"] .franja:hover img { scale: 1.08; }
  [data-diseno="5"] .franja > div { padding-top: 6rem; }
  [data-diseno="5"] .franja p { display: block; animation: none; }
}

/* ===== Más vida en el inicio ===== */
.lectura { position: fixed; z-index: 80; top: 0; left: 0; width: 100%; height: 3px; background: var(--acento); transform: scaleX(0); transform-origin: left; pointer-events: none; }
/* Entrada del título por líneas */
.v2 .portada-mira h1 span { display: block; animation: linea 1s var(--suave) both; }
.v2 .portada-mira h1 span + span { animation-delay: .18s; }
@keyframes linea { from { clip-path: inset(0 100% 0 0); translate: -1.5rem 0; } to { clip-path: inset(-10% -5% -10% 0); translate: 0 0; } }
.v2 .portada-mira h1 { max-width: 14ch; }
@keyframes marcha { to { translate: -100% 0; } }
/* Cifras sobre foto */
.cifras { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.cifras-fila { display: grid; }
.cifras-foto { grid-area: 1 / 1; height: clamp(22rem, 42vw, 32rem); overflow: hidden; border-radius: 1.5rem 7rem 1.5rem 1.5rem; }
.cifras-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cifras ul { grid-area: 1 / 1; z-index: 1; align-self: end; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0 1.25rem 1.25rem; }
.cifras li { padding: 1.1rem 1.25rem; border-radius: 1.25rem; background: rgba(10, 28, 54, .88); color: #fff; line-height: 1.3; }
.cifras strong { display: block; font: 700 clamp(2.2rem, 4.5vw, 3.6rem)/1 var(--fuente-titulos); color: var(--acento); font-variant-numeric: tabular-nums; }
/* Fotos que se descubren y se acercan */
.foto-viva { overflow: hidden; border-radius: var(--radio-caja); }
.foto-viva img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--suave); }
.foto-viva:hover img { scale: 1.07; }
.foto-viva.revela { transition: clip-path 1.1s var(--suave), opacity .5s; clip-path: inset(0 0 0 0 round 1.5rem); }
.foto-viva.revela.espera:not(.visible) { opacity: 1; transform: none; clip-path: inset(0 0 55% 0 round 1.5rem); }
.porque-asimetrico { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); }
.porque-asimetrico .alta { position: relative; min-height: 28rem; border-radius: 7rem 1.5rem 1.5rem 1.5rem; }
.porque-asimetrico .alta img { position: absolute; inset: 0; }
.porque-asimetrico .alta.revela { clip-path: none; }
.v2 .porque .porque-asimetrico .razones { grid-template-columns: minmax(0, 1fr); }
@supports (animation-timeline: view()) {
  .cifras-foto img { animation: profundidad linear both; animation-timeline: view(); }
  @keyframes profundidad { from { transform: scale(1.18) translateY(-4%); } to { transform: scale(1.04) translateY(3%); } }
}
@media (max-width: 900px) {
  .porque-asimetrico { grid-template-columns: minmax(0, 1fr); }
  .porque-asimetrico .alta { min-height: 18rem; }
  .cifras ul { grid-area: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .75rem 0 0; }
  .cifras-foto { grid-area: auto; border-radius: 1.5rem 4rem 1.5rem 1.5rem; }
  .v2 .franjas > .franja { min-height: 18rem; }
}
@media (min-width: 901px) {
  [data-diseno="5"] .franjas { grid-auto-rows: 23rem; }
  [data-diseno="5"] .franja > div { padding-top: 3.5rem; }
  [data-diseno="5"] .franja p { font-size: .98rem; line-height: 1.5; }
}

/* ===== Portada con video ===== */
.diapo-pausa { position: absolute; z-index: 5; left: var(--gutter); bottom: 1rem; width: auto; height: auto; min-height: 2.75rem; padding: .5rem 1.1rem; border: 0; border-radius: 3rem; background: #fff; color: #0a1c36; font: 700 .95rem/1 var(--fuente); cursor: pointer; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.diapo-pausa::before { content: none; }
.diapo-pausa:focus-visible { clip-path: none; }
.v2 .portada-mira .portada-texto h1 { max-width: none; font-size: clamp(2.8rem, 8vw, 7rem); line-height: .96; text-transform: uppercase; letter-spacing: -.01em; }
.v2 .portada-mira .portada-texto h1 span:nth-child(2) { color: var(--acento); }
.v2 .portada-mira .portada-texto > p { max-width: 36rem; }

/* ===== Mira del cursor: fina, pequeña y seria ===== */
.anillo { width: 2.6rem; height: 2.6rem; border: 1px solid rgba(255, 255, 255, .6); }
.anillo::before { content: ""; position: absolute; inset: -.55rem; background:
  linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) center top / 1px .65rem no-repeat,
  linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) center bottom / 1px .65rem no-repeat,
  linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) left center / .65rem 1px no-repeat,
  linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) right center / .65rem 1px no-repeat; }
.anillo::after { width: 3px; height: 3px; background: #fff; }
.foco { background: radial-gradient(18rem circle at var(--x, 70%) var(--y, 45%), rgba(190, 215, 255, .12), rgba(190, 215, 255, .04) 45%, transparent 72%); }

/* ===== Más azul profundo y menos verde ===== */
:root {
  --oscuro: #0a1c36; --cab-fondo: #0a1c36; --cab-solido: #0a1c36; --pie: #071428;
  --tinta: #0f1d2e; --tinta-2: #46566b; --papel: #f4f7fb; --papel-2: #e8eef6; --borde: #d3dbe7;
  --detalle: #1c4f94; --marca: #1c4f94;
  --banda: #0d2a52; --banda-texto: #fff;
  --velo: linear-gradient(90deg, rgba(7, 20, 40, .93), rgba(7, 20, 40, .6) 45%, rgba(7, 20, 40, .08) 85%);
}
.v2 .banda-campus .btn-principal { background: var(--acento); color: var(--sobre-acento); }
.v2 .banda-campus .btn-principal:hover { background: var(--acento-hover); }
.campus-icono { background: var(--acento); color: #0a1c36; }
.campus-diana i { border-color: rgba(255, 255, 255, .16); }
@keyframes llamar { 0% { outline: 2px solid rgba(166, 201, 58, .7); outline-offset: 0; } 55%, 100% { outline: 2px solid rgba(166, 201, 58, 0); outline-offset: 14px; } }
.v2 .campus .btn:focus-visible { outline-color: #fff; }
.acreditacion .banda-fila { color: #fff; }
.v2 .porque .razones li, .v2 .indice, .v2 .curso, .v2 .formulario { border-color: #dde5f0; }
.v2 .razones .ico { background: #e3ecf8; }
.pie a:hover { color: var(--acento); }

/* ===== Galería de Tiro: simétrica, con fotos más grandes ===== */
.v2 .lineas .contenedor { max-width: 84rem; }
.v2 .lineas-rejilla { grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.v2 .lineas-rejilla .foto-viva { aspect-ratio: 3 / 2; }
.v2 .lineas .carriles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.v2 .lineas .carriles li { justify-content: flex-start; min-height: 12rem; padding: 2rem 1.25rem; text-align: center; }
.v2 .lineas .carriles li + li { border-left: 1px solid rgba(255, 255, 255, .1); }

/* ===== Capacítate con nosotros ===== */
.capacita-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.capacita .foto-viva { position: relative; min-height: 30rem; border-radius: 1.5rem; }
.capacita .foto-viva img { position: absolute; inset: 0; }
.capacita-texto { align-self: center; }
.pilares { margin: 1.75rem 0 0; }
.pilares li { display: flex; gap: 1.1rem; align-items: flex-start; padding-block: 1.1rem; border-top: 1px solid var(--borde); }
.pilares li:last-child { border-bottom: 1px solid var(--borde); }
.pilares svg { flex: none; width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--detalle); stroke-width: 1.5; }
.pilares h3 { margin-bottom: .15rem; font-size: 1.2rem; }
.pilares p { margin: 0; color: var(--tinta-2); }
@media (max-width: 900px) {
  .v2 .lineas-rejilla, .capacita-rejilla { grid-template-columns: minmax(0, 1fr); }
  .v2 .lineas .carriles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2 .lineas .carriles li:nth-child(odd) { border-left: 0; }
  .capacita .foto-viva { min-height: 20rem; }
}

/* ===== Frase: foto a todo ancho ===== */
.frase { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(30rem, 70vh, 42rem); padding-block: clamp(3rem, 7vw, 5rem); overflow: hidden; color: #fff; margin-block: clamp(2.5rem, 6vw, 5rem); }
.frase > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.frase::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 20, 40, .9), rgba(7, 20, 40, .2) 65%); }
.frase .gran { max-width: 20ch; margin: 0 0 2rem; font: 700 clamp(2.4rem, 6.4vw, 5.6rem)/1.02 var(--fuente-titulos); letter-spacing: -.015em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.pal { display: inline-block; opacity: 0; translate: 0 .5em; }
.dentro .pal, .dentro.pal { animation: palabra .8s var(--suave) forwards; animation-delay: calc(var(--i) * 90ms + 100ms); }
@keyframes palabra { to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pal { opacity: 1; translate: 0 0; } }

/* ===== Microinteracciones ===== */
/* Menú: línea que se dibuja bajo el enlace */
.v2 .menu > ul > li > a, .v2 .sub-btn { position: relative; }
.v2 .menu > ul > li > a::after, .v2 .sub-btn::before { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--acento); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--suave); }
.v2 .menu > ul > li > a:hover::after, .v2 .menu > ul > li > a[aria-current="page"]::after, .v2 .sub-btn:hover::before, .v2 .sub-btn.activo::before { transform: scaleX(1); }
.v2 .menu .menu-tel a::after { content: none; }
@media (max-width: 1099px) { .v2 .menu > ul > li > a::after, .v2 .sub-btn::before { left: .25rem; right: auto; width: 2.5rem; } }
/* Tarjetas que se elevan y sus íconos que reaccionan */
.v2 .porque .razones li, .v2 .carriles li, .v2 .curso, .v2 .mision-vision > div { transition: translate .45s var(--suave), box-shadow .45s, border-color .3s, background-color .3s; }
.v2 .razones .ico, .pilares svg, .carriles svg { transition: rotate .6s var(--suave), scale .5s var(--suave), background-color .3s; }
@media (hover: hover) {
  .v2 .porque .razones li:hover { translate: 0 -5px; box-shadow: 0 30px 50px -28px rgba(10, 28, 54, .55); border-color: #b9c9de; }
  .v2 .razones li:hover .ico { rotate: -8deg; scale: 1.1; background: #d3e3f6; }
  .v2 .carriles li:hover { translate: 0 -4px; }
  .v2 .curso:hover { border-color: #b9c9de; box-shadow: 0 24px 40px -30px rgba(10, 28, 54, .5); }
  .pilares li:hover svg { rotate: 90deg; scale: 1.08; }
  .pilares li:hover h3 { color: var(--detalle); }
  .redes a:hover svg { scale: 1.15; }
  .franja:hover img { scale: 1.05; }
}
.pilares h3 { transition: color .3s; }
.redes svg { transition: scale .35s var(--suave); }
/* Pie: enlaces con línea animada */
.v2 .pie nav a, .v2 .pie .datos a { background: linear-gradient(var(--acento), var(--acento)) left bottom / 0 1px no-repeat; transition: background-size .35s var(--suave), color .25s; padding-bottom: 2px; text-decoration: none; }
.v2 .pie nav a:hover, .v2 .pie .datos a:hover { background-size: 100% 1px; text-decoration: none; }
/* Formulario: foco que se nota, validación que responde */
.campo input, .campo select, .campo textarea { transition: border-color .25s, box-shadow .25s; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--detalle); box-shadow: 0 0 0 4px rgba(28, 79, 148, .16); }
.campo label { transition: color .25s; }
.campo:focus-within label { color: var(--detalle); }
.campo { position: relative; }
.campo.ok input, .campo.ok textarea { border-color: #2e7d4f; }
.campo.ok::after { content: ""; position: absolute; right: .85rem; top: 2.45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #2e7d4f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; animation: pop .4s var(--suave) both; pointer-events: none; }
.campo.ok.ancho::after { top: 2.45rem; }
.campo.ok select ~ *, .campo select { padding-right: 2rem; }
@keyframes pop { from { scale: 0; } }
.campo.sacude { animation: sacude .45s; }
@keyframes sacude { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.aviso.bien { animation: pop .5s var(--suave) both; }
/* WhatsApp flotante: se abre solo una vez */
.wa-flotante.abre span { max-width: 12rem; margin-right: .7rem; opacity: 1; }
/* Volver arriba con anillo de avance */
.arriba { position: fixed; z-index: 59; right: clamp(.9rem, 2.5vw, 1.75rem); bottom: calc(clamp(.9rem, 2.5vw, 1.75rem) + 4.75rem); width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%; background: #0a1c36; color: #fff; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55); opacity: 0; translate: 0 1rem; pointer-events: none; transition: opacity .35s, translate .45s var(--suave), background-color .25s; }
.arriba.ver { opacity: 1; translate: 0 0; pointer-events: auto; }
.arriba svg { width: 100%; height: 100%; fill: none; stroke-width: 2; }
.arriba .pista { stroke: rgba(255, 255, 255, .2); }
.arriba .avance { stroke: var(--acento); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .15s linear; }
.arriba .flecha { stroke: #fff; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--suave); }
@media (hover: hover) { .arriba:hover { background: #12305a; } .arriba:hover .flecha { translate: 0 -2px; } }

/* ===== Encabezado: ancho completo y azul sólido arriba; cápsula al bajar ===== */
.v2 .cabecera { padding: 0; transition: padding .45s var(--suave); }
.v2 .cabecera-fila { max-width: 100%; min-height: var(--alto-cab); padding-inline: clamp(1rem, 3vw, 2.5rem); border: 0; border-radius: 0; background: #0a1c36; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; transition: max-width .5s var(--suave), min-height .5s var(--suave), border-radius .5s var(--suave), padding .5s var(--suave), box-shadow .5s; }
.v2 .cabecera.bajada { padding: .75rem clamp(.6rem, 1.6vw, 1.25rem) 0; }
.v2 .cabecera.bajada .cabecera-fila { max-width: 82rem; min-height: 4.5rem; padding-inline: 1.5rem .85rem; border-radius: 3rem; background: #0a1c36; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }
@media (max-width: 1099px) {
  .v2 .cabecera-fila { padding-inline: 1.25rem .7rem; }
  .v2 .cabecera:not(.bajada) .menu { top: 100%; border-radius: 0 0 1.5rem 1.5rem; }
}

/* ===== Botones: un 10% menos redondeados ===== */
.v2 .btn { border-radius: 1.4rem; }

/* ===== Título y subtítulo que cambian con cada foto ===== */
.portada-texto > p.cambia { animation: etiqueta-entra .9s var(--suave) both; }

/* ===== Créditos de imágenes ===== */
.creditos-lista { margin-top: 1.5rem; }
.creditos-lista li { padding-block: 1.1rem; border-top: 1px solid var(--borde); }
.creditos-lista li:last-child { border-bottom: 1px solid var(--borde); }
.pie-legal .creditos a { text-decoration: underline; }

.capacita .foto-viva img { object-position: 60% 62%; }

.capacita .foto-viva img { object-position: 66% 30%; }
.cifras-foto img { object-position: 60% 50%; }

/* Subtítulo de la portada en dos líneas */
.v2 .portada-texto > p[data-sub] span { display: block; }
.v2 .portada-texto > p[data-sub] span + span { margin-top: .45rem; color: rgba(255, 255, 255, .9); font-size: .93em; }

/* Encabezado final: barra de contacto arriba y botón de WhatsApp */
body.final { --alto-cab: 8.15rem; }
.cab-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-height: 2.4rem; height: 2.4rem; padding-inline: clamp(1rem, 3vw, 2.5rem); overflow: hidden; background: #06152b; color: #c9d6e8; font-size: .86rem; pointer-events: auto; transition: max-height .45s var(--suave), opacity .35s; }
.cab-top p, .cab-top ul { display: flex; align-items: center; gap: 1.4rem; margin: 0; max-width: none; }
.cab-top .insignia { gap: .5rem; color: #fff; font-weight: 600; }
.cab-top svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--acento); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cab-top svg path[fill] { fill: var(--acento); stroke: none; }
.cab-top a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; transition: color .25s; }
.cab-top a:hover { color: #fff; }
.redes-top { gap: .9rem; }
.cabecera.bajada .cab-top { max-height: 0; opacity: 0; }
.final.v2 .cabecera:not(.bajada) .cabecera-fila { min-height: 5.75rem; }
.menu .cab-cta a { display: inline-flex; min-height: 3rem; padding: .7rem 1.35rem; margin-left: .75rem; color: var(--sobre-acento); }
.menu .cab-cta a::after { content: none; }
.menu .cab-cta a.btn, .menu .cab-cta a.btn:hover, .menu .cab-cta a.btn:focus-visible { background: var(--acento); }
.v2 .cabecera .btn { --rell: #fff; --rell-texto: #0a1c36; }
@media (max-width: 1099px) { .cab-top { display: none; } body.final { --alto-cab: 5.75rem; } .menu .cab-cta a { margin: .5rem 0 0; width: 100%; justify-content: center; } }
@media (max-width: 1250px) { .cab-top .insignia span { display: none; } .cab-top .insignia svg { width: 1.3rem; height: 1.3rem; } }
