/* NonStapp Landing - Minimal SaaS */
:root {
  --bg-dark: #0a0a0f;
  --bg-blue: #01034b;
  --accent-pink: #c93fee;
  --accent-violet: #7127c3;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-blue) 50%, var(--bg-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-hidden {
  display: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 30px rgba(113, 39, 195, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-violet));
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(201, 63, 238, 0.4);
}

.glow-btn {
  box-shadow: 0 0 25px rgba(201, 63, 238, 0.35), 0 0 50px rgba(113, 39, 195, 0.15);
}

.glow-btn:hover {
  box-shadow: 0 0 35px rgba(201, 63, 238, 0.5), 0 0 60px rgba(113, 39, 195, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width:  min(80vw, 600px);
  height: min(80vw, 600px);
  top: -20%;
  right: -15%;
  background: radial-gradient(
    circle,
    rgba(201, 63, 238, 0.2) 0%,
    rgba(201, 63, 238, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-accent {
  color: var(--accent-pink);
  -webkit-text-fill-color: var(--accent-pink);
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.hero-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-pink);
}

.hero-benefit-icon svg {
  width: 20px;
  height: 20px;
}

.hero-benefit-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero-benefit-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Hero visual: placeholder para foto */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.section-title-center {
  text-align: center;
}

.section-lead-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-accent {
  color: var(--accent-pink);
}

/* Section image placeholder */
.section-image-placeholder {
  min-height: 260px;
  background: linear-gradient(135deg, rgba(201, 63, 238, 0.08) 0%, rgba(113, 39, 195, 0.08) 100%);
  border: 2px dashed rgba(201, 63, 238, 0.35);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.section-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(113, 39, 195, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.placeholder-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.8;
  text-align: center;
  padding: 1rem;
}

/* Problem section layout */
.section-problem {
  position: relative;
  overflow: hidden;
}

.section-problem::before {
  content: '';
  position: absolute;
  width:  min(60vw, 450px);
  height: min(60vw, 450px);
  top: 50%;
  left: -15%;
  transform: translateY(-50%);
  background: radial-gradient(
    circle,
    rgba(113, 39, 195, 0.15) 0%,
    rgba(113, 39, 195, 0.04) 50%,
    transparent 70%
  );
  pointer-events: none;
}

.section-problem .container {
  position: relative;
  z-index: 1;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.problem-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-align: center;
}

.problem-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201, 63, 238, 0.2), rgba(113, 39, 195, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(201, 63, 238, 0.2);
}

.problem-card-icon svg {
  width: 22px;
  height: 22px;
}

.problem-card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.problem-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Solution section */
.section-solution .container {
  position: relative;
  z-index: 1;
}

.solution-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.solution-step-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.solution-step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 5rem;
  justify-content: flex-start;
}

.solution-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-violet));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(201, 63, 238, 0.4);
}

.solution-step-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.solution-step-image {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}

.solution-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solution-feature {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.solution-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent-pink);
}

.solution-feature-icon svg {
  width: 24px;
  height: 24px;
}

.solution-feature-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.solution-feature-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Benefits */
.benefits-intro {
  margin-bottom: 2rem;
}

.benefits-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.benefit-card {
  padding: 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.benefit-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.benefit-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.benefit-card:hover {
  border-color: rgba(201, 63, 238, 0.3);
  box-shadow: 0 0 25px rgba(113, 39, 195, 0.12);
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201, 63, 238, 0.2), rgba(113, 39, 195, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(201, 63, 238, 0.2);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

/* Social proof */
.social-placeholders {
  margin-top: 2rem;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.logo-placeholder {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-violet);
  box-shadow: 0 0 20px rgba(113, 39, 195, 0.08);
}

.testimonial p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
}

.testimonial cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
  font-style: normal;
}

/* Final CTA */
.section-cta {
  padding: 5rem 0;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(201, 63, 238, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.cta-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Contact form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(113, 39, 195, 0.08);
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
}

.contact-form .field-full {
  grid-column: 1 / -1;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(113, 39, 195, 0.2);
}

.contact-form button {
  grid-column: 1 / -1;
}

/* Footer */
/* Thanks page */
.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.thanks-content {
  text-align: center;
  padding: 2rem;
}

.thanks-message {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text);
}

.thanks-logo {
  font-size: 1.5rem;
  display: inline-block;
}

.thanks-logo:hover {
  color: var(--accent-pink);
}

/* Términos y condiciones */
.terms-page {
  padding: 3rem 0 4rem;
  min-height: 50vh;
}

.terms-content {
  max-width: 680px;
  margin: 0 auto;
}

.terms-body {
  color: var(--text-muted);
  line-height: 1.7;
}

.terms-body h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.terms-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.terms-body h2:first-of-type {
  margin-top: 1rem;
}

.terms-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.terms-body p {
  margin: 0 0 1rem;
}

.terms-body ul,
.terms-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.terms-body li {
  margin-bottom: 0.35rem;
}

.terms-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.terms-body strong {
  color: var(--text);
  font-weight: 600;
}

.terms-body a {
  color: var(--accent-pink);
  text-decoration: none;
}

.terms-body a:hover {
  text-decoration: underline;
}

/* Onboarding page */
.onboarding-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem 0;
}

.onboarding-card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.onboarding-title {
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-align: center;
}

.onboarding-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.terms-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.terms-scroll::-webkit-scrollbar {
  width: 6px;
}

.terms-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.terms-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-pink);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.onboarding-card .btn {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

.onboarding-card .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.onboarding-invalid {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 2rem;
}

/* Onboarding success page */
.onboarding-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Onboarding error page */
.error-message {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 1rem 0 2rem;
}

@media (max-width: 600px) {
  .onboarding-card {
    padding: 1rem;
    margin: 0 1rem;
  }

  .terms-scroll {
    max-height: 300px;
  }
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
  width: 100%;
  text-align: center;
  order: 3;
}

/* Desktop: más aire en secciones */
@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }

  .hero {
    padding: 8rem 0 10rem;
  }

  .section-cta {
    padding: 10rem 0;
  }

  .footer {
    padding: 4rem 0;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
  }

  .qr-card {
    right: 50%;
    transform: translate(80%, 0);
  }

  .problem-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-features {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    max-width: 85vw;
    background: var(--bg-blue);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 1.5rem 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .problem-cards {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .solution-steps-grid {
    grid-template-columns: 1fr;
  }

  .section-image-placeholder {
    min-height: 200px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    order: 0;
  }
}
