/* ============================================================
   Visión Condominio — hoja de estilo única
   Paleta: papel cálido + tinta profunda + verde petróleo + oro
   ============================================================ */

:root {
  --ink: #10222c;
  --ink-soft: #2b3f49;
  --muted: #5d6e76;
  --paper: #fbf9f5;
  --paper-2: #f2ede3;
  --paper-3: #e9e2d5;
  --line: #dcd3c4;
  --accent: #1c5952;
  --accent-soft: #dfe9e5;
  --gold: #b4883c;
  --red: #9c3b2e;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --w: 1120px;
  --r: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }
h4 { font-size: 1.06rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: min(var(--w), calc(100% - 2.5rem)); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand svg { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: .87rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gold); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .82rem 1.4rem;
  border-radius: var(--r);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-sm { padding: .6rem 1.05rem; font-size: .82rem; }

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

.hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .28;
  mask-image: radial-gradient(70% 65% at 78% 15%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede { font-size: 1.19rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.4rem; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.hero-meta div { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}

.group-line {
  margin: 1.5rem 0 0;
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.group-line a { color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; }
.group-line a:hover { color: var(--accent); }

/* Tarjeta de muestra (hallazgo de ejemplo) */
.sample {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 24px 60px -32px rgba(16, 34, 44, .38), 0 2px 0 rgba(16,34,44,.03);
  overflow: hidden;
  transform: rotate(-.5deg);
}
.sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.sample-body { padding: 1.2rem 1.3rem 1.4rem; }
.sample-id {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.sample h3 { font-size: 1.12rem; margin: .5rem 0 .7rem; }
.sample p { font-size: .86rem; color: var(--ink-soft); margin-bottom: .9rem; }
.tag {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 2px;
}
.tag-critical { background: #f6e2dd; color: var(--red); }
.tag-legal { background: var(--accent-soft); color: var(--accent); }
.tag-bp { background: var(--paper-3); color: #7a6a4d; }

.sample-evidence {
  border-top: 1px dashed var(--line);
  margin-top: 1rem;
  padding-top: .85rem;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.sample-note {
  font-size: .7rem;
  color: var(--muted);
  text-align: center;
  margin-top: .9rem;
  letter-spacing: .04em;
}

/* ---------- Secciones ---------- */

section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section-paper2 { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #e9e4da; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: var(--gold); }
.section-ink .eyebrow::before { background: var(--gold); }
.section-ink p { color: #cdc7bb; }

.section-head { max-width: 72ch; margin-bottom: 2.6rem; }
.section-head p:last-child { margin-bottom: 0; }

/* Problema */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.problem-item {
  padding: 1.8rem 1.6rem 1.8rem 0;
  border-right: 1px solid var(--line);
}
.problem-item:last-child { border-right: 0; padding-right: 0; }
.problem-item:not(:first-child) { padding-left: 1.6rem; }
.problem-item .num {
  font-family: var(--serif);
  font-size: .85rem;
  color: var(--gold);
  margin-bottom: .6rem;
  display: block;
}
.problem-item h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.problem-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.service {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.8rem 1.6rem 1.5rem;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service:hover { box-shadow: 0 18px 40px -26px rgba(16,34,44,.4); transform: translateY(-2px); }
.service.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 44px -28px rgba(28,89,82,.55);
}
.service-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 0 2px 0 2px;
}
.service-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.service h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.service .duration {
  font-size: .8rem;
  color: var(--muted);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  display: block;
}
.service ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: .9rem;
  color: var(--ink-soft);
  flex: 1;
}
.service li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .55rem;
  line-height: 1.5;
}
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.service-foot {
  font-size: .79rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: .9rem;
  margin-top: auto;
}
.service-foot a { font-weight: 600; }

/* Método */
.method { counter-reset: paso; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.4rem; }
.step { position: relative; padding-top: 2.2rem; border-top: 1px solid #33484f; }
.step::before {
  counter-increment: paso;
  content: "0" counter(paso);
  position: absolute;
  top: .9rem; left: 0;
  font-family: var(--serif);
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: .06em;
}
.step h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.step p { font-size: .88rem; margin: 0; color: #b9b4a9; }

/* Entregables */
.deliverables { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .85rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.checklist li:last-child { border-bottom: 0; }
.checklist svg { width: 20px; height: 20px; margin-top: 2px; }
.checklist strong { display: block; font-weight: 650; margin-bottom: .1rem; }
.checklist span { color: var(--muted); font-size: .86rem; }

.pullquote {
  border-left: 2px solid var(--gold);
  padding: .2rem 0 .2rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 1.4rem;
  text-wrap: pretty;
}
.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .9rem;
  letter-spacing: .02em;
}

/* Principios */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { background: var(--paper); padding: 1.5rem 1.6rem; }
.principle h3 { font-size: 1.02rem; margin-bottom: .35rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.principle p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Para quién */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.audience { border-top: 2px solid var(--gold); padding-top: 1.1rem; }
.audience h3 { font-size: 1.05rem; margin-bottom: .4rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.audience p { font-size: .89rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.4rem 1.15rem 0;
  font-weight: 600;
  font-size: .98rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: .92rem; color: var(--muted); padding-bottom: 1.2rem; margin: 0; max-width: 62ch; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.8rem;
}
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.contact-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.contact-list li:last-child { border: 0; }
.contact-list .label {
  display: block;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: .2rem;
}

form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .78rem; font-weight: 650; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .93rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .76rem; color: var(--muted); margin: 0; }
.form-status { font-size: .85rem; min-height: 1.2em; margin: 0; color: var(--accent); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #b6b1a6; padding: 3rem 0 2rem; font-size: .84rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: #8d887d; }
.site-footer a { color: #d8d2c6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid #2a3d46;
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .76rem;
  color: #877f73;
}

.footer-legal {
  margin: 1rem 0 0;
  font-size: .72rem;
  line-height: 1.55;
  color: #7a7367;
  max-width: 70ch;
}

/* Utilidades */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero-grid, .deliverables, .contact-grid { grid-template-columns: 1fr; }
  .sample { transform: none; max-width: 520px; }
  .services, .method, .audiences, .problem-grid { grid-template-columns: 1fr; }
  .problem-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.4rem 0 !important; }
  .problem-item:last-child { border-bottom: 0; }
  .hero-meta { grid-template-columns: 1fr; gap: .9rem; }
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .principles { grid-template-columns: 1fr; }
  .step { padding-top: 1.9rem; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, form, .hero-actions { display: none; }
  body { background: #fff; font-size: 11pt; }
}
