/* =========================================================
   CONFIGURACIÓN GENERAL
   ========================================================= */

html {
  scroll-behavior: smooth;
}

.pagina-admision-interactiva {
  background: #f3f5f8;
  padding-top: 120px;
  color: #1c2b39;
}

.pagina-admision-interactiva .contenedor {
  width: min(1180px, 92%);
  margin: 0 auto;
}


/* =========================================================
   BANNER PRINCIPAL
   ========================================================= */

.admision-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 70px 0 90px;
  background:
    linear-gradient(rgba(2, 81, 162, 0.72), rgba(11, 115, 201, 0.72)),
    url('../img/banners/fondo_admision.jpg') center center / cover no-repeat;
  background-attachment: fixed;
}

.admision-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 25%);
  pointer-events: none;
}

.admision-banner-contenido {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 26px;
  max-width: 820px;
}

.admision-banner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admision-banner-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.admision-banner-texto h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
}

.admision-banner-texto p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}


/* =========================================================
   ACCESOS RÁPIDOS
   ========================================================= */

.admision-accesos {
  margin-top: -42px;
  position: relative;
  z-index: 5;
  padding-bottom: 28px;
}

.accesos-grid-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.acceso-link {
  text-decoration: none;
  color: inherit;
}

.acceso-card {
  appearance: none;
  width: 100%;
  border: 1px solid #dce6f2;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 40, 70, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.acceso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 40, 70, 0.12);
  border-color: #bfd6ef;
}

.acceso-numero {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eaf3ff;
  color: #0251A2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.acceso-card h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #10253d;
}

.acceso-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5f7082;
}


/* =========================================================
   PANELES GENERALES
   ========================================================= */

.admision-panel {
  display: block;
  background: #fff;
  border: 1px solid #e3ebf4;
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 16px 38px rgba(11, 31, 58, 0.08);
  margin-bottom: 26px;
  scroll-margin-top: 140px;
}

.admision-panel h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: #0f2238;
  font-weight: 800;
  position: relative;
  padding-bottom: 12px;
}

.admision-panel h2::after {
  content: "";
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0251A2 0%, #0b73c9 100%);
  position: absolute;
  left: 0;
  bottom: 0;
}

.admision-panel h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  color: #10253d;
  font-weight: 700;
}

.admision-panel p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.8;
  color: #415264;
}


/* =========================================================
   BLOQUES DE INFORMACIÓN
   ========================================================= */

.info-destacada {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.info-mini {
  background: linear-gradient(180deg, #f9fbff 0%, #f1f7ff 100%);
  border: 1px solid #d8e7f7;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(2, 81, 162, 0.05);
}

.info-mini strong {
  display: block;
  margin-bottom: 8px;
  color: #0f2238;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-mini span {
  display: block;
  color: #0251A2;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.dos-columnas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bloque-panel {
  background: #f9fbfd;
  border: 1px solid #e3ebf4;
  border-radius: 20px;
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.lista-panel {
  margin: 0;
  padding-left: 18px;
  color: #435365;
}

.lista-panel li {
  margin-bottom: 10px;
  line-height: 1.7;
}


/* =========================================================
   TIMELINE / CRONOLOGÍA
   ========================================================= */

.timeline-admision {
  position: relative;
  margin-top: 10px;
  padding-left: 10px;
}

.timeline-admision::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, #0b73c9 0%, #cfe1f5 100%);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 22px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-punto {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0251A2;
  border: 5px solid #eaf3ff;
  box-shadow: 0 0 0 4px rgba(2, 81, 162, 0.08);
}

.timeline-caja {
  background: #fff;
  border: 1px solid #dfe9f4;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.05);
}

.timeline-caja h3 {
  margin-bottom: 6px;
}

.timeline-caja p {
  margin: 0;
  color: #0251A2;
  font-weight: 700;
}


/* =========================================================
   COSTOS
   ========================================================= */

.monto {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
  color: #0A7C0A;
}


/* =========================================================
   VACANTES
   ========================================================= */

.vacantes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.vacante-card {
  position: relative;
  min-height: 250px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 12px 26px rgba(2, 81, 162, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: stretch;
}

.vacante-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(2, 81, 162, 0.14);
}

.vacante-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.vacante-card:hover::before {
  opacity: 0.72;
}

.vacante-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.overlay-verde::before {
  background: linear-gradient(135deg, rgba(8, 114, 74, 0.95), rgba(18, 148, 118, 0.78));
}

.overlay-celeste::before {
  background: linear-gradient(135deg, rgba(3, 111, 170, 0.94), rgba(45, 170, 214, 0.78));
}

.overlay-azul::before {
  background: linear-gradient(135deg, rgba(2, 81, 162, 0.95), rgba(11, 115, 201, 0.80));
}

.overlay-azul-verde::before {
  background: linear-gradient(135deg, rgba(2, 81, 162, 0.92), rgba(12, 140, 110, 0.78));
}

.vacante-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 250px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.vacante-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.vacante-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}


/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.panel-centrado {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.btn-principal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0251A2 0%, #0b73c9 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 24px rgba(2, 81, 162, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-principal:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(2, 81, 162, 0.28);
}


/* =========================================================
   RESULTADOS - BOTONES ANTIGUOS
   ========================================================= */

.resultados-grid-admision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.btn-resultado {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.btn-resultado:hover {
  transform: translateY(-3px);
  opacity: 0.96;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.btn-resultado.exonerados {
  background: linear-gradient(135deg, #0A7C0A 0%, #39a43a 100%);
}

.btn-resultado.ordinarios {
  background: linear-gradient(135deg, #0251A2 0%, #0b73c9 100%);
}


/* =========================================================
   NUEVO BLOQUE DE RESULTADOS POR CARRERA
   ========================================================= */

.resultados-panel {
  width: 100%;
  padding: 50px 20px;
  background: #f6f8fb;
  border-radius: 20px;
}

.resultados-header {
  text-align: center;
  margin-bottom: 30px;
}

.resultados-etiqueta {
  display: inline-block;
  background: rgba(0, 60, 129, 0.08);
  color: #003C81;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.resultados-header h2 {
  font-size: 28px;
  color: #154688;
  margin: 10px 0;
  font-weight: 800;
}

.resultados-header p {
  color: #5b6b80;
  font-size: 14px;
}

.resultados-lista {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resultado-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e0e6ef;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.resultado-item:hover {
  border-color: #003C81;
  transform: translateY(-2px);
}

.resultado-nombre {
  font-weight: 600;
  color: #154688;
}

.resultado-btn {
  text-decoration: none;
  background: #003C81;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.resultado-btn:hover {
  background: #0076A4;
}

.resultados-footer {
  text-align: center;
  margin-top: 30px;
}

.btn-general {
  display: inline-block;
  background: #2f9e5b;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-general:hover {
  background: #248a4e;
  transform: translateY(-2px);
}

.resultado-btn.disabled {
  pointer-events: none;   /* bloquea clic */
  opacity: 0.5;           /* se ve apagado */
  cursor: not-allowed;    /* cursor prohibido */
}

/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 992px) {
  .pagina-admision-interactiva {
    padding-top: 110px;
  }

  .admision-banner {
    padding: 60px 0 80px;
    background-attachment: scroll;
  }

  .admision-banner-contenido {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    max-width: 100%;
  }

  .dos-columnas {
    grid-template-columns: 1fr;
  }

  .admision-panel {
    padding: 30px;
  }

  .accesos-grid-simple {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 576px) {
  .pagina-admision-interactiva {
    padding-top: 100px;
  }

  .pagina-admision-interactiva .contenedor {
    width: min(100%, 94%);
  }

  .admision-banner {
    padding: 44px 0 70px;
    background-position: center center;
    background-attachment: scroll;
  }

  .admision-banner-logo img {
    width: 82px;
    height: 82px;
    padding: 10px;
  }

  .admision-banner-texto h1 {
    font-size: 2rem;
  }

  .admision-banner-texto p {
    font-size: 1rem;
  }

  .admision-accesos {
    margin-top: -28px;
    padding-bottom: 22px;
  }

  .acceso-card {
    padding: 16px;
    border-radius: 16px;
  }

  .acceso-numero {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1rem;
  }

  .acceso-card h3 {
    font-size: 1rem;
  }

  .acceso-card p {
    font-size: 0.87rem;
  }

  .admision-panel {
    padding: 24px 20px;
    border-radius: 20px;
    scroll-margin-top: 120px;
  }

  .admision-panel h2 {
    font-size: 1.7rem;
    margin-bottom: 18px;
  }

  .admision-panel h2::after {
    width: 58px;
  }

  .admision-panel p {
    font-size: 0.97rem;
    line-height: 1.75;
  }

  .bloque-panel,
  .timeline-caja,
  .info-mini,
  .vacante-card {
    padding: 20px;
  }

  .timeline-item {
    padding-left: 52px;
  }

  .timeline-admision::before {
    left: 18px;
  }

  .timeline-punto {
    left: 7px;
    width: 24px;
    height: 24px;
  }

  .vacantes-grid,
  .resultados-grid-admision,
  .info-destacada {
    grid-template-columns: 1fr;
  }

  .btn-principal,
  .btn-resultado {
    width: 100%;
  }

  .vacante-card,
  .vacante-overlay {
    min-height: 220px;
  }

  .vacante-card h3 {
    font-size: 1.3rem;
  }

  .vacante-overlay {
    padding: 18px;
  }

  .resultado-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .resultado-btn,
  .btn-general {
    width: 100%;
    text-align: center;
  }
}


/* =========================================================
   CELULARES MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {
  .pagina-admision-interactiva {
    padding-top: 92px;
  }

  .admision-banner {
    padding: 38px 0 64px;
  }

  .admision-banner-texto h1 {
    font-size: 1.75rem;
  }

  .admision-banner-texto p {
    font-size: 0.95rem;
  }

  .admision-panel {
    padding: 20px 16px;
  }

  .bloque-panel,
  .timeline-caja,
  .info-mini,
  .vacante-card {
    padding: 16px;
  }

  .acceso-card {
    gap: 12px;
  }
}