/* Escuela IGF Ecuador 2026 — Estilos compartidos */

/* === Fallback: layout robusto aunque el CDN de Bootstrap tarde o falle === */
.container { width: 100%; padding-right: 16px; padding-left: 16px; margin-right: auto; margin-left: auto; max-width: 1200px; box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }
.navbar-nav, .navbar-nav ul { list-style: none; padding-left: 0; margin: 0; }
.navbar-nav li, .navbar-nav .nav-item { list-style: none; }
a, .nav-link, .navbar-brand, .top-bar a { text-decoration: none; }
.navbar-toggler { display: none; background: transparent; border: 1px solid rgba(0,0,0,.1); padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.navbar-toggler-icon { display: inline-block; width: 24px; height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280%2C0%2C0%2C0.55%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 100%; }
.sticky-top { position: -webkit-sticky; position: sticky; top: 0; z-index: 1020; }

@media (min-width: 992px) {
  .navbar { padding: 8px 0; }
  .navbar > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .navbar-collapse { display: flex !important; flex-basis: auto; flex-grow: 1; align-items: center; justify-content: flex-end; }
  .navbar-nav { display: flex; flex-direction: row; align-items: center; gap: 6px; }
  .navbar-nav .nav-item { display: inline-flex; align-items: center; }
  .navbar-toggler { display: none !important; }
  .ms-lg-3 { margin-left: 1rem !important; }
}

/* Padding por defecto en links del navbar (cuando Bootstrap no carga) */
.navbar-nav .nav-link, a.nav-link { display: inline-block; padding: 8px 12px; line-height: 1.4; }

@media (max-width: 991.98px) {
  .navbar > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .navbar-toggler { display: inline-block; }
  .navbar-collapse { flex-basis: 100%; }
  .navbar-collapse:not(.show) { display: none; }
  .navbar-collapse.show { display: block; }
  .navbar-nav { flex-direction: column; align-items: flex-start; }
}

/* Grid de utilidad para sustituir Bootstrap row/col cuando no carga */
.row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
.row > [class*="col-"] { padding-right: 12px; padding-left: 12px; }
.col-md-4 { flex: 0 0 auto; width: 100%; }
.col-md-5 { flex: 0 0 auto; width: 100%; }
.col-md-6 { flex: 0 0 auto; width: 100%; }
.col-md-8 { flex: 0 0 auto; width: 100%; }
.col-lg-3 { flex: 0 0 auto; width: 100%; }
.col-lg-4 { flex: 0 0 auto; width: 100%; }
.col-lg-5 { flex: 0 0 auto; width: 100%; }
.col-lg-6 { flex: 0 0 auto; width: 100%; }
.col-lg-7 { flex: 0 0 auto; width: 100%; }
.col-lg-8 { flex: 0 0 auto; width: 100%; }
.col-lg-9 { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { width: 33.333333%; }
  .col-md-5 { width: 41.666667%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666667%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-9 { width: 75%; }
}
.g-3 { row-gap: 1rem; column-gap: 1rem; }
.g-4 { row-gap: 1.5rem; column-gap: 1.5rem; }
.g-5 { row-gap: 3rem; column-gap: 3rem; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-md-end { justify-content: flex-end !important; }
.justify-content-md-start { justify-content: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-items-lg-center { align-items: center !important; }
.text-center { text-align: center; }
.text-md-start { text-align: left; }
.text-md-end { text-align: right; }
.ms-auto { margin-left: auto !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.ms-1 { margin-left: .25rem !important; }
.ms-2 { margin-left: .5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.me-3 { margin-right: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.fw-bold { font-weight: 700 !important; }
.fw-light { font-weight: 300 !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.lead { font-size: 1.1rem; }
.small { font-size: .85em; }
.list-unstyled { padding-left: 0; list-style: none; }
.text-warning { color: var(--accent) !important; }
.text-info { color: var(--igf-blue) !important; }
.text-danger { color: var(--igf-red) !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted); }
.bg-light { background-color: var(--light-bg) !important; }
.bg-white { background-color: #fff !important; }
.rounded-4 { border-radius: 16px; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.shadow-lg { box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.border { border: 1px solid var(--line); }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }
@media (min-width: 768px) { .d-md-block { display: block !important; } }
@media (min-width: 992px) { .d-lg-block { display: block !important; } }
.h-100 { height: 100% !important; }
.fst-italic { font-style: italic !important; }
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.fa-3x { font-size: 3em; }

:root {
  --primary: #002955;
  --primary-dark: #001a35;
  --secondary: #0056b3;
  --accent: #ffcc00;
  --accent-dark: #f1c40f;
  --igf-blue: #33b5ff;
  --igf-cyan: #53f1ff;
  --igf-red: #ff4f70;
  --text-dark: #1a1a1a;
  --text-muted: #5a6a7e;
  --light-bg: #f6f9fd;
  --line: #e3e9f1;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.62;
  background: #fff;
}

/* Top bar */
.top-bar { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: 8px 0; font-size: 0.83rem; }
.top-bar a { color: rgba(255,255,255,.85); text-decoration: none; margin-right: 18px; font-weight: 600; transition: .2s; }
.top-bar a:hover { color: var(--accent); }
.top-bar .tag-badge { background: rgba(255,204,0,.18); color: var(--accent); padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Navbar */
.navbar { background: white; border-bottom: 3px solid var(--primary); box-shadow: 0 2px 14px rgba(0,0,0,0.06); }
.navbar-brand strong { color: var(--primary); font-weight: 800; letter-spacing: -.01em; }
.navbar-brand small { color: var(--text-muted); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; display: block; line-height: 1; margin-top: 2px; }
.nav-link { color: var(--text-dark) !important; font-weight: 600; font-size: .94rem; }
.nav-link:hover, .nav-link.active { color: var(--secondary) !important; }
.btn-postular { background: var(--accent); color: var(--primary) !important; font-weight: 800; border-radius: 50px; padding: 8px 22px; transition: .25s; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; text-decoration: none; }
.btn-postular:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,204,0,.4); color: var(--primary) !important; }

/* Hero */
.hero {
  background: radial-gradient(circle at 15% 30%, rgba(51,181,255,.25), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255,204,0,.18), transparent 50%),
              linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #003b80 100%);
  color: white;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: .5;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,204,0,.18); border: 1px solid rgba(255,204,0,.4);
  color: var(--accent);
  padding: 8px 18px; border-radius: 50px;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.025em;
  margin-bottom: 18px;
}
.hero h1 span.highlight {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.88); max-width: 760px; margin-bottom: 26px; }

.btn-hero-primary { background: var(--accent); color: var(--primary); font-weight: 800; padding: 14px 30px; border-radius: 50px; text-decoration: none; text-transform: uppercase; font-size: .92rem; letter-spacing: .06em; transition: .25s; display: inline-flex; align-items: center; gap: 10px; }
.btn-hero-primary:hover { background: #fff; color: var(--primary); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,255,255,.18); }
.btn-hero-secondary { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.3); color: white; padding: 14px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; transition: .25s; display: inline-flex; align-items: center; gap: 10px; }
.btn-hero-secondary:hover { background: rgba(255,255,255,.18); color: white; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.hero-stat { padding: 18px 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; backdrop-filter: blur(8px); }
.hero-stat strong { display: block; font-size: 1.85rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; line-height: 1; margin-bottom: 4px; }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.78); }

/* Sub-page hero */
.subpage-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #003b80 100%);
  color: white;
  padding: 56px 0 40px;
  position: relative;
}
.subpage-hero .breadcrumb-bar {
  display: flex; gap: 6px; align-items: center;
  font-size: .85rem; color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}
.subpage-hero .breadcrumb-bar a { color: var(--accent); text-decoration: none; }
.subpage-hero .breadcrumb-bar a:hover { color: white; }
.subpage-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; margin: 8px 0 14px; }
.subpage-hero h1 span { color: var(--accent); }
.subpage-hero p.lead { font-size: 1.08rem; color: rgba(255,255,255,.85); max-width: 820px; margin: 0; }

/* Sections */
.section-padding { padding: 80px 0; }
.section-eyebrow { display: inline-block; color: var(--secondary); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { color: var(--primary); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; position: relative; }
.section-title::after { content: ''; display: block; width: 70px; height: 4px; background: var(--accent); margin-top: 14px; border-radius: 2px; }
.section-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 820px; }

/* Feature box */
.feature-box { background: var(--light-bg); border-radius: 18px; padding: 30px; border-left: 6px solid var(--primary); height: 100%; transition: .25s ease; }
.feature-box.gold { border-left-color: var(--accent); }
.feature-box.cyan { border-left-color: var(--igf-blue); }
.feature-box.red { border-left-color: var(--igf-red); }
.feature-box:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,41,85,.10); }
.feature-box h4 { color: var(--primary); font-weight: 800; margin-bottom: 14px; }
.feature-box ul li { padding: 4px 0; }
.feature-box .icon-wrap { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,41,85,.10); color: var(--primary); font-size: 1.6rem; margin-bottom: 16px; }
.feature-box.gold .icon-wrap { background: rgba(255,204,0,.20); color: #946a00; }
.feature-box.cyan .icon-wrap { background: rgba(51,181,255,.18); color: var(--igf-blue); }
.feature-box.red .icon-wrap { background: rgba(255,79,112,.16); color: var(--igf-red); }

/* Hub cards */
.hub-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  text-decoration: none;
  color: var(--text-dark);
  transition: .25s;
  height: 100%;
  position: relative;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,41,85,.12); color: var(--text-dark); }
.hub-card .hub-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: white; font-size: 1.6rem; margin-bottom: 16px; }
.hub-card .hub-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 8px; }
.hub-card h3 { color: var(--primary); font-weight: 800; margin-bottom: 8px; font-size: 1.18rem; }
.hub-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.hub-card::after { content: "→"; position: absolute; top: 28px; right: 28px; color: var(--accent); font-size: 1.4rem; opacity: .7; transition: .25s; }
.hub-card:hover::after { transform: translateX(4px); opacity: 1; }

/* Prep step (dark section reused) */
.prep-section { background: linear-gradient(135deg, #07111f 0%, #0d1a2f 60%, #06101c 100%); color: white; padding: 90px 0; position: relative; overflow: hidden; }
.prep-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 20%, rgba(83,241,255,.18), transparent 40%); }
.prep-section .container { position: relative; }
.prep-section .section-eyebrow { color: var(--igf-cyan); }
.prep-section .section-title { color: white; }
.prep-section .section-title::after { background: var(--igf-cyan); }
.prep-section .section-lead { color: rgba(255,255,255,.78); }
.prep-step { position: relative; padding: 26px 24px 26px 78px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; height: 100%; }
.prep-step .step-num { position: absolute; top: 22px; left: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--igf-cyan), var(--igf-blue)); color: var(--primary-dark); font-weight: 900; font-size: 1.18rem; }
.prep-step h5 { color: white; font-weight: 800; margin-bottom: 8px; }
.prep-step p { color: rgba(255,255,255,.75); margin: 0; font-size: .96rem; }
.prep-link { display: inline-block; margin-top: 22px; padding: 14px 30px; background: linear-gradient(135deg, var(--accent), #fff19b); color: var(--primary); font-weight: 800; border-radius: 50px; text-decoration: none; transition: .25s; }
.prep-link:hover { transform: translateY(-2px); color: var(--primary); box-shadow: 0 14px 30px rgba(255,204,0,.32); }

/* Alianza card */
.alianza-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: .25s ease; height: 100%; }
.alianza-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.alianza-card .role-tag { display: inline-block; background: rgba(0,86,179,.10); color: var(--secondary); padding: 5px 14px; border-radius: 30px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.alianza-card h5 { color: var(--primary); font-weight: 800; margin-bottom: 8px; }
.alianza-card p { color: var(--text-muted); font-size: .96rem; margin: 0; }

/* Timeline card */
.timeline-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 0; overflow: hidden; height: 100%; transition: .25s; }
.timeline-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,41,85,.10); }
.timeline-card .timeline-head { padding: 18px 22px; font-weight: 800; color: white; display: flex; align-items: center; gap: 10px; }
.timeline-card.virtual .timeline-head { background: linear-gradient(135deg, var(--igf-blue), var(--secondary)); }
.timeline-card.presencial .timeline-head { background: linear-gradient(135deg, var(--accent), #f7a200); color: var(--primary); }
.timeline-card .timeline-body { padding: 22px; }
.timeline-card .timeline-date { font-size: 1.45rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; margin-bottom: 8px; }
.timeline-card .timeline-body h5 { color: var(--primary); font-weight: 800; margin-bottom: 10px; }
.timeline-card .timeline-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: 8px; }
.timeline-card .timeline-body ul { padding-left: 20px; color: var(--text-muted); font-size: .92rem; }
.timeline-card .timeline-body ul li { margin-bottom: 4px; }

/* Topic cards */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.topic-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: .25s; position: relative; overflow: hidden; }
.topic-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--secondary)); }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.topic-card .topic-icon { font-size: 1.6rem; color: var(--secondary); margin-bottom: 10px; }
.topic-card h6 { color: var(--primary); font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.topic-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* Activity box */
.activity-box { background: linear-gradient(135deg, #f6f9fd 0%, #fff 100%); border: 1px solid var(--line); border-radius: 22px; padding: 30px; height: 100%; }
.activity-box .icon-wrap { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 1.85rem; color: white; margin-bottom: 18px; }
.activity-box.sim .icon-wrap { background: linear-gradient(135deg, var(--igf-blue), var(--secondary)); }
.activity-box.paper .icon-wrap { background: linear-gradient(135deg, var(--accent), #f7a200); color: var(--primary); }
.activity-box h4 { color: var(--primary); font-weight: 800; margin-bottom: 12px; }

/* Impact stats */
.impact-stat { text-align: center; padding: 28px 18px; background: white; border: 1px solid var(--line); border-radius: 18px; height: 100%; transition: .25s; }
.impact-stat:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.impact-stat .num { font-size: 2.6rem; font-weight: 900; color: var(--secondary); letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.impact-stat .num span { color: var(--accent); }
.impact-stat .label { color: var(--text-muted); font-size: .92rem; }

/* Alumni card */
.alumni-card { background: white; border-left: 4px solid var(--igf-blue); border-radius: 14px; padding: 22px 26px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.alumni-card.gdc { border-left-color: var(--accent); }
.alumni-card.local { border-left-color: var(--igf-red); }
.alumni-card.fellowship { border-left-color: var(--secondary); }
.alumni-card h5 { color: var(--primary); font-weight: 800; margin-bottom: 8px; font-size: 1.08rem; }
.alumni-card p { color: var(--text-dark); font-size: .96rem; margin: 0; }

/* Postular section */
.postular-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #00407a 100%); color: white; padding: 90px 0; position: relative; overflow: hidden; }
.postular-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 20%, rgba(255,204,0,.20), transparent 50%); }
.postular-section .container { position: relative; }
.postular-form-card { background: white; color: var(--text-dark); border-radius: 22px; padding: 36px; box-shadow: 0 30px 60px rgba(0,0,0,.32); }
.postular-form-card h3 { color: var(--primary); font-weight: 800; margin-bottom: 18px; }
.postular-form-card .step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.postular-form-card .step:last-of-type { border-bottom: none; }
.postular-form-card .step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--primary); font-weight: 800; flex: 0 0 32px; }
.postular-form-card .step-text { color: var(--text-dark); }
.postular-form-card .step-text strong { color: var(--primary); }

/* Top badges (CORPECE + IGF) */
.top-badges { position: fixed; top: 12px; right: 16px; z-index: 1050; display: flex; gap: 8px; }
.corpece-badge-wrap { position: fixed; top: 12px; right: 16px; z-index: 1050; }
.corpece-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 14px; background: white; box-shadow: 0 8px 22px rgba(0,0,0,.18); text-decoration: none; transition: .25s; border: 1px solid var(--line); }
.corpece-badge:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.corpece-badge img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: white; }
.corpece-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.corpece-badge-text small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.corpece-badge-text strong { font-size: .82rem; color: var(--primary); font-weight: 800; }
.corpece-badge-text span { font-size: .7rem; color: var(--text-muted); }

/* IGF badge en sitio de la Escuela */
.igf-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 14px; background: linear-gradient(135deg, #07111f 0%, #0d1a2f 100%); border: 1px solid rgba(255,204,0,.45); box-shadow: 0 8px 22px rgba(0,0,0,.32); text-decoration: none; transition: .25s; }
.igf-badge:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.42); border-color: rgba(255,204,0,.85); }
.igf-badge-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #fff19b); color: var(--primary); font-size: 1rem; }
.igf-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.igf-badge-text small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.igf-badge-text strong { font-size: .82rem; color: #fff; font-weight: 800; }
.igf-badge-text span { font-size: .7rem; color: rgba(255,255,255,.72); font-weight: 600; }

@media (max-width: 600px) {
  .top-badges { flex-direction: column; gap: 6px; right: 10px; top: 8px; }
  .corpece-badge, .igf-badge { transform: scale(.85); transform-origin: top right; }
}

/* Mobile pequeño: ocultar floating badges para no cubrir contenido */
@media (max-width: 480px) {
  .top-badges { display: none; }
}

/* Ocultar el tag-badge del top-bar siempre (queda detrás de los badges flotantes) */
.top-bar .tag-badge { display: none; }

/* Mobile general: ajustes de espaciado */
@media (max-width: 768px) {
  .section-padding { padding: 48px 0; }
  .hero { padding: 60px 0 50px; }
  .subpage-hero { padding: 40px 0 28px; }
  .subpage-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stat { padding: 14px 12px; }
  .hero-stat strong { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .section-padding { padding: 36px 0; }
  .hero { padding: 40px 0 36px; }
  .subpage-hero { padding: 28px 0 22px; }
  .top-bar { font-size: .76rem; padding: 6px 0; }
  .top-bar a { margin-right: 10px; }
  .feature-box { padding: 22px 20px; }
  .activity-box { padding: 22px 20px; }
  .impact-stat { padding: 22px 14px; }
  .impact-stat .num { font-size: 2rem; }
  .timeline-card .timeline-body { padding: 18px; }
  .postular-form-card { padding: 24px 22px; }
  .hub-card { padding: 22px 20px; }
  .hub-card::after { top: 18px; right: 20px; }
  .alianza-card { padding: 20px 18px; }
}

/* Footer */
footer { background: var(--primary-dark); color: white; padding: 70px 0 30px; }
footer h5 { font-weight: 800; }
footer a { color: rgba(255,255,255,.82); text-decoration: none; transition: .2s; }
footer a:hover { color: var(--accent); }
.logo-link { display: block; text-decoration: none; transition: transform .25s; }
.logo-link:hover { transform: translateY(-4px); }
.logo-container { background: white; padding: 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; width: 170px; height: 86px; }
.logo-container img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .corpece-badge-wrap { display: none; }
  .section-padding { padding: 56px 0; }
}
