/* =============================================================================
   Collarada Asesoría — Design System (Industrial / Financial Brutalism)
   Dark graphite + institutional emerald. Barlow Condensed + DM Sans.
   ============================================================================= */

:root {
  --bg: #0f1513;
  --surface: #131a18;
  --surface-2: #1b211f;
  --surface-3: #252b29;
  --surface-4: #303634;
  --on: #dee4e0;
  --on-2: #bccabe;
  --outline: #869489;
  --line: #3d4a41;
  --primary: #1faf73;
  --primary-bright: #5cdd9d;
  --primary-deep: #0f382e;
  --primary-dark: #185a48;
  --secondary: #a6cfc1;
  --on-primary: #003921;
  --shadow: 4px 4px 0 #000;
  --shadow-sm: 2px 2px 0 #090f0d;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--on);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-bright); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: #090f0d; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--on);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
.display {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.display .accent { color: var(--primary-bright); }
.lead { font-size: 1.1rem; color: var(--on-2); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--primary-bright);
  background: var(--surface-2);
  padding: 0.3rem 0.6rem;
  border-left: 2px solid var(--primary);
  margin-bottom: 0.75rem;
}
.muted { color: var(--on-2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.btn-primary { background: var(--primary); color: #052e1c; }
.btn-primary:hover { background: var(--primary-bright); color: #052e1c; }
.btn-outline { background: transparent; color: var(--primary-bright); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-deep); color: var(--on); }
.btn-block { display: flex; width: 100%; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.6rem; }

/* ---- Navbar ---- */
.nav {
  background: #090f0d;
  border-bottom: 2px solid var(--primary-deep);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; gap: 0.5rem 1rem; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; color: var(--on); font-size: 1.8rem; line-height: 1; padding: 0.25rem; user-select: none; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--on); font-size: 1.15rem; }
.nav-brand img { height: 34px; width: 34px; border: 1px solid var(--primary-deep); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-2); padding: 0.5rem 0.75rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-bright); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-wa { background: var(--primary); color: #052e1c; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.55rem 0.9rem; box-shadow: var(--shadow-sm); }
.nav-wa:hover { background: var(--primary-bright); color: #052e1c; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface-2); border: 1px solid var(--line); z-index: 200; padding: 0.4rem 0;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.5rem 0.9rem; color: var(--on-2); }
.dropdown-menu a:hover { background: var(--surface-3); color: var(--primary-bright); }

@media (max-width: 991px) {
  .nav-burger { display: block; }
  .nav-menu { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1rem; }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; padding-top: 0.75rem; }
  .nav-wa { text-align: center; }
  .dropdown-menu { position: static; display: block; min-width: 0; border: none; padding: 0.25rem 0 0.25rem 1rem; background: transparent; }
  .dropdown-menu a { border-bottom: none; padding: 0.5rem 0.75rem; }
}

/* ---- Hero ---- */
.hero { background: #090f0d; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-status {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
  background: var(--surface-2); padding: 0.6rem 1rem; margin-top: 1.5rem; font-size: 0.78rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-2);
}
.pulse { display: inline-block; width: 10px; height: 10px; background: var(--primary-bright); box-shadow: 0 0 0 0 rgba(92,221,157,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92,221,157,0.6); } 70% { box-shadow: 0 0 0 10px rgba(92,221,157,0); } 100% { box-shadow: 0 0 0 0 rgba(92,221,157,0); } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero-cta { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }
.hero-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(45%) contrast(1.05); transition: filter 0.4s ease; display: block; }
.hero-photo:hover { filter: grayscale(0); }

/* ---- Cards ---- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: background 0.15s ease;
}
.card:hover { background: var(--surface-2); }
.card .top { border-top: 2px solid var(--primary); }
.card-accent-top { border-top: 2px solid var(--primary); }
.card .price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--primary-bright); }
.card .tag { display: flex; justify-content: space-between; font-size: 0.72rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-2); background: var(--surface-3); padding: 0.3rem 0.5rem; }

.metric { background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow); border-top: 2px solid var(--primary); }
.metric .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--primary-bright); line-height: 1; }

.step { background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow); border-top: 2px solid var(--primary); }
.step .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--primary-bright); }

/* ---- Section header ---- */
.section-head { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ---- Reviews ---- */
.review { background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow); }
.review .stars { color: var(--primary-bright); letter-spacing: 0.15em; }
.review blockquote { margin: 0 0 1rem; font-style: italic; color: var(--on); }
.review .author { display: flex; gap: 0.6rem; align-items: center; }
.avatar { width: 34px; height: 34px; background: var(--surface-4); border: 1px solid rgba(31,175,115,0.4); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; color: var(--primary-bright); }

/* ---- FAQ ---- */
details.faq { background: var(--surface); border: 1px solid var(--line); margin-bottom: 0.6rem; box-shadow: var(--shadow-sm); }
details.faq summary { cursor: pointer; list-style: none; padding: 1rem; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; display: flex; justify-content: space-between; align-items: center; color: var(--on); }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary-bright); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1rem 1rem; color: var(--on-2); }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.field label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--on); }
.field input, .field select, .field textarea {
  background: #090f0d; border: 1px solid var(--line); color: var(--on);
  padding: 0.65rem 0.8rem; font-family: var(--font-body); font-size: 1rem; border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }

/* ---- Chips / badges ---- */
.badge { display: inline-block; padding: 0.2rem 0.5rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; font-weight: 700; border: 1px solid; }
.badge-green { background: var(--primary-deep); color: var(--primary-bright); border-color: var(--primary); }

/* ---- Footer ---- */
.footer { background: #090f0d; border-top: 2px solid var(--line); margin-top: 0; }
.footer-stripe { height: 8px; background: repeating-linear-gradient(45deg, #090f0d, #090f0d 8px, var(--primary) 8px, var(--primary) 16px); }
.footer-grid { display: grid; gap: 1.5rem; padding: 3rem 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h6 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; color: var(--on); margin: 0 0 0.75rem; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer ul a { color: var(--on-2); }
.footer ul a:hover { color: var(--primary-bright); }
.footer .nap { color: var(--on-2); font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1rem 0; color: var(--outline); font-size: 0.85rem; }

/* ---- Utility ---- */
.text-primary { color: var(--primary-bright); }
.text-on { color: var(--on); }
.text-muted { color: var(--on-2); }
.uppercase { text-transform: uppercase; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.space-y > * + * { margin-top: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; color: var(--on-2); }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--primary-bright); }
.breadcrumb { font-size: 0.85rem; color: var(--on-2); padding: 1.25rem 0 0; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-head); }
.breadcrumb a { color: var(--on-2); }
