/* MotorScoring · landing «Muy pronto». Sin JavaScript, sin rastreadores, fuentes propias. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --accent: #5c8ebc;
  --accent-hover: #7fb0dc;
  --accent-light: #8fb8de;
  --text: #fafafa;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --font-body: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat Variable", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 16px;
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Saltar al contenido */
.skip {
  position: absolute;
  top: -4rem;
  left: 16px;
  z-index: 50;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Barra superior, sobre la foto */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.topbar__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.45);
  color: #e4e4e7;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.topbar__ig:hover {
  border-color: var(--accent-light);
  color: var(--text);
}

/* Héroe: en el celular la foto es una franja que se funde con la página */
.hero {
  position: relative;
  isolation: isolate;
}

.hero__media {
  position: relative;
  height: clamp(15rem, 68vw, 26rem);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0) 32%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.55) 35%, rgba(5, 5, 5, 0) 70%);
}

.hero__content {
  position: relative;
  margin-top: -3.5rem;
  padding-bottom: 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--plain {
  padding: 0;
  border: 0;
  background: none;
}

.dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent-light);
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-light);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5.2vw + 1rem, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
}

.hero h1 strong {
  display: inline-block;
  font-weight: inherit;
  background: linear-gradient(90deg, var(--accent-light), #c9dcef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.hint {
  color: var(--muted);
  font-size: 0.875rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.button:hover {
  background: var(--accent-hover);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(5, 5, 5, 0.3);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--accent-light);
  background: rgba(143, 184, 222, 0.08);
}

/* Lo que viene */
.coming {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
}

.coming h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  font-weight: 700;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.icon--card {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  border-radius: 0.75rem;
  background: rgba(92, 142, 188, 0.14);
  color: var(--accent-light);
}

.card h3 {
  margin-top: 1.125rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Talleres */
.workshops {
  padding-bottom: 4rem;
}

.workshops__box {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(92, 142, 188, 0.4);
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(92, 142, 188, 0.2) 0%, rgba(92, 142, 188, 0) 60%),
    var(--surface);
}

.icon--band {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.8rem;
  border-radius: 999px;
  background: rgba(92, 142, 188, 0.2);
  color: var(--accent-light);
}

.workshops h2 {
  margin-top: 0.375rem;
  font-size: clamp(1.375rem, 1.2vw + 1rem, 1.75rem);
  font-weight: 700;
}

.workshops__box p:not(.eyebrow) {
  max-width: 42rem;
  margin-top: 0.5rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.workshops .button {
  justify-self: start;
}

/* Pie */
.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.75rem;
}

.footer a {
  text-underline-offset: 3px;
}

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

/* Entrada suave del héroe */
.hero__content > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__content > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero__content > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero__content > :nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@media (max-width: 374px) {
  .topbar__ig span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .topbar__ig {
    width: 2.75rem;
    justify-content: center;
    padding: 0;
  }
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 24px;
  }

  .skip {
    left: 24px;
  }

  .lead {
    font-size: 1.1875rem;
  }

  .workshops__box {
    padding: 2rem;
  }
}

/* Escritorio: la foto ocupa todo el héroe y el texto va sobre su lado oscuro */
@media (min-width: 900px) {
  .wrap {
    padding-inline: 32px;
  }

  .skip {
    left: 32px;
  }

  .hero {
    display: flex;
    align-items: center;
    min-height: min(100svh, 46rem);
  }

  .hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: auto;
  }

  .hero__media img {
    object-position: 70% center;
  }

  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.88) 38%, rgba(5, 5, 5, 0.55) 58%, rgba(5, 5, 5, 0.12) 82%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0) 22%),
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0) 28%);
  }

  .hero__content {
    margin-top: 0;
    padding-block: 7rem 4rem;
  }

  .hero__content > * {
    max-width: 40rem;
  }

  .coming {
    padding-block: 3rem 5rem;
    border-top: 0;
  }

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

  .card {
    padding: 1.75rem;
  }

  .workshops {
    padding-bottom: 5.5rem;
  }

  .workshops__box {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
  }

  .workshops .button {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
