/* ===========================
   Capital Priority — Styles
   =========================== */

:root {
  --bg: #0b1020;
  --bg-2: #0f1530;
  --surface: #121a36;
  --surface-2: #182246;
  --text: #e9edf7;
  --muted: #9aa3bf;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #d4af37;
  --gold-2: #f4d76e;
  --accent: #6ea8ff;
  --green: #2ecc71;
  --red: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  --container: 1180px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(110, 168, 255, 0.10), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.06);
}

.accent {
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #1a1408;
  box-shadow: 0 12px 30px -10px rgba(212, 175, 55, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(212, 175, 55, 0.75); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--link {
  background: transparent;
  color: var(--text);
  padding: 14px 6px;
}
.btn--link:hover { color: var(--gold); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.65);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(212,175,55,0.15), rgba(212,175,55,0.04));
  border: 1px solid rgba(212,175,55,0.3);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand__name span { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links .btn { padding: 10px 18px; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 60px; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(212, 175, 55, 0.18), transparent 65%),
    radial-gradient(500px 300px at 20% 70%, rgba(110, 168, 255, 0.15), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  margin: 18px 0 18px;
}
.hero__sub {
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 32px;
  color: #c6cce0;
}
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.hero__stats {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 540px;
}
.hero__stats li {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 16px;
  border-left: 2px solid rgba(212,175,55,0.5);
}
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
}
.hero__stats span { color: var(--muted); font-size: 0.85rem; }

/* Hero card */
.hero__card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.card-glow {
  position: absolute; inset: -1px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(212,175,55,0.4), transparent 40%, rgba(110,168,255,0.3));
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
}
.hero__card-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: var(--muted);
  margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(46,204,113,0.18); }

.hero__card-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero__card-row .num { color: var(--text); font-weight: 600; text-align: right; }
.bar {
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 999px;
}

.hero__card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(46,204,113,0.14);
  color: #7ee2a8;
  border: 1px solid rgba(46,204,113,0.25);
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__label {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.trust__logos {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 28px;
}
.trust__logos span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
  opacity: 0.65;
  transition: opacity .2s, color .2s;
}
.trust__logos span:hover { opacity: 1; color: var(--text); }

/* ---------- Section heads ---------- */
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin: 0 auto 56px; text-align: center; }
.section__head h2 { margin: 16px 0 14px; }
.section__head p { font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { padding: 100px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.4);
  box-shadow: var(--shadow-md);
}
.service-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(110,168,255,0.12);
  color: #b6cdff;
  border: 1px solid rgba(110,168,255,0.25);
  margin-bottom: 18px;
}
.service-card--primary .service-card__tag {
  background: rgba(212,175,55,0.12);
  color: var(--gold-2);
  border-color: rgba(212,175,55,0.3);
}
.service-card--secondary .service-card__tag {
  background: rgba(46,204,113,0.12);
  color: #7ee2a8;
  border-color: rgba(46,204,113,0.25);
}
.service-card h3 { margin-bottom: 12px; }
.service-card > p { margin-bottom: 20px; }
.service-card__list {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 10px;
  flex: 1;
}
.service-card__list li {
  position: relative;
  padding-left: 22px;
  color: #c6cce0;
  font-size: 0.95rem;
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.service-card__cta {
  font-weight: 600;
  color: var(--gold);
  transition: gap .2s ease, color .2s;
}
.service-card__cta:hover { color: var(--gold-2); }

/* ---------- Methodology ---------- */
.method {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(212,175,55,0.08), transparent 60%);
}
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
}
.step h4 { margin-bottom: 8px; }

/* ---------- Founder ---------- */
.founder {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 15% 30%, rgba(212,175,55,0.10), transparent 60%);
}
.founder__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.founder__media {
  position: relative;
}
.founder__photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
}
.founder__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,16,32,0.55) 100%);
  pointer-events: none;
}
.founder__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.founder__badge {
  position: absolute;
  bottom: 24px; right: -22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1408;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(212, 175, 55, 0.55);
  display: flex; flex-direction: column;
  align-items: center;
  z-index: 2;
}
.founder__badge span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.founder__badge small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
  font-weight: 600;
}

.founder__content h2 { margin: 16px 0 18px; }
.founder__lead {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.65;
}
.founder__bio {
  margin-bottom: 28px;
  line-height: 1.65;
}
.founder__bio em {
  color: var(--gold-2);
  font-style: italic;
}

.founder__creds {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 420px;
}
.founder__creds li {
  display: flex; flex-direction: column;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.founder__creds strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.founder__creds span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Casos de éxito ---------- */
.cases { padding: 100px 0; }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.case-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.4);
  box-shadow: var(--shadow-md);
}
.case-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.case-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .6s ease;
}
.case-card:hover .case-card__media img { transform: scale(1.06); }
.case-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,16,32,0.85) 100%);
  pointer-events: none;
}
.case-card__kpi {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1408;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px -8px rgba(212,175,55,0.55);
}
.case-card__body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column;
  flex: 1;
}
.case-card__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.case-card__body h3 {
  margin-bottom: 10px;
}
.case-card__body p {
  color: #c6cce0;
  margin-bottom: 18px;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
}
.case-card__person {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.case-card__person strong { color: var(--text); }
.case-card__person span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(110,168,255,0.12), transparent 60%),
    radial-gradient(600px 300px at 10% 80%, rgba(212,175,55,0.10), transparent 60%);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact__copy h2 { margin: 16px 0 14px; }
.contact__copy p { font-size: 1.05rem; margin-bottom: 22px; }
.contact__benefits {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.contact__benefits li {
  color: var(--text);
  font-weight: 500;
}

.contact__form {
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .2s, background .2s;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
}
.field textarea { resize: vertical; min-height: 100px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form__success {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(46,204,113,0.12);
  color: #7ee2a8;
  border: 1px solid rgba(46,204,113,0.25);
  font-size: 0.92rem;
}
.form__error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,107,107,0.12);
  color: #ff9999;
  border: 1px solid rgba(255,107,107,0.25);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 60px;
  background: var(--bg-2);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p {
  margin-top: 12px;
  max-width: 360px;
  font-size: 0.95rem;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 6px;
  font-weight: 600;
}
.footer__col a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color .2s;
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 60px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { order: 2; }
  .services__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: 1fr; }
  .founder__inner { grid-template-columns: 1fr; gap: 40px; }
  .founder__badge { right: auto; left: 50%; transform: translateX(-50%); bottom: -22px; }
  .founder__photo { max-width: 460px; margin: 0 auto; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav__links .btn { margin-top: 10px; width: 100%; }
  .nav.is-open .nav__links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__toggle { display: inline-flex; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
