/* ConoceTuAgente.mx — base styles
   Tokens follow branding/branding_guidelines.md §3–§4.
   Discipline: gold is reserved for "validated" signal (seal, .mx TLD,
   nav hover underline per §8.1). All other UI uses navy / cream / white /
   slate. Status colors only inside .badge--*. */

:root {
  /* Palette */
  --navy:      #0B2545;
  --navy-deep: #08203b;
  --navy-50:   rgba(11, 37, 69, 0.08);
  --navy-12:   rgba(11, 37, 69, 0.12);
  --gold:      #C9A227;
  --gold-soft: rgba(201, 162, 39, 0.18);
  --cream:     #F5F1E8;
  --cream-2:   #EFEADC;
  --white:     #FFFFFF;
  --graphite:  #1F232A;
  --slate:     #6B7280;
  --slate-2:   #9AA1AB;
  --line:      #E3DECE;
  --line-2:    #D7D1BE;

  --success:   #1F7A4D;
  --success-50:rgba(31, 122, 77, 0.12);
  --warning:   #B7791F;
  --warning-50:rgba(183, 121, 31, 0.14);
  --danger:    #9B2C2C;
  --danger-50: rgba(155, 44, 44, 0.12);

  /* Type */
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;

  /* Layout */
  --maxw:    72rem;
  --maxw-narrow: 44rem;
  --gutter:  1.5rem;
  --radius:  10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Shadows — restrained, brand calls for no drop shadows on the logo,
     but UI cards can have a soft elevation. */
  --shadow-sm: 0 1px 2px rgba(11,37,69,0.06), 0 1px 1px rgba(11,37,69,0.04);
  --shadow-md: 0 6px 20px rgba(11,37,69,0.08), 0 2px 6px rgba(11,37,69,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(11,37,69,0.18), 0 8px 16px -8px rgba(11,37,69,0.08);
}

/* ---------------------------------------------------------- Reset & base */

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { border-bottom-color: var(--gold); }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.18; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 14px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
p  { margin: 0 0 0.75em; }

em { font-style: italic; color: inherit; }

.mono { font-feature-settings: "tnum"; letter-spacing: 0.02em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--cream);
  padding: 0.5rem 0.75rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------- Containers */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}
.container--narrow { max-width: var(--maxw-narrow); }

.center { text-align: center; }

/* ----------------------------------------------------------------- Eyebrow */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.85rem;
}
.eyebrow--gold { color: var(--gold); }

/* -------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 80ms ease;
  text-decoration: none;
}
.btn:hover { border-bottom-color: transparent; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--navy); color: var(--cream); }
.btn--primary:hover { background: var(--navy-deep); color: var(--cream); }

.btn--ghost {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--cream); }

.btn--sm { padding: 0.55rem 0.9rem; font-size: 14px; }

/* --------------------------------------------------------- Site header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand img { height: 44px; width: auto; }

.site-nav {
  display: flex; gap: 1.5rem;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px; font-weight: 500;
  color: var(--navy);
  padding: 0.25rem 0;
}
/* §8.1: gold underline-on-hover for nav. */
.site-nav a:hover { border-bottom-color: var(--gold); }

.site-header__cta { margin-left: 0.5rem; }

@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* -------------------------------------------------------------- Sections */

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); color: var(--cream); }
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--cream); }
.section--navy p  { color: rgba(245, 241, 232, 0.86); }

.section__head { max-width: 44rem; margin: 0 0 2.5rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--inverse h2,
.section__head--inverse p { color: var(--cream); }
.section__sub {
  font-size: 18px;
  color: var(--graphite);
  margin: 0.5rem 0 0;
  max-width: 36em;
}
.section--navy .section__sub { color: rgba(245, 241, 232, 0.82); }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------- Grid */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- Hero */

.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(11,37,69,0.05), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(201,162,39,0.07), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__title { margin-bottom: 1rem; }
.hero__title em { color: var(--navy); font-style: normal; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--graphite);
  max-width: 36em;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }
.hero__trust {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-size: 13px; color: var(--slate);
  letter-spacing: 0.04em;
}
.hero__trust li { position: relative; padding-left: 1rem; }
.hero__trust li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); transform: translateY(-50%);
}

/* ---------------------------------------------------- Hero dossier card */

.hero__visual {
  display: flex; justify-content: center;
  filter: drop-shadow(0 30px 40px rgba(11,37,69,0.12));
}

.dossier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  width: 100%;
  max-width: 26rem;
  box-shadow: var(--shadow-md);
}
.dossier-card__head {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--cream);
  font-weight: 600; letter-spacing: 0.04em;
  display: grid; place-items: center;
  font-size: 15px;
}
.dossier-card__name { margin: 0; font-weight: 600; font-size: 17px; color: var(--navy); }
.dossier-card__sub  { margin: 0; font-size: 13px; color: var(--slate); }

.seal {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--gold-soft);
  flex: none;
}

.dossier-card__badges {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.85rem 0;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 12px; font-weight: 500;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}
.badge--ok   { color: var(--success); background: var(--success-50); border-color: rgba(31,122,77,0.25); }
.badge--warn { color: var(--warning); background: var(--warning-50); border-color: rgba(183,121,31,0.25); }
.badge--err  { color: var(--danger);  background: var(--danger-50);  border-color: rgba(155,44,44,0.25); }

.dossier-card__facts {
  margin: 0; padding: 0.85rem 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dossier-card__facts div { display: grid; gap: 0.15rem; }
.dossier-card__facts dt { font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; }
.dossier-card__facts dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--navy); }

.dossier-card__foot {
  display: flex; align-items: center; gap: 0.4rem;
  padding-top: 0.85rem;
  font-size: 12px; color: var(--slate);
}
.dossier-card__foot svg { color: var(--gold); }

/* ----------------------------------------------------------- Cards (problem) */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.card h3 { margin-top: 0.75rem; margin-bottom: 0.35rem; }
.card p  { margin: 0; color: var(--graphite); }

.icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-50);
  color: var(--navy);
}

/* ---------------------------------------------------------------- Steps */

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  display: inline-block;
  font-size: 13px; font-weight: 600; color: var(--slate);
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 17px; margin: 0 0 0.4rem; }
.step p  { margin: 0; font-size: 14px; color: var(--graphite); }

/* ---------------------------------------------------------------- Roles */

.role {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.role:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.role--featured {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.role--featured h3,
.role--featured .role__price,
.role--featured .role__pitch { color: var(--cream); }
.role--featured .ticklist li { color: rgba(245,241,232,0.92); }
.role--featured .ticklist li::before { background: var(--gold); }
.role--featured .role__icon { background: rgba(245,241,232,0.12); color: var(--cream); }
.role--featured .role__cta { color: var(--cream); }
.role--featured .role__cta:hover { color: var(--gold); border-bottom-color: var(--gold); }

.role__head {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.85rem; align-items: center;
  margin-bottom: 0.9rem;
}
.role__icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-50);
  color: var(--navy);
}
.role__head h3 { margin: 0; font-size: 19px; }
.role__price {
  margin: 0.1rem 0 0;
  font-size: 13px; color: var(--slate); letter-spacing: 0.02em;
}
.role__pitch { font-size: 15px; color: var(--graphite); margin: 0 0 1rem; }

.ticklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ticklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.75rem;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--graphite);
}
.ticklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.95em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy);
}

.role__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 15px;
  color: var(--navy);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}
.role__cta:hover { border-bottom-color: var(--gold); }

/* ---------------------------------------------------------- Differentiators */

.features {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 980px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.feature__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.feature h3 { margin: 0 0 0.4rem; }
.feature p  { margin: 0; color: var(--graphite); }

/* --------------------------------------------------------- Compliance band */

.compliance {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 56rem;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem 2rem;
}
@media (max-width: 720px) { .compliance { grid-template-columns: 1fr; } }
.compliance li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem;
  align-items: start;
  padding: 0.5rem 0;
  color: rgba(245, 241, 232, 0.92);
  line-height: 1.55;
}
.compliance svg { color: var(--gold); margin-top: 0.15rem; flex: none; }

/* --------------------------------------------------------------- Waitlist */

.waitlist-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.waitlist-form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.35rem; }
.field__label {
  font-size: 13px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.02em;
}
.field__hint {
  font-style: normal; font-weight: 400; color: var(--slate);
}
.field input,
.field select,
.field textarea {
  font: inherit; color: var(--graphite);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--slate-2); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--slate); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled { background: var(--cream-2); cursor: not-allowed; }

.waitlist-form__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  margin-top: 0.25rem;
}
.form-status { min-height: 1.25rem; color: var(--slate); font-size: 14px; margin: 0; }
.form-status.is-error   { color: var(--danger);  }
.form-status.is-success { color: var(--success); }

.micro {
  font-size: 12.5px;
  color: var(--slate);
  margin: 1rem 0 0;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------- Site footer */

.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__brand p {
  margin: 1rem 0 0;
  color: var(--slate);
  font-size: 14px;
  max-width: 22em;
}
.site-footer nav h4 { margin: 0 0 0.75rem; color: var(--slate); }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer nav a { font-size: 14.5px; color: var(--navy); }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ 404 */

.not-found { max-width: 32rem; margin: 6rem auto; padding: 0 var(--gutter); text-align: center; }
.not-found h1 { font-size: 96px; margin-bottom: 0.25em; }

/* ------------------------------------------------------- Motion respect */

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