:root {
  --burgundy: #760b17;
  --burgundy-dark: #4d0710;
  --gold: #c99116;
  --gold-light: #e1b54c;
  --ink: #201d1d;
  --muted: #686363;
  --paper: #f8f5f0;
  --white: #fff;
  --line: #d9d0c6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --pad: clamp(24px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 18px; }
.section-pad { padding: clamp(78px, 10vw, 140px) var(--pad); }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 104px; padding: 8px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: rgba(248,245,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; min-width: clamp(230px, 25vw, 330px); }
.brand-full { display: block; width: clamp(230px, 25vw, 330px); height: 88px; }
.brand-full img { width: 100%; height: 88px; object-fit: contain; object-position: left center; }
.brand-crop { position: relative; width: 50px; height: 50px; overflow: hidden; flex: 0 0 50px; }
.brand-crop img { position: absolute; width: 102px; max-width: none; left: -27px; top: 0; }
.brand-name strong, .brand-name small { display: block; }
.brand-name strong { color: var(--burgundy); font: 700 14px/1.2 var(--serif); letter-spacing: .14em; }
.brand-name small { margin-top: 3px; color: var(--gold); font-size: 8px; letter-spacing: .11em; }
nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 12px; }
nav > a:not(.nav-cta) { padding: 10px 0; border-bottom: 1px solid transparent; }
nav > a:not(.nav-cta):hover { color: var(--burgundy); border-color: var(--burgundy); }
.nav-cta { padding: 13px 17px; background: var(--burgundy); color: #fff; border-bottom: 3px solid var(--gold); }
.menu-toggle { display: none; border: 0; background: transparent; width: 48px; height: 48px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--burgundy); margin: 5px 0; }
.menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow, .overline { margin: 0 0 22px; color: var(--burgundy); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-light); }
h1, h2, h3, p { overflow-wrap: break-word; }
.hero { min-height: calc(100vh - 84px); display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .72fr); align-items: center; gap: clamp(45px, 7vw, 110px); }
.hero h1 { max-width: 850px; margin: 0; font: 400 clamp(46px, 6vw, 88px)/.98 var(--serif); letter-spacing: -.045em; }
.hero h1 em { color: var(--burgundy); font-weight: 400; }
.hero-lead { max-width: 710px; margin: 30px 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; padding: 14px 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 13px; }
.primary { background: var(--burgundy); color: #fff; border-bottom-color: var(--gold); border-bottom-width: 3px; }
.primary:hover { background: var(--burgundy-dark); }
.ghost { border-color: var(--line); background: transparent; }
.ghost:hover { border-color: var(--burgundy); color: var(--burgundy); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 32px 0 0; list-style: none; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.hero-proof li::before { content: "◆"; margin-right: 10px; color: var(--gold); font-size: 8px; }
.hero-brand { position: relative; min-height: 590px; padding: 42px 34px 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fff; border-left: 6px solid var(--burgundy); border-bottom: 5px solid var(--gold); box-shadow: 0 30px 90px rgba(74,32,26,.12); overflow: hidden; }
.hero-brand .brand-lines { position: absolute; inset: 0; background: linear-gradient(rgba(118,11,23,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(118,11,23,.045) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(135deg, transparent 8%, #000 90%); }
.hero-brand img { position: relative; width: min(92%, 340px); filter: drop-shadow(0 13px 18px rgba(67,23,21,.08)); }
.hero-brand p { position: relative; max-width: 290px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--gold); text-align: center; color: var(--muted); font: italic 16px/1.5 var(--serif); }

.signal-strip { padding: 20px var(--pad); display: flex; align-items: center; justify-content: center; gap: 28px; background: var(--burgundy); color: #fff; }
.signal-strip p { margin: 0; font: 15px var(--serif); }
.signal-strip span { color: var(--gold); font-size: 8px; }

.section-heading { margin-bottom: 50px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr); align-items: end; gap: 60px; }
.section-heading h2, .solution-lead h2, .about-copy h2, .contact h2 { margin: 0; font: 400 clamp(38px, 4.7vw, 68px)/1.03 var(--serif); letter-spacing: -.035em; }
.section-heading > p, .section-heading > div + p { margin: 0; color: var(--muted); }
.filter-row { margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 9px 15px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); }
.filter.active, .filter:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-choice { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body:has(#filter-all:checked) label[for="filter-all"],
body:has(#filter-finanzas:checked) label[for="filter-finanzas"],
body:has(#filter-gestion:checked) label[for="filter-gestion"],
body:has(#filter-crecimiento:checked) label[for="filter-crecimiento"],
body:has(#filter-organizacion:checked) label[for="filter-organizacion"] { background: var(--ink); border-color: var(--ink); color: #fff; }
body:has(#filter-finanzas:checked) .situation:not([data-category="finanzas"]),
body:has(#filter-gestion:checked) .situation:not([data-category="gestion"]),
body:has(#filter-crecimiento:checked) .situation:not([data-category="crecimiento"]),
body:has(#filter-organizacion:checked) .situation:not([data-category="organizacion"]) { display: none; }
body:has(.filter-choice:focus-visible) .filter-row { outline: 2px solid var(--gold); outline-offset: 3px; }
.situation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.situation { position: relative; width: 100%; min-height: 0; aspect-ratio: 1 / 1; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.18); transition: transform .2s, background .2s; cursor: pointer; }
.situation:hover { position: relative; z-index: 1; transform: translateY(-4px); background: #fff; }
.situation.featured { background: var(--burgundy); color: #fff; }
.situation.featured .card-link { color: #fff; border-bottom-color: var(--gold-light); }
.card-index { font: 18px var(--serif); }
.tag { margin: 28px 0 16px; color: var(--burgundy); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.featured .tag { color: var(--gold-light); }
.situation h3 { margin: 0 0 16px; font: 400 23px/1.2 var(--serif); }
.situation p { margin: 0; color: var(--muted); font-size: 13px; }
.featured p { color: #e6cfd2; }
.card-link { margin-top: auto; padding: 12px 0 5px; align-self: flex-start; border: 0; border-bottom: 1px solid currentColor; background: none; color: inherit; cursor: pointer; font-size: 12px; text-align: left; text-decoration: none; }
.card-link::before { content: ""; position: absolute; inset: 0; }
.signal-choice { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.situation-details { display: none; position: fixed; inset: 0; z-index: 1000; place-items: center; padding: 20px; background: rgba(32,29,29,.82); backdrop-filter: blur(4px); }
.situation-details article { position: relative; display: none; width: min(690px, 100%); max-height: 90vh; overflow: auto; padding: clamp(34px, 5vw, 56px); border-left: 5px solid var(--gold); background: var(--paper); box-shadow: 0 40px 110px rgba(0,0,0,.35); }
.situation-details h3 { max-width: 900px; margin: 8px 0 18px; font: 400 clamp(28px, 4vw, 44px)/1.1 var(--serif); }
.situation-details article > p:not(.eyebrow) { max-width: 900px; color: var(--muted); }
.situation-details strong { display: block; margin-top: 24px; color: var(--burgundy); font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
body:has(#choose-cash:checked) .signal-cash,
body:has(#choose-late:checked) .signal-late,
body:has(#choose-owner:checked) .signal-owner,
body:has(#choose-opportunity:checked) .signal-opportunity,
body:has(#choose-profit:checked) .signal-profit,
body:has(#choose-data:checked) .signal-data,
body:has(#choose-process:checked) .signal-process,
body:has(#choose-budget:checked) .signal-budget { background: var(--burgundy); color: #fff; }
body:has(.signal-choice:not(#clear-signal):checked) .situation-details { display: grid; }
body:has(#choose-cash:checked) #situacion-cash,
body:has(#choose-late:checked) #situacion-late,
body:has(#choose-owner:checked) #situacion-owner,
body:has(#choose-opportunity:checked) #situacion-opportunity,
body:has(#choose-profit:checked) #situacion-profit,
body:has(#choose-data:checked) #situacion-data,
body:has(#choose-process:checked) #situacion-process,
body:has(#choose-budget:checked) #situacion-budget { display: block; }
body:has(.signal-choice:not(#clear-signal):checked) { overflow: hidden; }
body:has(#choose-cash:checked) .signal-cash p,
body:has(#choose-late:checked) .signal-late p,
body:has(#choose-owner:checked) .signal-owner p,
body:has(#choose-opportunity:checked) .signal-opportunity p,
body:has(#choose-profit:checked) .signal-profit p,
body:has(#choose-data:checked) .signal-data p,
body:has(#choose-process:checked) .signal-process p,
body:has(#choose-budget:checked) .signal-budget p { color: #e6cfd2; }
body:has(#choose-cash:checked) .signal-cash .tag,
body:has(#choose-late:checked) .signal-late .tag,
body:has(#choose-owner:checked) .signal-owner .tag,
body:has(#choose-opportunity:checked) .signal-opportunity .tag,
body:has(#choose-profit:checked) .signal-profit .tag,
body:has(#choose-data:checked) .signal-data .tag,
body:has(#choose-process:checked) .signal-process .tag,
body:has(#choose-budget:checked) .signal-budget .tag { color: var(--gold-light); }
.detail-close { position: absolute; right: 16px; top: 12px; width: 42px; height: 42px; color: var(--ink); font-size: 30px; text-align: center; cursor: pointer; }
.hidden { display: none !important; }

.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { min-height: 375px; padding: 34px; background: #fff; }
.service-card > span { color: var(--gold); font: 20px var(--serif); }
.service-card h3 { min-height: 72px; margin: 42px 0 14px; color: var(--burgundy); font: 400 27px/1.15 var(--serif); }
.service-card p { color: var(--muted); font-size: 14px; }
.service-card ul { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.service-card li { margin: 7px 0; font-size: 12px; }
.service-card li::before { content: "—"; margin-right: 10px; color: var(--gold); }

.about { display: grid; grid-template-columns: 1fr 1fr; }
.about-statement { min-height: 660px; padding: clamp(70px, 8vw, 125px) var(--pad); display: flex; flex-direction: column; justify-content: space-between; background: var(--burgundy); color: #fff; }
.about-statement blockquote { margin: 0; font: 400 clamp(36px, 4.5vw, 64px)/1.08 var(--serif); }
.gold-rule { width: 90px; height: 4px; background: var(--gold); }
.about-copy { padding: clamp(70px, 8vw, 125px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy > p:not(.overline) { color: var(--muted); font-size: 17px; }
.values { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.values span { padding: 9px 12px; border: 1px solid var(--line); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.method { background: var(--ink); color: #fff; }
.section-heading.inverse > p { color: #aaa; }
.method-flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #4a4646; list-style: none; }
.method-flow li { min-height: 270px; padding: 28px 24px; border-right: 1px solid #4a4646; }
.method-flow li:last-child { border-right: 0; }
.method-flow li > span { color: var(--gold-light); font: 18px var(--serif); }
.method-flow h3 { margin: 70px 0 12px; font: 400 27px var(--serif); }
.method-flow p { color: #aaa; font-size: 13px; }
.engagements { margin-top: 50px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.engagements p { margin-right: auto; color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.engagements span { padding: 10px 14px; border: 1px solid #4a4646; color: #ccc; font-size: 11px; }

.solutions { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(55px, 9vw, 140px); align-items: start; }
.question-list { border-top: 1px solid var(--line); }
.question-list p { margin: 0; padding: 25px 0; display: grid; grid-template-columns: 55px 1fr; gap: 20px; border-bottom: 1px solid var(--line); font: 400 clamp(20px, 2.2vw, 30px)/1.25 var(--serif); }
.question-list span { color: var(--gold); font-size: 15px; }

.faq { background: #fff; }
.faq-list { max-width: 1000px; margin-left: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 25px 0; display: flex; justify-content: space-between; gap: 30px; cursor: pointer; font: 400 clamp(19px, 2vw, 26px) var(--serif); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--gold); font: 27px var(--sans); transition: transform .2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { max-width: 760px; margin: -5px 0 28px; color: var(--muted); }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 150px); background: var(--burgundy-dark); color: #fff; }
.contact-copy > p:not(.eyebrow) { color: #d9bcc0; font-size: 17px; }
.contact-copy > a { display: block; margin-top: 35px; color: var(--gold-light); font: 400 clamp(21px, 2.5vw, 31px) var(--serif); }
.contact-copy small { display: block; margin-top: 9px; color: #b98f95; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 25px; align-content: start; }
.field { position: relative; }
.field.full, .form-bottom.full, .form-status.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 5px; color: #e0c8cb; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 11px 2px; border: 0; border-bottom: 1px solid #98636a; border-radius: 0; background: transparent; color: #fff; outline: none; }
.field textarea { resize: vertical; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold-light); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: #ffb0b9; }
.error { display: block; min-height: 17px; padding-top: 4px; color: #ffb0b9; font-size: 10px; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.form-bottom p { max-width: 310px; margin: 0; color: #a98287; font-size: 10px; }
.light-button { background: #fff; color: var(--burgundy-dark); border-bottom: 3px solid var(--gold); }
.form-status { margin: 0; color: var(--gold-light); font-size: 12px; }

.site-footer { padding: 35px var(--pad); display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 45px; background: #fff; border-top: 4px solid var(--gold); color: var(--muted); font-size: 11px; }
.site-footer > img { width: 190px; }
.site-footer > p { max-width: 390px; }
.site-footer > div { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-footer a { color: var(--burgundy); font-weight: 700; }

dialog { width: min(690px, calc(100% - 28px)); max-height: 90vh; overflow: auto; padding: 48px; border: 0; background: var(--paper); box-shadow: 0 40px 110px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(32,29,29,.82); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 20px; font: 400 clamp(31px, 4vw, 44px)/1.08 var(--serif); }
dialog h3 { margin: 28px 0 10px; color: var(--burgundy); font: 400 20px var(--serif); }
dialog p, dialog li { color: var(--muted); }
.dialog-close { position: absolute; right: 16px; top: 12px; width: 42px; height: 42px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
dialog .button { margin-top: 20px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1120px) {
  nav { gap: 13px; }
  nav > a:not(.nav-cta) { display: none; }
  .situation-grid { grid-template-columns: repeat(2, 1fr); }
  .method-flow { grid-template-columns: repeat(3, 1fr); }
  .method-flow li { border-bottom: 1px solid #4a4646; }
}

@media (max-width: 820px) {
  .site-header { min-height: 84px; }
  .brand, .brand-full { min-width: 190px; width: 190px; }
  .brand-full, .brand-full img { height: 68px; }
  html { scroll-padding-top: 74px; }
  .site-header { min-height: 74px; }
  .brand-crop { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-crop img { width: 90px; left: -24px; }
  .menu-toggle { display: block; }
  nav { position: fixed; inset: 74px 0 0; padding: 40px var(--pad); display: none; flex-direction: column; align-items: stretch; gap: 4px; background: var(--paper); overflow-y: auto; }
  nav.open { display: flex; }
  nav > a:not(.nav-cta) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font: 28px var(--serif); }
  .nav-cta { margin-top: 20px; text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-brand { min-height: 500px; }
  .signal-strip { justify-content: flex-start; overflow: hidden; }
  .signal-strip p { min-width: max-content; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .solutions { grid-template-columns: 1fr; }
  .about-statement { min-height: 520px; }
  .method-flow { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 180px 1fr; }
  .site-footer > div { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 560px) {
  .section-pad { padding-top: 72px; padding-bottom: 72px; }
  .brand-name small { display: none; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-proof { flex-direction: column; }
  .hero-brand { min-height: 420px; padding: 28px; }
  .hero-brand img { width: min(88%, 280px); }
  .signal-strip { display: none; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .filter { flex: 0 0 auto; }
  .situation-grid, .service-grid, .method-flow { grid-template-columns: 1fr; }
  .situation { min-height: 0; aspect-ratio: 1 / 1; }
  .service-card { min-height: auto; }
  .service-card h3 { min-height: 0; margin-top: 30px; }
  .method-flow li { min-height: 220px; border-right: 0; }
  .method-flow h3 { margin-top: 45px; }
  .engagements { align-items: stretch; flex-direction: column; }
  .engagements p { margin-right: 0; }
  .question-list p { grid-template-columns: 38px 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field.full, .form-bottom.full, .form-status.full { grid-column: auto; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer > img { width: 170px; margin: auto; }
  .site-footer > div { grid-column: auto; flex-direction: column; }
  dialog { padding: 42px 22px 28px; }
}
