:root {
  --bg: #07090c;
  --bg2: #0b0f14;
  --panel: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --muted: rgba(255, 255, 255, 0.7);
  --gold: #ffd966;
  --gold-soft: #ffea86;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      900px 500px at 80% 10%,
      rgba(255, 217, 102, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 22px;
  width: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  padding-left: 20px;
  padding-right: 20px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
    align-items: center;
  }
}

/* Force hero image position (desktop) */
.hero > img {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin-top: 38px;
}
@media (max-width: 900px) {
  .hero > img {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    max-width: 620px;
  }
}

/* Hero image class (kept clean + valid) */
.hero-image {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
}

.what-is {
  margin: 0 0 22px;
}
.what-is .what-title {
  font-size: clamp(32px, 4.6vw, 72px);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
}
.what-is .what-sub {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 650;
  color: var(--gold);
  line-height: 1.2;
}

.kicker {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 102, 0.45);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.08;
}

.sub {
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.cta {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 217, 102, 0.5);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  width: 100%;
}

@media (min-width: 901px) {
  .btn {
    flex: 1 1 auto;
    width: auto;
  }
}

.btn.primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #141414;
  font-weight: 700;
  border-color: rgba(255, 217, 102, 0.85);
}

.btn.white {
  background: #ffffff;
  color: #141414;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.85);
}

/* SECTION */
.section {
  margin-top: 46px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.section-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 900px) {
  .section-body {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 217, 102, 0.4);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* WELCOME */
.welcome-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 18px 0 10px;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

.tier {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 217, 102, 0.25);
  background: rgba(0, 0, 0, 0.25);
}

.tier h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.tier p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.priority {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 217, 102, 0.45);
  background: rgba(255, 217, 102, 0.08);
  font-size: 13px;
}

/* FEATURES */
.features-head {
  padding: 24px;
  border-bottom: 1px solid var(--stroke);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.features-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .features-body {
    grid-template-columns: 1fr;
  }
}

/* Images: keep together/overlapped */
/* PLATFORM FEATURES IMAGES */
.img-stack {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
}
.features-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-phone {
  width: 420px; /* tamaño grande */
  height: auto;
  display: block;
}

.feature-phone:first-child {
  position: relative;
  z-index: 2;
}

.feature-phone:last-child {
  position: relative;
  margin-left: -160px; /* las pega */
  margin-top: 120px; /* baja la segunda */
  z-index: 1;
}

@media (max-width: 900px) {
  .img-stack {
    justify-content: center;
  }

  .feature-phone {
    width: 320px;
  }

  .feature-phone:last-child {
    margin-left: -80px;
    margin-top: 80px;
  }
}

.feature {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.feature .title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
}

.feature .desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* FORM */
form {
  display: grid;
  gap: 16px;
}
label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
input,
select {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

/* Capacity bar */
.cap {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}
.cap-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.cap-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cap-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width 800ms ease;
}
.cap-foot {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 200ms ease-in,
    visibility 200ms ease-in;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.show .modal-backdrop {
  opacity: 1;
}

.modal-overlay.show .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 40;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.modal-content {
  position: relative;
  z-index: 50;
  transform: translateY(16px) scale(0.95);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out;
  width: 100%;
  max-width: 512px;
  opacity: 0;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .modal-content {
    transform: translateY(0) scale(0.95);
  }
  .modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
  }
}

.modal-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: #0b0f14;
  padding: 24px;
  border-radius: 20px;
}

@media (min-width: 640px) {
  .modal-inner {
    padding: 32px 48px;
  }
}

.modal-header {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon {
  max-width: 70px;
  max-height: 70px;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .modal-icon {
    max-width: 84px;
    max-height: 84px;
  }
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-close svg {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.7);
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.modal-title {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.5;
}

.modal-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #141414;
  font-weight: 700;
  border: 1px solid rgba(255, 217, 102, 0.85);
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: box-shadow 300ms ease-in-out;
  width: 100%;
}

.btn-gold:hover {
  box-shadow: 0 0 20px rgba(255, 217, 102, 0.5);
}

.btn-default {
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 217, 102, 0.5);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-default:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.modal-open {
  overflow: hidden;
}
@media screen and (max-width: 400px) {
  .modal-title,
  .modal-subtitle {
    font-size: 18px;
  }
}
