:root {
  --navy: #0b2536;
  --navy-2: #12384d;
  --gold: #c9a074;
  --coast: #577384;
  --sand: #e9e1d6;
  --ivory: #f8f6f1;
  --ink: #132b3a;
  --line: rgba(11, 37, 54, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.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-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; color: white; background: var(--navy); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: white; transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(11,37,54,.96); box-shadow: 0 8px 28px rgba(2,17,26,.16); backdrop-filter: blur(16px); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo-crop {
  display: block;
  overflow: hidden;
  background-image: url("assets/38n-identidad-corporativa.png");
  background-repeat: no-repeat;
}
.logo-crop--header {
  width: 132px;
  height: 82px;
  background-size: 662px auto;
  background-position: -380px -154px;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; height: 1px; inset: auto 100% -8px 0; background: var(--gold); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.main-nav a:hover, .main-nav a:focus-visible { color: white; }
.main-nav .nav-cta { padding: 13px 17px; color: var(--navy); background: var(--gold); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 780px; color: white; overflow: hidden; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--navy) 0%, rgba(11,37,54,.98) 42%, rgba(11,37,54,.64) 67%, rgba(11,37,54,.08) 100%); }
.hero-glow { position: absolute; width: 620px; height: 620px; right: -80px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(201,160,116,.34), transparent 64%); filter: blur(12px); }
.brand-scene { position: absolute; z-index: 0; top: 0; right: 0; width: min(49vw, 585px); height: 100%; overflow: hidden; background: var(--navy); }
.brand-scene img { position: absolute; top: 0; left: -561px; width: 2065px; max-width: none; height: auto; }
.brand-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--navy) 100%); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 90px; align-items: end; padding-top: 205px; }
.hero-copy { max-width: 790px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 27px; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { width: 48px; height: 1px; background: var(--gold); }
.eyebrow.dark { color: var(--coast); }
.hero h1, .section-heading h2, .diagnosis h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 6.2vw, 90px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.hero h1 em, .section-heading h2 em, .diagnosis h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.hero-lead { max-width: 675px; margin: 31px 0 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 230px; padding: 17px 20px; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-gold { color: var(--navy); background: var(--gold); }
.button-gold:hover { background: #d7b489; }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.32); }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.button span { margin-left: 24px; font-size: 17px; }
.hero-aside { align-self: center; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.aside-label { display: block; margin-bottom: 19px; color: var(--gold); font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.hero-stat { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat strong { min-width: 56px; color: white; font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.hero-stat span { color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; }
.hero-footer { position: absolute; z-index: 2; inset: auto 0 32px; display: flex; justify-content: space-between; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.scope { padding: 120px 0 90px; background: var(--ivory); }
.section-heading { display: grid; grid-template-columns: 1.5fr .7fr; align-items: end; gap: 80px; margin-bottom: 70px; }
.section-heading h2 { color: var(--navy); font-size: clamp(43px, 5vw, 67px); line-height: 1.06; }
.section-heading > p { margin: 0 0 5px; color: #647985; font-size: 16px; line-height: 1.75; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 310px; padding: 31px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease, transform .2s ease; }
.service-card:hover { z-index: 1; background: white; box-shadow: 0 18px 50px rgba(11,37,54,.07); transform: translateY(-3px); }
.service-index { color: var(--coast); font-size: 10px; letter-spacing: .18em; }
.service-icon { position: absolute; right: 29px; top: 25px; display: grid; width: 48px; height: 48px; place-items: center; color: var(--gold); border: 1px solid rgba(201,160,116,.55); border-radius: 50%; }
.service-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 54px 0 20px; color: var(--navy); font-family: Georgia, serif; font-size: 27px; font-weight: 400; line-height: 1.14; }
.service-card p { max-width: 280px; margin: 0; color: #637682; font-size: 14px; line-height: 1.7; }
.independent-note { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 30px 0 0; }
.independent-note span { color: var(--gold); font-family: Georgia, serif; font-size: 21px; font-style: italic; }
.independent-note p { max-width: 635px; margin: 0; color: var(--coast); font-size: 13px; letter-spacing: .05em; }

.diagnosis { padding: 120px 0 0; color: white; background: var(--navy); }
.diagnosis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; }
.diagnosis h2 { max-width: 690px; font-size: clamp(43px, 5vw, 67px); line-height: 1.05; }
.diagnosis-copy > p:not(.eyebrow) { max-width: 580px; margin: 30px 0 0; color: rgba(255,255,255,.65); font-size: 16px; line-height: 1.75; }
.steps { margin: 39px 0 36px; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.steps li > span { color: var(--gold); font-size: 10px; letter-spacing: .15em; }
.steps strong { font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.steps p { margin: 4px 0 0; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.55; }
.dossier-card { display: grid; grid-template-columns: .85fr 1fr; min-height: 505px; color: var(--navy); background: var(--sand); box-shadow: 0 25px 65px rgba(0,0,0,.2); }
.dossier-cover { position: relative; display: flex; flex-direction: column; min-height: 505px; padding: 38px 30px; overflow: hidden; color: white; background: linear-gradient(150deg, #143b50, #071d2b 75%); }
.dossier-cover::after { content: ""; position: absolute; width: 280px; height: 280px; right: -175px; bottom: -100px; border: 1px solid rgba(201,160,116,.35); border-radius: 50%; box-shadow: 0 0 0 34px rgba(201,160,116,.05), 0 0 0 68px rgba(201,160,116,.04); }
.logo-crop--dossier { width: 164px; height: 102px; background-size: 824px auto; background-position: -474px -192px; }
.cover-line { width: 52px; height: 3px; margin: 85px 0 24px; background: var(--gold); }
.dossier-cover strong { max-width: 240px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.2; }
.dossier-cover small { margin-top: auto; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .19em; text-transform: uppercase; }
.dossier-details { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.dossier-details h3 { margin: 0; font-family: Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1.1; }
.dossier-details > p:not(.eyebrow) { margin: 24px 0 31px; color: var(--coast); font-size: 14px; line-height: 1.65; }
.dossier-details > a { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-top: 1px solid rgba(11,37,54,.18); border-bottom: 1px solid rgba(11,37,54,.18); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.dossier-details > a span { color: var(--gold); font-size: 18px; }
.dossier-details > a:hover { color: var(--gold); }
.dossier-details small { margin-top: 13px; color: #71838d; font-size: 10px; letter-spacing: .09em; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: center; margin-top: 105px; padding: 32px 0 34px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 11px; }
.footer-brand { min-width: 150px; }
.logo-crop--footer { width: 120px; height: 74px; background-size: 602px auto; background-position: -346px -141px; }
.site-footer p { margin: 0; font-family: Georgia, serif; font-size: 15px; font-style: italic; }
.site-footer a { color: var(--gold); letter-spacing: .1em; text-decoration: none; }

@media (max-width: 980px) {
  .shell { width: min(100% - 36px, 760px); }
  .menu-toggle { display: grid; gap: 7px; width: 44px; height: 44px; padding: 13px 10px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; height: 1px; background: white; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: absolute; inset: 88px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 18px 24px; background: rgba(11,37,54,.98); border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .nav-cta { margin-top: 12px; padding: 16px; text-align: center; border: 0; }
  .hero { min-height: 800px; }
  .brand-scene { width: 55vw; opacity: .55; }
  .hero-layout { grid-template-columns: 1fr; padding-top: 170px; }
  .hero-aside { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 30px; }
  .section-heading > p { max-width: 560px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .diagnosis-grid { grid-template-columns: 1fr; }
  .dossier-card { margin-top: 20px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { display: none; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 30px, 520px); }
  .header-inner { height: 74px; }
  .main-nav { top: 74px; }
  .logo-crop--header { width: 111px; height: 69px; background-size: 557px auto; background-position: -320px -130px; }
  .hero { min-height: 760px; }
  .hero-layout { padding-top: 150px; }
  .hero h1 { font-size: 51px; line-height: 1.01; }
  .hero-lead { margin-top: 25px; font-size: 16px; line-height: 1.62; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero::before { background: linear-gradient(90deg, rgba(11,37,54,.98) 0%, rgba(11,37,54,.86) 75%, rgba(11,37,54,.58) 100%); }
  .brand-scene { width: 88vw; opacity: .38; }
  .hero-footer { bottom: 23px; }
  .hero-footer span:first-child { display: none; }
  .hero-footer span:last-child { margin-left: auto; }
  .scope { padding: 88px 0 68px; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .diagnosis h2 { font-size: 42px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .independent-note { align-items: flex-start; flex-direction: column; gap: 13px; }
  .diagnosis { padding-top: 88px; }
  .diagnosis-grid { gap: 58px; }
  .dossier-card { grid-template-columns: 1fr; }
  .dossier-cover { min-height: 400px; }
  .dossier-details { padding: 34px 28px; }
  .site-footer { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 72px; }
}

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