/* Worth Moto Parts — landing estática
   Paleta y tipografías tomadas del tema "motos" del catálogo (moto-parts),
   degradé de marca rojo -> naranja -> ámbar, dark mode por defecto. */

:root {
  color-scheme: dark;

  --color-bg-primary: 10, 9, 8;
  --color-bg-secondary: 18, 16, 14;
  --color-bg-elevated: 28, 25, 22;

  --color-border: 46, 40, 36;
  --color-border-subtle: 32, 28, 25;

  --color-text-primary: 250, 248, 246;
  --color-text-secondary: 168, 160, 152;
  --color-text-muted: 120, 112, 104;

  --color-violet: 185, 28, 28;
  --color-blue: 234, 88, 12;
  --color-cyan: 249, 115, 22;
  --color-amber: 251, 191, 36;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Rajdhani', var(--font-sans);
  --font-display: 'Orbitron', var(--font-sans);

  --container-max: 1180px;
}

* {
  box-sizing: border-box;
}

/* El atributo [hidden] siempre debe ganar, incluso sobre reglas de display
   más específicas (ej. .nav-link, .btn) que se usan para mostrar/ocultar
   temporalmente bloques como el de redes sociales. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: rgb(var(--color-bg-primary));
  color: rgb(var(--color-text-primary));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(var(--color-blue), 0.4);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: rgb(var(--color-blue));
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Gradient helpers */
.text-gradient {
  background-image: linear-gradient(
    135deg,
    rgb(var(--color-violet)) 0%,
    rgb(var(--color-blue)) 50%,
    rgb(var(--color-cyan)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-brand-gradient {
  background-image: linear-gradient(
    135deg,
    rgb(var(--color-violet)) 0%,
    rgb(var(--color-blue)) 50%,
    rgb(var(--color-cyan)) 100%
  );
}

/* Top utility bar */
.top-bar {
  background: rgba(var(--color-bg-secondary), 0.7);
  border-bottom: 1px solid rgb(var(--color-border));
  font-size: 0.75rem;
  color: rgb(var(--color-text-muted));
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.top-bar .top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(var(--color-bg-primary), 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(var(--color-border));
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-lockup img {
  height: 32px;
  width: auto;
}
.logo-lockup .logo-text {
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
}
.logo-lockup .logo-text .accent {
  background-image: linear-gradient(
    135deg,
    rgb(var(--color-violet)) 0%,
    rgb(var(--color-blue)) 50%,
    rgb(var(--color-cyan)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-lockup .logo-text .rest {
  font-family: var(--font-heading);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a.nav-link {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(var(--color-text-secondary));
  text-decoration: none;
}
.header-nav a.nav-link:hover {
  color: rgb(var(--color-text-primary));
}

@media (min-width: 720px) {
  .header-nav a.nav-link {
    display: inline;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
}
.btn-primary {
  background-image: linear-gradient(
    135deg,
    rgb(var(--color-violet)) 0%,
    rgb(var(--color-blue)) 50%,
    rgb(var(--color-cyan)) 100%
  );
  color: #fff;
  box-shadow: 0 0 40px -10px rgba(var(--color-violet), 0.45);
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-outline {
  background: transparent;
  color: rgb(var(--color-text-primary));
  border-color: rgb(var(--color-border));
}
.btn-outline:hover {
  border-color: rgb(var(--color-cyan));
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgb(var(--color-border));
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--color-violet), 0.25) 0%, rgba(var(--color-bg-primary), 0) 60%),
    rgb(var(--color-bg-primary));
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--color-text-muted), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-text-muted), 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 20px 56px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-crest {
  height: 96px;
  width: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 32px rgba(var(--color-violet), 0.35));
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0 0 20px;
}
.hero p.subtitle {
  color: rgb(var(--color-text-secondary));
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Trust strip */
.trust-strip {
  border-bottom: 1px solid rgb(var(--color-border));
  background: rgba(var(--color-bg-secondary), 0.6);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.trust-item svg {
  flex-shrink: 0;
  color: rgb(var(--color-cyan));
}
.trust-item .label {
  margin: 0 0 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--color-text-primary));
}
.trust-item .desc {
  margin: 0;
  font-size: 0.75rem;
  color: rgb(var(--color-text-muted));
}

/* Section headings */
.section {
  padding: 64px 0;
}
.section-alt {
  background: rgba(var(--color-bg-secondary), 0.4);
  border-top: 1px solid rgb(var(--color-border));
  border-bottom: 1px solid rgb(var(--color-border));
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--color-cyan));
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 12px;
}
.section-head p {
  color: rgb(var(--color-text-secondary));
  font-size: 1rem;
  margin: 0;
}

/* Social / contact cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 960px) {
  .social-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px solid rgb(var(--color-border));
  background: rgb(var(--color-bg-elevated));
  text-decoration: none;
  color: rgb(var(--color-text-primary));
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.social-card:hover {
  border-color: rgb(var(--color-cyan));
  transform: translateY(-2px);
}
.social-card .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-image: linear-gradient(
    135deg,
    rgb(var(--color-violet)) 0%,
    rgb(var(--color-blue)) 50%,
    rgb(var(--color-cyan)) 100%
  );
  color: #fff;
}
.social-card .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}
.social-card .handle {
  font-size: 0.75rem;
  color: rgb(var(--color-text-muted));
  word-break: break-word;
}

/* About pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pillar {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgb(var(--color-border));
  background: rgb(var(--color-bg-elevated));
}
.pillar .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--color-violet), 0.12);
  color: rgb(var(--color-cyan));
  margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.pillar p {
  font-size: 0.9rem;
  color: rgb(var(--color-text-secondary));
  margin: 0;
}

/* CTA band */
.cta-band {
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 12px;
}
.cta-band p {
  color: rgb(var(--color-text-secondary));
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgb(var(--color-border));
  background: rgb(var(--color-bg-secondary));
  padding: 48px 0 24px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 720px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-brand .logo-lockup {
  margin-bottom: 10px;
}
.footer-brand p {
  color: rgb(var(--color-text-secondary));
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgb(var(--color-border));
  color: rgb(var(--color-text-secondary));
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover {
  border-color: rgb(var(--color-cyan));
  color: rgb(var(--color-cyan));
}
.footer-bottom {
  border-top: 1px solid rgb(var(--color-border));
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: rgb(var(--color-text-muted));
}
@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-bottom a {
  color: rgb(var(--color-text-secondary));
  text-decoration: none;
}
.footer-bottom a:hover {
  color: rgb(var(--color-cyan));
}
