/* ===== Fuentes locales ===== */
@font-face { font-family: "Urbanist"; src: url("../fonts/Urbanist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

/* ===== Paleta (referencia/colores.pdf) ===== */
:root {
  --azul-profundo: #103FA8;
  --azul-google: #1A73E8;
  --cian: #00C6FF;
  --azul-marino: #003168;
  --azul-noche: #0B1B3F;
  --azul-boton: #1A57D6;
  --azul-oscuro: #0F3FA8;
  --gris-azulado: #F1F4FA;
  --azul-claro: #33ABFA;
  --indigo: #5B6CF0;
  --violeta: #6D28D9;
  --lima: #E4F27A;
  --lila: #9B5CF6;
  --rosa: #FFE0EE;

  --bs-body-font-family: "Urbanist", system-ui, sans-serif;
  --bs-body-color: var(--azul-noche);
  --font-titulos: "Montserrat", "Urbanist", sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--bs-body-font-family); color: var(--azul-noche); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-titulos); font-weight: 800; }

/* ===== Botones ===== */
.btn-umg {
  background: linear-gradient(135deg, var(--azul-boton), var(--azul-profundo));
  color: #fff; border: 0; border-radius: 999px;
  padding: .7rem 1.6rem; font-size: 1.05rem;
}
.btn-umg:hover, .btn-umg:focus { color: #fff; background: var(--azul-oscuro); }
.btn-umg-outline {
  background: #fff; color: var(--azul-noche); border: 1px solid #d5dbe8;
  border-radius: 999px; padding: .7rem 1.6rem; font-size: 1.05rem;
}
.btn-umg-outline:hover { background: var(--gris-azulado); color: var(--azul-noche); }

/* ===== Header / navbar ===== */
.site-header { background: #fff; border-bottom: 1px solid #e6eaf3; }
.site-header .navbar-brand img { height: 44px; width: auto; }
.site-header .brand-sep { width: 1px; height: 36px; background: #e1e6f0; margin: 0 .9rem; }
.site-header .nav-link { color: var(--azul-noche); font-size: 1.05rem; padding: .5rem 1rem; }
.site-header .nav-link:hover { color: var(--azul-google); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 80px);
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--gris-azulado) 100%);
  display: flex; align-items: center; /* contenido centrado verticalmente */
}
.hero > .container { width: 100%; }
.hero { --hero-half: 251px; }
@media (min-width: 1400px) { .hero { --hero-half: 290px; } }
@media (min-width: 1600px) { .hero { --hero-half: 385px; } }
.hero-eyebrow { font-size: 1.2rem; color: var(--azul-marino); margin-bottom: 2rem; }
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.08;
  color: var(--azul-noche); margin-bottom: 1.5rem;
}
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.7rem); margin-bottom: 2.2rem; }

.float-card {
  position: absolute; background: #fff; border: 1px solid #edf0f7;
  border-radius: 28px; box-shadow: 0 18px 40px rgba(16, 63, 168, .12);
}
.card-rank {
  /* anclada al borde izquierdo de la columna de texto central (--hero-half = media columna) para no taparla */
  top: 11%; right: calc(50% + var(--hero-half) + 1rem); width: clamp(180px, 15vw, 225px);
  padding: 1.3rem 1rem; text-align: center; z-index: 3;
}
.card-rank .rank-num {
  font-family: var(--font-titulos); font-weight: 800; font-size: 3.6rem; line-height: 1;
  color: var(--azul-profundo);
}
.card-rank .rank-num sup { font-size: .45em; vertical-align: top; position: relative; top: .1em; }
.card-rank small { display: block; color: var(--azul-marino); font-size: clamp(1.05rem, 1.3vw, 1.4rem); font-weight: 600; line-height: 1.2; margin-top: .5rem; }

/* Foto + prompt: el prompt se ancla a la foto y la cubre en su parte inferior */
.photo-group { position: absolute; top: 19%; left: 3%; width: 20%; z-index: 1; }
.card-photo {
  position: relative; width: 100%; aspect-ratio: 395 / 475; padding: 0; overflow: hidden;
  border-radius: 32px;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

.card-prompt {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; border-radius: 24px; font-size: 1.05rem; z-index: 2;
}
.card-prompt-1 { left: 12%; bottom: -44px; width: 112%; min-width: 260px; z-index: 2; }

/* Icono de enviar (versión azul del SVG; background-image funciona también con file://) */
.icon-enviar {
  width: 24px; height: 24px; flex: none;
  background: url("../img/icon-enviar-azul.svg") center / contain no-repeat;
}

/* Pila derecha: prompt + tarjeta azul, separadas para que no se toquen */
.card-stack {
  position: absolute; right: 10.5%; bottom: 4%; width: 21.5%; min-width: 260px;
  display: flex; flex-direction: column; gap: 1rem; z-index: 2;
}
.card-stack .float-card { position: static; width: auto; min-width: 0; }

.card-gemini { top: 23%; right: 6.5%; width: 20%; min-width: 260px; padding: 1.6rem 1.7rem 1.2rem; }
.card-gemini img { width: 100%; height: auto; }
.card-gemini hr { margin: 1rem 0 .8rem; opacity: .15; }
.card-gemini small { color: var(--azul-marino); }

.card-ia {
  background: linear-gradient(135deg, var(--azul-boton), var(--azul-profundo));
  color: #fff; padding: 1.4rem 1.6rem; border: 0; border-radius: 24px; z-index: 2;
}
.card-ia small { opacity: .85; font-size: 1rem; }
.card-ia strong { display: block; font-family: var(--font-titulos); font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin-top: .3rem; }

/* Tablet/móvil: las tarjetas flotantes pasan a flujo normal */
@media (max-width: 1199.98px) {
  .hero { min-height: 0; padding: 3rem 0; display: block; }
  .card-stack { display: contents; }
  .hero .floats {
    padding: 0 1rem; max-width: 960px; margin: 2.5rem auto 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch;
  }
  .float-card { position: static; width: auto !important; min-width: 0 !important; }
  .card-rank { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.1rem 1rem; }
  .card-gemini { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.4rem; }
  .photo-group { grid-column: 1; grid-row: 2 / span 2; position: static; width: auto; display: flex; flex-direction: column; gap: 1rem; }
  .card-photo { aspect-ratio: auto; flex: 1; min-height: 200px; }
  .card-prompt-1 { position: static; width: auto; }
  .card-stack .card-prompt { grid-column: 2; grid-row: 2; }
  .card-ia { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; justify-content: center; }
  .card-prompt { padding: .9rem 1.1rem; font-size: 1rem; }
}
/* Móvil: una sola columna compacta */
@media (max-width: 599.98px) {
  .hero { padding: 2.2rem 0; }
  .hero .floats { grid-template-columns: 1fr; gap: .8rem; margin-top: 2rem; }
  .card-rank, .card-gemini, .photo-group, .card-stack .card-prompt, .card-ia { grid-column: 1; grid-row: auto; }
  .float-card { border-radius: 22px; }
  .card-rank { flex-direction: row; align-items: center; justify-content: center; gap: .9rem; text-align: left; }
  .card-rank .rank-num { font-size: 3rem; }
  .card-rank small { margin-top: 0; font-size: 1.2rem; }
  .card-photo { flex: none; aspect-ratio: 16 / 9; min-height: 0; border-radius: 22px; }
  .card-gemini img { max-width: 260px; margin: 0 auto; }
  .card-gemini { text-align: center; }
  .card-ia { padding: 1.1rem 1.3rem; }
  .card-ia strong { font-size: 1.3rem; }
}

/* ===== Sección 01: mensaje ===== */
.mensaje {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(7rem, 15vw, 15rem) 0 clamp(5rem, 10vw, 9rem);
  background: linear-gradient(180deg, #21349A 0, #21349A 130px, #2a55cc 60%, #2d62dd 100%);
}
/* Olas (medidas sobre referencia/mensaje1.png): borde ondulado azul #21349A sobre fondo gris azulado,
   y dentro de él una ola blanca translúcida (~18 %) que se desplaza en bucle. */
/* Medido sobre referencia/mensaje1.png: la ola clara es el mismo azul #21349A al 83 % de opacidad
   (#4656ab sobre blanco), va DETRÁS del azul fuerte y asoma por encima de su borde en las esquinas. */
.mensaje-waves { position: absolute; top: 0; left: 0; width: 100%; height: clamp(70px, 8.3vw, 130px); overflow: hidden; background: var(--gris-azulado); pointer-events: none; }
.mensaje-waves svg { position: absolute; top: 0; height: 100%; display: block; }
.wave-fuerte { left: 0; width: 100%; fill: #21349A; }
.wave-clara { left: 0; width: 300%; fill: rgba(33, 52, 154, .83); animation: ola 12s linear infinite; }
/* 3 periodos de ancho: -33.333 % = 1 periodo exacto y siempre queda onda de sobra a la derecha (sin cortes) */
@keyframes ola { to { transform: translateX(-33.3333333%); } }
@media (prefers-reduced-motion: reduce) { .wave-clara { animation: none; } }
.mensaje .container-xl { max-width: 1100px; }
.mensaje-eyebrow { font-size: 1rem; color: rgba(255, 255, 255, .8); margin-bottom: 1.5rem; }
.mensaje-texto {
  font-weight: 600; font-size: clamp(1.8rem, 3.9vw, 3.5rem); line-height: 1.18; letter-spacing: -0.02em; margin: 0;
}
.mensaje-texto .palabra { will-change: opacity; }

/* ===== Flotación de las tarjetas del hero, al mismo ritmo que la ola (12 s) =====
   Usa la propiedad `translate`, independiente de `transform` (que usa el parallax del mouse). */
@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.card-rank, .photo-group, .card-gemini, .card-stack { animation: flotar 12s ease-in-out infinite; }
/* Desfase = posición horizontal de cada tarjeta: la ola avanza hacia la izquierda y su cresta pasa
   primero por las tarjetas de la derecha. Así cada tarjeta sube cuando la ola, bajo ella, sube. */
.card-rank { animation-delay: -9.1s; }
.photo-group { animation-delay: -7.6s; }
.card-gemini { animation-delay: -4s; }
.card-stack { animation-delay: -3.5s; }
@media (max-width: 1199.98px), (prefers-reduced-motion: reduce) {
  .card-rank, .photo-group, .card-gemini, .card-stack { animation: none; }
}

/* ===== Sección 02: túnel 3D (adaptado de referencia/efectos/Tunel3D) ===== */
.tunel {
  --nav-h: 71px;
  --stage-h: clamp(560px, calc(100vh - var(--nav-h)), 900px);
  position: relative; background: #fff;
  height: calc(var(--stage-h) + 900px); /* 900px = recorrido sticky */
}
.tunel-stage {
  position: sticky; top: var(--nav-h); height: var(--stage-h);
  overflow: hidden; perspective: 700px; perspective-origin: 50% 50%;
}
.tunel-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.tunel-texto {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; gap: 16px;
}
.tunel-big {
  display: inline-block; font-family: var(--font-titulos); font-weight: 800;
  font-size: clamp(120px, 16vw, 230px); line-height: .85; letter-spacing: -.05em;
  color: #21349A; transform: scale(var(--big-scale, .9)); will-change: transform;
}
.tunel-titulo, .tunel-sub { background: rgba(255, 255, 255, .82); border-radius: 12px; padding: 4px 10px; margin: 0; }
.tunel-titulo {
  font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -.025em;
  max-width: 560px; color: #2D62DD;
}
.tunel-sub { font-size: 16px; line-height: 1.6; max-width: 460px; color: #3B4A6B; }
.t-wall { position: absolute; }
.t-tile { position: absolute; border-radius: 4px; overflow: hidden; background: #DCE4F2; }
.t-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-frame { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) {
  .tunel { height: var(--stage-h); }
  .tunel-stage { position: relative; top: 0; }
}

/* ===== Sección 03: Conoce el reconocimiento (adaptado de ConoceStickyStory) ===== */
.conoce { background: #FAFBFF; padding: 5rem 0 6rem; color: var(--azul-noche); }
.conoce-wrap { max-width: 1240px; }
.conoce-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 70px; }
.conoce-label { display: block; font-size: 14px; color: #5A6785; margin-bottom: 18px; }
.conoce-title {
  margin: 0; max-width: 720px; font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.02; letter-spacing: -.035em;
}
.conoce-title span { color: var(--azul-profundo); }
.conoce-intro { margin: 0; font-size: 16px; line-height: 1.6; color: #3B4A6B; max-width: 380px; }

.conoce-body { display: flex; gap: 72px; align-items: flex-start; }
.conoce-visual { flex: 0 0 520px; position: sticky; top: 110px; }
.conoce-card {
  position: relative; height: 600px; border-radius: 36px; overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(15, 63, 168, .65); isolation: isolate;
}
.kss-layer {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.06);
  transition: opacity .7s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}
.kss-layer.is-active { opacity: 1; transform: scale(1); }
.kss-big { font-family: var(--font-titulos); font-weight: 600; letter-spacing: -.03em; line-height: .95; color: #fff; }

/* 1 · distintivo */
.kss-distintivo { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #0F3FA8 0%, #1A73E8 60%, #00C6FF 120%); }
.kss-ring { position: absolute; border-radius: 50%; }
.kss-ring-a { width: 520px; height: 520px; border: 1px dashed rgba(255, 255, 255, .3); }
.kss-ring-b { width: 380px; height: 380px; border: 1px solid rgba(255, 255, 255, .22); }
.kss-ring-b i { position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--lima); }
.kss-badge { position: relative; background: #fff; border-radius: 26px; padding: 26px 28px; width: 300px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.kss-badge img { width: 100%; display: block; }
@keyframes kss-spin { to { transform: rotate(360deg); } }
.kss-spin { animation: kss-spin 80s linear infinite; }
.kss-spin-r { animation: kss-spin 120s linear infinite reverse; }

/* 2 · barras */
.kss-barras {
  background: linear-gradient(160deg, #0B1B3F 0%, #0F3FA8 55%, #5B6CF0 120%); padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.kss-barras-label { font-family: var(--font-titulos); font-size: 22px; font-weight: 600; color: #C2D3F2; margin-top: 18px; }
.kss-bars { display: flex; gap: 14px; align-items: flex-end; height: 300px; }
.kss-bars i { flex: 1; border-radius: 12px; display: block; }
.kss-bars i:nth-child(1) { height: 22%; background: rgba(255, 255, 255, .18); }
.kss-bars i:nth-child(2) { height: 38%; background: rgba(255, 255, 255, .24); }
.kss-bars i:nth-child(3) { height: 56%; background: rgba(255, 255, 255, .32); }
.kss-bars i:nth-child(4) { height: 76%; background: linear-gradient(180deg, #7FD8FF, var(--cian)); }
.kss-bars i:nth-child(5) { height: 100%; background: linear-gradient(180deg, var(--lima), #B8E05A); }
.kss-barras .kss-big { font-size: 54px; }

/* 3 · foto */
.kss-foto { background: #0B1B3F; }
.kss-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kss-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 27, 63, .85) 0%, rgba(15, 63, 168, .25) 55%, rgba(0, 198, 255, .1) 100%); }
.kss-foto .kss-big { position: absolute; left: 44px; right: 44px; bottom: 44px; font-size: 48px; z-index: 1; }

.kss-dots { position: absolute; left: 28px; top: 28px; display: flex; gap: 8px; z-index: 3; }
.kss-dots span { width: 6px; height: 6px; border-radius: 6px; background: #fff; opacity: .5; transition: width .5s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.kss-dots span.is-active { width: 28px; opacity: 1; }
.kss-counter { position: absolute; right: 30px; top: 22px; z-index: 3; font-family: var(--font-titulos); font-size: 15px; color: #fff; opacity: .85; }

/* preguntas */
.conoce-items { flex: 1; min-width: 0; }
.conoce-item {
  min-height: 460px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 40px 0; border-top: 1px solid #DCE4F2; opacity: .3; transition: opacity .5s cubic-bezier(.2, .8, .2, 1);
}
.conoce-item.is-active { opacity: 1; }
.conoce-num { display: flex; align-items: center; gap: 14px; font-family: var(--font-titulos); font-weight: 600; font-size: 15px; color: #5A6785; transition: color .5s; }
.conoce-num i { display: block; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--azul-google), var(--cian)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.conoce-item.is-active .conoce-num { color: var(--azul-boton); }
.conoce-item.is-active .conoce-num i { width: 64px; }
.conoce-item h3 { margin: 0; font-family: var(--font-titulos); font-weight: 600; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; }
.conoce-resp { margin: 0; font-size: 18px; line-height: 1.65; color: #2A3A5E; }
.conoce-det { margin: 0; font-size: 16px; line-height: 1.65; color: #3B4A6B; }

/* Pantallas angostas: sin visual fijo, todas las preguntas visibles */
@media (max-width: 979.98px) {
  .conoce-head { flex-direction: column; align-items: stretch; margin-bottom: 40px; }
  .conoce-visual { display: none; }
  .conoce-item { min-height: 0; opacity: 1; }
  .conoce-num i { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .kss-spin, .kss-spin-r { animation: none; }
  .kss-layer, .conoce-item, .kss-dots span, .conoce-num i { transition: none; }
}

/* ===== Sección 04: El programa ===== */
.programa { background: var(--gris-azulado); padding: 6rem 0 7rem; color: var(--azul-noche); }
.programa-wrap { max-width: 1180px; }
.programa-head { text-align: center; max-width: 1000px; margin: 0 auto 4.5rem; }
.programa-label { display: block; font-size: 14px; color: #5A6785; margin-bottom: 18px; }
.programa-title { margin: 0 0 2rem; font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.05; letter-spacing: -.035em; }
.programa-title span { color: #2D62DD; }
.programa-intro { margin: 0 auto; max-width: 780px; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; color: #3B4A6B; }

.programa-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.programa-foto { position: relative; margin: 0; aspect-ratio: 1.02; border-radius: 40px; box-shadow: 0 40px 80px -50px rgba(15, 63, 168, .45); }
.programa-foto > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Píldora vertical "Reconocida" */
.pill-reconocida {
  position: absolute; left: -4.5%; top: 9%; width: 88px; height: 216px; border-radius: 44px; padding: 6px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
  background: linear-gradient(180deg, #33ABFA, #1A73E8);
  box-shadow: 0 0 0 4px rgba(51, 171, 250, .25), 0 24px 50px -10px rgba(26, 115, 232, .65);
}
.pill-check { flex: none; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--azul-profundo); display: grid; place-items: center; }
.pill-check svg { width: 34px; height: 34px; }
.pill-texto {
  flex: 1; border-radius: 38px; background: #fff; color: var(--azul-boton); font-size: 15px;
  writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center;
}

/* Tarjeta de insignia sobre la foto 2 */
.programa-insignia {
  position: absolute; left: 5%; right: 5%; bottom: 5%; background: #fff; border-radius: 30px; padding: 2.2rem 2rem 1.4rem;
  box-shadow: 0 20px 50px -25px rgba(11, 27, 63, .5);
}
.programa-insignia img { width: min(100%, 380px); display: block; }
.programa-insignia hr { margin: 1.4rem 0 1rem; opacity: .15; }
.programa-insignia small { color: var(--azul-marino); font-size: 14px; }

.programa-texto { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin: 4.5rem 0 3.5rem; padding: 0 1.2rem; align-items: start; }
.programa-texto h3 { margin: 0; font-family: var(--font-titulos); font-weight: 600; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; }
.programa-texto p { margin: 0; font-size: 16px; line-height: 1.85; color: #3B4A6B; }


@media (max-width: 899.98px) {
  .programa-fotos { grid-template-columns: 1fr; }
  .pill-reconocida { left: 12px; }
  .programa-texto { grid-template-columns: 1fr; gap: 1.5rem; padding: 0; }
}

/* ===== Sección 05: Lo que se evalúa + etapas del programa ===== */
.evalua {
  position: relative; color: #fff; padding: 8rem 0 7rem; overflow: hidden;
  background:
    radial-gradient(ellipse 40% 30% at 92% 12%, rgba(26, 115, 232, .35), transparent 70%),
    linear-gradient(180deg, #0F2A5C 0%, #1B3F96 50%, #2D62DD 100%);
}
.evalua-wrap { max-width: 1240px; }
.evalua-label { display: block; font-size: 14px; color: rgba(255, 255, 255, .75); margin-bottom: 1.2rem; }
.evalua-top { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; margin-bottom: 0; }
.evalua-title { margin: 0; font-weight: 600; font-size: clamp(2.2rem, 3.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; color: #9ADCFF; }
.evalua-title .hl { color: #fff; }
.evalua-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.evalua-list li { display: grid; grid-template-columns: 52px 1fr; padding: 1.6rem 0 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.evalua-list li:last-child { border-bottom: 0; }
.evalua-list li > span { font-family: var(--font-titulos); font-weight: 700; font-size: 14px; padding-top: .45rem; }
.evalua-list h3 { margin: 0 0 .6rem; font-family: var(--font-titulos); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -.02em; }
.evalua-list p { margin: 0; line-height: 1.7; color: #C9D8F5; }

@media (max-width: 899.98px) {
  .evalua { padding: 5rem 0; }
  .evalua-top { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 0; }
}

/* ===== Sección 06: Lo que incluye (beneficios) ===== */
.benef { background: #fff; padding: 6rem 0 7rem; color: var(--azul-noche); }
.benef-wrap { max-width: 1240px; }
.benef-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benef-card {
  --cut: 36px;
  position: relative; aspect-ratio: 1; padding: 24px 26px; border-radius: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  translate: 0 0; transition: translate .45s cubic-bezier(.2, .8, .2, 1); will-change: transform; outline: 0;
}
.benef-card:hover, .benef-card:focus-visible { translate: 0 -6px; }
.benef-grid.is-scrolling .benef-card { pointer-events: none; }
.benef-num { position: absolute; left: 26px; top: 30px; font-size: 13px; opacity: .8; }
.benef-arrow { position: absolute; right: 26px; top: 28px; width: 18px; height: 18px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.benef-card:hover .benef-arrow, .benef-card:focus-visible .benef-arrow { transform: rotate(45deg); }
.benef-body h3 { margin: 0; font-family: var(--font-titulos); font-weight: 600; font-size: clamp(1.1rem, 1.65vw, 1.5rem); line-height: 1.12; letter-spacing: -.015em; }
.benef-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1); }
.benef-desc p { overflow: hidden; margin: 0; font-size: 14px; line-height: 1.6; opacity: 0; transition: opacity .35s, margin .45s; }
.benef-card:hover .benef-desc, .benef-card:focus-visible .benef-desc { grid-template-rows: 1fr; }
.benef-card:hover .benef-desc p, .benef-card:focus-visible .benef-desc p { opacity: .9; margin-top: 14px; }

.benef-cian { background: #29BBFC; color: var(--azul-noche); }
.benef-noche { background: #121A36; color: #fff; }
.benef-azul { background: linear-gradient(135deg, #2D62DD, #2A47C4); color: #fff; }
.benef-claro { background: #EEF1F9; color: var(--azul-noche); }
.benef-profundo { background: #21349A; color: #fff; }
.benef-violeta { background: linear-gradient(135deg, #5B6CF0, #6D28D9); color: #fff; }

@media (max-width: 991.98px) { .benef-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991.98px) { .benef-card { aspect-ratio: auto; min-height: 280px; } }
@media (max-width: 479.98px) { .benef-grid { grid-template-columns: 1fr; } .benef-card { min-height: 240px; } }
@media (hover: none) { .benef-desc { grid-template-rows: 1fr; } .benef-desc p { opacity: .9; margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { .benef-card, .benef-arrow, .benef-desc, .benef-desc p { transition: none; } }

/* ===== Sección 07: ¿Cómo beneficia a nuestra Universidad? ===== */
.bene {
  position: relative; color: #fff; padding: 9rem 0 11rem; overflow: hidden;
  background:
    radial-gradient(ellipse 62% 42% at 50% 62%, rgba(62, 160, 247, .95), rgba(62, 160, 247, 0) 72%),
    #3C4EA6;
}
.bene-wrap { max-width: 1340px; }
.bene-head { text-align: center; max-width: 920px; margin: 0 auto 5.5rem; }
.bene-label { display: block; font-size: 14px; margin-bottom: 1.4rem; opacity: .95; }
.bene-title { margin: 0 0 1.6rem; font-weight: 700; font-style: italic; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.03em; }
.bene-intro { margin: 0 auto; max-width: 620px; font-size: 1.1rem; line-height: 1.65; }

.bene-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.bcol:nth-child(1) { margin-top: 150px; }
.bcol:nth-child(3) { margin-top: 245px; }
.bcol:nth-child(4) { margin-top: 45px; }
.bcol-in { display: flex; flex-direction: column; gap: 18px; will-change: transform; }

.bcard {
  position: relative; border-radius: 32px; padding: 28px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 22px 44px -18px rgba(8, 20, 70, .45); color: var(--azul-noche);
}
.bcard h3 { margin: 0; font-family: var(--font-titulos); font-weight: 600; font-size: clamp(1.1rem, 1.65vw, 1.45rem); line-height: 1.12; letter-spacing: -.015em; }
.bcard p { margin: 0; font-size: 15px; line-height: 1.6; }
.bcard > p { margin-top: auto; }

.bcard-azul { background: #2D62DD; color: #fff; aspect-ratio: .87; padding-bottom: 0; }
.bcard-rombos {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56%; padding: 0 28px 28px; display: flex; align-items: flex-end;
  /* tablero de rombos: un rombo claro por celda de 56px, los huecos forman los rombos oscuros */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z' fill='%23fff' fill-opacity='.3'/%3E%3C/svg%3E") 0 100% / 56px 56px;
}
.bcard-rombos p { background: #fff; color: var(--azul-noche); border-radius: 20px; padding: 18px 16px; width: 100%; }

.bcard-foto1 { aspect-ratio: .93; padding: 0; }
.bcard-foto1 img, .bcard-foto2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard-foto1::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 30, 110, .55), rgba(40, 30, 110, 0) 45%); }
.bcard-foto1 h3 { position: absolute; left: 24px; right: 24px; top: 24px; z-index: 1; color: #fff; }
.bcard-foto2 { aspect-ratio: 1.21; padding: 0; }

.bcard-lima { background: #DEF07A; aspect-ratio: 1; }
.bcard-lila { background: #EBE0FB; aspect-ratio: 1; }
.bcard-blanca { background: #fff; aspect-ratio: 1; }
.bcard-rosa { background: #FFDCEB; aspect-ratio: .93; }
.bcard-barras { display: flex; align-items: flex-end; gap: 12px; height: 36%; margin: 1rem 0 1.4rem; }
.bcard-barras i { flex: 1; display: block; border-radius: 12px; background: #9B52EE; }
.bcard-barras i:nth-child(1) { height: 32%; } .bcard-barras i:nth-child(2) { height: 52%; }
.bcard-barras i:nth-child(3) { height: 74%; } .bcard-barras i:nth-child(4) { height: 92%; } .bcard-barras i:nth-child(5) { height: 100%; }
.bcard-lineas { height: 26%; margin: 1.2rem 0 0; border-radius: 10px; background: repeating-linear-gradient(90deg, #E0589B 0 12px, transparent 12px 22px); }

@media (max-width: 1199.98px) {
  .bene { padding: 6rem 0 7rem; }
  .bene-cols { grid-template-columns: 1fr 1fr; }
  .bcol:nth-child(n) { margin-top: 0; }

  /* Tarjetas compactas: la altura la define el contenido, no la proporción de escritorio */
  .bcol .bcard { aspect-ratio: auto; padding: 22px; gap: 14px; border-radius: 26px; }
  .bcard > p { margin-top: 0; }
  .bcol .bcard-foto1, .bcol .bcard-foto2 { padding: 0; aspect-ratio: 4 / 3; }
  .bcol .bcard-azul { padding-bottom: 0; gap: 0; }
  .bcard-rombos { position: static; height: auto; margin: 22px -22px 0; padding: 36px 22px 22px; }
  .bcard-barras { height: 80px; margin: 0; }
  .bcard-lineas { height: 36px; margin: 0; }
}
@media (max-width: 599.98px) {
  .bene-head { margin-bottom: 3rem; }
  .bcol-in { gap: 14px; }
  .bene-cols { gap: 14px; }
  .bcol .bcard-foto1, .bcol .bcard-foto2 { aspect-ratio: 16 / 10; }
}
@media (max-width: 599.98px) { .bene-cols { grid-template-columns: 1fr; } }

/* Escritorios medianos (1200-1599px): el texto del hero se estrecha para no chocar con las tarjetas flotantes */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .hero .col-xl-7 { flex: 0 0 auto; width: 44%; }
  .hero-title { font-size: 3.7vw; }
  .hero-lead { font-size: 1.25vw; }
}

/* ===== Sección 08: Ecosistema Google for Education ===== */
.eco {
  position: relative; overflow: hidden; background: #fff; padding: 6rem 0 7rem; color: var(--azul-noche);
  background-image:
    radial-gradient(ellipse 34% 40% at 100% 28%, rgba(0, 198, 255, .2), transparent 70%),
    radial-gradient(ellipse 30% 10% at 55% 100%, rgba(155, 92, 246, .14), transparent 70%);
}
.eco-wrap { max-width: 1240px; }
.eco-label { display: block; font-size: 14px; color: #5A6785; margin-bottom: 1.1rem; }
.eco-title { margin: 0 0 1.6rem; max-width: 780px; font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -.03em; color: #2B4FCF; }
.eco-intro { margin: 0 0 4.2rem; max-width: 760px; font-size: 1.1rem; line-height: 1.7; color: #3B4A6B; }

.eco-body { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: start; }
.eco-tabs { display: flex; flex-direction: column; gap: 6px; }
.eco-tab {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 28px; padding: 22px 24px; cursor: pointer;
  color: var(--azul-noche); font: inherit; transition: background .4s;
}
.eco-tab.is-active { background: #EDF4FF; }
.eco-tab:focus-visible { outline: 2px solid var(--azul-google); outline-offset: 2px; }
.eco-tab-head { display: flex; align-items: center; gap: 16px; }
.eco-tab-head svg { flex: none; width: 26px; height: 26px; color: #21349A; }
.eco-tab-name { flex: 1; font-family: var(--font-titulos); font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; letter-spacing: -.02em; }
.eco-tab-n { font-size: 13px; color: #5A6785; align-self: center; }
.eco-tab-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1); }
.eco-tab-desc > span { overflow: hidden; display: block; font-size: 15.5px; line-height: 1.6; color: #2A3A5E; opacity: 0; transition: opacity .35s, padding .45s; }
.eco-tab.is-active .eco-tab-desc { grid-template-rows: 1fr; }
.eco-tab.is-active .eco-tab-desc > span { opacity: 1; padding: 14px 0 6px 42px; }

/* Tarjeta de chat con borde degradado */
.eco-chat {
  position: relative; border-radius: 34px; padding: 26px 28px 28px; min-height: 484px; display: flex; flex-direction: column;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(160deg, #1A73E8 0%, #33ABFA 45%, #9B5CF6 100%) border-box;
  border: 2px solid transparent; box-shadow: 0 40px 80px -50px rgba(15, 63, 168, .35);
}
.eco-chat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 16px; border-bottom: 1px solid #E6ECF7; }
.eco-chat-title { font-family: var(--font-titulos); font-weight: 600; font-size: 20px; }
.eco-chat-meta { font-size: 13.5px; color: #5A6785; }
.eco-msg {
  align-self: flex-end; max-width: 86%; margin-top: 22px; background: #21349A; color: #fff; border-radius: 22px; padding: 14px 20px; font-size: 16.5px; line-height: 1.4;
}
.eco-typed .t-b { visibility: hidden; } /* reserva el tamaño final del globo: solo se "escribe" el texto, el fondo no cambia */
.eco-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; background: currentColor; vertical-align: -.15em; animation: eco-blink 1s steps(1) infinite; }
@keyframes eco-blink { 50% { opacity: 0; } }
.eco-lines { display: grid; gap: 14px; margin: 28px 0 24px; }
.eco-lines i { display: block; height: 12px; border-radius: 12px; background: linear-gradient(90deg, #DCE6F7 0%, #EEF3FC 50%, #DCE6F7 100%) 0 0 / 200% 100%; animation: eco-shimmer 2.2s linear infinite; }
.eco-lines i:nth-child(1) { width: 92%; } .eco-lines i:nth-child(2) { width: 79%; } .eco-lines i:nth-child(3) { width: 66%; }
@keyframes eco-shimmer { to { background-position: -200% 0; } }
.eco-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.eco-chips span { border: 1px solid #C9D2F4; color: #21349A; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
.eco-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #DDE4F2; border-radius: 999px; padding: 13px 22px; color: #5A6785; font-size: 14.5px; }
.eco-input svg { width: 20px; height: 20px; color: #2B4FCF; flex: none; }
/* animación de entrada al cambiar de herramienta */
.eco-chat.is-switching .eco-lines, .eco-chat.is-switching .eco-chips { opacity: 0; }
.eco-lines, .eco-chips { transition: opacity .5s; }
.eco-chat.is-typing .eco-lines, .eco-chat.is-typing .eco-chips { opacity: 0; }

@media (max-width: 991.98px) {
  .eco { padding: 4.5rem 0 5rem; }
  .eco-body { grid-template-columns: 1fr; gap: 28px; }
  .eco-intro { margin-bottom: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) { .eco-caret, .eco-lines i { animation: none; } .eco-tab, .eco-tab-desc, .eco-tab-desc > span, .eco-lines, .eco-chips { transition: none; } }

/* ===== Sección 09: Resultados institucionales ===== */
.res {
  position: relative; overflow: hidden; color: #fff; min-height: max(100vh, 860px);
  display: flex; align-items: center; justify-content: center; padding: 6rem 0;
  background: linear-gradient(180deg, #21349A 0%, #2D62DD 100%);
}
.res-rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.res-rings i { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); border-radius: 50%; border: 1px dotted rgba(255, 255, 255, .32); transform: translate(-50%, -50%); }
.res-center { position: relative; z-index: 1; text-align: center; max-width: 470px; }
.res-label { display: block; font-size: 14px; margin-bottom: 1.1rem; }
.res-title { margin: 0 0 1rem; font-weight: 700; font-size: clamp(2.4rem, 4.5vw, 3.9rem); line-height: 1.03; letter-spacing: -.03em; }
.res-lead { margin: 0 auto; max-width: 370px; font-size: 1rem; line-height: 1.75; }

.res-dot { position: absolute; border-radius: 50%; pointer-events: none; }
.res-dot-a { left: 13.3%; top: 16%; width: 10px; height: 10px; background: #F5B84A; }
.res-dot-b { left: 48.7%; bottom: 14%; width: 12px; height: 12px; background: #F5B84A; }
.res-dot-c { right: 9%; top: 37%; width: 9px; height: 9px; background: rgba(255, 255, 255, .7); }
.res-dot-d { left: 24%; top: 42%; width: 10px; height: 10px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); }
.res-dot-e { left: 67.7%; top: 56.6%; width: 30px; height: 30px; background: radial-gradient(circle, #9B5CF6 0 5px, rgba(255, 255, 255, .18) 6px 100%); border: 1px solid rgba(255, 255, 255, .3); }

.res-pos { position: absolute; z-index: 2; }
/* Cada tarjeta tiene su CENTRO sobre una de las órbitas (anillos de radio 300, 350 y 450 px alrededor del centro de la sección) */
.res-pos-1 { left: 50%; top: 50%; margin: -274px 0 0 -346px; }    /* órbita de 350 px  */
.res-pos-2 { left: 50%; top: 50%; margin: -329px 0 0 170px; }     /* órbita de 350 px  */
.res-pos-3 { left: 50%; top: 50%; margin: 41px 0 0 -517px; }      /* órbita de 450 px  */
.res-pos-4 { left: 50%; top: 50%; margin: 45px 0 0 345px; }       /* órbita de 450 px  */
.res-card {
  border-radius: 28px; color: var(--azul-noche); box-shadow: 0 24px 50px -22px rgba(8, 20, 70, .5);
  animation: res-flota 7s ease-in-out infinite;
}
.res-card strong { display: block; font-family: var(--font-titulos); font-weight: 800; line-height: 1; }
.res-card span { display: block; }
.res-card svg { display: block; width: 28px; height: 28px; color: #21349A; }
.res-centrado { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.res-cian { background: #29BBFC; width: 130px; height: 130px; }
.res-cian strong { font-size: 34px; margin-bottom: 6px; } .res-cian span { font-size: 14px; }
.res-gris { background: #DDE3F3; width: 170px; height: 170px; animation-duration: 8.5s; animation-delay: -2s; }
.res-gris strong { font-size: 34px; margin-bottom: 8px; } .res-gris span { font-size: 14px; line-height: 2; }
.res-lima { background: #DEF07A; width: 175px; height: 181px; padding: 24px 10px 0 10px; animation-duration: 6.5s; animation-delay: -1s; }
.res-lima svg { margin: 0 0 14px 4px; }
.res-lima strong { font-size: 34px; margin-left: 4px; } .res-lima span { font-size: 13px; color: #3B4A6B; margin: 6px 0 0 4px; }
.res-blanca { background: #fff; width: 163px; height: 197px; padding: 50px 18px 0; animation-duration: 9s; animation-delay: -4s; }
.res-blanca svg { margin-bottom: 16px; }
.res-blanca strong { font-size: 24px; font-weight: 700; margin-bottom: 4px; } .res-blanca span { font-size: 15px; color: #3B4A6B; }
@keyframes res-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 1199.98px) {
  .res { flex-direction: column; justify-content: center; gap: 3rem; padding: 5rem 0 5rem; min-height: 0; }
  .res-pos { position: static; margin: 0 !important; }
  .res-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); gap: 16px; justify-content: center; }
  .res-pos .res-card { width: auto; height: auto; min-height: 150px; }
  .res-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .res-card { animation: none; } }

/* ===== Sección 10: Innovamos hoy ===== */
.inno { background: linear-gradient(180deg, #EEF3FD 0%, #fff 42%); padding: 7rem 0 6rem; color: var(--azul-noche); }
.inno-wrap { max-width: 1100px; text-align: center; }
.inno-title { margin: 0 auto 2.4rem; max-width: 11.9em; font-weight: 700; font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.08; letter-spacing: -.03em; color: #2D62DD; }
.inno-text { margin: 0 auto 4.2rem; max-width: 560px; font-size: 1.1rem; line-height: 1.75; color: #3B4A6B; }
.inno-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.2rem 2.6rem; margin-bottom: 4rem; }
.inno-logos img { display: block; width: auto; }
.logo-umg { height: 96px; }
.inno-sep { width: 1px; height: 80px; background: #E1E6F0; margin: 0 -.4rem; }
.logo-gemini { height: 64px; }
.logo-ing { height: 52px; }
.logo-cite { height: 58px; }
.inno-tag { margin: 0; font-family: var(--font-titulos); font-weight: 600; font-size: 1.15rem; color: #21349A; }
@media (max-width: 767.98px) { .inno { padding: 4.5rem 0 4rem; } .inno-sep { display: none; } .logo-umg { height: 80px; } }

/* ===== Pie de página ===== */
.pie { position: relative; overflow: hidden; background: #11295F; color: #fff; padding: 7rem 0 3.2rem; }
.pie-marca {
  position: absolute; left: 50%; top: 52%; width: min(560px, 70vw); height: auto; transform: translate(-50%, -52%);
  filter: grayscale(1) brightness(2.2); opacity: .4; mix-blend-mode: screen; pointer-events: none; user-select: none;
}
.pie-wrap { position: relative; max-width: 1240px; }
.pie-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; margin-bottom: 7.2rem; }
.pie-col h3 { margin: 0 0 1.35rem; font-family: var(--bs-body-font-family); font-weight: 400; font-size: 1.3rem; color: #1FB6FF; }
.pie-col ul { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: 4px; }
.pie-col ul:last-child { margin-bottom: 0; }
.pie-col a { color: #fff; text-decoration: none; font-size: 1.15rem; line-height: 1.5; }
.pie-col a:hover, .pie-col a:focus-visible { color: #1FB6FF; }

.pie-bar { display: flex; align-items: center; gap: 1.6rem; }
.pie-apps { display: flex; align-items: center; gap: 12px; }
.pie-ic { width: 42px; height: 42px; flex: none; border: 1.5px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .3s, color .3s; }
.pie-ic svg { width: 24px; height: 24px; }
.pie-ic:hover, .pie-ic:focus-visible { background: #fff; color: #11295F; }
.pie-vsep { width: 1px; height: 22px; background: rgba(255, 255, 255, .55); margin: 0 4px; }
.pie-vsep-lg { height: 50px; background: #fff; margin: 0; }
.pie-app-txt { font-size: 11px; line-height: 1.15; margin-left: 4px; }
.pie-copy { flex: 1; }
.pie-copy p { margin: 0 0 .4rem; font-size: 1.05rem; }
.pie-copy small { display: block; font-size: 11.5px; opacity: .95; }
.pie-contacto { display: grid; gap: 4px; }
.pie-contacto a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 15px; }
.pie-contacto svg { width: 24px; height: 24px; flex: none; }
.pie-contacto a:hover { color: #1FB6FF; }
.pie-umg { height: 52px; width: auto; flex: none; margin-left: .4rem; }

@media (max-width: 991.98px) {
  .pie { padding: 4.5rem 0 2.5rem; }
  .pie-cols { grid-template-columns: repeat(2, 1fr); margin-bottom: 4rem; }
  .pie-bar { flex-wrap: wrap; row-gap: 1.6rem; }
  .pie-vsep-lg { display: none; }
  .pie-copy { flex-basis: 100%; order: 3; }
}
@media (max-width: 575.98px) { .pie-cols { grid-template-columns: 1fr; } .pie-apps { flex-wrap: wrap; } }

/* ===== Selector de idioma (ES | EN) ===== */
.lang-switch { display: inline-flex; border: 1px solid #d5dbe8; border-radius: 999px; padding: 3px; margin: 0 1rem 0 0; background: #fff; }
.lang-switch a { min-width: 40px; text-align: center; padding: .3rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--azul-noche); text-decoration: none; transition: background .25s, color .25s; }
.lang-switch a:hover { background: var(--gris-azulado); }
.lang-switch a[aria-current="true"] { background: var(--azul-google); color: #fff; pointer-events: none; }
@media (max-width: 991.98px) { .lang-switch { margin: .75rem 0 .5rem; align-self: flex-start; } }

/* ===== Botón volver arriba ===== */
.btn-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
  width: 52px; height: 52px; border: 0; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-boton); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 63, 168, .35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
}
.btn-top.visible { opacity: 1; visibility: visible; transform: none; }
.btn-top:hover { background: var(--azul-profundo); }
.btn-top:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; }
.btn-top svg { width: 24px; height: 24px; }
@media (max-width: 575.98px) { .btn-top { right: 1rem; bottom: 1rem; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .btn-top { transition: none; } }
