/* ==========================================================================
   YELMO SYSTEMS — hoja de estilos principal
   Paleta extraida del logotipo oficial.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de diseno
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --ys-navy-950: #030A1C;
  --ys-navy-900: #050F2E;
  --ys-navy-800: #0A1A4A;
  --ys-navy-700: #0B2A6B;
  --ys-blue-600: #0B47D8;
  --ys-blue-500: #0B57F8;
  --ys-blue-400: #2E79FF;
  --ys-cyan-400: #00A3FF;
  --ys-cyan-300: #4FC3FF;

  --ys-black:    #0A0A0C;
  --ys-ink:      #101323;
  --ys-ink-soft: #444C63;
  --ys-muted:    #6B7488;
  --ys-line:     #E2E7F0;
  --ys-surface:  #F5F7FC;
  --ys-white:    #FFFFFF;

  /* Superficies oscuras */
  --ys-dark-line: rgba(255, 255, 255, .12);
  --ys-dark-text: rgba(233, 240, 255, .78);

  /* Tipografia fluida */
  --ys-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --ys-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-md:  1.0625rem;
  --fs-lg:  clamp(1.125rem, 0.4vw + 1.05rem, 1.3125rem);
  --fs-h3:  clamp(1.25rem, 0.7vw + 1.1rem, 1.5rem);
  --fs-h2:  clamp(1.875rem, 2.2vw + 1.2rem, 2.875rem);
  --fs-h1:  clamp(2.25rem, 4.2vw + 1rem, 4rem);
  --fs-eyebrow: 0.75rem;

  /* Espaciado y forma */
  --ys-wrap: 1200px;
  --ys-gutter: clamp(1.125rem, 4vw, 2.5rem);
  --ys-section: clamp(4rem, 8vw, 7.5rem);
  --ys-radius: 14px;
  --ys-radius-lg: 22px;
  --ys-header-h: 74px;

  --ys-shadow-sm: 0 1px 2px rgba(10, 26, 74, .06), 0 4px 12px rgba(10, 26, 74, .05);
  --ys-shadow-md: 0 2px 6px rgba(10, 26, 74, .07), 0 16px 40px rgba(10, 26, 74, .10);
  --ys-shadow-blue: 0 10px 30px rgba(11, 87, 248, .28);

  --ys-ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 640px) {
  :root { --ys-header-h: 64px; }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ys-header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--ys-font);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ys-ink);
  background: var(--ys-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ys-black);
  font-weight: 800;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ys-blue-600); text-decoration: none; }
a:hover { color: var(--ys-blue-500); }

img, picture, svg { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ys-cyan-400);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--ys-blue-500); color: #fff; }

/* --------------------------------------------------------------------------
   3. Utilidades de layout
   -------------------------------------------------------------------------- */
.ys-wrap {
  width: 100%;
  max-width: var(--ys-wrap);
  margin-inline: auto;
  padding-inline: var(--ys-gutter);
}

.ys-section { padding-block: var(--ys-section); }

.ys-section--surface { background: var(--ys-surface); }

.ys-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ys-blue-600);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.ys-skip:focus { left: 0; color: #fff; }

.ys-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ys-blue-600);
  margin-bottom: 1rem;
}
.ys-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ys-blue-500), var(--ys-cyan-400));
}
.ys-eyebrow--light { color: var(--ys-cyan-300); }

.ys-section__head { max-width: 680px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.ys-section__head--center { margin-inline: auto; text-align: center; }
.ys-section__head p { color: var(--ys-ink-soft); font-size: var(--fs-lg); margin-bottom: 0; }

.ys-grad {
  background: linear-gradient(100deg, var(--ys-blue-400), var(--ys-cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.ys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: .005em;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ys-ease), box-shadow .18s var(--ys-ease),
              background-color .18s var(--ys-ease), color .18s var(--ys-ease),
              border-color .18s var(--ys-ease);
}
.ys-btn:hover { transform: translateY(-2px); }
.ys-btn:active { transform: translateY(0); }

.ys-btn--primary {
  background: linear-gradient(120deg, var(--ys-blue-600), var(--ys-blue-500) 55%, var(--ys-cyan-400));
  color: #fff;
  box-shadow: var(--ys-shadow-blue);
}
.ys-btn--primary:hover { color: #fff; box-shadow: 0 14px 36px rgba(11, 87, 248, .38); }

.ys-btn--ghost {
  background: transparent;
  color: var(--ys-black);
  border-color: var(--ys-line);
}
.ys-btn--ghost:hover { border-color: var(--ys-blue-500); color: var(--ys-blue-600); background: rgba(11, 87, 248, .05); }

.ys-btn--ghost-light {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: var(--ys-dark-line);
}
.ys-btn--ghost-light:hover { background: rgba(255, 255, 255, .13); color: #fff; border-color: rgba(255, 255, 255, .35); }

.ys-btn--block { width: 100%; }
.ys-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.ys-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--ys-header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ys-ease), box-shadow .25s var(--ys-ease);
}
.ys-header.is-stuck {
  border-bottom-color: var(--ys-line);
  box-shadow: 0 6px 24px rgba(10, 26, 74, .07);
}

.ys-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.ys-logo { display: flex; align-items: center; flex: 0 0 auto; }
.ys-logo img { height: 40px; width: auto; }
@media (max-width: 640px) { .ys-logo img { height: 32px; } }

.ys-nav { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.75rem); }

.ys-nav__list { display: flex; align-items: center; gap: clamp(.25rem, 1.4vw, 1.25rem); }

.ys-nav__link {
  position: relative;
  display: block;
  padding: .5rem .35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ys-ink);
  white-space: nowrap;
}
.ys-nav__link::after {
  content: "";
  position: absolute;
  left: .35rem;
  right: .35rem;
  bottom: .15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ys-blue-500), var(--ys-cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ys-ease);
}
.ys-nav__link:hover { color: var(--ys-blue-600); }
.ys-nav__link:hover::after,
.ys-nav__link.is-active::after { transform: scaleX(1); }
.ys-nav__link.is-active { color: var(--ys-blue-600); }

.ys-nav__cta { margin-left: .5rem; }

/* Boton hamburguesa */
.ys-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ys-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.ys-burger span {
  position: relative;
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ys-black);
  transition: background .2s var(--ys-ease);
}
.ys-burger span::before,
.ys-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ys-black);
  transition: transform .28s var(--ys-ease), top .2s var(--ys-ease);
}
.ys-burger span::before { top: -6px; }
.ys-burger span::after  { top: 6px; }
.ys-burger[aria-expanded="true"] span { background: transparent; }
.ys-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.ys-burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Menu movil */
@media (max-width: 900px) {
  .ys-burger { display: inline-flex; }

  .ys-nav {
    position: fixed;
    inset: var(--ys-header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--ys-gutter) 1.75rem;
    background: #fff;
    border-bottom: 1px solid var(--ys-line);
    box-shadow: 0 24px 48px rgba(10, 26, 74, .14);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s var(--ys-ease), opacity .22s var(--ys-ease), visibility .28s;
    max-height: calc(100dvh - var(--ys-header-h));
    overflow-y: auto;
  }
  .ys-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .ys-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .ys-nav__link {
    padding: .95rem .25rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--ys-line);
  }
  .ys-nav__link::after { display: none; }
  .ys-nav__cta { margin: 1.25rem 0 0; }
  .ys-nav__cta .ys-btn { width: 100%; }
}

body.ys-no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.ys-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 82% 8%, rgba(0, 163, 255, .30), transparent 58%),
    radial-gradient(70% 90% at 8% 100%, rgba(11, 87, 248, .28), transparent 60%),
    linear-gradient(165deg, var(--ys-navy-900) 0%, var(--ys-navy-950) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
}

/* Malla de circuitos de fondo */
.ys-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

.ys-hero h1 { color: #fff; margin-bottom: 1.1rem; }
.ys-hero__lead {
  font-size: var(--fs-lg);
  color: var(--ys-dark-text);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.ys-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .ys-hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .ys-hero__art { max-width: 460px; margin-inline: auto; width: 100%; }
}

.ys-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.5rem; }
@media (max-width: 420px) {
  .ys-hero__actions { flex-direction: column; }
  .ys-hero__actions .ys-btn { width: 100%; }
}

/* Metricas del hero */
.ys-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--ys-dark-line);
}
.ys-stats dt {
  position: relative;
  padding-left: 1.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.3;
  text-wrap: balance;
  /* Reserva dos lineas para que las tres descripciones arranquen a la
     misma altura aunque un titulo ocupe una sola linea. */
  min-height: 2.6em;
}
/* Palomita dibujada en CSS: son compromisos, no métricas */
.ys-stats dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: .34em;
  width: .5rem;
  height: .28rem;
  border-left: 2px solid var(--ys-cyan-400);
  border-bottom: 2px solid var(--ys-cyan-400);
  transform: rotate(-45deg);
}
.ys-stats dd {
  margin: .4rem 0 0 1.35rem;
  font-size: var(--fs-xs);
  color: var(--ys-dark-text);
  line-height: 1.5;
}
@media (max-width: 520px) {
  .ys-stats { grid-template-columns: 1fr; gap: 1.1rem; text-align: left; }
  .ys-stats dt { min-height: 0; }
}

/* Tarjeta de codigo del hero */
.ys-art {
  position: relative;
  border: 1px solid var(--ys-dark-line);
  border-radius: var(--ys-radius-lg);
  background: linear-gradient(150deg, rgba(11, 42, 107, .85), rgba(3, 10, 28, .92));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.ys-art__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--ys-dark-line);
  background: rgba(255, 255, 255, .04);
}
.ys-art__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ys-art__bar span {
  margin-left: auto;
  font-family: var(--ys-mono);
  font-size: .72rem;
  color: rgba(233, 240, 255, .55);
}
.ys-art__body {
  padding: 1.1rem 1.15rem 1.35rem;
  font-family: var(--ys-mono);
  font-size: clamp(.72rem, 1.35vw, .82rem);
  line-height: 1.9;
  color: rgba(233, 240, 255, .82);
  overflow-x: auto;
}
.ys-art__body .c-key { color: var(--ys-cyan-300); }
.ys-art__body .c-str { color: #8FE6B6; }
.ys-art__body .c-dim { color: rgba(233, 240, 255, .38); }
.ys-art__body .c-ok  { color: #35E08A; }

.ys-art__logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--ys-dark-line);
  background: rgba(255, 255, 255, .03);
}
.ys-art__logo img { width: 38px; height: 38px; }
.ys-art__logo p { margin: 0; font-family: var(--ys-font); font-size: var(--fs-xs); color: var(--ys-dark-text); }
.ys-art__logo strong { display: block; color: #fff; font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   7. Servicios
   -------------------------------------------------------------------------- */
.ys-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Con 5 servicios en 3 columnas, la ultima fila queda centrada. */
@media (min-width: 1000px) {
  .ys-cards { grid-template-columns: repeat(6, 1fr); }
  .ys-cards > .ys-card { grid-column: span 2; }
  .ys-cards > .ys-card:nth-child(4) { grid-column: 2 / span 2; }
  .ys-cards > .ys-card:nth-child(5) { grid-column: 4 / span 2; }
}

.ys-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: #fff;
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius-lg);
  box-shadow: var(--ys-shadow-sm);
  transition: transform .25s var(--ys-ease), box-shadow .25s var(--ys-ease), border-color .25s var(--ys-ease);
}
.ys-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: var(--ys-radius-lg) var(--ys-radius-lg) 0 0;
  background: linear-gradient(90deg, var(--ys-blue-600), var(--ys-cyan-400));
  opacity: 0;
  transition: opacity .25s var(--ys-ease);
}
.ys-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 87, 248, .28);
  box-shadow: var(--ys-shadow-md);
}
.ys-card:hover::before { opacity: 1; }

.ys-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 87, 248, .12), rgba(0, 163, 255, .14));
  color: var(--ys-blue-600);
}
.ys-card__icon svg { width: 26px; height: 26px; }

.ys-card h3 { margin-bottom: .55rem; }
.ys-card > p { color: var(--ys-ink-soft); font-size: var(--fs-sm); }

.ys-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.ys-card__list li {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--ys-surface);
  border: 1px solid var(--ys-line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ys-ink-soft);
}

/* --------------------------------------------------------------------------
   7b. Ejemplos de automatizacion
   -------------------------------------------------------------------------- */
.ys-flows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Tarjeta mas plana que las de Servicios, para que no compitan entre si */
.ys-flow {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  background: var(--ys-surface);
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius-lg);
  transition: border-color .25s var(--ys-ease), background-color .25s var(--ys-ease);
}
.ys-flow:hover {
  border-color: rgba(11, 87, 248, .28);
  background: #fff;
}

.ys-flow__head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .9rem;
}
.ys-flow__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ys-line);
  color: var(--ys-blue-600);
}
.ys-flow__icon svg { width: 22px; height: 22px; }
.ys-flow__head h3 { margin: 0; font-size: 1.125rem; }

.ys-flow__gancho {
  margin: 0 0 1.4rem;
  font-size: var(--fs-sm);
  color: var(--ys-ink-soft);
}

/* Los pasos, encadenados con una linea vertical */
.ys-flow__pasos {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.ys-flow__pasos li {
  position: relative;
  padding: 0 0 1.05rem 1.75rem;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ys-ink-soft);
}
.ys-flow__pasos li:last-child { padding-bottom: 0; }

.ys-flow__pasos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ys-blue-400);
}
.ys-flow__pasos li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: calc(.38em + 13px);
  /* Se prolonga dentro del siguiente paso para tocar su punto: si acaba en el
     borde del <li> queda un hueco del alto de la sangria superior. */
  bottom: -0.4em;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ys-blue-400), rgba(11, 87, 248, .22));
}
.ys-flow__pasos li:last-child::after { display: none; }

/* El ultimo paso es el resultado: se marca */
.ys-flow__pasos li.es-final {
  font-weight: 650;
  color: var(--ys-black);
}
.ys-flow__pasos li.es-final::before {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ys-blue-600), var(--ys-cyan-400));
  box-shadow: 0 0 0 4px rgba(11, 87, 248, .12);
}

.ys-flows__nota {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ys-muted);
}
.ys-flows__nota a { font-weight: 650; }

/* --------------------------------------------------------------------------
   8. Nosotros + proceso
   -------------------------------------------------------------------------- */
.ys-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .ys-about { grid-template-columns: 1fr; } }

.ys-about__media {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--ys-radius-lg);
  background:
    radial-gradient(80% 80% at 50% 20%, rgba(0, 163, 255, .22), transparent 65%),
    linear-gradient(160deg, var(--ys-navy-800), var(--ys-navy-950));
  box-shadow: var(--ys-shadow-md);
}
.ys-about__media img { width: min(260px, 70%); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }

.ys-checks { display: grid; gap: .9rem; margin: 1.75rem 0 2rem; }
.ys-checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .8rem;
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--ys-ink-soft);
}
.ys-checks strong { color: var(--ys-black); display: block; font-size: var(--fs-md); }
.ys-checks svg { width: 22px; height: 22px; color: var(--ys-blue-500); margin-top: 3px; }

.ys-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  counter-reset: paso;
}
.ys-step {
  position: relative;
  padding: 1.6rem 1.4rem;
  background: #fff;
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius);
}
.ys-step__num {
  display: block;
  font-family: var(--ys-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ys-blue-500);
  margin-bottom: .7rem;
}
.ys-step h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.ys-step p { font-size: var(--fs-sm); color: var(--ys-ink-soft); margin: 0; }

/* --------------------------------------------------------------------------
   9. Franja CTA
   -------------------------------------------------------------------------- */
.ys-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--ys-navy-800), var(--ys-blue-600) 58%, var(--ys-cyan-400));
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.ys-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.ys-strip h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.ys-strip p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 52ch; }
.ys-strip .ys-btn--primary {
  background: #fff;
  color: var(--ys-navy-800);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.ys-strip .ys-btn--primary:hover { color: var(--ys-blue-600); }

/* --------------------------------------------------------------------------
   10. Contacto
   -------------------------------------------------------------------------- */
.ys-contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .ys-contact { grid-template-columns: 1fr; } }

.ys-contact__info li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .9rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ys-line);
}
.ys-contact__info li:last-child { border-bottom: 0; }
.ys-contact__info .ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(11, 87, 248, .09);
  color: var(--ys-blue-600);
}
.ys-contact__info .ico svg { width: 20px; height: 20px; }
.ys-contact__info span { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ys-muted); }
.ys-contact__info a, .ys-contact__info p { font-weight: 600; color: var(--ys-black); margin: 0; overflow-wrap: anywhere; }
.ys-contact__info a:hover { color: var(--ys-blue-600); }
.ys-contact__info .ys-cobertura {
  display: block;
  margin-top: .15rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ys-muted);
}

.ys-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius-lg);
  box-shadow: var(--ys-shadow-md);
}
.ys-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}
.ys-field { margin-bottom: 1rem; }
.ys-field label {
  display: block;
  margin-bottom: .4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ys-ink);
}
.ys-field label .req { color: var(--ys-blue-500); }

.ys-field input,
.ys-field select,
.ys-field textarea {
  width: 100%;
  padding: .8rem .95rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--ys-ink);
  background: var(--ys-surface);
  border: 1px solid var(--ys-line);
  border-radius: 11px;
  transition: border-color .18s var(--ys-ease), box-shadow .18s var(--ys-ease), background-color .18s var(--ys-ease);
  -webkit-appearance: none;
  appearance: none;
}
.ys-field textarea { min-height: 132px; resize: vertical; }
.ys-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7488' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.ys-field input:focus,
.ys-field select:focus,
.ys-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ys-blue-500);
  box-shadow: 0 0 0 4px rgba(11, 87, 248, .14);
}
.ys-field input::placeholder,
.ys-field textarea::placeholder { color: #9AA3B6; }

.ys-field.has-error input,
.ys-field.has-error select,
.ys-field.has-error textarea { border-color: #D92D3C; box-shadow: 0 0 0 4px rgba(217, 45, 60, .12); }
.ys-field__error { display: none; margin-top: .35rem; font-size: var(--fs-xs); font-weight: 600; color: #C4212F; }
.ys-field.has-error .ys-field__error { display: block; }

/* trampa anti-spam: invisible para humanos */
.ys-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.ys-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .65rem;
  align-items: start;
  margin: .25rem 0 1.25rem;
  font-size: var(--fs-xs);
  color: var(--ys-ink-soft);
  line-height: 1.55;
}
.ys-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ys-blue-500); }

.ys-form__msg {
  display: none;
  gap: .65rem;
  align-items: start;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.ys-form__msg.is-visible { display: flex; }
.ys-form__msg.is-ok    { background: rgba(20, 165, 105, .10); color: #0F7A4C; border: 1px solid rgba(20, 165, 105, .28); }
.ys-form__msg.is-error { background: rgba(217, 45, 60, .08);  color: #B31D2A; border: 1px solid rgba(217, 45, 60, .25); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.ys-footer {
  background: var(--ys-navy-950);
  color: var(--ys-dark-text);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: var(--fs-sm);
}
.ys-footer a { color: var(--ys-dark-text); }
.ys-footer a:hover { color: #fff; }

.ys-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 900px) {
  .ys-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ys-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ys-footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

/* Lockup del pie: el isotipo funciona sobre fondo oscuro y el nombre va en texto,
   porque el logotipo horizontal solo existe con la palabra YELMO en negro. */
.ys-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.15rem;
  text-decoration: none;
}
.ys-footer__logo img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.ys-footer__wordmark {
  display: block;
  line-height: 1;
}
.ys-footer__wordmark b {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.ys-footer__wordmark i {
  display: block;
  margin-top: .18rem;
  font-size: .6875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .38em;
  color: var(--ys-cyan-300);
}
.ys-footer__logo:hover .ys-footer__wordmark i { color: var(--ys-cyan-400); }
.ys-footer__brand p { max-width: 38ch; margin-bottom: 1.25rem; }
.ys-footer__brand p:last-child { margin-bottom: 0; }

.ys-social { display: flex; gap: .6rem; }
.ys-social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--ys-dark-line);
  border-radius: 11px;
  color: var(--ys-dark-text);
  transition: background-color .2s var(--ys-ease), border-color .2s var(--ys-ease), color .2s var(--ys-ease), transform .2s var(--ys-ease);
}
.ys-social a:hover { background: rgba(11, 87, 248, .25); border-color: var(--ys-blue-400); color: #fff; transform: translateY(-2px); }
.ys-social svg { width: 19px; height: 19px; }

.ys-footer h4 {
  margin-bottom: 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.ys-footer__col li { margin-bottom: .6rem; }
.ys-footer__col li:last-child { margin-bottom: 0; }

.ys-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--ys-dark-line);
  font-size: var(--fs-xs);
}
.ys-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.ys-footer__bottom p { margin: 0; }

/* Boton volver arriba */
.ys-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ys-blue-600);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--ys-shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ys-ease), transform .25s var(--ys-ease), visibility .25s;
}
.ys-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ys-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   12. Animacion de entrada
   -------------------------------------------------------------------------- */
.ys-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ys-ease), transform .6s var(--ys-ease);
}
.ys-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ys-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   13. Impresion
   -------------------------------------------------------------------------- */
@media print {
  .ys-header, .ys-top, .ys-strip, .ys-form { display: none !important; }
  body { color: #000; }
  .ys-hero { background: #fff; color: #000; }
  .ys-hero h1 { color: #000; }
}

/* --------------------------------------------------------------------------
   14. Paginas legales
   -------------------------------------------------------------------------- */
.ys-legal { margin-top: 2rem; }
.ys-legal h2 {
  margin-top: 2.25rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.ys-legal h2:first-child { margin-top: 0; }
.ys-legal p { color: var(--ys-ink-soft); font-size: var(--fs-sm); }
