/* ── TOKENS ───────────────────────────────── */
:root {
  --yellow: #fec200;
  --yellow-dark: #d9a600;
  --yellow-light: #fff8e0;
  --blue: #2b65ce;
  --blue-dark: #1e4da0;
  --blue-light: #e8eefa;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --surface: #ffffff;
  --bg: #f4f6fb;
  --border: #e2e8f0;
  --red: #e53e3e;
  --green: #22863a;
  --orange: #d97706;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(43, 101, 206, 0.1);
  --shadow-lg: 0 8px 32px rgba(43, 101, 206, 0.14);
  --font: "Poppins", sans-serif;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  margin: 0;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── NAVBAR ──────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  z-index: 1000;
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}
.navbar__logo {
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}
.nav-link.active {
  font-weight: 600;
}
.nav-sep {
  color: var(--border);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mobile-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

/* ── HERO / SLIDESHOW ────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--text);
}
.hero__slides {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.hero__slides li {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFade 42s infinite;
}
.hero__slides li:nth-child(1) {
  animation-delay: 0s;
}
.hero__slides li:nth-child(2) {
  animation-delay: 6s;
}
.hero__slides li:nth-child(3) {
  animation-delay: 12s;
}
.hero__slides li:nth-child(4) {
  animation-delay: 18s;
}
.hero__slides li:nth-child(5) {
  animation-delay: 24s;
}
.hero__slides li:nth-child(6) {
  animation-delay: 30s;
}
.hero__slides li:nth-child(7) {
  animation-delay: 36s;
}
@keyframes heroFade {
  0%,
  2% {
    opacity: 0;
  }
  6%,
  18% {
    opacity: 1;
  }
  22%,
  100% {
    opacity: 0;
  }
}
.hero__slides li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.72) 0%,
    rgba(26, 26, 46, 0.15) 55%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 52px 48px;
  z-index: 2;
}
.hero__copy {
  max-width: 600px;
}
.hero__badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn-hero {
  padding: 11px 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-hero--primary {
  background: var(--yellow);
  color: var(--text);
}
.btn-hero--primary:hover {
  background: var(--yellow-dark);
  text-decoration: none;
  color: var(--text);
}
.btn-hero--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-hero--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
}

/* scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: bounce 2s infinite;
}
.hero__scroll i {
  font-size: 20px;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ── MAIN LAYOUT ─────────────────────────── */
.main {
  padding-top: var(--nav-h);
}
.section {
  min-height: 100vh;
  background: var(--bg);
  padding: 56px 20px 80px;
}
.section + .section {
  border-top: 4px solid var(--yellow);
}
.section__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Section header */
.section__header {
  margin-bottom: 36px;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section__eyebrow i {
  font-size: 12px;
}
.section__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 8px;
}
.section__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
  line-height: 1.6;
}

/* ── SEARCH CARD ─────────────────────────── */
.search-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.search-card__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.search-card__field {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-card__field:focus-within {
  border-color: var(--blue);
}
.search-card__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 13px 16px;
}
.search-card__input::placeholder {
  color: #bbb;
  font-weight: 400;
}
.search-card__btn {
  background: var(--blue);
  border: none;
  cursor: pointer;
  padding: 0 22px;
  color: #fff;
  font-size: 18px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 56px;
  flex-shrink: 0;
}
.search-card__btn:hover {
  background: var(--blue-dark);
}
.search-card__hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── RESULTADO CARDS ─────────────────────── */
.result {
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.result__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.result__icon--notfound {
  background: #fde8e8;
  color: var(--red);
}
.result__icon--noprocede {
  background: #fef3cd;
  color: var(--orange);
}
.result__icon--procede {
  background: #d4edda;
  color: var(--green);
}
.result__icon--beca {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}
.result__icon--locked {
  background: var(--blue-light);
  color: var(--blue);
}

.result__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.result__dni {
  font-size: 13px;
  color: var(--text-muted);
}
.result__status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 6px;
}
.badge--notfound {
  background: #fde8e8;
  color: #9b1c1c;
}
.badge--noprocede {
  background: #fef3cd;
  color: #92400e;
}
.badge--procede {
  background: #d4edda;
  color: #145a20;
}
.badge--beca {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}
.badge--locked {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.result__body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 14px;
}
.result__body ol,
.result__body ul {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 20px;
}
.result__body ol {
  list-style: decimal;
}
.result__body ul {
  list-style: disc;
}
.result__body li {
  margin-bottom: 6px;
}

/* Exam detail grid */
.exam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
@media (max-width: 520px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }
}
.exam-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.exam-cell--full {
  grid-column: 1 / -1;
}
.exam-cell__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.exam-cell__label i {
  color: var(--blue);
  font-size: 13px;
}
.exam-cell__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.exam-cell__value--pending {
  color: var(--orange);
}

/* Alert */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0;
}
.alert i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert--warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.alert--info {
  background: var(--blue-light);
  color: var(--blue-dark);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Beca banner */
.beca-banner {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  margin: 20px 0;
}
.beca-banner__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.beca-banner__sub {
  font-size: 14px;
  color: rgba(26, 26, 46, 0.7);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist li i {
  color: var(--green);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Social & CTA */
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.social-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none;
}
.social-btn--fb {
  background: #1877f2;
  color: #fff;
}
.social-btn--ig {
  background: #e1306c;
  color: #fff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin: 16px 0 8px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.cta-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.link-faq {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  margin-top: 8px;
}
.link-faq:hover {
  text-decoration: underline;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* LOCKED section */
.locked-section {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.locked-section__icon {
  font-size: 40px;
  color: var(--blue);
  margin-bottom: 16px;
  opacity: 0.6;
}
.locked-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.locked-section__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 20px;
}
.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.countdown-pill i {
  color: var(--yellow-dark);
}

/* ── UTILS ───────────────────────────────── */
.hide {
  display: none !important;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 640px) {
  .navbar__nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero__overlay {
    padding: 28px 24px;
  }
  .section {
    padding: 40px 16px 60px;
  }
  .search-card,
  .result {
    padding: 20px;
  }
  .locked-section {
    padding: 24px 16px;
  }
}

/* ── NAVBAR BRAND ── */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar__brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.navbar__sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

/* ── HERO DESC ── */
.hero__desc {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 520px;
  font-weight: 300;
}

/* ── HERO TITLE bigger ── */
.hero__title {
  font-size: clamp(28px, 5vw, 52px) !important;
}

@media (max-width: 640px) {
  .navbar__brandtext {
    display: none;
  }
}

/* ── SCROLL OFFSET para navbar fijo ── */
.section {
  scroll-margin-top: var(--nav-h);
}

/* ── SEARCH BUTTON MOBILE FIX ── */
@media (max-width: 640px) {
  .search-card__field {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }
  .search-card__input {
    width: 100%;
    font-size: 18px;
    padding: 16px;
  }
  .search-card__btn {
    width: 100%;
    min-height: 52px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 15px;
    gap: 8px;
  }
  .search-card__btn::after {
    content: "Buscar";
    font-family: var(--font);
    font-weight: 600;
  }
}
