/* ================================================
   MARKENTLAND — Design System
   Paleta terracota / emprendedores MX
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

/* ── Variables ── */
:root {
  /* Terracota scale */
  --terra-50:  #FDF5EC;
  --terra-100: #FAE3C8;
  --terra-200: #F5C49A;
  --terra-300: #F0A46B;
  --terra-400: #E8793A;
  --terra-500: #C84B11;   /* brand primary */
  --terra-600: #A63A0C;
  --terra-700: #822D09;
  --terra-800: #5C1F06;
  --terra-900: #2D0F03;

  /* Neutrals warm */
  --cream:     #FDF5EC;
  --sand-100:  #F2E4D0;
  --sand-200:  #E4C9AA;
  --warm-900:  #1A0A00;
  --warm-800:  #2E1503;
  --warm-700:  #4A2508;

  /* Semantic */
  --color-primary:    var(--terra-500);
  --color-primary-h:  var(--terra-600);
  --color-accent:     var(--terra-300);
  --color-bg:         var(--cream);
  --color-surface:    #FFFFFF;
  --color-text:       var(--warm-900);
  --color-text-muted: #7A5C45;
  --color-border:     var(--sand-100);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  /* Spacing (8pt grid) */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  40px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(200,75,17,.08);
  --shadow-md: 0 8px 32px rgba(200,75,17,.12);
  --shadow-lg: 0 24px 64px rgba(200,75,17,.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --ease-in:  cubic-bezier(0.4,0,1,1);
  --dur-fast: 180ms;
  --dur-mid:  280ms;
  --dur-slow: 500ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography scale ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
}
.text-xl    { font-size: 1.25rem; }
.text-lg    { font-size: 1.125rem; }
.text-base  { font-size: 1rem; }
.text-sm    { font-size: .875rem; }
.text-xs    { font-size: .75rem; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
.section { padding: var(--sp-12) 0; }
.section--lg { padding: var(--sp-16) 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 48px;
}
.btn:focus-visible {
  outline: 3px solid var(--terra-300);
  outline-offset: 3px;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200,75,17,.35);
}
.btn-primary:hover {
  background: var(--color-primary-h);
  box-shadow: 0 8px 32px rgba(200,75,17,.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--terra-50);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 1.125rem; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ── Badge / chip ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-primary {
  background: var(--terra-100);
  color: var(--terra-700);
}
.badge-white {
  background: rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--sp-2) 0;
  transition: background var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.nav.scrolled {
  background: rgba(253,245,236,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--sand-100), var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav__links a {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--warm-800);
  transition: color var(--dur-fast);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
  border-radius: 2px;
}
.nav__links a:hover { color: var(--color-primary); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: var(--sp-2); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-800);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav__mobile a {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--warm-900);
  transition: color var(--dur-fast);
}
.nav__mobile a:hover { color: var(--color-primary); }
.nav__mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--warm-800);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: var(--sp-12);
}

/* Three.js canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle mesh background */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,75,17,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 5% 80%, rgba(240,164,107,.08) 0%, transparent 60%);
}

/* Decorative corner pattern */
.hero__dots {
  position: absolute;
  top: 100px; right: 60px;
  width: 220px; height: 220px;
  opacity: .12;
  background-image: radial-gradient(circle, var(--terra-600) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.hero__dots--bl {
  position: absolute;
  bottom: 60px; left: 40px;
  width: 140px; height: 140px;
  opacity: .08;
  background-image: radial-gradient(circle, var(--terra-500) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

/* Thin horizontal accent line */
.hero__line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,75,17,.12) 30%, rgba(200,75,17,.12) 70%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: var(--sp-3);
  max-width: 860px;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}
.hero__eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.hero__title { color: var(--warm-900); }
.hero__title em {
  font-style: normal;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 6px; left: -2px; right: -2px;
  height: 4px;
  background: linear-gradient(90deg, var(--terra-200), var(--terra-300));
  z-index: -1;
  border-radius: 2px;
}

/* Decorative divider below title */
.hero__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}
.hero__divider-line {
  flex: 1;
  height: 1px;
  background: var(--sand-200);
}
.hero__divider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: .5;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-1);
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}
.hero__trust-avatars {
  display: flex;
}
.hero__trust-avatars span {
  display: flex;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  background: var(--terra-300);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
  font-family: var(--font-display);
}
.hero__trust-avatars span:nth-child(2) { background: var(--terra-500); }
.hero__trust-avatars span:nth-child(3) { background: var(--terra-700); }

.hero__trust-text {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  padding-left: 14px;
  text-align: left;
}
.hero__trust-text strong {
  color: var(--warm-900);
  font-weight: 600;
}

/* hero is text-only — no mockup styles needed */

/* ================================================
   SOCIAL PROOF BAR
   ================================================ */
.proof-bar {
  background: var(--warm-900);
  padding: var(--sp-5) 0;
  overflow: hidden;
}
.proof-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--sp-6);
  border-right: 1px solid rgba(255,255,255,.1);
}
.proof-stat:last-child { border-right: none; }
.proof-stat__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--terra-300);
  line-height: 1;
}
.proof-stat__label {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  text-align: center;
}

/* ================================================
   FEATURES — CARD GRID
   ================================================ */
.features {
  background: var(--color-bg);
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand-200), transparent);
}

.section-header { text-align: center; margin-bottom: var(--sp-8); }
.section-header .badge { margin-bottom: var(--sp-2); }
.section-header p {
  max-width: 580px;
  margin: var(--sp-2) auto 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1.5px solid var(--color-border);
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
  border-radius: 0 0 2px 2px;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--terra-200);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card--featured {
  background: var(--warm-900);
  border-color: transparent;
  color: #fff;
}
.feature-card--featured .feature-card__title { color: #fff; }
.feature-card--featured .feature-card__desc { color: rgba(255,255,255,.7); }
.feature-card--featured::before { background: var(--terra-300); }

.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--terra-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.feature-card--featured .feature-card__icon {
  background: rgba(255,255,255,.1);
}
.feature-card__icon svg {
  width: 26px; height: 26px;
  color: var(--color-primary);
}
.feature-card--featured .feature-card__icon svg {
  color: var(--terra-300);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--warm-900);
  margin-bottom: var(--sp-1);
  line-height: 1.3;
}
.feature-card__desc {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-card__tag {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 700;
  background: var(--terra-100);
  color: var(--terra-700);
}
.feature-card--featured .feature-card__tag {
  background: rgba(255,255,255,.15);
  color: var(--terra-200);
}

/* ================================================
   HOW IT WORKS
   ================================================ */
.how {
  background: var(--terra-50);
  position: relative;
  overflow: hidden;
}
.how::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--terra-200);
  opacity: .25;
  pointer-events: none;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  position: relative;
  z-index: 1;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--terra-300), var(--terra-200));
  border-radius: 2px;
}

.how-step { text-align: center; padding: var(--sp-3); }
.how-step__num {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
  position: relative;
  box-shadow: 0 8px 24px rgba(200,75,17,.3);
}
.how-step:nth-child(2) .how-step__num { background: var(--terra-600); }
.how-step:nth-child(3) .how-step__num { background: var(--terra-800); }

.how-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--sp-1);
  color: var(--warm-900);
}
.how-step__desc {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ================================================
   DEEP FEATURES (alternating)
   ================================================ */
.deep-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--sand-100);
}
.deep-feature:last-child { border-bottom: none; }
.deep-feature--reverse { direction: rtl; }
.deep-feature--reverse > * { direction: ltr; }

.deep-feature__content { display: flex; flex-direction: column; gap: var(--sp-2); }
.deep-feature__title { color: var(--warm-900); }
.deep-feature__desc {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.deep-feature__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
}
.deep-feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.deep-feature__list li::before {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: var(--terra-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C84B11' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.deep-feature__visual {
  border-radius: var(--r-lg);
  background: var(--terra-50);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--sand-100);
  position: relative;
}

/* Feature visual illustrations (CSS-only) */
.visual-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px;
  width: 100%;
}
.visual-catalog__item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.visual-catalog__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--terra-100);
}
.visual-catalog__name {
  height: 10px;
  border-radius: 4px;
  background: var(--sand-200);
  width: 70%;
}
.visual-catalog__price {
  height: 10px;
  border-radius: 4px;
  background: var(--terra-300);
  width: 45%;
}

.visual-payments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  width: 100%;
}
.visual-payment {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.visual-payment__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--terra-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.visual-payment__name {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--warm-900);
}
.visual-payment__sub { font-size: .75rem; color: var(--color-text-muted); }
.visual-payment__toggle {
  margin-left: auto;
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--color-primary);
  position: relative;
}
.visual-payment__toggle::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
}
.visual-payment:nth-child(3) .visual-payment__toggle { background: var(--sand-200); }
.visual-payment:nth-child(3) .visual-payment__toggle::after { right: auto; left: 3px; }

.visual-tracking {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  width: 100%;
}
.track-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  position: relative;
}
.track-step::before {
  content: '';
  position: absolute;
  left: 19px; top: 38px;
  width: 2px;
  height: calc(100% - 18px);
  background: var(--sand-100);
}
.track-step:last-child::before { display: none; }
.track-step.done::before { background: var(--terra-300); }

.track-step__dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--color-text-muted);
  font-weight: 700;
}
.track-step.done .track-step__dot {
  background: var(--terra-100);
  color: var(--terra-600);
}
.track-step.active .track-step__dot {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--terra-100);
}

.track-step__content {}
.track-step__title {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--warm-900);
}
.track-step__sub { font-size: .75rem; color: var(--color-text-muted); margin-top: 2px; }

/* ================================================
   TESTIMONIALS / USE CASES
   ================================================ */
.usecases {
  background: var(--warm-900);
  position: relative;
  overflow: hidden;
}
.usecases::before {
  content: '';
  position: absolute;
  top: -300px; left: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: var(--terra-800);
  opacity: .4;
  pointer-events: none;
}

.usecases .section-header { position: relative; z-index: 1; }
.usecases .section-header p { color: rgba(255,255,255,.6); }

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}

.usecase-card {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  transition: background var(--dur-mid), border-color var(--dur-mid), transform var(--dur-mid) var(--ease-out);
}
.usecase-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-4px);
}

.usecase-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-2);
}

.usecase-card__quote {
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: var(--sp-2);
}
.usecase-card__name {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
}
.usecase-card__role {
  font-size: .8125rem;
  color: var(--terra-300);
  margin-top: 2px;
}
.usecase-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--sp-2);
}
.usecase-card__stars svg {
  width: 16px; height: 16px;
  fill: var(--terra-300);
  color: var(--terra-300);
}

/* ================================================
   CTA FINAL
   ================================================ */
.cta-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-section__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-section__title { color: #fff; margin-bottom: var(--sp-2); }
.cta-section__desc {
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}
.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--warm-800);
  padding: var(--sp-10) 0 var(--sp-5);
  color: rgba(255,255,255,.7);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--sp-5);
}

.footer__brand img { height: 48px; width: auto; }
.footer__brand p {
  margin-top: var(--sp-2);
  font-size: .875rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer__social {
  display: flex;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.footer__social a {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.footer__social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; }

.footer__col h4 {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-2);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: .875rem;
  transition: color var(--dur-fast);
}
.footer__col ul li a:hover { color: var(--terra-300); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: .8125rem;
}
.footer__bottom a { transition: color var(--dur-fast); }
.footer__bottom a:hover { color: var(--terra-300); }

/* ================================================
   ANIMATIONS on scroll
   ================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

/* ================================================
   NEWSLETTER FORM
   ================================================ */
.nl-form {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
  justify-content: center;
}
.nl-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--r-full);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-fast);
  min-height: 48px;
}
.nl-form input::placeholder { color: rgba(255,255,255,.55); }
.nl-form input:focus { border-color: rgba(255,255,255,.6); }
.nl-form .alert {
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  margin-top: var(--sp-1);
}
.nl-form .alert-success { background: rgba(74,222,128,.15); color: #4ade80; }
.nl-form .alert-error   { background: rgba(248,113,113,.15); color: #f87171; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: var(--sp-10) 0; }
  .section--lg { padding: var(--sp-12) 0; }

  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .deep-feature { grid-template-columns: 1fr; }
  .deep-feature--reverse { direction: ltr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .proof-bar__inner { flex-wrap: wrap; gap: var(--sp-4); }
  .proof-stat { border-right: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 16px 28px; font-size: 1rem; }
  .hero__trust { flex-direction: column; align-items: flex-start; }
  .nav__cta .btn { display: none; }
  .nav__cta .btn:first-child { display: inline-flex; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Notif Toast (admin-notifs.js) ────────────────── */
.notif-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #1C0A00;
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: 320px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s;
}
.notif-toast--in  { animation: toastIn .35s cubic-bezier(.34,1.56,.64,1); }
.notif-toast--out { opacity: 0; transform: translateY(16px); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-toast .fa-solid { color: #C84B11; font-size: 1rem; }
.notif-toast__btn {
  margin-left: 4px;
  padding: 4px 10px;
  background: #C84B11;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.notif-toast__close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 4px;
  margin-left: auto;
}

/* ── Nav badge ─────────────────────────────────────── */
.nav-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #C84B11;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  margin-left: auto;
}

/* ── WhatsApp button (pedidos.php) ──────────────── */
.ped-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #25D366;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  transition: background .15s;
}
.ped-wa-btn:hover { background: #1EBE5B; }
.ped-wa-btn .fa-brands { font-size: 1rem; }

/* ── Toggle switch (articulo_editar) ─────────────── */
.art-toggle-label { cursor: default; }
.art-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.art-toggle-title { font-size: .875rem; font-weight: 600; color: var(--warm-900); margin-bottom: 2px; }
.art-toggle-hint  { font-size: .78rem; color: var(--color-text-muted); }

.art-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.art-switch input { opacity: 0; width: 0; height: 0; }
.art-switch__track {
  position: absolute;
  inset: 0;
  background: #DDD6D0;
  border-radius: 999px;
  transition: background .2s;
  cursor: pointer;
}
.art-switch__track::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.art-switch input:checked + .art-switch__track { background: #C84B11; }
.art-switch input:checked + .art-switch__track::before { transform: translateX(18px); }
