/* Xmart Display — commercial landing
   Hand-written stylesheet. Design tokens first, then layout, then components. */

:root {
  --bg-0: #0a0a0f;
  --bg-1: #0d0d16;
  --bg-2: #08080c;
  --surface: #14151a;
  --surface-raised: #17181f;
  --border: #1e1e28;
  --border-strong: #2a2a38;
  --primary: #00bb84;
  --primary-hover: #00966a;
  --accent: #26c99a;
  --amber: #f59e0b;
  --on-primary: #051310;
  --text: #ffffff;
  --text-1: #d6d3d1;
  --text-2: #a8a29e;
  --text-3: #78716c;
  --text-muted: #8a857e; /* AA on dark: ~5:1 — used on decorative text */
  --glow: 0 0 20px rgba(0, 187, 132, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --maxw-narrow: 860px;
  --font: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(0, 187, 132, 0.14), transparent 65%),
    radial-gradient(700px 480px at 5% 15%, rgba(38, 201, 154, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow {
  max-width: var(--maxw-narrow);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
  color: var(--on-primary);
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-sm {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 0.925rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 24px rgba(0, 187, 132, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(20, 21, 26, 0.7);
  border-color: var(--border-strong);
  color: var(--text-1);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: var(--glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-1);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(0, 187, 132, 0.08);
}

/* Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Sticky header must not cover anchor targets (#beneficios, skip link, …) */
[id] {
  scroll-margin-top: 5rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text);
}

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

.brand-logo {
  height: 30px;
  width: auto;
}

.brand-name {
  font-size: 1.075rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  flex: 1 1 100%;
  order: 3;
}

.site-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  color: var(--text-2);
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta {
  margin-left: auto;
}

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(0, 187, 132, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(0, 187, 132, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.text-accent {
  color: var(--accent);
}

.hero-sub {
  max-width: 640px;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: var(--text-2);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero-points {
  list-style: none;
  margin: 0 0 2.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-2);
  font-size: 0.925rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0, 187, 132, 0.7);
}

/* Decorative screen wall */

.hero-visual {
  position: relative;
}

.screen-status {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
  color: var(--text-2);
  font-size: 0.875rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0, 187, 132, 0.8);
}

/* Sections ------------------------------------------------------------ */

.section {
  padding-block: 4rem;
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-intro {
  max-width: 780px;
  font-size: 1.06rem;
  color: var(--text-1);
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(0, 187, 132, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--glow), var(--shadow-card);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(0, 187, 132, 0.1);
  border: 1px solid rgba(0, 187, 132, 0.28);
  color: var(--accent);
}

/* Qué es split */

.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.split-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 21, 26, 0.65);
}

.split-item h3 {
  font-size: 1.075rem;
}

.split-item p {
  margin: 0;
  font-size: 0.96rem;
}

/* Steps --------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent 75%);
}

.step-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 187, 132, 0.75);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  font-size: 0.96rem;
}

/* Pricing ------------------------------------------------------------- */

.grid-plans {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-head {
  margin-bottom: 1.35rem;
}

.plan-name {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.plan-desc {
  color: var(--text-2);
  font-size: 0.93rem;
  margin: 0;
}

.plan-prices {
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px dashed var(--border-strong);
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin: 0;
}

.plan-price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.plan-price-unit {
  color: var(--text-2);
  font-size: 0.9rem;
}

.plan-price-label {
  margin: 0.2rem 0 0.9rem;
  color: var(--text-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-price-annual .plan-price-amount {
  color: var(--accent);
}

.badge-save {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.95rem;
  color: var(--text-1);
}

.plan-features li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.feat-yes::before {
  content: "✓";
  background: rgba(0, 187, 132, 0.16);
  color: var(--accent);
  border: 1px solid rgba(0, 187, 132, 0.45);
}

.feat-no {
  color: var(--text-muted);
}

.feat-no::before {
  content: "–";
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
}

.plan-cta {
  width: 100%;
}

.plan-featured {
  border-color: rgba(0, 187, 132, 0.55);
  box-shadow: var(--glow), var(--shadow-card);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-note {
  margin: 2rem auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* FAQ ----------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(20, 21, 26, 0.75);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(0, 187, 132, 0.45);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 1rem 3rem 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}

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

.faq-item summary h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover h3 {
  color: var(--accent);
}

.faq-answer {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-2);
  font-size: 0.97rem;
}

/* CTA band ------------------------------------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 187, 132, 0.4);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(0, 187, 132, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: var(--glow);
}

.cta-band .eyebrow {
  margin-inline: auto;
}

.cta-intro {
  margin-inline: auto;
}

.cta-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 8, 12, 0.75);
  padding-block: 2.75rem 1.75rem;
}

.footer-inner {
  display: grid;
  gap: 2.25rem 2rem;
  grid-template-columns: 1fr;
  align-items: start;
  padding-bottom: 2rem;
}

.footer-title {
  margin: 0 0 0.35rem;
  color: var(--text-1);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-tagline {
  margin: 0.85rem 0 0;
  max-width: 340px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  color: var(--text-2);
  font-size: 0.93rem;
}

.footer-nav ul {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  color: var(--text-2);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Páginas legales ----------------------------------------------------- */

.legal {
  max-width: 760px;
  padding-block: 1.25rem 3rem;
}

.legal h2 {
  margin: 2.1rem 0 0.6rem;
  color: var(--text-1);
  font-size: 1.12rem;
}

.legal p {
  margin: 0 0 1rem;
  color: var(--text-2);
  line-height: 1.7;
}

.legal-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text-2);
  line-height: 1.7;
}

.legal-list li {
  margin-bottom: 0.4rem;
}

.legal .legal-updated {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive ---------------------------------------------------------- */

@media (min-width: 640px) {
  .grid-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .site-nav {
    flex: 1 1 auto;
    order: 0;
    display: flex;
    justify-content: center;
  }

  .site-nav ul {
    flex-wrap: nowrap;
  }

  .hero {
    padding-block: 5.5rem 6rem;
  }

  .section {
    padding-block: 5rem;
  }

  .cta-band {
    padding: 3.5rem 3rem;
  }

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

  .plan-featured {
    transform: translateY(-8px);
  }

  .plan-featured:hover {
    transform: translateY(-11px);
  }
}

@media (min-width: 1024px) {
  .grid-benefits,
  .grid-sectors {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .header-inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cookie consent ------------------------------------------------------ */

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: var(--maxw-narrow);
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  animation: consent-enter 0.25s ease-out;
}

.consent-text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--text-1);
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-text a {
  color: var(--accent);
  text-decoration: underline;
}

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

.consent-actions {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

/* Both choices share identical weight on purpose: refusing must be as easy as
   accepting, so neither button is styled as the preferred one. */
.consent-btn {
  min-width: 7.5rem;
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-1);
}

.consent-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
}

.consent-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes consent-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .consent-actions {
    margin-left: 0;
  }

  .consent-btn {
    flex: 1 1 0;
  }
}

.footer-legal .footer-consent {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
}

.footer-legal .footer-consent:hover {
  color: var(--accent);
}
