@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@300;400;600;700;800&display=swap");

:root {
  --bk-bg: #f4f7ff;
  --bk-surface: #ffffff;
  --bk-primary: #1854f8;
  --bk-primary-dark: #0e3dd9;
  --bk-gold: #ffc200;
  --bk-text: #1a2744;
  --bk-muted: #546a9e;
  --bk-border: rgba(24, 84, 248, 0.16);
  --bk-shadow: 0 10px 30px rgba(24, 84, 248, 0.12);
  --bk-font-sans: 'Inter', sans-serif;
  --bk-font-display: 'Sora', sans-serif;
}

body.becas-theme {
  margin: 0;
  padding-top: 74px;
  background: var(--bk-bg);
  color: var(--bk-text);
  font-family: var(--bk-font-sans);
}

/* ── NAVBAR ── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  margin: 0 !important;
  border-radius: 0;
  background: #1a3a7c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

/* anula background semitransparente del template base si aplica */
.nav-wrapper nav.navbar {
  height: 74px;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-wrapper .navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  height: 74px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav-wrapper .navbar-brand.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 18px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-wrapper .nav-brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-wrapper .nav-brand-logos img {
  max-height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.nav-wrapper .nav-brand-logos img:last-child {
  max-height: 64px;
}

.nav-wrapper .nav-brand-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
}

.nav-wrapper .nav-name {
  font-family: var(--bk-font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.15;
}

.nav-wrapper .nav-name span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.navbar-nav.menu.mod-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.navbar-nav.menu.mod-list > li {
  list-style: none;
}

.nav-wrapper .nav-link {
  font-family: var(--bk-font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82) !important;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-wrapper .nav-link:hover,
.nav-wrapper .nav-link:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.nav-wrapper .btn_donar,
.nav-wrapper .btn.btn-primary {
  border: none;
  border-radius: 999px;
  color: #ffffff !important;
  font-family: var(--bk-font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 26px;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--bk-primary), #4a6fff) !important;
  box-shadow: 0 4px 18px rgba(24, 84, 248, 0.4);
}

.nav-wrapper .btn_donar:hover,
.nav-wrapper .btn.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(24, 84, 248, 0.55);
}

.nav-wrapper .navbar-toggler {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.nav-wrapper .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* scrolled state */
.nav-wrapper.scrolled {
  background: #f4f7ff;
  box-shadow: 0 1px 12px rgba(24, 84, 248, 0.12);
}

.nav-wrapper.scrolled .nav-brand-logos img {
  filter: none;
  opacity: 1;
}

.nav-wrapper.scrolled .nav-brand-sep {
  background: rgba(24, 84, 248, 0.2);
}

.nav-wrapper.scrolled .nav-name {
  color: var(--bk-text);
}

.nav-wrapper.scrolled .nav-name span {
  color: var(--bk-muted);
}

.nav-wrapper.scrolled .nav-link {
  color: rgba(26, 39, 68, 0.72) !important;
}

.nav-wrapper.scrolled .btn_donar,
.nav-wrapper.scrolled .btn.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--bk-primary), #4a6fff) !important;
}

.nav-wrapper.scrolled .btn_donar:hover,
.nav-wrapper.scrolled .btn.btn-primary:hover {
  color: #ffffff !important;
}

/* Oculta el footer antiguo embebido en form.php */
.becas-theme footer:not(.bk-footer),
.becas-theme .fundacion_footer,
.becas-theme .h300px {
  display: none !important;
}

/* ── FOOTER ── */
footer.bk-footer {
  height: auto !important;
  margin-top: 26px;
  padding: 60px 0 32px;
  background: #1a3a7c;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer.bk-footer > .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-logos img {
  max-height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.footer-brand-logos .nav-brand-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
}

.footer-brand p {
  color: var(--bk-gold);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left !important;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials .social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.footer-socials .social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-socials .social-btn:hover {
  border-color: #fff;
  color: #fff;
}

.footer-col h5 {
  font-family: var(--bk-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a,
.footer-col ul li span,
footer.bk-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  margin: 0;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bk-gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .nav-wrapper .navbar-collapse {
    background: #1a3a7c;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-wrapper.scrolled .navbar-collapse {
    background: #f4f7ff;
  }

  .navbar-nav.menu.mod-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── PAGE HERO BECAS (Diseño Homogéneo) ── */
.page-hero-becas {
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr auto;
  gap: 52px;
  align-items: center;
}

.page-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bk-primary);
  margin-bottom: 14px;
}

.section-tag::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--bk-primary);
  border-radius: 2px;
}

.page-hero-title {
  font-family: var(--bk-font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0d1730;
  margin-bottom: 20px;
}

.grad-text {
  background: linear-gradient(135deg, #1854f8 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-lead {
  font-size: 1.02rem;
  color: var(--bk-muted);
  line-height: 1.8;
  max-width: 620px;
  margin: 0;
  text-align: justify;
}

.page-hero-img {
  width: 440px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.hero-img-wrap {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(7, 34, 82, 0.16);
  position: relative;
  z-index: 1;
  background: #eef2ff;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative shapes */
.hero-deco {
  position: absolute;
  inset: -45px;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.hero-deco-ring-1 {
  animation: deco-spin 18s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-deco-ring-2 {
  animation: deco-spin-r 12s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-deco-dots {
  animation: deco-spin 30s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-deco-arc {
  animation: deco-spin-r 22s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-deco-float-1 { animation: deco-float 4s ease-in-out infinite; }
.hero-deco-float-2 { animation: deco-float 5.5s ease-in-out infinite reverse; }
.hero-deco-float-3 { animation: deco-float 3.8s ease-in-out infinite 1s; }

@keyframes deco-spin   { to { transform: rotate(360deg);  } }
@keyframes deco-spin-r { to { transform: rotate(-360deg); } }
@keyframes deco-float  {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-10px); }
}

@media (max-width: 992px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .page-hero-img {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .hero-deco {
    inset: -20px;
  }
}

/* ── SECCIÓN ¿CÓMO APLICAR? (DISEÑO CLARO Y ELEGANTE) ── */
.aplicacion-modern-section {
  padding: 95px 0 105px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(24, 84, 248, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 85% 80%, rgba(201, 151, 42, 0.08) 0%, transparent 55%),
    linear-gradient(160deg, #f8f9ff 0%, #eef2fd 35%, #fdf8ee 70%, #f0f7f3 100%);
  position: relative;
  overflow: hidden;
  color: var(--bk-text);
  border-top: 1px solid rgba(24, 84, 248, 0.08);
}

.aplicacion-header {
  max-width: 680px;
  margin: 0 auto 56px;
}

.aplicacion-title {
  font-family: var(--bk-font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: #0d1730;
  margin: 12px 0 10px;
  line-height: 1.2;
}

.aplicacion-subtitle {
  font-size: 1.05rem;
  color: var(--bk-muted);
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(24, 84, 248, 0.14);
  border-radius: 20px;
  padding: 40px 30px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 32px rgba(24, 84, 248, 0.08);
  transition: transform 0.4s ease, border-color 0.3s, box-shadow 0.4s;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--bk-primary);
  box-shadow: 0 18px 48px rgba(24, 84, 248, 0.16);
}

.step-badge-wrap {
  margin-bottom: 22px;
}

.step-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(24, 84, 248, 0.08);
  border: 1px solid rgba(24, 84, 248, 0.2);
  color: var(--bk-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(24, 84, 248, 0.1) 0%, rgba(255, 194, 0, 0.12) 100%);
  border: 1px solid rgba(24, 84, 248, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--bk-primary);
  box-shadow: 0 8px 24px rgba(24, 84, 248, 0.08);
  transition: transform 0.3s, color 0.3s, background 0.3s;
}

.step-card:hover .step-icon-wrap {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--bk-primary) 0%, #7c3aed 100%);
  color: #ffffff;
}

.step-icon {
  width: 38px;
  height: 38px;
}

/* Micro-animaciones en iconos */
.icon-animate-float {
  animation: floatIcon 3.5s ease-in-out infinite;
}

.icon-animate-fly {
  animation: flyIcon 4s ease-in-out infinite;
}

.icon-animate-pulse {
  animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes flyIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(4deg); }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.step-title {
  font-family: var(--bk-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d1730;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--bk-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 460px;
    margin: 0 auto;
  }
}



