/* ============================================================================
   SYNESYS — Layout y componentes
   Depende de brand.css. Sin degradados, sin texturas ajenas, bloques sólidos.
   ========================================================================== */

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  font-weight: var(--fw-reg);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--synesys-magenta); outline-offset: 3px; }

/* ---------- Tipografía base ---------- */
h1, h2, h3 { line-height: 1.04; font-weight: var(--fw-black); letter-spacing: -0.02em; }
.display { font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase; }
.eyebrow {
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: var(--space-3); }

/* Bloques de color sólido (recurso central de la marca) */
.bg-blue    { background: var(--synesys-blue);    color: var(--synesys-white); }
.bg-magenta { background: var(--synesys-magenta); color: var(--synesys-white); }
.bg-orange  { background: var(--synesys-orange);  color: var(--synesys-white); }
.bg-ink     { background: var(--synesys-ink);     color: var(--synesys-white); }
.bg-white   { background: var(--synesys-white);   color: var(--synesys-ink); }
.on-dark a  { color: var(--synesys-white); }

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--synesys-white);
  border-bottom: 2px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 2px 0 0 rgba(0,0,0,.06);
  border-bottom-color: rgba(0,0,0,.08);
}
.header-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--logo-safe);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
/* Margen de seguridad respetado: el logo nunca toca el borde (diap. 6) */
.brand-link { display: inline-flex; align-items: center; padding-block: var(--space-1); }
.brand-link img { height: 30px; width: auto; }   /* mín. legible en header */

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a {
  font-weight: var(--fw-med); font-size: .95rem; letter-spacing: .01em;
  padding-block: 4px; position: relative; color: var(--synesys-ink);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--synesys-blue); transition: width .25s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
/* El CTA dentro del nav es un botón: el color del botón debe ganar */
.nav a.btn { color: #fff; }
.nav a.btn::after { display: none; }
.nav a.btn--ghost { color: var(--synesys-blue); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--synesys-ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   BOTONES (diap. 4.6)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: var(--fw-bold); font-size: .98rem; letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; transition: transform .15s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary   { background: var(--synesys-blue);    color: #fff; }
.btn--primary:hover   { background: var(--synesys-magenta); }
.btn--magenta   { background: var(--synesys-magenta); color: #fff; }
.btn--magenta:hover   { background: var(--synesys-blue); }
.btn--ghost     { background: transparent; color: var(--synesys-blue); border-color: var(--synesys-blue); }
.btn--ghost:hover     { background: var(--synesys-blue); color: #fff; }
.btn--on-dark   { background: #fff; color: var(--synesys-ink); }
.btn--on-dark:hover   { background: var(--synesys-magenta); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--synesys-ink); }

/* ============================================================================
   HERO — video de contenido + ícono institucional + copy fuerte
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  padding-block: calc(var(--header-h) + 2rem) var(--space-6);
  background: var(--synesys-blue);   /* bloque sólido */
  color: #fff; overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.hero__media video {
  width: 100%; height: 100%; object-fit: cover; opacity: .42;
}
/* Velo sólido (no degradado) para legibilidad del copy */
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: var(--synesys-blue); opacity: .34; mix-blend-mode: multiply;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { color: #fff; opacity: .9; margin-bottom: var(--space-3); display: flex; align-items: center; gap: .8rem; }
.hero__eyebrow img { height: 1.6em; width: auto; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  text-transform: uppercase;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--synesys-magenta); }
.hero__lead { font-size: var(--fs-lead); font-weight: var(--fw-med); max-width: 52ch; margin-top: var(--space-3); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-5); }
.hero__tags span {
  font-size: .8rem; font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.5); padding: .35rem .75rem; border-radius: 999px;
}

/* ============================================================================
   MANIFIESTO (publisher / creator / platform / culture)
   ========================================================================== */
.manifesto { text-align: center; }
.manifesto__lines { display: grid; gap: .2rem; }
.manifesto__lines .line {
  font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase;
  font-size: clamp(1.8rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--synesys-ink);
}
.manifesto__lines .line:nth-child(2) { color: var(--synesys-blue); }
.manifesto__lines .line:nth-child(3) { color: var(--synesys-magenta); }
.manifesto__lines .line:nth-child(4) { color: var(--synesys-orange); }
.manifesto p { max-width: 56ch; margin: var(--space-4) auto 0; font-size: var(--fs-lead); }

/* ============================================================================
   SECCIÓN ¿POR QUÉ SYNESYS? — bloque sólido
   ========================================================================== */
.why__grid { display: grid; gap: var(--space-4); grid-template-columns: 1.1fr 1fr; align-items: center; }
.why h2 { font-size: var(--fs-h1); }
.why .lead { font-size: var(--fs-lead); margin-top: var(--space-3); font-weight: var(--fw-med); }
.why__list { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.why__list li { display: flex; gap: .8rem; font-weight: var(--fw-med); }
.why__list li::before { content: ''; flex: 0 0 auto; width: 14px; height: 14px; margin-top: .35rem; background: #fff; }
.why__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================================
   SERVICIOS / CAPACIDADES
   ========================================================================== */
.section-head { max-width: 60ch; margin-bottom: var(--space-5); }
.section-head h2 { font-size: var(--fs-h1); }
.section-head .eyebrow { color: var(--synesys-magenta); display: block; margin-bottom: var(--space-2); }
.section-head p { margin-top: var(--space-2); font-size: var(--fs-lead); color: #444; }

.services { display: grid; gap: 2px; grid-template-columns: repeat(2, 1fr); background: rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.08); }
.service {
  background: var(--synesys-white); padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: var(--space-2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.service__n { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 1.1rem; color: var(--synesys-magenta); transition: color .25s; }
.service h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
.service p { color: #555; transition: color .25s; }
.service__k { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem; padding-top: var(--space-2); }
.service__k span { font-size: .72rem; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid currentColor; padding: .25rem .6rem; border-radius: 999px; opacity: .7; }
.service:hover { background: var(--synesys-blue); color: #fff; }
.service:hover p, .service:hover .service__n { color: #fff; }

/* ============================================================================
   CONTENIDO EN MOVIMIENTO — moodboard / collage editorial
   ========================================================================== */
.mood { background: var(--synesys-ink); color: #fff; }
.mood__grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
}
.mood__item { position: relative; overflow: hidden; border-radius: var(--radius); background: #15151f; }
.mood__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mood__item:hover img { transform: scale(1.05); }
.mood__item.tall  { grid-row: span 2; }
.mood__item.wide  { grid-column: span 2; }

/* ============================================================================
   METODOLOGÍA — 3 columnas sólidas
   ========================================================================== */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.method__col { padding: clamp(2rem, 4vw, 3.5rem); min-height: 320px; display: flex; flex-direction: column; }
.method__col .k { font-family: var(--font-display); font-weight: var(--fw-black); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.method__col p { margin-top: var(--space-2); font-weight: var(--fw-med); }
.method__col .num { margin-top: auto; font-size: .8rem; font-weight: var(--fw-bold); letter-spacing: .2em; opacity: .8; }

/* ============================================================================
   CLIENTES — logos oficiales (nunca texto)
   ========================================================================== */
.clients { text-align: center; }
/* Logos de clientes en versión blanca (knockout) → panel sólido oscuro para
   que sean legibles SIN recolorearlos (son marcas de terceros). */
.clients__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: rgba(255,255,255,.10); border: 1px solid var(--synesys-ink);
  margin-top: var(--space-5); border-radius: var(--radius); overflow: hidden;
}
.clients__cell {
  background: var(--synesys-ink); aspect-ratio: 3/2; display: grid; place-items: center; padding: 1.4rem;
}
.clients__cell img { max-height: 44px; width: auto; object-fit: contain; opacity: .8; transition: opacity .25s, transform .25s var(--ease); }
.clients__cell:hover img { opacity: 1; transform: scale(1.06); }
.clients__note { margin-top: var(--space-3); font-size: var(--fs-small); color: #888; }

/* ============================================================================
   CASOS
   ========================================================================== */
.cases { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
.case { border: 1px solid rgba(0,0,0,.12); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: var(--space-2); }
.case__tag { color: var(--synesys-magenta); font-weight: var(--fw-bold); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.case h3 { font-size: var(--fs-h3); font-weight: var(--fw-black); }
.case p { color: #555; font-size: .96rem; }
.case__metrics { display: flex; gap: var(--space-3); margin-top: var(--space-2); flex-wrap: wrap; }
.case__metrics b { display: block; font-family: var(--font-display); font-weight: var(--fw-black); font-size: 1.8rem; color: var(--synesys-blue); }
.case__metrics span { font-size: .78rem; color: #777; }

/* ============================================================================
   CTA / CONTACTO + FORM
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact h2 { font-size: var(--fs-h1); }
.contact .lead { font-size: var(--fs-lead); margin-top: var(--space-3); }
.contact__points { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.contact__points li { display: flex; gap: .7rem; font-weight: var(--fw-med); }
.contact__points li::before { content: '→'; font-weight: 900; color: var(--synesys-magenta); }

.form { display: grid; gap: var(--space-2); background: #fff; color: var(--synesys-ink); padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: var(--fw-bold); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem; border: 1.5px solid rgba(0,0,0,.2); border-radius: var(--radius);
  background: #fff; color: var(--synesys-ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--synesys-blue); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field .err { color: #d10043; font-size: .78rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-weight: var(--fw-bold); min-height: 1.4em; }
.form__status.ok { color: #0a7d2c; }
.form__status.bad { color: #d10043; }

/* ============================================================================
   FOOTER (diap. 17/18)
   ========================================================================== */
.site-footer { background: var(--synesys-ink); color: #fff; padding-block: var(--space-6) var(--space-4); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 26px; width: auto; margin-bottom: var(--space-2); }
.footer-brand p { max-width: 38ch; color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-cols h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--synesys-magenta); margin-bottom: var(--space-2); }
.footer-cols a { display: block; padding-block: .25rem; color: rgba(255,255,255,.82); font-size: .92rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ============================================================================
   Reveal on scroll (IntersectionObserver) — animación sobria
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__media video { display: none; }
}
