/* MercaDesk Marketing — Design v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --c-primary:    #4f46e5;
  --c-primary-d:  #3730a3;
  --c-primary-l:  #818cf8;
  --c-violet:     #7c3aed;
  --c-cyan:       #06b6d4;
  --c-green:      #10b981;
  --c-amber:      #f59e0b;
  --c-red:        #ef4444;
  --c-dark:       #0f172a;
  --c-dark2:      #1e293b;
  --c-slate:      #334155;
  --c-gray:       #64748b;
  --c-border:     #e2e8f0;
  --c-surface:    #f8fafc;
  --c-white:      #ffffff;
  --r-sm:   0.5rem;
  --r-md:   0.875rem;
  --r-lg:   1.25rem;
  --r-xl:   1.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.09), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.13);
  --shadow-glow: 0 8px 32px rgba(79,70,229,.25);
}

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--c-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Navbar ───────────────────────────────────────── */
.md-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

.md-nav {
  padding: 1.1rem 0;
  transition: padding .3s;
}

.md-header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--c-border);
}

.md-header.scrolled .md-nav { padding: .7rem 0; }

.hero-dark .md-header:not(.scrolled) .nav-link,
.hero-dark .md-header:not(.scrolled) .navbar-brand {
  color: rgba(255,255,255,.88) !important;
}

/* Logo: versión clara sobre el hero oscuro, oscura en el resto */
.brand-logo { height: 36px; width: auto; display: block; }
.brand-logo-light { display: none; }
.hero-dark .md-header:not(.scrolled) .brand-logo-dark { display: none; }
.hero-dark .md-header:not(.scrolled) .brand-logo-light { display: block; }

/* Barra de idiomas (arriba del todo, horizontal) */
.md-langbar {
  font-size: .75rem;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.md-langbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .15rem 1rem;
  list-style: none;
  margin: 0;
  padding: .35rem 0;
}
.md-langbar a {
  color: var(--c-gray);
  text-decoration: none;
  font-weight: 500;
  padding: .1rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.md-langbar a:hover,
.md-langbar a:focus-visible { color: var(--c-primary); }
.md-langbar a.active {
  color: var(--c-primary);
  font-weight: 700;
  border-bottom-color: var(--c-primary);
}
.hero-dark .md-header:not(.scrolled) .md-langbar {
  background: rgba(15,23,42,.55);
  border-color: rgba(255,255,255,.08);
}
.hero-dark .md-header:not(.scrolled) .md-langbar a { color: rgba(255,255,255,.65); }
.hero-dark .md-header:not(.scrolled) .md-langbar a:hover,
.hero-dark .md-header:not(.scrolled) .md-langbar a.active { color: #fff; border-bottom-color: var(--c-primary-l); }

/* Las páginas sin hero oscuro empiezan debajo de la cabecera fija */
body:not(.hero-dark) { padding-top: 6.5rem; }

.hero-dark .md-header:not(.scrolled) .navbar-toggler { color: rgba(255,255,255,.88); }

@media (max-width: 575.98px) {
  .md-langbar-list { justify-content: center; gap: .15rem .75rem; }
  /* g-5 (3rem) supera el margen del contenedor y provoca scroll horizontal en móvil */
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--c-dark);
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  letter-spacing: -.02em;
}

.navbar-brand .brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.nav-link {
  color: var(--c-slate) !important;
  font-weight: 500;
  font-size: .875rem;
  padding: .4rem .75rem !important;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}

.nav-link:hover {
  color: var(--c-primary) !important;
  background: rgba(79,70,229,.07);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-violet) 100%);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 12px 36px rgba(79,70,229,.35);
  transform: translateY(-1px);
  color: #fff;
  border: none;
}

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

.btn-outline-primary:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-light {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

.btn-white {
  background: #fff;
  border: none;
  color: var(--c-primary);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #f0eeff;
  color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

/* ── Typography helpers ───────────────────────────── */
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.display-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--c-dark);
}

.display-headline-white {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #fff;
}

.section-headline {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-violet) 50%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ─────────────────────────────────────────── */
.hero-section {
  background: var(--c-dark);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(79,70,229,.35) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: 5%;
  width: 50%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(6,182,212,.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 2rem;
  padding: .35rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 6px var(--c-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-lead {
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
}

/* ── Mock Dashboard ───────────────────────────────── */
.app-mockup {
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  z-index: 2;
}

.mockup-header {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.traffic-lights { display: flex; gap: 6px; }

.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl-r { background: #ff5f57; }
.tl-y { background: #ffbd2e; }
.tl-g { background: #28c840; }

.mockup-url {
  flex: 1;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: .3rem .75rem;
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  font-family: monospace;
}

.mockup-body { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }

.mockup-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .25rem;
}

.mockup-page-title { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.8); }

.mockup-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700; color: #fff;
}

.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }

.ms-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .7rem;
}

.ms-label { font-size: .6rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .06em; }
.ms-val { font-size: 1.05rem; font-weight: 700; color: #fff; margin: .15rem 0; }
.ms-change { font-size: .6rem; font-weight: 600; }
.ms-up { color: var(--c-green); }
.ms-down { color: var(--c-red); }

.mockup-chart-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .75rem;
}

.chart-title { font-size: .65rem; color: rgba(255,255,255,.45); margin-bottom: .6rem; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
}

.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(79,70,229,.35);
}

.bar.active { background: linear-gradient(to top, var(--c-primary), var(--c-primary-l)); }

.mockup-rows { display: flex; flex-direction: column; gap: .35rem; }

.mockup-row {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 7px;
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.row-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; flex-shrink: 0;
}

.row-text { flex: 1; }
.row-name { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.75); }
.row-sub  { font-size: .6rem; color: rgba(255,255,255,.35); }

.row-amount { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.8); }

.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── Section spacing ──────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 7rem 0; }

/* ── Feature cards ────────────────────────────────── */
.feature-card {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  height: 100%;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.feature-card:hover {
  border-color: var(--c-primary-l);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79,70,229,.1);
}

.feature-icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: .5rem;
}

.feature-desc {
  font-size: .875rem;
  color: var(--c-gray);
  line-height: 1.65;
  margin: 0;
}

/* ── Steps / How it works ────────────────────────── */
.step-wrap { position: relative; }

.step-connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--c-primary-l), transparent);
}

.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(79,70,229,.28);
}

/* ── Testimonials ─────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  height: 100%;
  transition: box-shadow .25s;
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.stars { color: var(--c-amber); font-size: .85rem; letter-spacing: .1em; }

.t-quote { font-size: .9rem; color: var(--c-slate); line-height: 1.7; margin: 1rem 0; }

.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .8rem; flex-shrink: 0;
}

.t-name { font-size: .875rem; font-weight: 700; color: var(--c-dark); }
.t-role { font-size: .78rem; color: var(--c-gray); }

/* ── Pricing ──────────────────────────────────────── */
.pricing-card {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative;
  transition: all .25s;
  height: 100%;
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--c-primary);
  background: linear-gradient(150deg, #fdfcff 0%, #f0eeff 100%);
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(79,70,229,.18);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.plan-name {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-gray);
  margin-bottom: .75rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--c-dark);
  line-height: 1;
}

.plan-period { font-size: .875rem; font-weight: 500; color: var(--c-gray); }
.plan-desc { font-size: .875rem; color: var(--c-gray); margin: .75rem 0 1.5rem; }

.plan-feature {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .875rem;
  color: var(--c-dark2);
  padding: .35rem 0;
}

.plan-feature .ci { color: var(--c-green); flex-shrink: 0; font-size: .9rem; }
.plan-feature .cx { color: #cbd5e1; flex-shrink: 0; font-size: .9rem; }
.plan-feature.dimmed { color: #94a3b8; }

/* ── Social strip ─────────────────────────────────── */
.social-strip {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 1.25rem 0;
}

/* ── Stats ────────────────────────────────────────── */
.stat-val {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--c-dark);
  line-height: 1;
}

.stat-lbl { font-size: .8rem; color: var(--c-gray); font-weight: 500; margin-top: .25rem; }

/* ── CTA dark ─────────────────────────────────────── */
.cta-dark {
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
}

.cta-dark::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -5%;
  width: 55%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(79,70,229,.3) 0%, transparent 60%);
}

.cta-dark::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: 0;
  width: 40%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(6,182,212,.15) 0%, transparent 60%);
}

/* ── Footer ───────────────────────────────────────── */
.md-footer {
  background: var(--c-dark);
  padding: 4rem 0 2rem;
}

.footer-brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -.02em;
}

.footer-brand-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
}

.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: .5rem; }
.footer-heading { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 1rem; }

.footer-link {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  padding: .2rem 0;
  transition: color .15s;
}

.footer-link:hover { color: rgba(255,255,255,.9); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2.5rem 0 1.5rem; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ── Cookie banner ────────────────────────────────── */
#cookieBanner {
  background: rgba(15,23,42,.95);
  border-top: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
}

/* ── Fade-up animation ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }
.fade-up-delay-4 { transition-delay: .4s; }
.fade-up-delay-5 { transition-delay: .5s; }

/* ── Divider dot ──────────────────────────────────── */
.dot-divider {
  display: flex; gap: .5rem; justify-content: center; align-items: center;
  padding: 1.5rem 0;
}

.dot-divider span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-border);
}

.dot-divider span:nth-child(2) { background: var(--c-primary-l); transform: scale(1.4); }

/* ── Logo grid ────────────────────────────────────── */
.logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.logo-item {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(0,0,0,.25);
  letter-spacing: .05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.logo-item i { font-size: 1rem; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 1.25rem 0;
}

.accordion-button {
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-dark);
  background: transparent !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) { color: var(--c-primary); }
.accordion-body { color: var(--c-gray); font-size: .875rem; line-height: 1.7; }

/* ── Responsive tweaks ────────────────────────────── */
@media (max-width: 768px) {
  .pricing-card.featured { transform: none; }
  .hero-section { padding: 8.5rem 0 4rem; }
  .section-lg { padding: 4rem 0; }
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible { color: #fff; transform: scale(1.08); box-shadow: 0 8px 26px rgba(0,0,0,.28); }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { transition: none; } }
