/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg:            #0d0d0d;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --border:        rgba(255, 255, 255, 0.08);
  --accent:        #f97316;
  --accent-glow:   rgba(249, 115, 22, 0.12);
  --accent-border: rgba(249, 115, 22, 0.3);
  --text-primary:  #ffffff;
  --text-secondary:#6b7280;
  --text-muted:    #4b5563;
  --font:          'Inter', sans-serif;
  --radius:        10px;
  --container:     1100px;
  --bg-header:     rgba(13, 13, 13, 0.92);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Grid background técnico */
.grid-bg {
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #ef4444, #a855f7);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 30px;
  width: auto;
  border-radius: 7px;
  display: block;
}
.logo-text {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.5px;
}
.lang-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent-border);
}
.btn-nav {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.85; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.11) 0%, transparent 65%);
  pointer-events: none;
}
.hero-diagonal {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 220px 220px 0;
  border-color: transparent rgba(249, 115, 22, 0.12) transparent transparent;
}
.hero-diagonal-inner {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 110px 110px 0;
  border-color: transparent rgba(249, 115, 22, 0.22) transparent transparent;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 22px;
}
.hero-badge span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.hero-title em {
  color: var(--accent);
  font-style: normal;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
  min-width: 150px;
}
.btn-store-primary { background: var(--accent); }
.btn-store-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-store-primary:hover { opacity: 0.85; }
.btn-store-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn-store-icon { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.btn-store-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.btn-store-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}
.hero-stars { color: var(--accent); letter-spacing: 1px; }

/* Logo app en hero */
.hero-app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}
.hero-logo-image {
  width: 160px;
  height: auto;
  border-radius: 36px;
  box-shadow: 0 0 60px rgba(249,115,22,0.25), 0 24px 48px rgba(0,0,0,0.5);
}

/* Mockup flotante */
.hero-mockup {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 22px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.mockup-label { color: var(--text-muted); font-size: 11px; margin-bottom: 3px; }
.mockup-total { color: var(--accent); font-size: 30px; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; }
.mockup-divider { height: 1px; background: var(--border); margin-bottom: 12px; }
.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mockup-row-label { color: var(--text-secondary); font-size: 12px; }
.mockup-row-val { color: var(--text-primary); font-size: 12px; font-weight: 600; }
.mockup-pdf-btn {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 16px;
  text-decoration: none;
}

/* Mockup section (standalone, below how-it-works) */
.mockup-section { padding: 56px 0; }
.mockup-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.mockup-grid .hero-mockup {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}
.mockup-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 5px;
}
.stat-label { color: var(--text-muted); font-size: 13px; }

/* ============================================
   FEATURES BENTO
   ============================================ */
.features { padding: 80px 0; }
.section-label {
  text-align: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 44px;
  font-size: 16px;
  line-height: 1.65;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s, background 0.25s;
}
.bento-item:hover {
  border-color: var(--accent-border);
  background: rgba(249, 115, 22, 0.04);
}
.bento-item.featured {
  grid-column: span 2;
  background: var(--accent-glow);
  border-color: var(--accent-border);
}
.bento-icon { font-size: 30px; margin-bottom: 14px; }
.bento-item h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.bento-item p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 52px;
  position: relative;
}
/* Línea conectora entre pasos */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 50%, var(--accent));
  opacity: 0.3;
}
.step { text-align: center; }
.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  margin: 0 auto 18px;
}
.step h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 80px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 700; }
.author-role { font-size: 12px; color: var(--text-muted); }

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 80px 0 48px; }
.pricing-card {
  max-width: 460px;
  margin: 40px auto 0;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 44px 40px;
  text-align: center;
}
.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.pricing-price {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 8px;
  line-height: 1;
}
.pricing-price sup {
  font-size: 26px;
  vertical-align: super;
  letter-spacing: 0;
  font-weight: 700;
}
.pricing-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.5;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--accent); font-weight: 900; flex-shrink: 0; margin-top: 1px; }

.btn-primary {
  display: block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}
.btn-primary:hover { opacity: 0.85; }

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-cta {
  padding: 56px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.09) 0%, transparent 70%);
  pointer-events: none;
}
.download-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}
.download-cta p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 16px;
}
.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 15px; font-weight: 900; color: var(--text-primary); }
.footer-logo span { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ============================================
   INNER PAGES (privacy, terms, support)
   ============================================ */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
  position: relative;
}
.page-hero p { color: var(--text-secondary); font-size: 15px; position: relative; }
.page-body { padding: 60px 0 80px; }
.page-content { max-width: 740px; }
.page-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin: 40px 0 12px;
}
.page-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-content ul {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 22px;
  margin-bottom: 16px;
}
.page-content a { color: var(--accent); text-decoration: underline; }
.page-content .btn-contact { color: #fff; text-decoration: none; }
.page-content strong { color: var(--text-primary); }

/* FAQ Accordion */
.faq-list { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-primary);
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  padding-bottom: 22px;
  margin: 0;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* Contact card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 48px;
  text-align: center;
}
.contact-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.contact-card p { color: var(--text-secondary); margin-bottom: 22px; font-size: 15px; }
.btn-contact {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-contact:hover { opacity: 0.85; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-app-logo { display: none; }
  .hero-title { letter-spacing: -1.5px; }
}

@media (max-width: 768px) {
  nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
    z-index: 99;
  }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.featured { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .pricing-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 50px; }
  .hero-actions { flex-direction: column; }
  .btn-store { justify-content: center; }
  .store-buttons { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-app-logo, .hero-mockup { animation: none; }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
