/* =========================================================
   TRIBU · Plataforma de Inversión
   Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

/* ------- Tokens ------- */
:root {
  /* Brand colors */
  --navy: #00263E;
  --navy-90: rgba(0, 38, 62, 0.9);
  --navy-70: rgba(0, 38, 62, 0.7);
  --navy-50: rgba(0, 38, 62, 0.5);
  --navy-15: rgba(0, 38, 62, 0.15);
  --navy-08: rgba(0, 38, 62, 0.08);
  --navy-04: rgba(0, 38, 62, 0.04);

  --orange: #FA3723;
  --orange-soft: #FFF1EE;
  --orange-dark: #D62A18;

  --beige: #F0DDB1;
  --beige-soft: #FAF3E2;
  --beige-deep: #E5CC93;

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #FBFAF7;
  --line: #E8E4DA;
  --line-soft: #F2EFE8;
  --ink: #0E1A24;
  --muted: #6B7681;
  --muted-2: #8E97A0;

  /* Semantic */
  --success: #1F8A5B;
  --success-soft: #E8F5EF;
  --warning: #C77A00;

  /* Type */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 38, 62, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 38, 62, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 38, 62, 0.12);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ------- Reset ------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ------- Type scale ------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
}

h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  color: var(--navy);
}

h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--navy-70);
}

.small { font-size: 14px; }
.tiny { font-size: 12px; }

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

.section { padding: clamp(60px, 8vw, 120px) 0; }
.section-sm { padding: clamp(40px, 5vw, 70px) 0; }

/* ------- Header / Nav ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  height: 36px;
}
.brand img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--beige); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: #001A2C; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }

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

.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ------- Card ------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}
.card:hover { border-color: var(--navy-15); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ------- Badge / Tag ------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
}
.badge-orange { background: var(--orange-soft); color: var(--orange-dark); }
.badge-beige { background: var(--beige); color: var(--navy); }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ------- Forms ------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-08);
}
.field-hint { font-size: 12px; color: var(--muted); }

/* ------- Footer ------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 32px;
  font-size: 14px;
}
.site-footer h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.15s; }
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 40px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   HOME PAGE
   ========================================================= */

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 130%;
  background: radial-gradient(circle, rgba(250, 55, 35, 0.18), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(240, 221, 177, 0.10), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--beige);
}
.hero .lead { color: rgba(255, 255, 255, 0.78); margin-bottom: 36px; max-width: 560px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-stat .num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--beige);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat .lbl { font-size: 13px; color: rgba(255, 255, 255, 0.65); }

/* Hero visual: stylized portfolio card stack */
.hero-visual {
  position: relative;
  height: 480px;
}
.hero-card {
  position: absolute;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  width: 280px;
}
.hero-card-1 {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}
.hero-card-2 {
  top: 100px;
  right: 0;
  transform: rotate(3deg);
  background: var(--beige);
}
.hero-card-3 {
  bottom: 0;
  left: 60px;
  transform: rotate(-2deg);
}

.hero-card .hc-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); font-weight: 700; margin-bottom: 8px; }
.hero-card .hc-title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 14px; }
.hero-card .hc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hero-card .hc-row:last-child { border: none; }
.hero-card .hc-row b { color: var(--navy); font-weight: 700; }
.hero-card .hc-progress { height: 6px; background: var(--line); border-radius: 999px; margin-top: 14px; overflow: hidden; }
.hero-card .hc-progress span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }

/* Trust bar */
.trust-bar {
  background: var(--beige-soft);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-row > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--navy);
}
.trust-logos {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-logos span {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy-50);
  font-style: italic;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.cat-card .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}
.cat-card.real-estate .cat-icon { background: var(--beige); color: var(--navy); }
.cat-card.negocios .cat-icon { background: var(--orange-soft); color: var(--orange); }
.cat-card.import .cat-icon { background: var(--navy); color: var(--beige); }

.cat-card h3 { margin-bottom: 12px; }
.cat-card p { color: var(--muted); margin-bottom: 24px; line-height: 1.55; }

.cat-stats {
  display: flex;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.cat-stats b { color: var(--navy); font-weight: 700; }

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}
.cat-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

/* Section heading */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.sec-head .left { max-width: 640px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { color: var(--muted); }

/* Project cards (grid) */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.proj-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.proj-card:hover { border-color: var(--navy-15); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.proj-img {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.proj-img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
}
.proj-img-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 38, 62, 0.5));
}
.proj-img .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.proj-img .status { position: absolute; top: 16px; right: 16px; z-index: 2; }

.bg-real-estate { background: linear-gradient(135deg, #00263E 0%, #134E72 100%); color: var(--beige); }
.bg-negocios { background: linear-gradient(135deg, #FA3723 0%, #C73116 100%); color: var(--white); }
.bg-import { background: linear-gradient(135deg, #F0DDB1 0%, #E5CC93 100%); color: var(--navy); }
.bg-mix-1 { background: linear-gradient(135deg, #00263E 0%, #FA3723 100%); color: var(--white); }
.bg-mix-2 { background: linear-gradient(135deg, #F0DDB1 0%, #00263E 100%); color: var(--white); }
.bg-mix-3 { background: linear-gradient(135deg, #FA3723 0%, #F0DDB1 100%); color: var(--navy); }

.proj-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.proj-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}
.proj-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.proj-loc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.proj-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.proj-meta .pm-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.proj-meta .pm-val { font-size: 16px; font-weight: 700; color: var(--navy); }
.proj-meta .pm-val.accent { color: var(--orange); }

.proj-progress { margin-bottom: 14px; }
.proj-progress-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.proj-progress-bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width 0.4s ease; }
.proj-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 8px;
  color: var(--muted);
}
.proj-progress-info b { color: var(--navy); }

.proj-cta { margin-top: auto; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.step {
  position: relative;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step .num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Dual section: investor + entrepreneur */
.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.dual-card {
  padding: 48px 40px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.dual-card.investor {
  background: var(--navy);
  color: var(--white);
}
.dual-card.investor h3 { color: var(--white); }
.dual-card.entrepreneur {
  background: var(--beige);
  color: var(--navy);
}

.dual-card h3 { font-family: var(--font-serif); font-size: 32px; font-weight: 500; margin-bottom: 16px; line-height: 1.15; }
.dual-card p { font-size: 16px; line-height: 1.6; margin-bottom: 28px; opacity: 0.9; }
.dual-card ul { list-style: none; margin-bottom: 32px; }
.dual-card ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid currentColor;
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.dual-card.entrepreneur ul li { border-color: rgba(0, 38, 62, 0.15); }
.dual-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--orange);
  border-radius: 50%;
}
.dual-card ul li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

/* Insights */
.insights {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.insight-feat {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.insight-feat .img { aspect-ratio: 16/9; }
.insight-feat .body { padding: 28px; flex: 1; }
.insight-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.insight-card:hover, .insight-feat:hover { border-color: var(--navy-15); transform: translateY(-2px); }
.insight-feat h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; line-height: 1.2; margin: 12px 0; }
.insight-card h4 { font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.3; margin: 12px 0; flex: 1; }
.insight-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.insight-meta b { color: var(--orange); }

/* Newsletter */
.newsletter {
  background: var(--beige);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}
.newsletter h3 { font-family: var(--font-serif); font-size: 32px; line-height: 1.15; margin-bottom: 12px; }
.newsletter p { color: var(--navy-70); }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { flex: 1; padding: 14px 16px; border: 1px solid var(--navy-15); border-radius: var(--r-md); background: var(--white); }

/* =========================================================
   PROJECTS LIST PAGE
   ========================================================= */
.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: radial-gradient(circle at top right, rgba(250, 55, 35, 0.18), transparent 60%);
}
.page-head h1 { color: var(--white); position: relative; z-index: 1; }
.page-head .lead { color: rgba(255, 255, 255, 0.72); max-width: 640px; margin-top: 20px; position: relative; z-index: 1; }
.breadcrumb {
  font-size: 13px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
  position: relative; z-index: 1;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: var(--beige); }
.breadcrumb span { color: var(--beige); margin: 0 8px; }

.list-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: sticky;
  top: 90px;
  height: fit-content;
}
.filters h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border: none; margin-bottom: 0; }
.filter-group h5 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--navy); cursor: pointer; }
.checkbox-row input { accent-color: var(--orange); }
.checkbox-row .count { margin-left: auto; font-size: 12px; color: var(--muted); }

.list-main { padding-bottom: 80px; }
.list-toolbar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.list-toolbar .results { font-size: 14px; color: var(--muted); }
.list-toolbar .results b { color: var(--navy); }
.list-toolbar select { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); font-size: 13px; }

.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.pagination a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  color: var(--navy);
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--navy); }
.pagination a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* =========================================================
   PROJECT DETAIL
   ========================================================= */
.detail-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(at top right, rgba(250, 55, 35, 0.15), transparent 50%);
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
  align-items: center;
}
.detail-tags { display: flex; gap: 8px; margin-bottom: 18px; }
.detail-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}
.detail-hero h1 em { color: var(--beige); font-style: italic; }
.detail-hero .lead { color: rgba(255, 255, 255, 0.78); max-width: 580px; }
.detail-loc { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }

.detail-gallery {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-main {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--beige);
  background: linear-gradient(135deg, #00263E 0%, #134E72 70%, #FA3723 130%);
}
.gallery-thumbs {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; gap: 8px;
}
.gallery-thumbs span {
  flex: 1; height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.gallery-thumbs span.active { background: var(--orange); border-color: var(--orange); }

/* KPI bar */
.kpi-bar {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: -50px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.kpi-cell {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}
.kpi-cell:last-child { border-right: none; }
.kpi-cell .kpi-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.kpi-cell .kpi-val { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.kpi-cell .kpi-val.accent { color: var(--orange); }

/* Detail layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

.detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
}
.detail-tabs button {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.15s;
}
.detail-tabs button:hover { color: var(--navy); }
.detail-tabs button.active { color: var(--orange); border-bottom-color: var(--orange); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 { margin-bottom: 20px; font-size: 32px; }
.tab-content h3 { margin: 32px 0 12px; }
.tab-content p { color: var(--navy-70); margin-bottom: 16px; line-height: 1.65; font-size: 16px; }

.kpi-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.kpi-tile {
  background: var(--beige-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.kpi-tile .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.kpi-tile .val { font-family: var(--font-serif); font-size: 24px; color: var(--navy); font-weight: 600; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.team-mem {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
}
.team-mem h4 { margin-bottom: 4px; }
.team-mem .role { font-size: 13px; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.team-mem p { font-size: 14px; color: var(--muted); margin: 0; }

.docs-list { list-style: none; margin-top: 20px; }
.doc-row {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  gap: 16px;
  transition: all 0.15s;
}
.doc-row:hover { border-color: var(--navy); }
.doc-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 11px;
}
.doc-info { flex: 1; }
.doc-info .name { font-weight: 600; color: var(--navy); font-size: 15px; }
.doc-info .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.doc-row .lock { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.risk-list { list-style: none; }
.risk-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
}
.risk-list li:last-child { border: none; }
.risk-list .ri-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.risk-list h4 { margin-bottom: 6px; font-size: 16px; }
.risk-list p { font-size: 14px; color: var(--muted); margin: 0; }

/* Investment widget */
.invest-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-md);
}
.iw-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.iw-deadline { font-size: 13px; color: var(--muted); }
.iw-deadline b { color: var(--navy); }

.iw-progress { margin-bottom: 24px; }
.iw-progress-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.iw-progress-info .raised { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
.iw-progress-info .pct { color: var(--orange); font-weight: 700; }
.iw-progress-info .target { color: var(--muted); font-size: 13px; }
.iw-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.iw-bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }

.iw-amount {
  background: var(--beige-soft);
  border: 1px solid var(--beige);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 16px;
}
.iw-amount label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; margin-bottom: 8px; }
.iw-amount input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  border: none;
  background: transparent;
  outline: none;
  letter-spacing: -0.02em;
}
.iw-presets { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.iw-preset {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}
.iw-preset:hover, .iw-preset.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.iw-projection {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 16px;
}
.iw-proj-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.iw-proj-row .lbl { color: var(--muted); }
.iw-proj-row .val { font-weight: 700; color: var(--navy); }
.iw-proj-row.total .val { color: var(--orange); font-size: 18px; font-family: var(--font-serif); font-weight: 600; }

.iw-foot { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 14px; }

/* QA */
.qa-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.qa-q {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.qa-q .arrow { color: var(--orange); transition: transform 0.2s; }
.qa-item.open .qa-q .arrow { transform: rotate(180deg); }
.qa-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  color: var(--navy-70);
  font-size: 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.qa-item.open .qa-a {
  padding: 0 22px 22px;
  max-height: 500px;
}

/* =========================================================
   DASHBOARD
   ========================================================= */
.dash-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
}
.dash-side {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 32px 0;
}
.dash-user {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.dash-user .name { font-weight: 700; color: var(--navy); font-size: 14px; line-height: 1.2; }
.dash-user .status { font-size: 12px; color: var(--success); }

.dash-nav { padding: 20px 12px; }
.dash-nav h6 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  padding: 0 12px;
  margin: 16px 0 8px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.dash-nav a:hover { background: var(--paper); }
.dash-nav a.active { background: var(--navy); color: var(--white); }
.dash-nav .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: auto; }

.dash-main {
  padding: 40px clamp(24px, 4vw, 56px);
  background: var(--paper);
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-head h1 { font-size: 36px; }
.dash-head p { color: var(--muted); margin-top: 4px; }

/* Stat tiles */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.stat-tile.feat { background: var(--navy); color: var(--white); border-color: var(--navy); }
.stat-tile.feat .st-lbl { color: rgba(255, 255, 255, 0.7); }
.stat-tile.feat .st-val { color: var(--white); }
.stat-tile.feat .st-trend { color: var(--beige); }
.st-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.st-val { font-family: var(--font-serif); font-size: 32px; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.st-trend { font-size: 13px; font-weight: 600; color: var(--success); }
.st-trend.down { color: var(--orange); }

.dash-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.panel-head h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; }
.panel-head a { font-size: 13px; color: var(--orange); font-weight: 600; }

/* Chart */
.chart {
  height: 240px;
  position: relative;
  margin: 12px 0;
}

/* Allocation */
.alloc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.alloc-row:last-child { border: none; }
.alloc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.alloc-row .name { flex: 1; font-weight: 600; color: var(--navy); }
.alloc-row .pct { color: var(--muted); width: 50px; text-align: right; }
.alloc-row .amt { font-weight: 700; color: var(--navy); width: 90px; text-align: right; }

/* Investments table */
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.inv-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  vertical-align: middle;
}
.inv-table tr:last-child td { border-bottom: none; }
.inv-table .proj-cell { display: flex; gap: 12px; align-items: center; }
.inv-table .mini-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.inv-table .pname { font-weight: 600; color: var(--navy); }
.inv-table .pcat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.inv-table .amount { font-family: var(--font-serif); font-weight: 600; color: var(--navy); font-size: 16px; }
.inv-table .gain { color: var(--success); font-weight: 700; }
.inv-table .gain.down { color: var(--orange); }

/* =========================================================
   ENTREPRENEUR FORM
   ========================================================= */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
}

.steps-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.steps-bar .sb-item {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
}
.steps-bar .sb-item.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.steps-bar .sb-item .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section { margin-bottom: 32px; }
.form-section h3 { font-family: var(--font-sans); font-size: 18px; margin-bottom: 6px; }
.form-section .small { color: var(--muted); margin-bottom: 18px; }

.form-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}

.aside-card {
  background: var(--beige);
  border-radius: var(--r-xl);
  padding: 28px;
  position: sticky;
  top: 88px;
}
.aside-card h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 16px; }
.aside-card ol { padding-left: 20px; }
.aside-card ol li { padding: 8px 0; font-size: 14px; color: var(--navy); }

.aside-card .timeline { list-style: none; padding: 0; }
.aside-card .timeline li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(0, 38, 62, 0.12);
  position: relative;
  font-size: 14px;
}
.aside-card .timeline li:last-child { border: none; }
.aside-card .timeline li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 14px; height: 14px;
  border: 2px solid var(--orange);
  background: var(--beige);
  border-radius: 50%;
}
.aside-card .timeline li b { display: block; color: var(--navy); margin-bottom: 2px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cat-grid, .proj-grid, .insights, .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dual { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .list-layout, .detail-layout, .form-layout { grid-template-columns: 1fr; }
  .filters, .invest-widget, .aside-card { position: static; }
  .kpi-bar { grid-template-columns: repeat(3, 1fr); }
  .kpi-cell:nth-child(3) { border-right: none; }
  .kpi-cell:nth-child(4), .kpi-cell:nth-child(5) { border-top: 1px solid var(--line); }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-row { grid-template-columns: 1fr; }
  .insights .insight-feat { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .detail-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .cat-grid, .proj-grid, .insights, .list-grid, .stat-tiles, .team-grid, .kpi-pair { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .kpi-bar { grid-template-columns: 1fr 1fr; }
  .kpi-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi-cell:nth-child(2n) { border-right: none; }
  .kpi-cell:nth-child(5) { border-bottom: none; grid-column: 1/-1; }
  .form-card { padding: 28px 22px; }
  .steps-bar { flex-wrap: wrap; }
  .steps-bar .sb-item { flex: 1 1 calc(50% - 4px); }
  .detail-tabs { padding-bottom: 4px; }
  .newsletter form { flex-direction: column; }
}

/* Fix badges superpuestos en tarjeta de proyecto */
.proj-img .badge:first-child {
  top: 16px;
  left: 16px;
}
.proj-img .badge.status {
  top: 16px;
  right: 16px;
  left: auto;
}
