/* Eventos publicos */

/* Nav legible en páginas claras (links del sitio son blancos por defecto) */
body.page-eventos .nav,
body.page-evento-detalle .nav {
  background: rgba(6, 16, 31, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  padding: 10px 32px;
}
body.page-eventos .nav-menu a,
body.page-evento-detalle .nav-menu a {
  color: rgba(255, 255, 255, 0.92);
}
body.page-eventos .nav-toggle,
body.page-evento-detalle .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
body.page-eventos .nav-toggle span,
body.page-evento-detalle .nav-toggle span {
  background: #fff;
}
body.page-eventos .btn-ghost,
body.page-evento-detalle .btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}
body.page-eventos .btn-ghost:hover,
body.page-evento-detalle .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.eventos-hero {
  padding-top: 48px;
  padding-bottom: 72px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 88, 181, 0.08), transparent),
    linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}
.eventos-seccion {
  margin-top: 48px;
}
.eventos-seccion:first-of-type {
  margin-top: 36px;
}
.eventos-seccion__head {
  margin-bottom: 8px;
}
.eventos-seccion__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 750;
  color: #06101F;
}
.eventos-seccion__title .bi {
  color: #00984A;
}
.eventos-seccion__lead {
  margin: 0;
  color: #5a6577;
  font-size: 15px;
}
.eventos-empty--section {
  text-align: left;
  padding-left: 4px;
}
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.evento-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(6, 16, 31, 0.08);
  transition: transform .2s, box-shadow .2s;
}
.evento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(6, 16, 31, 0.1);
  color: inherit;
}
.evento-card__media {
  position: relative;
  background: #e8eef5;
  overflow: hidden;
}
.evento-card__media--wide {
  aspect-ratio: 16 / 9;
}
.evento-card__media--square {
  aspect-ratio: 1 / 1;
}
.evento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.evento-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6, 16, 31, 0.72);
  backdrop-filter: blur(6px);
}
.evento-card__badge--virtual {
  background: rgba(0, 88, 181, 0.9);
}
.evento-card__badge--presencial {
  background: rgba(0, 152, 74, 0.92);
}
.evento-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #0058B5;
  opacity: .45;
}
.evento-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.evento-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #06101F;
}
.evento-card__fecha {
  margin: 0;
  font-size: 13px;
  color: #0058B5;
  font-weight: 600;
}
.evento-card__desc {
  margin: 0;
  font-size: 14px;
  color: #5a6577;
  line-height: 1.45;
}
.evento-card__cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0058B5;
}

/* Pagina detalle */
.evento-page {
  padding: 108px 0 80px;
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 40%);
  position: relative;
  min-height: 70vh;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.evento-page--fondo {
  background-color: #0a1628;
}
.evento-page--fondo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 250, 252, 0.88) 0%,
    rgba(255, 255, 255, 0.92) 45%,
    rgba(247, 250, 252, 0.94) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.evento-page--color {
  background-image: none;
}
.evento-page--color-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.86) 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.evento-page__inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.evento-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #5a6577;
  text-decoration: none;
  margin-bottom: 18px;
}
.evento-back:hover { color: #0058B5; }

.evento-banner {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #e8eef5;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(6, 16, 31, 0.08);
}
.evento-banner.is-wide { aspect-ratio: 16 / 9; }
.evento-banner.is-square { aspect-ratio: 1 / 1; max-width: 480px; margin-left: auto; margin-right: auto; }
.evento-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.evento-banner__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0058B5;
  font-weight: 700;
}
.evento-banner__placeholder i { font-size: 40px; opacity: .5; }

.evento-page__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
  color: #06101F;
}
.evento-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 10px;
}
.evento-page__modalidad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.evento-page__modalidad--virtual {
  background: #0058B5;
}
.evento-page__modalidad--presencial {
  background: #00984A;
}
.evento-page__fecha {
  color: #0058B5;
  font-weight: 600;
  margin: 0;
}
.evento-page__desc {
  color: #3d4654;
  line-height: 1.55;
  margin: 0 0 28px;
}

.evento-form-card {
  background: #fff;
  border: 1px solid rgba(6, 16, 31, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(6, 16, 31, 0.05);
}
.evento-form-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px;
}
.evento-form-card__lead {
  color: #5a6577;
  margin: 0 0 20px;
  font-size: 14px;
}
.evento-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.evento-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.evento-form-grid--top {
  grid-template-columns: 1fr;
}
.evento-field {
  margin-bottom: 0;
}
.evento-field--full {
  grid-column: 1 / -1;
}
.evento-label,
.evento-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.evento-input-wrap {
  position: relative;
}
.evento-control {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #0f172a;
  font-size: 15px;
  padding: 14px 16px;
  box-shadow: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.evento-control::placeholder {
  color: #94a3b8;
}
.evento-control:focus {
  background: #fff;
  border-color: #0058B5;
  box-shadow: 0 0 0 4px rgba(0, 88, 181, 0.12);
}
.evento-control--textarea {
  min-height: 110px;
  resize: vertical;
}
.evento-form .help-block,
.evento-form .hint-block,
.evento-form .form-text {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}
.evento-form .invalid-feedback,
.evento-form .help-block-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
}
.evento-submit {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 18px 38px rgba(0, 88, 181, 0.22);
}
.evento-manual-aviso {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.45;
}
.evento-manual-aviso[hidden] {
  display: none !important;
}
.evento-manual-aviso i {
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}
.evento-manual-aviso strong {
  display: block;
  margin-bottom: 2px;
}
.evento-form .evento-control:not([readonly]):not([disabled]) {
  background: #f8fafc;
}
.evento-form .evento-control.is-edited-manual,
.evento-form .evento-control:focus {
  background: #fff;
}
.evento-captcha-field .form-label,
.evento-captcha-field .evento-label,
.evento-captcha-field #eventoCaptchaPregunta {
  color: #dc2626;
  font-weight: 800;
}
.evento-captcha-field .evento-captcha-refresh {
  color: #0058B5;
  text-decoration: none;
  font-weight: 600;
}
.evento-captcha-field .evento-captcha-refresh:hover {
  text-decoration: underline;
}
.evento-opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.evento-bloques {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.evento-bloque__titulo {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: .01em;
  padding: 0 2px 2px;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.evento-opcion-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(6, 16, 31, 0.1);
  border-radius: 14px;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color .15s, background .15s, box-shadow .15s;
  margin: 0;
  font-weight: 600;
  color: #1e293b;
}
.evento-opcion-check:has(input:checked) {
  border-color: #0058B5;
  background: #eef5fc;
  box-shadow: 0 0 0 3px rgba(0, 88, 181, 0.08);
}
.evento-opcion-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.evento-ok {
  text-align: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  padding: 40px 24px;
}
.evento-ok i {
  font-size: 48px;
  color: #059669;
}
.evento-ok h2 {
  margin: 12px 0 8px;
  font-weight: 800;
}
.evento-ok p {
  color: #065f46;
  margin-bottom: 20px;
}

@media (max-width: 575.98px) {
  .evento-page {
    padding: 96px 0 56px;
  }
  .evento-page__inner {
    max-width: 100%;
  }
  .evento-form-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .evento-banner {
    margin-bottom: 18px;
    border-radius: 16px;
  }
  .evento-banner.is-square {
    max-width: 100%;
  }
  .evento-page__title {
    font-size: 2rem;
    line-height: 1.08;
  }
  .evento-page__desc {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .evento-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .evento-control {
    min-height: 50px;
    font-size: 16px;
    padding: 13px 14px;
  }
  .evento-opcion-check {
    padding: 14px;
    border-radius: 12px;
  }
  .evento-submit {
    min-height: 54px;
  }
}
