/* =========================================================
   Cross Maniacs – Hoja de estilos principal
   Estructura:
   1. Variables & reset
   2. Layout base
   3. Header & navegación
   4. Hero
   5. Secciones genéricas
   6. Botones
   7. Footer
   8. Utilidades / responsive
   ========================================================= */

/* ========== 1. VARIABLES & RESET ========== */

:root {
  --cm-bg-dark: #050608;
  --cm-bg-darker: #020305;
  --cm-surface: #101216;
  --cm-accent: #1b7a46;
  --cm-accent-soft: #249a59;
  --cm-text-main: #f5f5f5;
  --cm-text-muted: #a9afb9;
  --cm-border-subtle: #272b33;
  --cm-radius-lg: 16px;
  --cm-radius-md: 10px;
  --cm-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.65);
  --cm-container-width: 1140px;
  --cm-header-height: 64px;
  --cm-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

/* ========== 2. LAYOUT BASE ========== */

.cm-body {
  font-family: var(--cm-font-main);
  background-color: var(--cm-bg-dark);
  color: var(--cm-text-main);
  min-height: 100vh;
}

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

/* ========== 3. HEADER & NAVEGACIÓN ========== */

.cm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cm-header-height);
  background: linear-gradient(
    to bottom,
    rgba(3, 3, 3, 0.92),
    rgba(3, 3, 3, 0.6),
    transparent
  );
  backdrop-filter: blur(14px);
  z-index: 20;
}

.cm-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.cm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cm-text-main);
}

.cm-logo__icon {
  width: 64px;      /* súbelo o bájalo según lo veas: 32–48 va bien */
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.cm-logo__text {
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.05;
  color: #d6d6d6;   /* un poco más gris, menos blanco puro */
}

.cm-logo__text span {
  display: block;
}

.cm-logo__text span {
  display: block;
}

/* Navegación */

.cm-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.cm-nav__link {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cm-text-muted);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  opacity: 0.9;
}

.cm-nav__link:hover {
  color: var(--cm-text-main);
  opacity: 1;
}

.cm-nav__link--active {
  color: var(--cm-text-main);
  border-color: var(--cm-accent);
}

/* ========== 4. HERO ========== */

.cm-hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--cm-header-height);
  display: flex;
  align-items: stretch;
  color: var(--cm-text-main);
}

/* Fondo con imagen + overlay oscuro */
.cm-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55)),
    url("../img/web_bg.png") center center / cover no-repeat;
  z-index: -2;
}

.cm-hero__overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(255, 255, 255, 0.06),
    transparent 38%
  );
  mix-blend-mode: soft-light;
  z-index: -1;
}

.cm-hero__content {
  display: flex;
  align-items: center;
  padding: 80px 0 96px;
}

.cm-hero__copy {
  max-width: 640px;
}

.cm-hero__title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.cm-hero__subtitle {
  margin: 0 0 26px;
  font-size: 0.98rem;
  color: var(--cm-text-muted);
  max-width: 420px;
}

.cm-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cm-hero__note {
  font-size: 0.82rem;
  color: var(--cm-text-muted);
  max-width: 260px;
  margin: 0;
}

/* ========== 5. SECCIONES GENÉRICAS ========== */

.cm-section {
  padding: 72px 0;
  background-color: var(--cm-bg-dark);
  border-top: 1px solid var(--cm-border-subtle);
}

.cm-section--dark {
  background-color: var(--cm-bg-darker);
}

.cm-section__title {
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.cm-section__lead {
  font-size: 0.98rem;
  color: var(--cm-text-muted);
  max-width: 560px;
}

/* ========== 6. BOTONES ========== */

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, opacity 0.15s ease;
}

.cm-btn--primary {
  background: var(--cm-accent);
  color: #ffffff;
  box-shadow: var(--cm-shadow-soft);
}

.cm-btn--primary:hover {
  background: var(--cm-accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85);
}

/* ========== 7. FOOTER ========== */

.cm-footer {
  border-top: 1px solid var(--cm-border-subtle);
  background-color: #040506;
  color: var(--cm-text-muted);
  padding: 18px 0;
}

.cm-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.cm-footer__secondary {
  opacity: 0.85;
}

/* ========== 8. UTILIDADES / RESPONSIVE ========== */

@media (max-width: 860px) {
  .cm-nav {
    display: none; /* luego si quieres montamos un menú hamburguesa */
  }

  .cm-hero__content {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .cm-hero__title {
    font-size: 2rem;
  }

  .cm-hero__subtitle {
    max-width: none;
  }

  .cm-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

