:root {
  --navy: #0A1D3B;
  --navy-2: #0E2547;
  --ink: #0F1B2E;
  --night: #0B1422;
  --gold: #B49B6C;
  --gold-2: #D6C39A;
  --gold-dark: #8E7647;
  --cream: #F5F0E7;
  --paper: #FBF9F5;
  --text: #24314A;
  --muted: #5B6679;
  --line: #E4DCCD;
  --radius: 18px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

.display { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.display em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); }
.section-navy .h2 { color: #fff; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.eyebrow-dark { color: var(--gold-dark); }
.lead { font-size: 18px; color: var(--muted); margin: 16px 0 0; }
.section-navy .lead { color: #C9D1DE; }
.center { text-align: center; margin-top: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,29,59,.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(180,155,108,.25); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: none; }
.brand img { width: 28px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; padding-left: 12px; border-left: 1px solid var(--gold); }
.brand-text strong { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.brand-text small { font-family: var(--serif); font-size: 12px; letter-spacing: .32em; color: #D7DDE7; margin-top: 3px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: #DCE2EC; text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: transparent; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% 20%, #143263 0%, transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy) 62%, var(--night) 62.2%, var(--night) 100%); padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 10vw, 130px); }
.hero-mark { position: absolute; right: max(4vw, calc(50% - 560px)); top: 50%; transform: translateY(-50%); width: clamp(220px, 28vw, 380px); opacity: .1; pointer-events: none; }
.hero-inner { position: relative; max-width: 760px; margin-left: max(24px, calc(50% - 580px)); }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: #CBD3E0; margin: 24px 0 0; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 44px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(180,155,108,.35); font-size: 15px; color: #DDE3EC; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; transform: rotate(45deg) translateY(-2px); background: var(--gold); }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-navy { background: var(--navy); color: #E6EAF1; }
.section-cream { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 48px; }

.areas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.area-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.area-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10,29,59,.09); border-color: var(--gold-2); }
.area-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--navy); margin-bottom: 18px; }
.area-icon svg, .ci svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.area-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.area-card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { padding: 28px 24px; border: 1px solid rgba(180,155,108,.35); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.step-num { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--gold); line-height: 1; }
.steps h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: #fff; margin: 14px 0 8px; }
.steps p { margin: 0; font-size: 15.5px; color: #C2CBD9; }

.capsulas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.capsula { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.capsula img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.capsula-body { padding: 22px 24px 26px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.capsula h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); margin: 6px 0 8px; line-height: 1.25; }
.capsula p { margin: 0; font-size: 15.5px; color: var(--muted); }

.despacho { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.despacho-media img { border-radius: 24px; box-shadow: 0 30px 60px rgba(10,29,59,.15); }
.despacho-text p { margin: 18px 0 0; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6C39A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.contact-list a, .contact-list span { color: #E6EAF1; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-2); }
.ci { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(180,155,108,.45); }
.ci svg { width: 22px; height: 22px; }
.contact-form { background: #fff; color: var(--text); border-radius: 22px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1.5px solid #CFC6B5; border-radius: 12px; padding: 12px 14px; min-height: 50px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(180,155,108,.35); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FBEAEA; color: #8C1D18; font-weight: 600; font-size: 15px; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }

.site-footer { background: var(--night); color: #AEB8C8; padding: 48px 0; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand img { width: 34px; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 19px; }
.footer-brand span { font-family: var(--serif); font-size: 12px; letter-spacing: .3em; color: #C6CEDA; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.footer-nav a { color: #DCE2EC; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--gold-2); }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; line-height: 1.7; }
.footer-legal a { color: var(--gold-2); }

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

@media (max-width: 1060px) {
  .menu-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--navy); border-bottom: 1px solid rgba(180,155,108,.3); display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .header-actions { margin-left: auto; }
  .areas-grid, .capsulas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(1160px, 100% - 36px); }
  .header-actions .btn { display: none; }
  .brand-text strong { font-size: 18px; }
  .hero { background: radial-gradient(600px 400px at 90% 10%, #143263 0%, transparent 60%), var(--navy); }
  .hero-mark { right: -40px; top: 22%; width: 220px; opacity: .08; }
  .hero-ctas .btn { width: 100%; }
  .areas-grid, .capsulas-grid, .steps, .despacho, .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
