/* ===== Aglaion.com — landing "coming soon" =====
   Paleta derivada del logo: navy profundo + azul/cian + dorado de acento. */

:root {
  --bg-0: #080d18;          /* fondo más profundo */
  --bg-1: #0a1020;          /* fondo (combina con el logo) */
  --bg-2: #0e1830;          /* paneles */
  --line: rgba(120, 170, 220, 0.14);
  --blue: #2c8fd0;
  --blue-bright: #4fc3e8;
  --blue-deep: #1b5e8a;
  --gold: #f5c24b;
  --gold-soft: #ffd98a;
  --text: #eaf2f9;
  --muted: #93a8c2;
  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .topbar__brand, .footer__brand, .count__num, .badge {
  font-family: "Sora", "Inter", sans-serif;
}

.dot { color: var(--gold); }

/* ---------- Fondo ---------- */
.bg { position: fixed; inset: 0; z-index: -2; background: var(--bg-1); }
.bg__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.18; filter: saturate(1.1);
}
.bg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 700px at 28% 30%, rgba(79, 195, 232, 0.12), transparent 60%),
    radial-gradient(800px 600px at 70% 12%, rgba(245, 194, 75, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(8, 13, 24, 0.35) 0%, rgba(8, 13, 24, 0.82) 70%, var(--bg-0) 100%);
}

/* ---------- Barra superior ---------- */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px clamp(18px, 5vw, 40px);
}
.topbar__brand { font-weight: 800; letter-spacing: 1px; font-size: 1.05rem; }
.lang { display: flex; align-items: center; gap: 6px; }
.lang__btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 600 0.92rem "Inter", sans-serif; padding: 4px 6px; border-radius: 6px;
  transition: color 0.2s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { color: var(--blue-bright); }
.lang__sep { color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
  padding: clamp(24px, 6vw, 56px) clamp(18px, 5vw, 40px) 40px;
  text-align: center;
}
.badge {
  display: inline-block; text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.72rem; font-weight: 700; color: var(--gold-soft);
  border: 1px solid rgba(245, 194, 75, 0.35); border-radius: 999px;
  padding: 7px 16px; background: rgba(245, 194, 75, 0.06);
}
.hero__logo {
  display: block; width: min(100%, 620px); height: auto; margin: 26px auto 8px;
  border-radius: 12px;
  filter: drop-shadow(0 12px 40px rgba(79, 195, 232, 0.22));
}
.hero__tagline {
  font-family: "Sora", sans-serif; font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 55%, var(--gold-soft) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: 10px;
}
.hero__intro {
  color: var(--muted); max-width: 620px; margin: 16px auto 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 999px;
  font: 600 0.95rem "Inter", sans-serif; padding: 12px 24px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--ghost {
  margin-top: 22px; color: var(--text);
  background: rgba(120, 170, 220, 0.08); border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(120, 170, 220, 0.16); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.btn--solid {
  color: #06121f; font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  box-shadow: 0 8px 24px rgba(245, 194, 75, 0.25);
}
.btn--solid:hover { box-shadow: 0 10px 30px rgba(245, 194, 75, 0.4); transform: translateY(-1px); }

/* ---------- Countdown ---------- */
.count { margin-top: 44px; }
.count__title {
  text-transform: uppercase; letter-spacing: 4px; font-size: 0.8rem;
  font-weight: 700; color: var(--muted); margin-bottom: 18px;
}
.count__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 18px); max-width: 560px; margin: 0 auto;
}
.count__cell {
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.7), rgba(12, 20, 38, 0.55));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(14px, 3vw, 22px) 8px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.count__num {
  display: block; font-weight: 800; line-height: 1;
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  color: var(--text);
  text-shadow: 0 0 24px rgba(79, 195, 232, 0.35);
  font-variant-numeric: tabular-nums;
}
.count__lbl {
  display: block; margin-top: 8px; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.66rem; color: var(--muted);
}
.count__date {
  margin-top: 18px; font-weight: 600; color: var(--gold-soft);
  letter-spacing: 0.5px;
}
.count__done {
  margin-top: 16px; font-size: 1.3rem; font-weight: 700; color: var(--blue-bright);
}

/* ---------- Servicios ---------- */
.services {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(18px, 5vw, 40px);
}
.services__title {
  text-align: center; font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700; margin-bottom: 36px;
}
.services__grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(18, 28, 52, 0.6), rgba(10, 16, 32, 0.5));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(79, 195, 232, 0.4); }
.card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text); }
.card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Notify ---------- */
.notify {
  position: relative; z-index: 1;
  max-width: 620px; margin: 0 auto; text-align: center;
  padding: 0 clamp(18px, 5vw, 40px) clamp(40px, 8vw, 80px);
}
.notify__title { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; }
.notify__text { color: var(--muted); margin: 10px 0 22px; }
.notify__form {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.notify__input {
  flex: 1 1 240px; min-width: 0; color: var(--text);
  background: rgba(12, 20, 38, 0.7); border: 1px solid var(--line);
  border-radius: 999px; padding: 13px 20px; font-size: 0.95rem;
}
.notify__input::placeholder { color: var(--muted); }
.notify__input:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(79, 195, 232, 0.18);
}
.notify__msg { margin-top: 14px; min-height: 1.2em; font-weight: 600; }
.notify__msg.ok { color: var(--blue-bright); }
.notify__msg.err { color: #ff8d8d; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 40px);
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.footer__brand { font-weight: 800; letter-spacing: 1px; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--blue-bright); }
.footer__copy { color: var(--muted); font-size: 0.82rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 16, 0.85); backdrop-filter: blur(4px); }
.modal__body {
  position: relative; z-index: 1; width: min(92vw, 960px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow);
}
.modal__video { width: 100%; height: auto; border-radius: 10px; display: block; }
.modal__close {
  position: absolute; top: -14px; right: -14px; width: 38px; height: 38px;
  border-radius: 50%; border: 0; cursor: pointer; font-size: 1.4rem; line-height: 1;
  background: var(--gold); color: #06121f; font-weight: 700; box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 460px) {
  .count__grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; text-align: center; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg__video { display: none; }
  * { transition: none !important; }
}
