/* ==========================================================
   Página institucional en mantención - ajuste final con halos animados
   Cambios:
   - halos dorados en movimiento desde el logo hacia afuera
   - datos inferiores en dos columnas limpias
   - sin cajas ni bordes pesados
   ========================================================== */

:root {
  --azul-950: #071024;
  --azul-900: #0a1530;
  --azul-800: #10204f;
  --oro-700: #9a6b1f;
  --oro-600: #bd8b33;
  --oro-500: #d6aa58;
  --oro-300: #f1d990;
  --marfil: #fff6e3;
  --blanco: #ffffff;
  --texto-suave: rgba(255, 255, 255, 0.73);
  --texto-tenue: rgba(255, 255, 255, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--blanco);
  background: var(--azul-950);
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

.pagina {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

.fondo {
  position: absolute;
  inset: 0;
  z-index: -6;
  background:
    linear-gradient(180deg, rgba(7, 16, 36, 0.86), rgba(7, 16, 36, 0.94)),
    url("img/fondo-institucional-final.svg") center / cover no-repeat;
  transform: scale(1.015);
}

.velo {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 50% 28%, rgba(241, 217, 144, 0.20), transparent 24%),
    radial-gradient(circle at 20% 85%, rgba(189, 139, 51, 0.12), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.08), transparent 32%);
}

.lineas {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at center, black 0, black 46%, transparent 78%);
}

.contenido {
  align-self: center;
  justify-self: center;
  width: min(900px, calc(100% - 44px));
  padding: 30px 0 24px;
  text-align: center;
  animation: entrada 700ms cubic-bezier(.19, 1, .22, 1) both;
}

/* ================= HALOS ANIMADOS DEL LOGO ================= */

.sello-orbita {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.sello-orbita::before {
  content: "";
  position: absolute;
  inset: 23px;
  z-index: 0;
  border-radius: 50%;
  border: 1.6px solid rgba(241, 217, 144, .52);
  box-shadow:
    0 0 0 8px rgba(214, 170, 88, .075),
    0 0 28px rgba(214, 170, 88, .26),
    inset 0 0 18px rgba(241, 217, 144, .10);
}

.sello-orbita::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 170, 88, .18), rgba(214, 170, 88, .06) 42%, transparent 68%);
  filter: blur(1px);
}

.halo {
  position: absolute;
  inset: 28px;
  z-index: -1;
  border-radius: 50%;
  border: 2px solid rgba(241, 217, 144, .62);
  opacity: 0;
  transform: scale(.72);
  box-shadow:
    0 0 12px rgba(241, 217, 144, .32),
    0 0 28px rgba(214, 170, 88, .22);
  animation: haloExpandir 3.9s cubic-bezier(.18, .72, .28, 1) infinite;
}

.halo-2 {
  animation-delay: 1.3s;
}

.halo-3 {
  animation-delay: 2.6s;
}

.sello {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(241, 217, 144, .30);
  box-shadow:
    0 18px 42px rgba(0,0,0,.28),
    0 0 18px rgba(214, 170, 88, .18);
}

@keyframes haloExpandir {
  0% {
    opacity: 0;
    transform: scale(.72);
  }
  12% {
    opacity: .72;
  }
  68% {
    opacity: .22;
  }
  100% {
    opacity: 0;
    transform: scale(1.92);
  }
}

/* ========================================================== */

.institucion {
  margin: 0;
  color: var(--marfil);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  font-weight: 850;
  letter-spacing: .02em;
}

.oficina {
  margin: 8px 0 0;
  color: var(--oro-300);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.separador {
  width: min(290px, 58vw);
  height: 2px;
  margin: 24px auto 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--oro-300), var(--oro-600), transparent);
}

h1 {
  margin: 0;
  color: var(--blanco);
  font-size: clamp(2.85rem, 5.35vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow: 0 24px 60px rgba(0,0,0,.38);
}

.mensaje {
  width: min(650px, 100%);
  margin: 24px auto 0;
  color: var(--texto-suave);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.68;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 26px auto 0;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  font-weight: 770;
}

.estado::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oro-500);
  box-shadow: 0 0 0 7px rgba(214,170,88,.12);
}

.datos {
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
}

.datos::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(241,217,144,.0), rgba(241,217,144,.32), rgba(241,217,144,.0));
}

.dato {
  text-align: center;
}

.dato-etiqueta {
  margin: 0 0 8px;
  color: var(--oro-300);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.dato-valor {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.pie {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: var(--texto-tenue);
  font-size: .9rem;
  font-weight: 750;
}

@keyframes entrada {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 760px) and (min-width: 760px) {
  .contenido {
    padding-top: 18px;
  }

  .sello-orbita {
    width: 108px;
    height: 108px;
    margin-bottom: 18px;
  }

  .halo {
    inset: 27px;
  }

  .sello {
    width: 68px;
    height: 68px;
  }

  .separador {
    margin: 20px auto;
  }

  h1 {
    font-size: clamp(2.55rem, 4.8vw, 4.25rem);
  }

  .mensaje {
    margin-top: 18px;
  }

  .estado {
    margin-top: 20px;
  }

  .datos {
    margin-top: 24px;
    padding-top: 20px;
  }

  .dato-valor {
    font-size: .96rem;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .pagina {
    min-height: 100svh;
  }

  .contenido {
    width: min(100% - 30px, 900px);
    padding: 42px 0 30px;
  }

  .sello-orbita {
    width: 106px;
    height: 106px;
  }

  .halo {
    inset: 26px;
  }

  .sello {
    width: 66px;
    height: 66px;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .mensaje {
    font-size: 1rem;
  }

  .datos {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(100%, 480px);
    padding-top: 22px;
  }

  .datos::before {
    display: none;
  }

  .dato + .dato {
    padding-top: 18px;
    border-top: 1px solid rgba(241,217,144,.18);
  }

  .pie {
    width: min(100% - 30px, 860px);
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
