:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1c1c21;
  --border: #26262c;
  --text: #f5f5f7;
  --muted: #8a8a93;
  --muted-2: #57575f;
  --green: #1adbbb;
  --blue: #3095ef;
  --pink: #f13c69;
  --orange: #fd9276;
  --violet: #8b5cf6;
  --grad: linear-gradient(90deg, var(--green), var(--blue), var(--pink), var(--orange));
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(48, 149, 239, 0.08), transparent 18%),
    radial-gradient(circle at top right, rgba(241, 60, 105, 0.08), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== FOCO POR TECLADO ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.menu-toggle:focus-visible {
  border-radius: 6px;
}

.container-shell {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, 0.76);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.brand-word {
  font-size: clamp(1.8rem, 5vw, 5rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}

.brand-line,
.service-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
  width: 100%;
}

.brand-line span,
.service-line span {
  height: 7px;
  border-radius: 2px;
}

.line-green { background: var(--green); }
.line-blue { background: var(--blue); }
.line-pink { background: var(--pink); }
.line-orange { background: var(--orange); }

/* ===== MENÚ ===== */
.menu {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

.menu a:hover,
.footer-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 160ms ease;
}

.desktop-only {
  display: inline-flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 160ms ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-outline,
.btn-secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--muted-2);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-block: 72px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
}

.subtitle {
  margin-top: 18px;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.coverage {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel,
.service-card,
.diff-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.88), rgba(20, 20, 23, 0.94));
}

.hero-panel {
  padding: 20px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.panel-topbar,
.panel-stats,
.status-list,
.diff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-topbar {
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-tag,
.panel-badge,
.mini-card span,
.status-list span,
.diff-row span,
.footer-contact,
.footer-copy,
.stats-grid p {
  color: var(--muted);
}

.panel-badge {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 10px;
  background: var(--surface);
  font-size: 0.74rem;
}

.panel-stats {
  gap: 12px;
  margin-top: 16px;
}

.mini-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.mini-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.7rem;
}

.mini-card.full {
  margin-top: 16px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.status-list {
  margin-top: 14px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-list div,
.diff-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.status-list div:last-child,
.diff-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-block: 28px;
}

.stats-grid strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-block {
  padding-block: 72px;
}

.section-header h2,
.cta-block h2,
.diff-grid h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.services-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.service-card {
  --accent: var(--blue);
  padding: 18px 16px 20px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 255px;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.service-card.shops { --accent: var(--green); }
.service-card.maintain { --accent: var(--blue); }
.service-card.assist { --accent: var(--pink); }
.service-card.connect { --accent: var(--orange); }
.service-card.cloud { --accent: var(--violet); }

.service-line {
  margin-bottom: 16px;
  opacity: 0.95;
}

.service-card:nth-child(5n) {
  border-right: 0;
}

.service-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 6px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-title {
  margin: 12px 0 10px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.service-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: auto;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shops-icon {
  background: linear-gradient(135deg, #ff8f1f, #ee6a00);
  border-color: rgba(255, 143, 31, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(238, 106, 0, 0.18);
}

.maintain-icon {
  background: linear-gradient(135deg, #2e88ff, #0d5fe6);
  border-color: rgba(46, 136, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(13, 95, 230, 0.18);
}

.assist-icon {
  background: linear-gradient(135deg, #ff5ea8, #eb3d99);
  border-color: rgba(255, 94, 168, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(235, 61, 153, 0.18);
}

.connect-icon {
  background: linear-gradient(135deg, #ff9e3d, #ff7b00);
  border-color: rgba(255, 158, 61, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(255, 123, 0, 0.18);
}

.cloud-icon {
  background: linear-gradient(135deg, #8d73ff, #6e5ae7);
  border-color: rgba(141, 115, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(110, 90, 231, 0.18);
}

.service-title {
  color: var(--accent);
}

.accent-green { background: color-mix(in srgb, var(--green) 35%, var(--surface)); }
.accent-blue { background: color-mix(in srgb, var(--blue) 35%, var(--surface)); }
.accent-pink { background: color-mix(in srgb, var(--pink) 35%, var(--surface)); }
.accent-orange { background: color-mix(in srgb, var(--orange) 35%, var(--surface)); }
.accent-violet { background: color-mix(in srgb, var(--violet) 35%, var(--surface)); }

.process-list {
  margin-top: 28px;
  display: grid;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.step-number {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.process-step h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.process-step p,
.diff-grid p,
.cta-block p {
  margin: 0;
  color: var(--muted);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.diff-card {
  border-radius: 10px;
  padding: 18px;
}

.diff-row {
  padding: 12px 0;
}

.before {
  color: var(--pink);
}

.after {
  color: var(--green);
}

.cta-block {
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-footer {
  padding-block: 20px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
}

.footer-copy {
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
}

.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: -120%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 14%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}



/* ===== CARRUSEL DE MARCAS ===== */
.brands-section {
  overflow: hidden;
}

.brands-header {
  margin-bottom: 28px;
}

.brands-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 14px;
  animation: brands-scroll 28s linear infinite;
  will-change: transform;
}

.brands-carousel:hover .brands-track {
  animation-play-state: paused;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 72px;
  padding: 0 24px;
  border: 1px solid var(--border);
  background: rgba(19, 19, 22, 0.72);
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
  user-select: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.brand-item:hover {
  color: var(--text);
  border-color: var(--muted-2);
  background: var(--surface-2);
}

@keyframes brands-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@media (max-width: 768px) {
  .brand-item {
    min-width: 126px;
    height: 62px;
    padding-inline: 18px;
    font-size: 1rem;
  }

  .brands-track {
    gap: 10px;
    animation-duration: 24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-carousel {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .brands-track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 768px) {
  .container-shell {
    padding-inline: 20px;
  }

  .header-row {
    padding-block: 12px;
  }

  .hero-grid,
  .diff-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 40px;
  }

  .hero-panel {
    display: none;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 32px;
    gap: 16px;
  }

  .menu.is-open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

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

  .service-card,
  .service-card:nth-child(2n) {
    border-right: 0;
  }

  .process-step {
    grid-template-columns: 56px 1fr;
  }

  .stats-grid {
    padding-block: 40px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (pointer: coarse) {
  .spotlight::before {
    display: none;
  }

  .site-header {
    backdrop-filter: blur(6px);
  }
}
