:root {
  --primary: #0D6B4E;
  --primary-dark: #095441;
  --primary-soft: #E3F1EB;
  --error: #D35C5C;
  --warning: #B8860B;
  --black: #1A1A1A;
  --gray: #6B6A5F;
  --gray-light: #F4F1EA;
  --white: #FFFFFF;
  --bg: #FAF7F2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(26, 26, 26, 0.08);
  --container: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  line-height: 1.2;
  color: var(--black);
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--black);
}

.navbar .logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: var(--primary);
  padding: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--black);
}

.nav-toggle .fa-solid {
  font-size: 1.4rem;
  display: block;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13, 107, 78, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--white);
}

.btn-dark-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-store {
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-align: left;
  line-height: 1.1;
  gap: 12px;
  display: inline-flex;
  align-items: center;
}

.btn-store svg {
  flex-shrink: 0;
}

.btn-store small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.btn-store strong {
  font-size: 1rem;
}

.btn-store.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-store.disabled:hover {
  transform: none;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero .badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  width: min(340px, 80%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  padding: 20px 0 24px;
  overflow: hidden;
}

.trust-strip .trust-label {
  display: block;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding: 0 24px;
}

.trust-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

.trust-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.marquee-group img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.marquee-group img[alt*="CONDUSEF"] {
  height: 46px;
}

.marquee-group img[alt*="CNBV"] {
  height: 56px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============ SECTIONS ============ */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid rgba(26, 26, 26, 0.05);
  border-bottom: 1px solid rgba(26, 26, 26, 0.05);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

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

.section-head .eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  perspective: 1200px;
  height: 280px;
}

.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-card-inner,
.feature-card.flipped .feature-card-inner {
  transform: translateY(-10px) rotateY(180deg);
}

.feature-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feature-face-front {
  background: var(--white);
}

.feature-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon .fa-solid {
  font-size: 1.45rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.feature-face-back p {
  color: var(--white);
  margin-bottom: 20px;
}

.flip-hint {
  position: absolute;
  bottom: 16px;
  font-size: 0.9rem;
  color: var(--gray);
  opacity: 0.85;
}

.face-tag {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 6px 14px;
}

/* ============ STEPS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 107, 78, 0.3);
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.step-icon .fa-solid {
  font-size: 1.5rem;
}

.step-tag {
  align-self: flex-start;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--gray);
  font-size: 0.95rem;
  flex: 1;
}

.step-link {
  margin-top: 20px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.step-link span {
  transition: transform 0.2s ease;
  display: inline-flex;
}

.step-link .fa-solid {
  font-size: 0.9rem;
}

.step-link:hover span {
  transform: translateX(4px);
}

@media (min-width: 901px) {
  .step-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.08);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
}

/* ============ PRICING ============ */
.billing-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.billing-option {
  border: none;
  background: transparent;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-option.active {
  background: var(--primary);
  color: var(--white);
}

.billing-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 1px;
}

.billing-option.active .billing-badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--white);
  border: 2px solid var(--primary);
  box-shadow: 0 18px 50px rgba(13, 107, 78, 0.15);
  position: relative;
}

.price-card .plan {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.price-sub {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.price-card .tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.price-card .price {
  font-family: 'Sora', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--black);
}

.price-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

.price-card .per {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.price-card .savings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.price-card .savings .fa-solid {
  font-size: 0.75rem;
}

.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.price-card li {
  padding: 8px 0;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.price-card li .check {
  color: var(--primary);
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 3px;
}

.price-card li .check .fa-solid,
.price-card li .xmark .fa-solid {
  font-size: 1rem;
}

.price-card li .xmark {
  color: #DC5A5A;
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 3px;
}

.price-card li.missing {
  color: var(--gray);
}

@media (min-width: 901px) {
  .price-card.featured {
    transform: scale(1.04);
  }
}

.pricing-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--black);
  color: #C9C9C9;
  padding: 64px 0 32px;
  margin-top: 88px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer .brand img {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.footer .brand p {
  font-size: 0.9rem;
  max-width: 260px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: #C9C9C9;
  font-size: 0.92rem;
}

.footer ul a:hover {
  color: var(--white);
}

.footer .bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #C9C9C9;
}

.footer .bottom .flag-icon {
  font-size: 0.8rem;
  vertical-align: -1px;
  color: #C9C9C9;
}

/* ============ LEGAL / HELP PAGES ============ */
.legal-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0;
  color: var(--white);
}

.legal-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-hero .updated {
  opacity: 0.85;
  font-size: 0.9rem;
}

.legal-body {
  padding: 48px 0 0;
}

.legal-body .container {
  max-width: 820px;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.legal-body h3 {
  font-size: 1.1rem;
  margin: 28px 0 8px;
}

.legal-body p, .legal-body li {
  color: #4A4A4A;
  font-size: 0.98rem;
  margin-bottom: 10px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.placeholder-inline {
  color: var(--warning);
  font-weight: 600;
}

.legal-body .placeholder {
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin: 16px 0;
  border: 1px dashed var(--primary);
}

.legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.legal-nav a {
  color: var(--gray);
}

.help-contact {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.help-contact h3 {
  margin-bottom: 8px;
}

.help-contact p {
  color: var(--gray);
  margin-bottom: 20px;
}

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

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

  .footer .container {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta .btn-store, .nav-cta .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .cta-banner {
    padding: 48px 24px;
  }
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .feature-card-inner {
    transition: none;
  }
}

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 24px;
}

.not-found-code {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(88px, 16vw, 140px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.not-found h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 12px;
}

.not-found p {
  color: var(--gray);
  max-width: 440px;
  margin: 0 0 32px;
}

.not-found-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.not-found-actions .btn {
  min-width: 180px;
  padding: 14px 28px;
}

.not-found .btn-outline {
  color: var(--primary);
  border: 2px solid var(--primary);
}

.not-found .btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary-dark);
}
