/*
 * Landing de Workia. La identidad "Lagoon" sale de workia-fe/src/styles/tokens.css: mismos colores y tipografia.
 * Las ternas son "R G B" para poder usar rgb(var(--x) / .5).
 */
:root {
  --primary-50: 239 251 250;
  --primary-100: 211 244 241;
  --primary-200: 168 232 227;
  --primary-300: 112 213 207;
  --primary-400: 59 189 184;
  --primary-500: 31 161 159;
  --primary-600: 20 130 132;
  --primary-700: 16 103 105;
  --primary-800: 15 82 84;
  --primary-900: 14 66 68;

  --success-100: 220 252 231;
  --success-700: 21 128 61;
  --warning-100: 254 243 199;
  --warning-800: 146 64 14;
  --danger-100: 254 226 226;
  --danger-700: 185 28 28;

  --bg: 248 250 251;
  --surface: 255 255 255;
  --sunken: 241 245 247;
  --line: 220 228 233;
  --ink: 11 27 43;
  --ink-muted: 74 91 108;
  --action: 16 103 105;
  --action-hover: 15 82 84;
  --on-action: 255 255 255;
  --link: 16 103 105;
  --hero-from: 239 251 250;
  --hero-to: 248 250 251;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(11 27 43 / 0.06), 0 8px 24px rgb(11 27 43 / 0.06);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: 8 20 33;
    --surface: 15 32 49;
    --sunken: 11 27 43;
    --line: 38 58 80;
    --ink: 236 242 246;
    --ink-muted: 168 184 198;
    --action: 59 189 184;
    --action-hover: 112 213 207;
    --on-action: 8 20 33;
    --link: 112 213 207;
    --hero-from: 14 40 48;
    --hero-to: 8 20 33;
    --success-100: 20 60 40;
    --success-700: 134 239 172;
    --warning-100: 70 50 15;
    --warning-800: 252 211 77;
    --danger-100: 80 25 25;
    --danger-700: 252 165 165;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(var(--ink));
  background: rgb(var(--bg));
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: rgb(var(--link));
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--max), 100% - 2rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: rgb(var(--action));
  color: rgb(var(--on-action));
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 0.5rem;
}

:focus-visible {
  outline: 3px solid rgb(var(--primary-400));
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: rgb(var(--action));
  color: rgb(var(--on-action));
  transition: background-color 0.15s;
}
.btn:hover {
  background: rgb(var(--action-hover));
}
.btn--ghost {
  background: transparent;
  color: rgb(var(--ink));
  border-color: rgb(var(--line));
}
.btn--ghost:hover {
  background: rgb(var(--sunken));
}
.btn--small {
  min-height: 44px;
  padding: 0.5rem 1rem;
}

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--bg) / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(var(--line));
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(var(--ink));
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo img {
  display: block;
  height: 26px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a:not(.btn) {
  color: rgb(var(--ink-muted));
  text-decoration: none;
  font-weight: 500;
}
.nav a:not(.btn):hover {
  color: rgb(var(--ink));
}
.nav__links {
  display: flex;
  gap: 1.5rem;
}
@media (max-width: 820px) {
  .nav__links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, rgb(var(--hero-from)), rgb(var(--hero-to)));
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--link));
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
}
.hero__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgb(var(--ink-muted));
  max-width: 34rem;
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgb(var(--ink-muted));
}

/* ---------- Tarjetas de muestra ---------- */
.card {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mock {
  padding: 1.25rem;
}
.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mock__title {
  font-weight: 600;
}
.mock__sub {
  font-size: 0.85rem;
  color: rgb(var(--ink-muted));
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--ok {
  background: rgb(var(--success-100));
  color: rgb(var(--success-700));
}
.chip--warn {
  background: rgb(var(--warning-100));
  color: rgb(var(--warning-800));
}
.chip--bad {
  background: rgb(var(--danger-100));
  color: rgb(var(--danger-700));
}
.tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.tasks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgb(var(--sunken));
  font-size: 0.95rem;
}
.tasks__icon {
  flex: none;
  width: 22px;
  height: 22px;
}
.tasks__tag {
  margin-left: auto;
  font-size: 0.8rem;
  color: rgb(var(--ink-muted));
  white-space: nowrap;
}
.progress {
  margin-top: 1rem;
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--sunken));
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 75%;
  background: rgb(var(--action));
  border-radius: inherit;
}
.mock__foot {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgb(var(--ink-muted));
  display: flex;
  justify-content: space-between;
}

/* ---------- Secciones ---------- */
section {
  scroll-margin-top: 80px;
}
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section--alt {
  background: rgb(var(--sunken));
}
.section__head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.section__head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
}
.section__head p {
  margin-top: 0.9rem;
  color: rgb(var(--ink-muted));
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}
.feature {
  padding: 1.5rem;
}
.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgb(var(--primary-100));
  color: rgb(var(--primary-800));
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) {
  .feature__icon {
    background: rgb(var(--primary-900));
    color: rgb(var(--primary-200));
  }
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.feature p {
  color: rgb(var(--ink-muted));
}

/* ---------- Pasos ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps li {
  counter-increment: step;
  padding: 1.5rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(var(--action));
  color: rgb(var(--on-action));
  font-weight: 700;
  margin-bottom: 1rem;
}
.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.steps p {
  color: rgb(var(--ink-muted));
}

/* ---------- Constancia ---------- */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.checks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.checks svg {
  flex: none;
  margin-top: 0.2rem;
  color: rgb(var(--success-700));
}
.cert {
  padding: 1.5rem;
}
.cert__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgb(var(--line));
  font-size: 0.95rem;
}
.cert__row:last-of-type {
  border-bottom: 0;
}
.cert__big {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgb(var(--link));
}
.cert__photos {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.cert__photos div {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(var(--primary-200)), rgb(var(--primary-400)));
  opacity: 0.55;
}
.caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgb(var(--ink-muted));
}

/* ---------- Precios ---------- */
.price {
  padding: 1.75rem;
}
.price h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.price p {
  color: rgb(var(--ink-muted));
}
.price__list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.price__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgb(var(--line));
}
.price__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.price__list span:last-child {
  color: rgb(var(--ink-muted));
  text-align: right;
}
.price--main {
  border-color: rgb(var(--action));
  border-width: 2px;
}
.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgb(var(--sunken));
  border: 1px dashed rgb(var(--line));
  color: rgb(var(--ink-muted));
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
}
.faq details {
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  min-height: 48px;
  list-style-position: outside;
}
.faq details p {
  padding-bottom: 1.1rem;
  color: rgb(var(--ink-muted));
}

/* ---------- Contacto ---------- */
.cta {
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background: rgb(var(--action));
  color: rgb(var(--on-action));
  border-radius: 20px;
}
.cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.cta p {
  margin: 0.9rem auto 0;
  max-width: 36rem;
  opacity: 0.92;
}
.cta .btn {
  margin-top: 1.5rem;
  background: rgb(var(--on-action));
  color: rgb(var(--action));
}
.cta .btn:hover {
  background: rgb(var(--on-action) / 0.88);
}
.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  padding: 1.5rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.field input,
.field textarea {
  font: inherit;
  color: inherit;
  background: rgb(var(--bg));
  border: 1px solid rgb(var(--line));
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 48px;
  width: 100%;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.form__msg {
  font-size: 0.95rem;
  color: rgb(var(--ink-muted));
}

/* ---------- Pie ---------- */
.footer {
  border-top: 1px solid rgb(var(--line));
  padding: 2rem 0 2.5rem;
  color: rgb(var(--ink-muted));
  font-size: 0.95rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer__by {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.footer__by img {
  display: block;
  width: auto;
}
.footer__by img:first-of-type {
  height: 28px;
}
.footer__by img:last-of-type {
  height: 18px;
}
/* El logo de Dreamarsoft es violeta oscuro: sobre fondo oscuro se apoya en una pastilla clara. */
@media (prefers-color-scheme: dark) {
  .footer__by {
    background: #f4f2fb;
    border-radius: 0.6rem;
    padding: 0.4rem 0.75rem;
    color: #3d3a6b;
  }
}

/* ---------- Paginas legales ---------- */
.legal {
  padding: 3rem 0 4rem;
  max-width: 44rem;
}
.legal h1 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
.legal p {
  color: rgb(var(--ink-muted));
  margin-bottom: 1rem;
}

/* Objetivos tactiles de al menos 44 px en enlaces sueltos. */
.logo,
.footer nav a,
.cta p a,
.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.btn--small {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .nav {
    gap: 0.5rem;
  }
  .btn--small {
    padding: 0.5rem 0.75rem;
  }
}
