/* Precargador "gota de agua": una gota cae en un recipiente que se llena con el progreso real de carga. */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 50% 20%, #0d4a73 0%, var(--brand-navy) 50%, var(--brand-deep) 100%);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 800ms var(--ease-emphasis), opacity 500ms ease 300ms, visibility 0s linear 800ms;
}
.preloader.is-done { clip-path: circle(0% at 50% 50%); opacity: 0; visibility: hidden; }
html.is-loading { overflow: hidden; }
.preloader-fallback .preloader { display: none !important; }

.preloader__stage { display: grid; justify-items: center; gap: 28px; --p: 0; }
.preloader__logo { width: 150px; height: auto; filter: brightness(0) invert(1); opacity: .92; }

.preloader__vessel {
  position: relative; width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .05), inset 0 0 24px rgba(0, 0, 0, .25);
}
.preloader__water {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p) * 1%);
  background: linear-gradient(180deg, #46a6d6 0%, #1b73a6 60%, #0a5b89 100%);
}
.preloader__water::before {
  content: ''; position: absolute; left: 0; right: -28px; top: -8px; height: 9px;
  background: radial-gradient(circle at 50% 100%, #46a6d6 0 13px, transparent 13.5px) 0 0 / 28px 9px repeat-x;
  animation: pl-wave 1.3s linear infinite;
}
@keyframes pl-wave { to { transform: translateX(-28px); } }

/* La gota cae desde arriba hasta la superficie del agua (el contenedor termina donde empieza el agua). */
.preloader__fall { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--p) * 1%); }
.preloader__drop { position: absolute; left: 50%; top: 0; width: 16px; height: 22px; margin-left: -8px; color: #7cc7ee; animation: pl-drop 1.15s cubic-bezier(.55, 0, .9, .6) infinite; }
.preloader__drop svg { width: 100%; height: 100%; fill: currentColor; display: block; }
@keyframes pl-drop {
  0% { top: -26px; opacity: 0; transform: scale(.7, .9); }
  12% { opacity: 1; transform: scale(.9, 1.05); }
  78% { top: calc(100% - 20px); opacity: 1; transform: scale(.85, 1.2); }
  100% { top: calc(100% - 6px); opacity: 0; transform: scale(1.3, .3); }
}
.preloader__ripple { position: absolute; left: 50%; bottom: -3px; width: 20px; height: 7px; margin-left: -10px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; opacity: 0; animation: pl-ripple 1.15s ease-out infinite; }
@keyframes pl-ripple { 0%, 74% { opacity: 0; transform: scale(.3); } 80% { opacity: .9; } 100% { opacity: 0; transform: scale(3.2); } }

.preloader__pct { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; text-shadow: 0 2px 10px rgba(6, 29, 44, .45); font-variant-numeric: tabular-nums; }
.preloader__pct small { font-size: .55em; font-weight: 700; margin-left: 1px; }

@media (prefers-reduced-motion: reduce) {
  .preloader__drop, .preloader__ripple, .preloader__water::before { display: none; }
  .js .preloader, .preloader.is-done { transition: none; }
}
