/* ═══════════════════════════════════════════
   TOKENS — PME CAPECO INMOBILIARIO
   Real Estate & Market Intelligence
   Emerald Edition
   ═══════════════════════════════════════════ */
:root {
  --navy: #040d16;
  --navy2: #02080f;
  --navy3: #081524;
  --emerald: #00E676;
  --emerald-glow: rgba(0, 230, 118, .15);
  --emerald-s: rgba(0, 230, 118, .10);
  --gold: #FFC107;
  --cyan: #00BFA5;
  --text: #ffffff;
  --text2: rgba(255, 255, 255, .75);
  --text3: rgba(255, 255, 255, .45);
  --text4: rgba(255, 255, 255, .20);
  --glass: rgba(255, 255, 255, .03);
  --gb: rgba(255, 255, 255, .06);
  --gh: rgba(255, 255, 255, .05);
  --r: 8px;
  --rl: 12px;
  --sh: 0 8px 40px rgba(0, 0, 0, .6);
  --tr: all .3s cubic-bezier(.4, 0, .2, 1);
  --f: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

strong {
  color: #fff;
}

/* --- Layout --- */
.trust-topbar {
  background: var(--navy2);
  border-bottom: 1px solid var(--gb);
  padding: 9px 24px;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
}

.trust-item strong { color: var(--emerald); }

.trust-sep {
  color: var(--text4);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 13, 22, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gb);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-capeco {
  display: flex;
  align-items: center;
  gap: 7px;
}

.capeco-label {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
}

.brand-sep {
  color: var(--text4);
  font-size: 18px;
}

.brand-pme {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--emerald);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  padding: 8px 14px;
  border-radius: 50px;
  transition: var(--tr);
}

.nav-links a:hover {
  color: #fff;
  background: var(--glass);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50px;
  transition: var(--tr);
}

.nav-login:hover {
  color: #fff;
  background: var(--glass);
}

.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--emerald);
  border: none;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 50px;
  transition: var(--tr);
  box-shadow: 0 2px 12px var(--emerald-glow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--tr);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--navy);
  padding: 100px 40px;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  z-index: 999;
}

.mobile-menu a {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.mobile-menu.active {
  display: flex;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  transition: var(--tr);
  border: 1px solid;
}

.pill-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 50px;
}

.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero-h1 em {
  font-style: normal;
  color: var(--emerald);
}

.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.72;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--tr);
}

.btn-primary.full {
  width: 100%;
  justify-content: center;
  border-radius: var(--r);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: var(--tr);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, .55);
  background: var(--glass);
}

.hero-note { font-size: 11px; color: var(--text3); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;}

/* Stats */
.stats-strip {
  padding: 60px 24px;
  border-top: 1px solid var(--gb);
  border-bottom: 1px solid var(--gb);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-block {
  text-align: center;
  padding: 20px 36px;
}

.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.stat-div {
  width: 1px;
  height: 56px;
  background: var(--gb);
}

/* --- Leaders Chart --- */
.leaders-chart-section {
  padding: 80px 24px;
  background: var(--navy3);
  border-bottom: 1px solid var(--gb);
}

.lcs-header { text-align: center; margin-bottom: 50px; }
.lcs-header h2 { font-size: 2rem; margin-top: 15px; }

.leaders-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  background: var(--glass);
  border-radius: var(--rl);
  max-width: 1000px;
  margin: 0 auto;
}

.leader-bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  align-items: center;
  gap: 20px;
}

.lbi-label { font-size: 13px; font-weight: 800; color: var(--text2); letter-spacing: .08em; }
.lbi-track { height: 12px; background: var(--gb); border-radius: 50px; overflow: hidden; }
.lbi-fill { height: 100%; border-radius: 50px; transition: width 1.5s ease-out; box-shadow: 0 0 15px var(--emerald-glow);}
.lbi-val { text-align: right; font-size: 14px; font-weight: 700; }
.lbi-val small { font-size: 10px; color: var(--text3); }

.lcs-footer { text-align: center; margin-top: 30px; font-size: 11px; color: var(--text3); }

/* Sections */
.audience-section { padding: 100px 24px; border-bottom: 1px solid var(--gb); }
.audience-section.alt { background: var(--navy2); }
.aud-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.aud-inner.reverse { direction: rtl; }
.aud-inner.reverse > * { direction: ltr; }
.aud-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 6px 16px; border-radius: 50px; margin-bottom: 18px; }
.aud-text h2 { font-size: clamp(2rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 18px; }
.aud-lead { font-size: 16px; color: var(--text2); line-height: 1.72; margin-bottom: 32px; }
.aud-benefits { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.ab-item { display: flex; gap: 14px; }
.ab-ico { font-size: 24px; flex-shrink: 0; }

/* Dashboard Preview */
.dashboard-preview { background: var(--navy3); border: 1px solid var(--gb); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); }
.dp-header { padding: 12px 16px; background: var(--glass); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gb); }
.dp-body { padding: 24px; }
.dp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.kpi { padding: 16px; background: var(--gh); border-radius: var(--r); }
.kpi-val { font-size: 1.5rem; font-weight: 800; }
.kpi-label { font-size: 11px; color: var(--text3); }
.dp-chart-label { font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.dp-bars { display: flex; flex-direction: column; gap: 12px; }
.dpb-row { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.dpb-bar { flex: 1; height: 8px; background: var(--gb); border-radius: 4px; overflow: hidden; }
.dpb-bar > div { height: 100%; border-radius: 4px; }

/* Sponsor Cards */
.sponsor-card { background: var(--glass); border: 1px solid var(--gb); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); }
.sc-title { padding: 16px 20px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--gb); }
.sc-packages { display: grid; padding: 24px; gap: 16px; }
.sc-pack { padding: 24px; border-radius: var(--rl); background: var(--gh); border: 1px solid var(--gb); }
.sc-pack-name { font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 4px; }
.sc-pack-price { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.sc-pack-price span { font-size: 12px; color: var(--text3); }
.sc-pack ul { list-style: none; font-size: 13px; color: var(--text2); }
.sc-pack li { margin-bottom: 6px; }

/* Use Cases */
.use-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ucg-card { padding: 24px; background: var(--glass); border: 1px solid var(--gb); border-radius: var(--rl); }
.ucg-icon { font-size: 24px; margin-bottom: 12px; }
.ucg-card strong { display: block; margin-bottom: 8px; font-size: 14px; }
.ucg-card p { font-size: 13px; color: var(--text3); line-height: 1.5; }

/* Contact Form */
.prefooter-cta { padding: 100px 24px; }
.pfc-inner { max-width: 800px; margin: 0 auto 48px; text-align: center; }
.contact-form-wrap { max-width: 600px; margin: 0 auto; background: var(--glass); border: 1px solid var(--gb); padding: 40px; border-radius: var(--rl); }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cform-group { margin-bottom: 16px; }
.cform-group label { display: block; font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.cform-group input, .cform-group textarea { width: 100%; padding: 12px; background: var(--navy3); border: 1px solid var(--gb); color: #fff; border-radius: var(--r); }

/* Footer */
.footer { padding: 80px 24px 40px; border-top: 1px solid var(--gb); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-col h4 { font-size: 14px; margin-bottom: 20px; }
.footer-col a { display: block; font-size: 13px; color: var(--text3); margin-bottom: 10px; }
.footer-bottom { margin-top: 60px; border-top: 1px solid var(--gb); padding-top: 24px; text-align: center; font-size: 12px; color: var(--text4); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-box { background: var(--navy2); border: 1px solid var(--gb); padding: 40px; border-radius: var(--rl); max-width: 440px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text4); font-size: 20px; cursor: pointer; }
.pw-wrap { position: relative; }
.pw-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text4); cursor: pointer; }

/* ══ BLOG PREVIEW SECTION (landing) ══ */
.blog-preview-section { padding: 100px 24px; border-bottom: 1px solid var(--gb); background: var(--navy2); }
.bp-inner { max-width: 1200px; margin: 0 auto; }
.bp-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px; flex-wrap: wrap; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.bp-card { background: var(--glass); border: 1px solid var(--gb); border-radius: var(--rl); padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: var(--tr); }
.bp-card:hover { border-color: rgba(0, 230, 118, .35); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.bp-card-featured { grid-column: span 1; background: linear-gradient(135deg, rgba(0, 230, 118, .08) 0%, var(--glass) 100%); border-color: rgba(0, 230, 118, .2); }
.bp-card-top { display: flex; align-items: center; gap: 10px; }
.bp-cat { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); background: var(--emerald-s); border: 1px solid rgba(0, 230, 118, .25); padding: 3px 10px; border-radius: 50px; }
.bp-cat.tendencias { color: var(--gold); background: rgba(255, 193, 7, .1); border-color: rgba(255, 193, 7, .25); }
.bp-cat.mercado { color: var(--cyan); background: rgba(0, 191, 165, .08); border-color: rgba(0, 191, 165, .2); }
.bp-time { font-size: 11px; color: var(--text3); }
.bp-card h3 { font-size: 15px; font-weight: 700; line-height: 1.35; color: #fff; flex: 1; margin-bottom: 0px; }
.bp-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.bp-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gb); }
.bp-date { font-size: 11px; color: var(--text3); }
.bp-arrow { font-size: 16px; color: var(--emerald); transition: var(--tr); }
.bp-card:hover .bp-arrow { transform: translateX(4px); }

/* ══ ARTICLE PAGE ══ */
.article-page { background: var(--navy); padding-bottom: 80px; }
.article-header { padding: 120px 24px 60px; text-align: center; border-bottom: 1px solid var(--gb); background: var(--navy3); position: relative; overflow: hidden; }
.article-header-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse at center, var(--emerald-glow) 0%, transparent 60%); pointer-events: none; }
.article-wrapper { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.article-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 24px; color: var(--emerald); background: var(--emerald-s); border: 1px solid rgba(0, 230, 118, .2); }
.article-tag.tendencias { color: var(--gold); background: rgba(255, 193, 7, .1); border-color: rgba(255, 193, 7, .25); }
.article-tag.mercado { color: var(--cyan); background: rgba(0, 191, 165, .08); border-color: rgba(0, 191, 165, .2); }
.article-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.15; margin-bottom: 24px; letter-spacing: -.03em; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text3); }
.article-content { max-width: 720px; margin: 60px auto 0; padding: 0 24px; font-size: 17px; line-height: 1.8; color: var(--text2); }
.article-content h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 40px 0 16px; letter-spacing: -.02em; }
.article-content h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 30px 0 16px; }
.article-content p { margin-bottom: 24px; }
.article-content ul, .article-content ol { margin: 0 0 24px 20px; }
.article-content li { margin-bottom: 10px; }
.article-content blockquote { font-size: 18px; font-style: italic; color: #fff; border-left: 4px solid var(--emerald); margin: 40px 0; background: rgba(0, 230, 118, .04); padding: 20px; border-radius: 0 var(--r) var(--r) 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text3); margin-top: 60px; transition: var(--tr); }
.back-link:hover { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .aud-inner { gap: 40px; }
  .stat-block { padding: 15px 20px; }
}

@media (max-width: 900px) {
  .bp-grid { grid-template-columns: 1fr 1fr; }
  .bp-card-featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .nav-login { display: none; }
  .mobile-toggle { display: flex; }
  .aud-inner { grid-template-columns: 1fr; text-align: center; }
  .aud-inner.reverse { direction: ltr; }
  .aud-benefits { align-items: center; }
  .stats-inner { flex-direction: column; }
  .stat-div { width: 50px; height: 1px; margin: 10px auto; }
  .leader-bar-item { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .lbi-track { margin: 5px 0; }
  .lbi-val { text-align: center; }
  .cform-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-h1 { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 24px; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

@media(max-width: 600px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-card-featured { grid-column: span 1; }
  .bp-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 2.2rem; }
  .nav-brand .capeco-label, .brand-sep { display: none; }
  .stat-num { font-size: 2rem; }
}
