/* ================================
   INGRESA AQUÍ — Landing temporal
   ================================ */

:root {
  --bg: #f8f9ff;
  --text: #15182c;
  --muted: #656b83;
  --blue: #1736a3;
  --violet: #7246ea;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(53, 61, 131, 0.16);
  --border: rgba(255, 255, 255, 0.65);
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 10%, rgba(124, 149, 255, 0.18), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(146, 87, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f7f8ff 55%, #eef3ff 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -42%;
  height: 72%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    linear-gradient(
      105deg,
      rgba(169, 133, 255, 0.16),
      rgba(164, 184, 255, 0.1) 48%,
      rgba(117, 172, 255, 0.15)
    );
  filter: blur(1px);
  z-index: -2;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -3;
}

.ambient-one {
  width: 320px;
  height: 320px;
  top: -150px;
  right: -70px;
  background: rgba(114, 70, 234, 0.14);
}

.ambient-two {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: -80px;
  background: rgba(50, 98, 255, 0.12);
}

.hero__content {
  width: min(880px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-2vh);
}

.brand__title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: var(--blue);
}

.brand__title span {
  background: linear-gradient(95deg, #4430be 0%, #7b45eb 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: clamp(18px, 2.5vh, 28px) 0 0;
  font-size: clamp(1.08rem, 2.1vw, 1.72rem);
  line-height: 1.3;
  color: var(--muted);
  font-weight: 500;
}

.hero__separator {
  width: 52px;
  height: 3px;
  border-radius: 999px;
  margin: clamp(22px, 3.2vh, 34px) 0;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  opacity: 0.75;
}

.hero__description,
.hero__info {
  max-width: 780px;
  margin: 0;
  color: #30344c;
  line-height: 1.55;
}

.hero__description {
  font-size: clamp(0.98rem, 1.55vw, 1.22rem);
}

.hero__description strong {
  font-weight: 700;
}

.hero__info {
  margin-top: 10px;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  color: var(--muted);
}

.email-button {
  margin-top: clamp(22px, 3vh, 30px);
  min-height: 60px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #4b39d5;
  text-decoration: none;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
  outline: none;
}

.email-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 65px rgba(53, 61, 131, 0.22);
}

.email-button:focus-visible {
  box-shadow:
    0 0 0 4px rgba(114, 70, 234, 0.16),
    var(--shadow);
}

.email-button:active {
  transform: translateY(-1px) scale(0.99);
}

.email-button__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
}

.email-button__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero__domain {
  margin: clamp(24px, 3.5vh, 38px) 0 0;
  font-size: 0.84rem;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: #7a8098;
}

/* Tablets y teléfonos */
@media (max-width: 700px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__content {
    transform: translateY(-1vh);
  }

  .brand__title {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .hero__tagline {
    max-width: 330px;
  }

  .hero__description {
    max-width: 420px;
  }

  .email-button {
    width: min(100%, 370px);
    padding: 15px 18px;
    border-radius: 16px;
  }

  .hero__domain {
    letter-spacing: 0.22em;
  }
}

/* Pantallas móviles bajas */
@media (max-height: 690px) {
  .hero__content {
    transform: none;
  }

  .brand__title {
    font-size: clamp(2.7rem, 12vh, 5rem);
  }

  .hero__tagline {
    margin-top: 14px;
  }

  .hero__separator {
    margin: 16px 0;
  }

  .email-button {
    margin-top: 16px;
    min-height: 52px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero__domain {
    margin-top: 18px;
  }
}

@media (max-height: 570px) {
  .hero__separator {
    display: none;
  }

  .hero__description {
    margin-top: 14px;
  }

  .hero__domain {
    display: none;
  }
}

/* Respeta usuarios que prefieren menos animación */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* ================================
   PÁGINA 404 — INGRESA AQUÍ
   ================================ */

.error-page {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  isolation: isolate;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(126, 88, 255, 0.22), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(47, 104, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f7f8ff 48%, #eef3ff 100%);
  z-index: -4;
}

.error-page::after {
  content: "";
  position: absolute;
  width: min(1100px, 120vw);
  height: min(540px, 62vh);
  left: 50%;
  bottom: -34%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    linear-gradient(
      105deg,
      rgba(126, 83, 255, 0.14),
      rgba(139, 166, 255, 0.1),
      rgba(80, 143, 255, 0.14)
    );
  filter: blur(1px);
  z-index: -3;
}

.error-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(28px);
  background: rgba(106, 73, 231, 0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
}

.error-card {
  width: min(760px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-1.5vh);
}

.error-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 10px 35px rgba(58, 65, 137, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #536078;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.error-brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #203ca8, #7d49ed);
  box-shadow: 0 0 0 5px rgba(113, 74, 232, .08);
}

.error-code {
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-size: clamp(6rem, 19vw, 11rem);
  line-height: .82;
  font-weight: 800;
  letter-spacing: -.09em;
  background: linear-gradient(115deg, #18379f 0%, #4136be 44%, #7d48ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 25px rgba(67, 56, 187, .11));
  user-select: none;
}

.error-title {
  margin: clamp(20px, 3vh, 30px) 0 0;
  max-width: 650px;
  font-size: clamp(1.75rem, 4.3vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -.045em;
  color: #171a2f;
  font-weight: 800;
}

.error-title span {
  background: linear-gradient(100deg, #263da8, #7748e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-copy {
  margin: clamp(15px, 2.1vh, 22px) 0 0;
  max-width: 590px;
  font-size: clamp(.98rem, 1.7vw, 1.14rem);
  line-height: 1.6;
  color: #676d83;
}

.error-home {
  margin-top: clamp(23px, 3.4vh, 34px);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 16px 26px;
  border-radius: 17px;
  background: linear-gradient(105deg, #1c399f, #6845dd);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow:
    0 16px 42px rgba(72, 61, 190, .23),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.error-home:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow:
    0 20px 50px rgba(72, 61, 190, .3),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.error-home:active {
  transform: translateY(-1px) scale(.99);
}

.error-home:focus-visible {
  outline: 4px solid rgba(104, 69, 221, .16);
  outline-offset: 4px;
}

.error-home svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.error-domain {
  margin: clamp(21px, 3vh, 30px) 0 0;
  color: #8a8fa3;
  font-size: .78rem;
  letter-spacing: .28em;
}

@media (max-width: 600px) {
  .error-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .error-card {
    transform: none;
  }

  .error-code {
    font-size: clamp(6rem, 31vw, 9rem);
  }

  .error-title {
    max-width: 390px;
  }

  .error-copy {
    max-width: 390px;
  }

  .error-home {
    width: min(100%, 330px);
  }

  .error-domain {
    letter-spacing: .2em;
  }
}

@media (max-height: 650px) {
  .error-code {
    margin-top: 12px;
    font-size: clamp(5rem, 17vh, 8rem);
  }

  .error-title {
    margin-top: 14px;
    font-size: clamp(1.55rem, 5vh, 2.5rem);
  }

  .error-copy {
    margin-top: 10px;
    line-height: 1.45;
  }

  .error-home {
    margin-top: 16px;
    min-height: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .error-domain {
    margin-top: 14px;
  }
}

@media (max-height: 530px) {
  .error-brand,
  .error-domain {
    display: none;
  }

  .error-code {
    font-size: clamp(4.5rem, 20vh, 6.5rem);
  }
}
