/* ============================================================
   Centro Mexicano Alzheimer · Plataforma Digital
   estilos.css · v20260401.3
   ============================================================ */

/* === Variables === */
:root {
  --purple-deep: #4C0D70;
  --purple-soft: #CB6CE6;
  --purple-light: #E4CFE9;
  --bg: #0C0B10;
  --text: #F0EDF8;
  --muted: #B8B0D0;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Verdana, Tahoma, ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* === Glows === */
.glow-1,
.glow-2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(76,13,112,.25) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(203,108,230,.1) 0%, transparent 70%);
  bottom: -150px; left: -80px;
}

/* === Landing container === */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* === Logo lockup === */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  animation: logoFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(76,13,112,.35));
}
.logo-lockup__text {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.05;
  padding-right: 6px;
  padding-top: 50px;
}
.logo-lockup__line {
  font-weight: 300;
  color: white;
}
.logo-lockup__line--1 { font-size: clamp(1rem, 5.2vw, 2rem); }
.logo-lockup__line--2 { font-size: clamp(0.8rem, 3.9vw, 1.4rem); }
.logo-lockup__line--3 { font-size: clamp(0.7rem, 3.5vw, 1.3rem); }
.logo-lockup__line--4 {
  font-size: clamp(.7rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: .15em;
  color: var(--purple-light);
  margin-top: 2px;
}
.logo-lockup__icon {
  width: clamp(80px, 18vw, 130px);
  height: auto;
  margin-left: -4px;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* === Divider === */
.divider {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-soft));
  margin-bottom: 32px;
}

/* === Title === */
.title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 950;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.title span {
  background: linear-gradient(135deg, var(--purple-soft), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Subtitle === */
.subtitle {
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(.85rem, 2.5vw, 1rem);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 40px;
}

/* === Buttons === */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 900;
  font-size: clamp(.8rem, 2vw, .95rem);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 52px;
  min-width: 180px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-soft));
  color: #fff;
  box-shadow: 0 10px 30px rgba(76,13,112,.35);
}
.btn--primary:hover { box-shadow: 0 16px 40px rgba(76,13,112,.5); }

.btn--lg {
  padding: 18px 48px;
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  min-width: 280px;
  box-shadow: 0 12px 36px rgba(76,13,112,.4);
}
.btn--lg:hover {
  box-shadow: 0 18px 48px rgba(76,13,112,.55);
  transform: translateY(-3px);
}

.btn--ghost {
  background: transparent;
  color: var(--purple-light);
  border: none;
  font-weight: 700;
  font-size: clamp(.7rem, 1.8vw, .8rem);
  min-height: auto;
  min-width: auto;
  padding: 10px 20px;
  opacity: .7;
  transition: opacity .15s, color .15s;
}
.btn--ghost:hover {
  opacity: 1;
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* === Loader === */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 100px;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__logo {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 16px 30px rgba(76,13,112,.5));
  animation: spin 1.1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader__dots { display: flex; gap: 24px; }
.loader__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  animation: dotFade 1.6s ease-in-out infinite;
}
.loader__dot:nth-child(1) { background: var(--purple-deep); animation-delay: 0s; }
.loader__dot:nth-child(2) { background: var(--purple-soft); animation-delay: .3s; }
.loader__dot:nth-child(3) { background: var(--purple-light); animation-delay: .6s; }

@keyframes dotFade {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.2); }
}

/* === Accesibilidad === */
@media (prefers-reduced-motion: reduce) {
  .loader__logo { animation: none; }
  .loader__dot  { animation: none; opacity: .6; }
  .logo-lockup  { animation: none; }
  .loader       { transition: none; }
}