/* iDoWorker Landing — global tokens and base layout (paso 6 del spec).
   Los @media viven en responsive.css */

:root {
  --color-bg: #1b0b2b;
  --color-accent-p: #a93593;
  --color-accent-b: #4788ff;
  --color-text-muted: #adb2b1;
  --color-white: #ffffff;
  --color-card-bg: rgba(49, 29, 58, 0.37);
  --color-glass: rgba(255, 255, 255, 0.37);
  --radius-card: 32px;
  --radius-pill: 999px;
  --blur-glass: blur(37.5px);
  --font-main: "M PLUS 1", sans-serif;
  --ido-page-max: 1200px;
  --ido-page-padding: 1.25rem;
  --ido-section-gap: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Global type color/family — matches design spec (applies inside the landing only). */
body.ido-landing,
body.ido-landing h1,
body.ido-landing h2,
body.ido-landing h3,
body.ido-landing h4,
body.ido-landing h5,
body.ido-landing h6,
body.ido-landing p,
body.ido-landing span,
body.ido-landing li,
body.ido-landing button {
  font-family: var(--font-main);
  color: var(--color-white);
}

/* Main container background — multi-stop radial gradient per design spec. */
.ido-home__main__container {
  position: relative;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 150% 30% at 20% 2%, rgba(169, 53, 147, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse 101% 30% at 80% 30%, rgba(169, 53, 147, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 100% 30% at 15% 46%, rgba(169, 53, 147, 0.40) 0%, transparent 50%),
    radial-gradient(ellipse 100% 20% at 15% 55%, rgba(169, 53, 147, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 100% 20% at 50% 75%, rgba(169, 53, 147, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 112% 25% at 86% 98%, rgba(169, 53, 147, 0.35) 0%, transparent 50%);
  overflow: hidden;
}

/* Long decorative zigzag line running behind the whole page. */
.ido-worker__line {
  position: absolute;
  left: 1%;
  top: -1%;
  width: 100%;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

/* Generic centered wrapper reused by several sections (max-width set per section). */
.lp-wrap {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0 20px;
}

body.ido-landing img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.ido-landing a {
  color: #FFF;
  text-decoration: none;
}

body.ido-landing a:hover {
  text-decoration: underline;
}

.ido-home__main__container:focus {
  outline: none;
}

.ido-home__main__container:focus-visible {
  outline: 2px solid var(--color-accent-b);
  outline-offset: 4px;
}

.ido-home__main__container:target {
  outline: 2px solid var(--color-accent-b);
  outline-offset: 4px;
}

/* Utilidades BEM mínimas reutilizables por secciones */
.ido-landing__muted {
  color: var(--color-text-muted);
}

.ido-landing__heading {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.ido-landing__subheading {
  margin: 0;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Accesibilidad */
.visually-hidden,
.ido-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ido-skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-bg) !important;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.ido-skip-link:focus {
  outline: 2px solid var(--color-accent-b);
  outline-offset: 3px;
  transform: translateY(0);
}

body.ido-landing :focus-visible {
  outline: 2px solid var(--color-accent-b);
  outline-offset: 2px;
}

body.ido-landing :focus:not(:focus-visible) {
  outline: none;
}

body.ido-landing ::selection {
  background: rgba(71, 136, 255, 0.35);
  color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
