:root {
  --blue-primary: #0d47a1;
  --blue-secondary: #1565c0;
  --white: #ffffff;
  --white-glass: rgba(255, 255, 255, 0.06);
  --white-glass-strong: rgba(255, 255, 255, 0.12);
  --gray-bg: #f5f7fa;
  --text-main: #183a67;
  --text-soft: #4b6285;
  --shadow-soft: 0 12px 36px rgba(13, 71, 161, 0.16);
  --shadow-card: 0 8px 28px rgba(21, 101, 192, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(21, 101, 192, 0.08), transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(13, 71, 161, 0.1), transparent 33%),
    var(--gray-bg);
  color: var(--text-main);
}

.loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, var(--blue-primary), var(--blue-secondary));
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: var(--white);
}

.loader-content h2 {
  margin: 0;
  letter-spacing: 1px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--white);
  border-radius: 50%;
  margin: 16px auto 0;
  animation: spin 0.9s linear infinite;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

header {
  background: linear-gradient(130deg, var(--blue-primary), var(--blue-secondary));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(13, 71, 161, 0.2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

header::before,
header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

header::before {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -120px;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

header::after {
  width: 48%;
  height: 150%;
  top: -30%;
  right: -20%;
  transform: rotate(26deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
}

.header-inner {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.brand {
  margin: 0;
  font-size: clamp(1.8rem, 5.6vw, 3rem);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.1);
}

.brand span {
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 4px;
}

.header-icons {
  display: flex;
  gap: 16px;
  font-size: 1.1rem;
  opacity: 0.95;
}

.header-icons i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--white-glass);
  border: 1px solid var(--white-glass-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 8px rgba(8, 39, 93, 0.12);
  backdrop-filter: blur(1px);
  transition: transform var(--transition), background-color var(--transition);
}

.header-icons i:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}

main {
  padding: 30px 0 20px;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  padding: 26px 20px;
  border: 1px solid rgba(13, 71, 161, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.03) 38%,
    rgba(255, 255, 255, 0) 58%
  );
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(13, 71, 161, 0.12), rgba(21, 101, 192, 0.22));
  color: var(--blue-primary);
  font-size: 1.8rem;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--blue-primary);
  line-height: 1.1;
}

.hero-card p {
  margin: 0 auto;
  max-width: 700px;
  font-size: clamp(1rem, 2.7vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-soft);
}

.hero-card p + p {
  margin-top: 8px;
}

.steps {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(21, 101, 192, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 62%;
  height: 40px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.step-card > * {
  position: relative;
  z-index: 1;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(13, 71, 161, 0.18);
}

.step-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(150deg, var(--blue-primary), var(--blue-secondary));
  font-size: 1.08rem;
}

.step-card h3 {
  margin: 2px 0 6px;
  color: var(--blue-primary);
  font-size: 1rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.97rem;
}

.final-text {
  margin: 24px auto 0;
  max-width: 750px;
  text-align: center;
  color: var(--blue-primary);
  font-weight: 600;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  line-height: 1.6;
  padding: 0 10px;
}

.cta-wrap {
  text-align: center;
  margin: 22px 0 12px;
}

.btn-download {
  border: 0;
  text-decoration: none;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(140deg, var(--blue-primary), var(--blue-secondary));
  border-radius: 999px;
  padding: 15px 32px;
  box-shadow: 0 12px 26px rgba(13, 71, 161, 0.22);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.btn-download:hover,
.btn-download:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(13, 71, 161, 0.28);
}

.btn-download:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.32);
  outline-offset: 3px;
}

footer {
  margin-top: 24px;
  background: #0a3479;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  padding: 18px 12px 22px;
}

footer p {
  margin: 3px 0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-widget-bubble {
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #1a3763;
  border: 1px solid rgba(13, 71, 161, 0.15);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.14);
  padding: 10px 12px;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chat-widget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd36f;
  box-shadow: 0 0 0 0 rgba(45, 211, 111, 0.55);
  animation: chat-pulse 1.8s ease-out infinite;
  flex: 0 0 8px;
}

.whatsapp-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, #20b15a, #24d366);
  box-shadow: 0 10px 22px rgba(29, 161, 82, 0.28);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.whatsapp-chat i {
  font-size: 1.15rem;
}

.whatsapp-chat:hover,
.whatsapp-chat:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 13px 26px rgba(29, 161, 82, 0.34);
}

.whatsapp-chat:focus-visible {
  outline: 3px solid rgba(36, 211, 102, 0.35);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 210px;
  }

  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.15rem;
  }

  .chat-widget {
    right: 24px;
    bottom: 24px;
  }

  .chat-widget-bubble {
    font-size: 0.86rem;
    max-width: 250px;
  }

  .whatsapp-chat {
    padding: 12px 16px;
  }
}

@keyframes chat-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 211, 111, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(45, 211, 111, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 211, 111, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
