:root {
  --bg: #06151a;
  --hero-top: #0b0f1a;
  --hero-bottom: #100637;
  --teal: #20e0c5;
  --teal-2: #4be1c7;
  --muted: #b7c2d9;
  --white: #fff;
  --btn1: #21c1f3;
  --btn2: #4775ff;
  --btn-glow: rgba(33, 142, 255, 0.35);

  /* Calculator */
  --card: #3a26a3;
  --card-dark: #2f1e87;
  --accent: #d59a53;
  --pill: #e6cfb3;
  --pill-text: #3a2c17;

  /* Footer */
  --footer-bg: #f3f6fb;
  --footer-text: #40526f;
  --footer-link: #0b1420;
  --border: #e5eaf1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #eaf5ff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    'Helvetica Neue', Arial;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: min(1120px, 94%);
  margin-inline: auto;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 400px at 75% 110%,
      #4a1ffb33 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
  padding: 22px 0 46px;
  border-bottom: 1px solid #131f33;
}

.hero__grid {
  display: grid;
  gap: 18px;
}

.h1 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.h1 .teal {
  color: var(--teal);
  text-shadow: 0 0 32px rgba(32, 224, 197, 0.25);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #d7e7ff;
  background: #112032;
  border: 1px solid #1d2f47;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.meta .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9f5ff;
  background: #09212a;
  border: 1px solid #114253;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

.meta .chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16c47f;
  box-shadow: 0 0 0 2px #0d1922 inset;
}

/* Bullets */
.bullets {
  display: grid;
  gap: 12px;
  margin: 10px 0 14px;
}

.bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: #eaf5ff;
}

.chev {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--teal);
  filter: drop-shadow(0 2px 6px rgba(32, 224, 197, 0.35));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--btn1), var(--btn2));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 22px var(--btn-glow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Social proof */
.social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.avatars--single .avatars__strip {
  height: 66px;
  width: auto;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: #0d1524;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stars {
  color: #f5b700;
  font-size: 1.3rem;
  display: flex;
  gap: 5px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.rating__txt {
  font-weight: 800;
  color: #e9f3ff;
  opacity: 0.95;
}

/* ===== Calculadora ===== */
.calc {
  padding: 52px 0 70px;
  background: radial-gradient(
      900px 200px at 15% -20%,
      #20e0c533 0%,
      transparent 70%
    ),
    radial-gradient(900px 200px at 85% 120%, #20e0c533 0%, transparent 70%);
}

.calc__card {
  background: linear-gradient(180deg, var(--card), var(--card-dark));
  border: 1px solid #8a7df0;
  border-radius: 20px;
  padding: clamp(18px, 3.6vw, 36px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.calc__title {
  margin: 0 0 18px;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.calc__title .line1 {
  color: var(--accent);
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
}

.calc__title .line2 {
  color: #fff;
  font-size: clamp(1.4rem, 4.4vw, 3rem);
}

/* GRID: evitamos cualquier solape y priorizamos la capa de los sliders */
.calc__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  position: relative;
}

.calc__form {
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 5;
}

.calc__out {
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid #fff;
  border-radius: 22px;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2vw, 24px);
  min-height: 160px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
  /* si algÃºn navegador â€œinvadeâ€ el Ã¡rea de los sliders, no bloquea eventos */
  pointer-events: none;
}

.calc__out .btn {
  pointer-events: auto;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pill);
  color: var(--pill-text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  min-width: 160px;
  border: 3px solid #fff3;
  box-shadow: inset 0 0 0 2px #fff8;
}

.range {
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: #fff3;
  outline: none;
  width: 100%;
  position: relative;
  z-index: 6;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffcf89;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffcf89;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.ticks {
  display: flex;
  justify-content: space-between;
  color: #dcd6ff;
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0.85;
  user-select: none;
}

.out__label {
  font-weight: 800;
  opacity: 0.9;
}

.out__money {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 900;
}

.cta {
  margin-top: 16px;
}

/* ===== Footer ===== */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--footer-text);
}

.footbar {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footbar a {
  color: var(--footer-link);
}

.copyright {
  text-align: center;
  margin-bottom: 18px;
}

.legal {
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal h4 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
  color: #0b1420;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .avatars--single .avatars__strip {
    height: 58px;
  }

  .calc__grid {
    grid-template-columns: 1fr;
  }

  .calc__out {
    min-height: 120px;
  }
}

@media (max-width: 560px) {
  .avatars--single .avatars__strip {
    height: 54px;
  }

  .social {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Parche micro-pantallas */
html,
body {
  overflow-x: hidden;
}

* {
  min-width: 0;
}

@media (max-width: 480px) {
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 360px) {
  .h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 280px) {
  .h1 {
    font-size: 1.6rem;
  }

  .avatars--single .avatars__strip {
    height: 50px;
  }
}