/* Fesmanagement — base, tipografía, cabecera y pie compartidos por todas las páginas. */

:root {
  --violet:        #6C2BF2;
  --violet-dark:   #4A17BC;
  --violet-soft:   #EFECFA;
  --yellow:        #FFE24B;
  --ink:           #101014;
  --ink-70:        #3A3A42;
  --ink-55:        #5A5A64;
  --ink-40:        #8A8794;
  --cream:         #F4F3EF;
  --sand:          #F7F6F2;
  --white:         #FFFFFF;

  --rule:          rgba(16, 16, 20, 0.12);
  --rule-strong:   rgba(16, 16, 20, 0.18);
  --rule-light:    rgba(244, 243, 239, 0.14);

  --font-display:  Archivo, "Public Sans", system-ui, sans-serif;
  --font-body:     "Public Sans", system-ui, sans-serif;

  --shell:         1360px;
  --gutter:        24px;
  --header-h:      94px;

  --ease-out:      cubic-bezier(.22, .7, .28, 1);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-dark); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--yellow); color: var(--ink); }

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); }

/* ---------- utilidades ---------- */

.shell {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
}

/* Halos de color de fondo. Decorativos: siempre con aria-hidden. */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow--violet { background: radial-gradient(circle, #6C2BF2 0%, rgba(108, 43, 242, 0) 70%); }
.glow--yellow { background: radial-gradient(circle, #FFE24B 0%, rgba(255, 226, 75, 0) 70%); }

.glow--tr { top: 8%;    right: -140px; width: 560px; height: 520px; opacity: .16; }
.glow--bl { bottom: 4%; left: -160px;  width: 460px; height: 440px; opacity: .22; }
.glow--tl { top: -140px; left: -140px; width: 520px; height: 500px; opacity: .14; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus-visible { left: 12px; top: 12px; }

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { text-decoration: none; }

.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--violet); color: var(--white); transform: translateY(-1px); }

/* Variante que se queda amarilla al pasar el cursor: sólo se eleva. */
.btn--yellow-static:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }

.btn--violet { background: var(--violet); color: var(--white); }
.btn--violet:hover { background: var(--violet-dark); color: var(--white); transform: translateY(-2px); }

.btn--outline {
  color: var(--ink);
  border: 1.5px solid rgba(16, 16, 20, 0.25);
}
.btn--outline:hover {
  border-color: var(--ink);
  background: rgba(16, 16, 20, 0.04);
  color: var(--ink);
}

.btn--outline-dark { color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: var(--cream); }

.btn--ghost-light { color: var(--cream); border: 1.5px solid rgba(244, 243, 239, 0.45); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- entrada de página ---------- */

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.page-in { animation: pageIn .22s ease-out both; }

/* ---------- cabecera ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: var(--violet);
  border-bottom: 1px solid var(--rule-light);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 24px rgba(16, 16, 20, 0.28); }

.site-header__bar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-header__logo img { height: 70px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.site-nav a:hover { background: rgba(244, 243, 239, 0.12); color: var(--yellow); text-decoration: none; }

/* Subrayado de la página actual. */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}
.site-nav a[aria-current="page"]::after { background: var(--yellow); }

.site-header__cta { flex: 0 0 auto; }

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  cursor: pointer;
}
.site-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
/* La tercera barra es más corta y del color del botón: da el aire del diseño. */
.site-header__burger span:nth-child(3) {
  width: 13px;
  background: var(--yellow);
  align-self: flex-start;
}

.site-menu {
  /* [hidden] ya pone display:none, pero con la misma especificidad que este
     selector de clase el orden en la hoja decide — así que el estado abierto
     se declara aparte y gana por especificidad, no por posición. */
  display: none;
  flex-direction: column;
  padding: 8px 16px 20px;
  background: var(--violet);
  border-top: 1px solid var(--rule-light);
}
.site-menu:not([hidden]) { display: flex; }
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--rule-light);
  color: var(--cream);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.site-menu a:hover { color: var(--yellow); text-decoration: none; }
.site-menu__cta {
  margin-top: 16px;
  min-height: 52px;
  font-size: 17px;
  border-bottom: 0;
}

@media (max-width: 939px) {
  .site-nav,
  .site-header__cta { display: none; }
  .site-header__burger { display: inline-flex; }
}
/* ---------- pie ---------- */

.site-footer {
  background: var(--violet);
  color: var(--cream);
  padding: clamp(48px, 5vw, 72px) 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 40px;
}

.site-footer__logo { height: 120px; width: auto; display: block; }
.site-footer__tagline {
  margin: 12px 0 0;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--violet-soft);
}

.site-footer__col { display: flex; flex-direction: column; gap: 2px; }
.site-footer__label {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E7E3F7;
}
.site-footer__col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--cream);
  font-size: 16px;
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--yellow); text-decoration: none; }
.site-footer__mail { word-break: break-all; }

.site-footer__legal {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 243, 239, 0.18);
  font-size: 14px;
  color: var(--violet-soft);
}

/* ---------- marcas aliadas ---------- */

.brands {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0;
  background: var(--sand);
}

.brands__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(24px, 3vw, 40.5px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.brands__lede {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--ink-70);
}

.marquee {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.marquee__row { overflow: hidden; }

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cada pista contiene la misma secuencia dos veces: al llegar al -50% reinicia sin salto. */
@keyframes brandsLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes brandsRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee__track--left  { animation: brandsLeft 150s linear infinite; }
.marquee__track--right { animation: brandsRight 170s linear infinite; }

.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 184px;
  height: 152px;
  padding: 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 16, 20, 0.06);
}

.brand__logo {
  display: block;
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand__name {
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  color: #5C5A66;
}

/* ---------- banda de cierre (título + botones sobre fondo oscuro) ---------- */
/* Compartida tal cual por Nosotros y Servicios. La de Home es su propio
   layout de dos columnas con párrafo, así que vive en home.css. */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0;
  background: var(--ink);
  color: var(--cream);
}
.glow--cta {
  top: -160px;
  right: 8%;
  width: 560px;
  height: 520px;
  opacity: .55;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta__title {
  max-width: 22ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19.5px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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