/* ============================================================
   HITOS Y LEGADOS — Brand tokens & base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root{
  --navy-900: #1A1F3C;
  --navy-800: #2E3559;
  --burgundy: #8B1E2F;
  --burgundy-soft: rgba(139,30,47,0.10);
  --gold: #C9A227;
  --gold-soft: rgba(201,162,39,0.14);
  --cream: #F7F3EA;
  --paper: #FCFAF5;
  --ink: #201F2B;
  --slate: #6B6F86;
  --mist: #C7CBE0;
  --line: rgba(32,31,43,0.10);
  --line-dark: rgba(255,255,255,0.14);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--serif); font-weight: 600; margin:0; color: var(--navy-900); }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button, .btn{ font-family: var(--sans); cursor:pointer; }

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

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

@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
}

/* ---------- Restricted-access utility bar (site-wide) ---------- */

.access-bar{
  background: var(--navy-900);
  color: var(--mist);
  border-bottom: 1px solid var(--line-dark);
}
.access-bar .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
}
.access-bar__label{
  display:flex;
  align-items:center;
  gap: 9px;
}
.access-bar__label svg + span{ margin-left: 9px; }
.access-bar__label svg{ flex: none; opacity: .85; }
.access-bar__label span{ color: #fff; font-weight: 500; }
.access-bar__label small{ display:block; color: var(--mist); font-weight:400; }
.access-bar__cta{
  flex: none;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.access-bar__cta:hover{ background: #dcb544; }

@media (max-width: 640px){
  .access-bar .wrap{ flex-direction:column; align-items:flex-start; gap:10px; }
}

/* ---------- Main nav ---------- */

.site-header{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img + span{ margin-left: 12px; }
.brand img{ height: 40px; width:auto; }
.brand-word{ font-family: var(--serif); font-size: 19px; font-weight:600; color: var(--navy-900); white-space: nowrap; }

.main-nav ul{ display:flex; }
.main-nav li + li{ margin-left: 30px; }
.main-nav a{
  font-size: 14.5px;
  color: var(--ink);
  position:relative;
}
.main-nav a:hover{ color: var(--burgundy); }

.nav-toggle{ display:none; }

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

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

.eyebrow{
  display:inline-block;
  font-size: 12.5px;
  letter-spacing: .09em;
  font-weight:600;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.eyebrow.on-dark{ color: var(--gold); }

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

.hero{
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: var(--navy-800);
  top: -260px; right: -180px;
}
.hero::after{
  content:"";
  position:absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: var(--burgundy);
  opacity: .16;
  bottom: -260px; left: -160px;
}
.hero .wrap{
  position:relative;
  padding-top: 96px;
  padding-bottom: 104px;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  color:#fff;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.12;
  font-weight: 600;
}
.hero h1 em{
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero__sub{
  margin-top: 22px;
  font-size: 17px;
  color: var(--mist);
  max-width: 46ch;
}
.hero__ctas{
  margin-top: 34px;
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__ctas > * + *{ margin-left: 16px; }
.hero__figure{
  background: #fff;
  border-radius: 14px;
  padding: 34px 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero__figure img{ width:100%; }
.hero__credit{
  margin-top: 26px;
  font-size: 13px;
  color: var(--mist);
}

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero__figure{ max-width: 360px; }
}

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

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease;
}
.btn-primary{ background: var(--gold); color: var(--navy-900); }
.btn-primary:hover{ background:#dcb544; }
.btn-ghost{ border-color: rgba(255,255,255,.4); color:#fff; }
.btn-ghost:hover{ border-color:#fff; }
.btn-outline{ border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover{ background: var(--navy-900); color:#fff; }
.btn-block{ width:100%; justify-content:center; }

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

section{ padding: 92px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(26px, 3vw, 34px); }
.section-head p{ margin-top: 14px; color: var(--slate); font-size: 16px; }

.on-dark{ background: var(--navy-900); color: #fff; }
.on-dark h2{ color:#fff; }
.on-dark .section-head p{ color: var(--mist); }
.on-cream{ background: var(--cream); }

/* ---------- Service cards (El servicio) ---------- */

.service-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
}
.service-card__icon{
  width: 46px; height:46px;
  border-radius: 50%;
  background: var(--burgundy-soft);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
}
.service-card h3{ font-size: 19px; margin-bottom: 10px; }
.service-card p{ color: var(--slate); font-size: 15px; }

@media (max-width: 860px){
  .service-grid{ grid-template-columns: 1fr; }
}

/* ---------- Audience (A quién ayudamos) ---------- */

.profile-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.profile-chip{
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  background:#fff;
}

.compare{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare__col{
  padding: 30px 28px;
  border-radius: 4px;
}
.compare__col.has{ background:#fff; border: 1px solid var(--line); }
.compare__col.hasnot{ background: var(--navy-900); color:#fff; }
.compare__col h3{ font-size: 15px; letter-spacing:.03em; margin-bottom:18px; }
.compare__col.hasnot h3{ color: var(--gold); }
.compare__col li{
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.compare__col.hasnot li{ border-top: 1px solid var(--line-dark); color: var(--mist); }
.compare__col li:first-child{ border-top:none; padding-top:0; }

@media (max-width: 720px){
  .compare{ grid-template-columns: 1fr; }
}

/* ---------- Process (Cómo trabajamos) ---------- */

.steps{
  display:grid;
  gap: 0;
}
.step{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child{ border-bottom: 1px solid var(--line); }
.step__num{
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
}
.step h3{ font-size: 18px; margin-bottom: 6px; }
.step p{ color: var(--slate); font-size: 15px; max-width: 62ch; }
.step .tag{
  display:inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--burgundy);
  background: var(--burgundy-soft);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- Guarantees ---------- */

.guarantee-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.guarantee-card{
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 30px 26px;
}
.guarantee-card h3{ color:#fff; font-size: 18px; margin-bottom: 10px; }
.guarantee-card p{ color: var(--mist); font-size: 15px; }
.guarantee-card__icon{ margin-bottom: 18px; }

@media (max-width: 860px){
  .guarantee-grid{ grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */

.team-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.team-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}
.team-card .name{ font-family: var(--serif); font-size: 21px; color: var(--navy-900); }
.team-card .role{ margin-top: 6px; color: var(--burgundy); font-size: 14px; font-weight: 600; }
.team-card p.bio{ margin-top: 16px; color: var(--slate); font-size: 15px; }

@media (max-width: 720px){
  .team-grid{ grid-template-columns: 1fr; }
}

/* ---------- Portal CTA band ---------- */

.portal-band{
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 46px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items:center;
}
.portal-band h2{ color:#fff; font-size: 26px; }
.portal-band p{ color: var(--mist); margin-top: 10px; max-width: 52ch; }
.portal-band__lock{
  width: 52px; height:52px;
  border-radius:50%;
  background: var(--gold-soft);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}

@media (max-width: 780px){
  .portal-band{ grid-template-columns: 1fr; text-align:left; padding: 34px 26px; }
}

/* ---------- Footer ---------- */

.site-footer{
  background: var(--navy-900);
  color: var(--mist);
  padding: 56px 0 28px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
  flex-wrap:wrap;
}
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ height:32px; }
.footer-brand span{ font-family: var(--serif); color:#fff; font-size:17px; }
.footer-contact{ font-size: 14px; display:flex; flex-direction:column; gap:6px; }
.footer-contact a:hover{ color:#fff; }
.footer-bottom{
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--slate);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

@media (max-width: 640px){
  .footer-top{ flex-direction:column; }
}

/* ============================================================
   Portal (login + dashboard) shared
   ============================================================ */

.portal-shell{
  min-height: 100vh;
  background: var(--navy-900);
  position:relative;
  overflow:hidden;
}
.portal-shell::before{
  content:"";
  position:absolute;
  width: 700px; height:700px;
  border-radius:50%;
  background: var(--navy-800);
  top:-320px; left: -260px;
}
.portal-shell::after{
  content:"";
  position:absolute;
  width: 520px; height:520px;
  border-radius:50%;
  background: var(--burgundy);
  opacity:.15;
  bottom:-280px; right:-200px;
}
.portal-topbar{
  position:relative;
  z-index: 2;
}
.portal-topbar .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 24px 32px;
}
.portal-topbar .brand span{ color:#fff; }
.portal-topbar a.back{ color: var(--mist); font-size: 14px; }
.portal-topbar a.back:hover{ color:#fff; }

/* Login */

.login-wrap{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  padding: 48px 20px 100px;
}
.login-card{
  width: 100%;
  max-width: 420px;
  background:#fff;
  border-radius: 8px;
  padding: 44px 38px;
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.login-card .eyebrow{ margin-bottom:10px; }
.login-card h1{ font-size: 25px; margin-bottom: 8px; }
.login-card__sub{ color: var(--slate); font-size: 14.5px; margin-bottom: 30px; }
.field{ margin-bottom: 18px; }
.field label{
  display:block;
  font-size: 13px;
  font-weight:600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input{
  width:100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14.5px;
  background: var(--paper);
}
.field input:focus{ outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field-row{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 24px; font-size: 13.5px; }
.field-row a{ color: var(--burgundy); font-weight:600; }
.login-foot{
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--slate);
}
.login-foot a{ color: var(--burgundy); font-weight:600; }

/* Dashboard */

.dash-wrap{ position:relative; z-index:2; padding-bottom: 90px; }
.dash-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  flex-wrap:wrap;
  gap: 20px;
  margin-bottom: 34px;
}
.dash-head h1{ color:#fff; font-size: 26px; }
.dash-head p{ color: var(--mist); margin-top:6px; font-size:14.5px; }
.dash-user{ display:flex; align-items:center; gap:12px; }
.dash-user__avatar{
  width:38px; height:38px; border-radius:50%;
  background: var(--gold);
  color: var(--navy-900);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px;
}
.dash-user a{ color: var(--mist); font-size: 13.5px; }
.dash-user a:hover{ color:#fff; }

.progress-card{
  background:#fff;
  border-radius: 8px;
  padding: 28px 30px;
  margin-bottom: 34px;
}
.progress-card__top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; flex-wrap:wrap; gap:8px;}
.progress-card__top h2{ font-size: 19px; }
.progress-card__pct{ font-family: var(--serif); font-size: 22px; color: var(--burgundy); }
.progress-track{
  height: 8px;
  border-radius: 999px;
  background: var(--cream);
  overflow:hidden;
}
.progress-fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
}
.progress-card__meta{ margin-top:12px; color: var(--slate); font-size: 13.5px; }

.stage-list{ display:flex; flex-direction:column; gap: 16px; }
.stage-card{
  background:#fff;
  border-radius: 8px;
  padding: 24px 28px;
  display:grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items:center;
}
.stage-card.is-current{ box-shadow: 0 0 0 2px var(--gold) inset; }
.stage-index{
  width:40px; height:40px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight:600;
}
.stage-card.done .stage-index{ background: var(--navy-900); color: var(--gold); }
.stage-card.is-current .stage-index{ background: var(--gold-soft); color: var(--burgundy); }
.stage-card.pending .stage-index{ background: var(--cream); color: var(--slate); }
.stage-body h3{ font-size: 16.5px; margin-bottom: 4px; }
.stage-body p{ color: var(--slate); font-size: 14px; }
.status-pill{
  font-size: 12.5px;
  font-weight:700;
  padding: 6px 13px;
  border-radius: 999px;
  white-space:nowrap;
}
.status-pill.done{ background: var(--navy-900); color: var(--gold); }
.status-pill.current{ background: var(--gold); color: var(--navy-900); }
.status-pill.pending{ background: var(--cream); color: var(--slate); }
.stage-actions{ display:flex; align-items:center; gap:14px; }

@media (max-width: 720px){
  .stage-card{ grid-template-columns: 1fr; text-align:left; }
  .stage-actions{ justify-content:flex-start; }
}

.dash-note{
  margin-top: 36px;
  color: var(--mist);
  font-size: 13.5px;
  text-align:center;
}
