:root {
  --ink: #171614;
  --ink-soft: #4c4944;
  --muted: #777169;
  --paper: #fcfaf6;
  --paper-deep: #f2eee7;
  --line: #ddd7cd;
  --accent: #9d3f2e;
  --accent-deep: #713024;
  --accent-wash: #f3e5df;
  --white: #fffdfa;
  --shadow: 0 16px 40px rgba(37, 29, 20, .08);
  --radius: 2px;
  --max: 1180px;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-title { max-width: 740px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.25rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.section-lede { max-width: 610px; margin: 20px 0 0; color: var(--ink-soft); font-size: 1.05rem; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(221, 215, 205, .88); background: rgba(252, 250, 246, .94); backdrop-filter: blur(16px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); color: var(--accent); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-copy { display: grid; gap: 1px; line-height: 1.05; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; letter-spacing: -.025em; }
.brand-sub { color: var(--muted); font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); margin: 0; padding: 0; list-style: none; font-size: .84rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 11px 16px; background: var(--ink); color: var(--white) !important; }
.nav-cta:hover { background: var(--accent); }

.hero { position: relative; overflow: hidden; min-height: 660px; padding: 112px 0 120px; border-bottom: 1px solid var(--line); }
.hero::after { position: absolute; right: -170px; bottom: -250px; width: 610px; height: 610px; border: 1px solid var(--line); border-radius: 50%; content: ""; box-shadow: 0 0 0 48px var(--paper), 0 0 0 49px var(--line), 0 0 0 97px var(--paper), 0 0 0 98px var(--line); opacity: .72; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, .8fr); align-items: end; gap: 80px; }
.hero h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.5rem, 8vw, 7.4rem); font-weight: 400; letter-spacing: -.065em; line-height: .86; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 520px; margin: 30px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); }
.button-quiet { color: var(--ink); }
.button-quiet:hover { background: var(--accent-wash); }
.hero-note { position: relative; z-index: 1; max-width: 370px; padding: 28px; border: 1px solid var(--line); background: rgba(255, 253, 250, .78); box-shadow: var(--shadow); }
.hero-note::before { display: block; width: 38px; height: 3px; margin-bottom: 52px; background: var(--accent); content: ""; }
.hero-note h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 400; line-height: 1.08; }
.hero-note p { margin: 16px 0 0; color: var(--ink-soft); font-size: .9rem; }
.hero-note small { display: block; margin-top: 30px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 112px 0; }
.section-tinted { background: var(--paper-deep); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 46px; }
.section-head .section-lede { margin: 0; }
.rule { height: 1px; margin: 0 0 30px; background: var(--line); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.service-card { min-height: 220px; padding: 30px; background: var(--paper); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.service-card:hover { position: relative; z-index: 1; background: var(--white); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-index { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.service-card h3 { margin: 48px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.62rem; font-weight: 400; line-height: 1; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.service-card .arrow { display: block; margin-top: 20px; color: var(--accent); font-size: 1.15rem; }

.restructuring { display: grid; grid-template-columns: .72fr 1.28fr; gap: 76px; align-items: start; }
.restructuring-copy { position: sticky; top: 116px; }
.restructuring-copy .section-title { font-size: clamp(2.8rem, 5vw, 5rem); }
.restructuring-copy p { max-width: 360px; color: var(--ink-soft); }
.phase-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.phase-list li { display: grid; grid-template-columns: 52px 1fr; gap: 22px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line); }
.phase-no { color: var(--accent); font-family: Georgia, serif; font-size: 1.15rem; }
.phase-label { font-size: 1.04rem; }

.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { display: flex; flex-direction: column; min-height: 365px; padding: 26px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.article-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--accent); font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-card h3 { margin: 58px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.46rem; font-weight: 400; letter-spacing: -.025em; line-height: 1.08; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.article-more { display: inline-block; margin-top: auto; padding-top: 28px; color: var(--accent); font-size: .78rem; font-weight: 700; }

.other-areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area-link { min-height: 130px; padding: 22px 18px 20px 0; border-right: 1px solid var(--line); text-decoration: none; }
.area-link:not(:first-child) { padding-left: 18px; }
.area-link:last-child { border-right: 0; }
.area-link strong { display: block; margin-bottom: 26px; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.area-link span { color: var(--muted); font-size: .77rem; }

.tools-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; padding: 38px; border: 1px solid var(--line); background: var(--ink); color: var(--white); }
.tools-panel .eyebrow { color: #d78472; }
.tools-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; line-height: .98; }
.tools-panel p { color: #c8c0b8; }
.tool-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tool-list li { padding: 18px; border: 1px solid #514c46; color: #ded7ce; font-size: .88rem; }
.tool-list li::before { display: block; width: 8px; height: 8px; margin-bottom: 24px; border-radius: 50%; background: #d78472; content: ""; }
.tool-note { margin: 24px 0 0; color: #a9a097 !important; font-size: .78rem !important; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.contact-copy h2 { max-width: 510px; }
.contact-copy p { max-width: 400px; color: var(--ink-soft); }
.contact-aside { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.contact-form { display: grid; gap: 18px; padding: 30px; border: 1px solid var(--line); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; color: var(--ink); background: var(--paper); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9b948a; }
.form-disclaimer { margin: 0; color: var(--muted); font-size: .75rem; }
.button-disabled { border-color: var(--line); color: var(--muted); background: var(--paper-deep); cursor: not-allowed; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .75rem; }
.footer-row a { color: var(--ink-soft); text-decoration: none; }
.footer-row a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav { min-height: 70px; }
  .nav-links { gap: 14px; font-size: .76rem; }
  .nav-cta { padding: 9px 11px; }
  .hero { min-height: auto; padding: 86px 0 98px; }
  .hero-grid, .restructuring, .contact-grid, .tools-panel { grid-template-columns: 1fr; gap: 42px; }
  .hero-note { max-width: 460px; }
  .restructuring-copy { position: static; }
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .other-areas { grid-template-columns: repeat(3, 1fr); }
  .area-link:nth-child(3) { border-right: 0; }
  .area-link:nth-child(4), .area-link:nth-child(5) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .nav { align-items: flex-start; padding: 15px 0; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; max-width: 230px; }
  .nav-links li:nth-child(-n+2) { display: none; }
  .nav-cta { width: 100%; text-align: center; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5.1rem); }
  .hero::after { right: -300px; }
  .section { padding: 78px 0; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head .section-lede { margin-top: 18px; }
  .services-grid, .editorial-grid, .other-areas { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 32px; }
  .article-card { min-height: 310px; }
  .other-areas { border-bottom: 0; }
  .area-link, .area-link:not(:first-child) { min-height: auto; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .area-link strong { margin-bottom: 6px; }
  .tools-panel { padding: 25px; }
  .tool-list, .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Extensión integrada: conserva como base el CSS editorial inicial. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 9px 13px; background: var(--ink); color: var(--white); text-decoration: none; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.brand-mark-real { display: block; width: 48px; height: 48px; object-fit: contain; }
section[id], main[id] { scroll-margin-top: 96px; }
.page-hero { padding-bottom: 76px; }
.page-hero .section-lede { max-width: 740px; }
.section-action { margin: 36px 0 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.detail-card { min-height: 250px; padding: 30px; background: var(--white); }
.detail-card h2 { margin: 48px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 400; line-height: 1.05; }
.detail-card p { color: var(--ink-soft); }
.article-page { padding-bottom: 80px; }
.article-header { padding: 86px 0 52px; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.article-container { max-width: 790px; }
.article-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; letter-spacing: -.05em; line-height: .98; overflow-wrap: anywhere; }
.article-date { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 26px; color: var(--muted); font-size: .78rem; }
.historical-note, .embed-note { margin: 24px 0 0; padding: 12px 15px; border-left: 3px solid var(--accent); background: var(--accent-wash); color: var(--ink-soft); font-size: .82rem; }
.embed-note { border-color: var(--muted); background: var(--paper); }
.article-body { padding-top: 54px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.8; overflow-wrap: anywhere; }
.article-body a { color: var(--accent-deep); text-underline-offset: 3px; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 8px; border: 1px solid var(--line); }
.article-body pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.article-back { padding-top: 42px; }
.magazine-controls { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(200px, 1fr) minmax(190px, 1fr); gap: 18px; margin-top: 34px; align-items: end; }
.search-label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-input { width: 100%; margin-top: 8px; padding: 15px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.search-status { color: var(--muted); font-size: .82rem; }
.search-caveat { max-width: 760px; color: var(--muted); font-size: .78rem; }
.demo-panel { max-width: 760px; margin-top: 34px; padding: 26px; border: 1px solid var(--line); background: var(--white); }
.legal-slot { max-width: 760px; margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--muted); background: var(--paper); color: var(--ink-soft); }
.legal-slot p { margin-bottom: 0; }
.demo-panel .button { display: inline-block; margin-top: 10px; }
.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: .76rem; }
.breadcrumb a { color: inherit; }
.search-results { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.search-card { display: grid; gap: 8px; padding: 22px; background: var(--white); text-decoration: none; }
.search-card:hover { background: var(--paper); }
.search-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 400; }
.search-card > span:last-child { color: var(--ink-soft); font-size: .86rem; }
.tools-panel a { color: var(--white); }
code { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .brand-mark-real { width: 42px; height: 42px; }
  .nav-links li:not(:last-child) { display: none; }
  .detail-grid, .magazine-controls { grid-template-columns: 1fr; }
  .article-header { padding-top: 62px; }
}
