/* ═══════════════════════════════════════════════════════
   SPLASH — Odontología Almagro  v3 — Navy + Teal, premium
   ═══════════════════════════════════════════════════════ */

#sd-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60%  at 50%  0%,  rgba(13,148,136,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80%  at 80% 100%, rgba(13,148,136,.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50%  at 10%  50%, rgba(13,148,136,.07) 0%, transparent 50%),
    linear-gradient(160deg, #071E35 0%, #0B2D4E 45%, #071828 100%);
  transition: opacity .85s cubic-bezier(.4,0,.2,1), transform .85s cubic-bezier(.4,0,.2,1);
}
#sd-splash.out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* ── Ruler lines (CSS-only, no JS needed) ──────────────── */
#sd-splash::before,
#sd-splash::after {
  content: '';
  position: absolute;
  left: 8vw; right: 8vw; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(13,148,136,.5) 30%, rgba(13,148,136,.5) 70%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  animation: sdRulerIn 1s cubic-bezier(.4,0,.2,1) .35s forwards;
}
#sd-splash::before { top: 10%; }
#sd-splash::after  { bottom: 10%; }

@keyframes sdRulerIn { to { transform: scaleX(1); } }

/* ── Cross / plus logo icon ────────────────────────────── */
#sd-splash .cross-wrap {
  position: relative;
  width: 68px; height: 68px;
}
#sd-splash .cross-wrap.spinning {
  animation:
    sdSpinIn 1.1s cubic-bezier(.34,1.2,.64,1) forwards,
    sdSpin    5s linear 1.1s infinite;
}
#sd-splash .cross {
  position: absolute; inset: 0;
  color: #0D9488;
  filter: drop-shadow(0 0 18px rgba(13,148,136,.65));
}
#sd-splash .cross::before,
#sd-splash .cross::after {
  content: ''; position: absolute; border-radius: 5px;
  background: currentColor;
}
#sd-splash .cross::before { left: 41%; right: 41%; top: 0; bottom: 0; }
#sd-splash .cross::after  { top: 41%; bottom: 41%; left: 0; right: 0; }

@keyframes sdSpinIn {
  0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
  65%  { transform: scale(1.12) rotate(8deg);  opacity: 1; }
  100% { transform: scale(1) rotate(0deg);     opacity: 1; }
}
@keyframes sdSpin { to { transform: rotate(360deg); } }

/* ── Brand name ────────────────────────────────────────── */
#sd-splash .brand {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  margin-top: 1.35rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
}
#sd-splash .brand.vis { opacity: 1; transform: none; }

#sd-splash .b1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem; font-weight: 600;
  color: #fff;
  letter-spacing: .06em; line-height: 1;
  text-shadow: 0 2px 24px rgba(13,148,136,.35);
}
#sd-splash .b2 {
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .42em; text-indent: .42em;
  color: rgba(13,148,136,.95);
  text-transform: uppercase;
}

/* ── Separator line ────────────────────────────────────── */
#sd-splash .sep {
  width: 0; height: 1px; margin-top: .85rem;
  background: linear-gradient(90deg, transparent, rgba(13,148,136,.65), transparent);
  transition: width .85s ease .1s;
}
#sd-splash .sep.vis { width: 140px; }

/* ── Tagline ────────────────────────────────────────────── */
#sd-splash .tag {
  font-family: 'DM Sans', sans-serif;
  font-size: .67rem; font-weight: 400;
  letter-spacing: .1em;
  color: rgba(255,255,255,.42);
  text-transform: uppercase; text-align: center;
  margin-top: .65rem;
  opacity: 0;
  transition: opacity .65s ease .15s;
}
#sd-splash .tag.vis { opacity: 1; }

/* ── Progress bar ───────────────────────────────────────── */
#sd-splash .ptrack {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.05);
}
#sd-splash .pbar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(13,148,136,.4), #0D9488, #14B8A6);
  box-shadow: 0 0 12px rgba(13,148,136,.7);
  transition: width 3.8s cubic-bezier(.1,0,.3,1);
}
#sd-splash .pbar.run { width: 100%; }

@media (max-width: 480px) {
  #sd-splash .b1       { font-size: 2.2rem; }
  #sd-splash .cross-wrap { width: 54px; height: 54px; }
}
