/* =============================================================================
   styles.css — Diseño del portafolio de Salvador Azuela.
   Fidelidad al PDF: Space Grotesk (títulos) + Inter (cuerpo), acento #00BFDB,
   negro / gris / blanco. Sin navy. Capturas limpias: SIN marco ni sombra.
   ========================================================================== */

/* ----------------------------------------------------------------- fuentes */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --accent: #00bfdb;
  --accent-ink: #06343c;          /* texto sobre acento */
  --ink: #0c0d0e;                 /* negro casi puro */
  --ink-soft: #2a2d31;
  --muted: #6a7178;               /* gris de cuerpo */
  --muted-2: #9aa1a8;             /* gris más claro */
  --line: #e6e8eb;                /* bordes */
  --line-2: #eef0f2;
  --bg: #ffffff;
  --soft: #f5f7f8;                /* fondos suaves */
  --maxw: 1060px;

  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* -------------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ------------------------------------------------------------------ header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand__dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__link {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav__link:hover { color: var(--accent); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.nav__cta:hover { filter: brightness(0.94); transform: translateY(-1px); }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang__sep { color: var(--muted-2); }
.lang__btn {
  border: 0;
  background: none;
  padding: 2px 2px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.lang__btn.is-active { color: var(--accent); }
.lang__btn:hover { color: var(--ink); }

/* ----------------------------------------------------------- tipos comunes */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section { padding: 80px 0; }
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.section__lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 0 40px;
}

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(72px, 12vh, 150px) 0 80px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 26px;
  max-width: 14ch;
}
.hero__lead {
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 46px;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 0;
  padding: 0;
  max-width: 680px;
  position: relative;
}
.pipeline__step {
  position: relative;
  padding-top: 22px;
}
.pipeline__step::before {  /* línea conectora */
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: color-mix(in srgb, var(--accent) 35%, #ffffff);
}
.pipeline__step:last-child::before { right: 50%; }
.pipeline__step:first-child::before { left: 6px; }
.pipeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
}
.pipeline__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 88px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.hero__foot-r { color: var(--muted-2); }

/* ------------------------------------------------------------------- cards */
.cards { display: grid; gap: 18px; margin: 0 0 44px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  background: #fff;
}
.card__icon { color: var(--accent); display: block; margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; }
.card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.card--plain .card__title {
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.card__text { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* --------------------------------------------------------------- pullquote */
.pullquote {
  border-left: 3px solid var(--accent);
  margin: 44px 0 24px;
  padding: 2px 0 2px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.notebar {
  background: var(--soft);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* -------------------------------------------------- rows (where it lives) */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  background: #fff;
}
.row--fav {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, #ffffff);
}
.row__icon { color: var(--accent); flex: 0 0 auto; padding-top: 1px; }
.row__icon svg { width: 26px; height: 26px; }
.row__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 4px;
}
.row__text { color: var(--muted); font-size: 14.5px; margin: 0; }
.fav-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-left: 8px;
  white-space: nowrap;
}

/* --------------------------------------------------- projects (acordeón) */
.section--projects { scroll-margin-top: 84px; }

.accordion { margin-top: 14px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  background: none;
  border: 0;
  padding: 24px 4px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.acc__num {
  flex: 0 0 auto;
  min-width: 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.acc__name {
  flex: 1 1 auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 25px);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.12s ease;
}
.acc__chev {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--muted-2);
  transition: transform 0.25s ease, color 0.12s ease;
}
.acc__chev svg { width: 22px; height: 22px; }
.acc__head:hover .acc__name,
.acc.is-open .acc__name { color: var(--accent); }
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--accent); }

/* Despliegue suave: grid-template-rows 0fr -> 1fr (auto-altura animada). */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; }

/* Un proyecto dentro del panel de su industria. */
.project { padding: 4px 0 40px; scroll-margin-top: 84px; }
.acc__inner .project + .project { border-top: 1px solid var(--line); padding-top: 32px; }
.project__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.status-pill {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 13px;
  border-radius: 999px;
}
.project__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 22ch;
}
.project__lead {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.62;
  max-width: 760px;
  margin: 0 0 30px;
}
.rdl { margin: 0 0 28px; display: grid; gap: 12px; }
.rdl__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: baseline;
}
.rdl__k {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.rdl__v { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.chip {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: #fff;
}

/* ----- medios: capturas LIMPIAS, sin marco ni sombra (bug corregido) ----- */
.media { display: grid; gap: 16px; margin-top: 34px; }
.media--1 { grid-template-columns: 1fr; }
.media--2 { grid-template-columns: 1fr 1fr; }
.media--3 { grid-template-columns: repeat(3, 1fr); }
.media--4 { grid-template-columns: 1fr 1fr; }
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 0;          /* sin marco */
  box-shadow: none;   /* sin sombra */
}
.media--video .media__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media__note {
  text-align: right;
  color: var(--muted-2);
  font-size: 12px;
  font-style: italic;
  margin: 12px 0 0;
}

/* ------------------------------------------------------------- stack lists */
.deflist { margin: 8px 0 0; border-top: 1px solid var(--line); }
.deflist__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.deflist__k {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.deflist__v { color: var(--ink-soft); font-size: 15.5px; }
.footnote {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* --------------------------------------------------------------- let's start */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.step__n {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.step__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 2px 0 5px;
}
.step__text { color: var(--muted); font-size: 15px; margin: 0; }
.tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 24px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 44px 0 36px;
}
.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 30px 32px;
}
.contact-card__bio {
  color: #c9ced3;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 760px;
}
.contact-card__line {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ------------------- listas con viñetas (las usa /partners) ------------------- */
.cv-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cv-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.cv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
/* --------------------------------------------------------- CTA + contacto */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-cta svg { width: 18px; height: 18px; }
.btn-cta:hover { filter: brightness(0.94); transform: translateY(-1px); }

.section--contact {
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.contact-form { max-width: 620px; margin: 8px 0 0; }
.hp { display: none; }
.field { margin: 0 0 16px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0 0 7px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, #ffffff);
}
.btn-submit {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 999px;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.btn-submit:hover { filter: brightness(0.94); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
.form-status { margin: 16px 0 0; font-size: 14.5px; min-height: 1.2em; }
.form-status.is-ok { color: #0a7d34; }
.form-status.is-err { color: #c0392b; }

/* ------------------------------------------------- página /partners */
.link-accent {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
}
.link-accent:hover { text-decoration: underline; }

/* tabla de comisiones por nivel */
.ctable { border-top: 1px solid var(--line); margin: 0 0 26px; }
.ctable__row {
  display: grid;
  grid-template-columns: 1fr 130px 1.7fr;
  gap: 18px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ctable__row--head span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ctable__level {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.ctable__rate {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.ctable__how { color: var(--muted); font-size: 14.5px; }
.model-bullets { margin-top: 28px; }

/* haces / no haces */
.cards--2 { grid-template-columns: 1fr 1fr; }
.cards--2 .card .cv-list { margin-top: 14px; }
.cards--2 .card .cv-list li { font-size: 14.5px; }
.cv-list--x li::before { background: var(--muted-2); }

/* nota destacada (frame de escasez) */
.callout {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  margin: 40px 0 0;
  padding: 20px 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 760px;
}

/* FAQ: mismo acordeón, preguntas más compactas */
.accordion--faq .acc__head { padding: 18px 4px; }
.accordion--faq .acc__name {
  font-size: clamp(15.5px, 2vw, 19px);
  font-weight: 600;
}
.faq__a {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
  padding: 2px 4px 24px 44px;
  max-width: 760px;
}

/* radios del form de aplicación */
.field--radios { border: 0; padding: 0; margin: 0 0 18px; }
.field--radios legend {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0;
  margin: 0 0 9px;
}
.radios { display: flex; gap: 24px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

/* ----------------------------------------------------------------- footer */
/* Link cruzado discreto entre index y /partners: ruta de descubrimiento,
   no CTA — color muted, sin protagonismo. */
.footer {
  border-top: 1px solid var(--line-2);
  padding: 26px 0 42px;
}
.footer__link {
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--muted); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .section { padding: 60px 0; }
  .cards--2, .cards--3, .media--2, .media--3, .media--4 { grid-template-columns: 1fr; }
  .hero__foot { flex-direction: column; gap: 4px; }
  .deflist__row { grid-template-columns: 120px 1fr; gap: 12px; }
  .nav { gap: 16px; }
  .faq__a { padding-left: 4px; }
}
@media (max-width: 600px) {
  /* tabla de comisiones: la columna "cómo se alcanza" baja a su propia línea */
  .ctable__row { grid-template-columns: 1fr 80px; gap: 6px 14px; }
  .ctable__how { grid-column: 1 / -1; }
  .ctable__row--head span:nth-child(3) { display: none; }
  .ctable__rate { font-size: 20px; }
}
@media (max-width: 480px) {
  .cards--4 { grid-template-columns: 1fr; }
  .rdl__row { grid-template-columns: 80px 1fr; gap: 12px; }
  .pipeline__label { font-size: 10.5px; letter-spacing: 0.08em; }
}
