:root {
  --bg: #020617;
  --panel: rgba(15,23,42,0.65);
  --panel-soft: rgba(15,23,42,0.45);
  --border: rgba(148,163,184,0.16);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --green: #22c55e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #020617 0%, #020617 60%);
  color: var(--text);
}

/* ================= HEADER ================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(2,6,23,0.7);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}

.nav a {
  margin-left: 1.6rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  color: var(--text);
}

/* ================= HERO ================= */

.hero {
  position: relative;
  padding: 9rem 0 7rem;
  overflow: hidden;
}

.aurora {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.22;
}

.a1 {
  background: var(--cyan);
  top: -140px;
  left: -140px;
}

.a2 {
  background: var(--purple);
  bottom: -160px;
  right: -160px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-text h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text p {
  margin: 1.4rem 0 2.4rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(15,23,42,0.75),
    rgba(2,6,23,0.85)
  );
  border-radius: 26px;
  padding: 2.6rem;
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

/* ================= MOCK ================= */

.mock-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.mock-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(2,6,23,0.4);
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* ================= BUTTONS ================= */

.btn-primary,
.btn-aurora {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #020617;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.35);
}

.btn-aurora {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #020617;
}

/* ================= SECTIONS ================= */

.section {
  padding: 6.5rem 0;
}

.section.alt {
  background: var(--panel-soft);
}

.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 1.5rem;
}

/* ================= FEATURES (CAROUSEL MODERNO) ================= */

.features-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.features-carousel::-webkit-scrollbar {
  display: none;
}

.features-carousel > * {
  scroll-snap-align: start;
}

.feature-card {
  background: var(--panel);
  padding: 2.2rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* ================= HOW (TIMELINE FINAL) ================= */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(34,211,238,0.45),
    rgba(168,85,247,0.45)
  );
}

.step {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.active {
  opacity: 1;
  transform: translateY(0);
}

.step-marker {
  width: 14px;
  height: 14px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow:
    0 0 0 6px rgba(34,211,238,0.14),
    0 0 18px rgba(168,85,247,0.35);
  position: relative;
  z-index: 1;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(2) { transition-delay: 0.25s; }
.step:nth-child(3) { transition-delay: 0.4s; }

/* ================= CONTACT ================= */

.contact-section {
  padding: 7rem 1.5rem;
}

.contact-container {
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.contact-container p {
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: #020617;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(34,197,94,0.35);
}

/* ================= FORM ================= */

.contact-form {
  background: var(--panel);
  border-radius: 26px;
  padding: 2.6rem;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #020617;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.2);
  transform: translateY(-1px);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-feedback.success {
  color: var(--green);
}

/* ================= FOOTER ================= */

.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ================= FLOAT WHATSAPP ================= */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-size: 1.4rem;
  box-shadow: 0 16px 40px rgba(34,197,94,0.45);
  z-index: 100;
}

/* ================= REVEAL + TYPE ================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.typewriter {
  white-space: nowrap;
  min-width: 18ch;
}

/* ================= FEEDBACKS ================= */

.feedbacks-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.feedbacks-carousel::-webkit-scrollbar {
  display: none;
}

.feedbacks-carousel > * {
  scroll-snap-align: start;
}

.feedback-card {
  background: var(--panel);
  border-radius: 22px;
  padding: 2.2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feedback-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.feedback-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.feedback-card span {
  font-size: 0.8rem;
  color: var(--muted);
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .steps::before {
    display: none;
  }
}
