:root {
  --ink: #152b31;
  --ink-2: #203b42;
  --paper: #f3f2ed;
  --white: #ffffff;
  --sage: #2e735d;
  --copper: #bf7b4d;
  --line: rgba(21, 43, 49, .17);
  --muted: #69777a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

.topbar { height: 92px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(21,43,49,.1); }
.brand { width: min(340px, 35vw); }
.brand img { width: 100%; }
.nav { display: flex; align-items: center; gap: 2.1vw; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav > a { position: relative; }
.nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--copper); transition: width .25s ease; }
.nav > a:hover::after { width: 100%; }
.nav-cta { background: var(--ink); color: white; padding: 15px 19px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--ink); margin: 6px; }

.hero { min-height: 720px; position: relative; display: grid; align-items: center; overflow: hidden; color: white; }
.hero-image { position: absolute; inset: 0; background: url('../images/las-condes-hero.jpg') center 42% / cover no-repeat, url('../images/apoquindo-el-golf.jpg') center / cover no-repeat; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,36,.96) 0%, rgba(10,30,36,.75) 50%, rgba(10,30,36,.26) 100%), linear-gradient(0deg, rgba(13,42,46,.5), transparent 60%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px); background-size: 100px 100px; mask-image: linear-gradient(90deg, black, transparent 78%); }
.hero-content { width: min(850px, 80vw); margin-left: 9vw; position: relative; z-index: 2; padding: 90px 0 120px; }
.eyebrow { margin: 0 0 19px; color: var(--sage); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.light { color: #cdd8d3; }
.hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(52px, 6.6vw, 98px); font-weight: 400; line-height: .97; max-width: 900px; letter-spacing: -.04em; }
.hero-lead { max-width: 680px; margin: 32px 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.79); }
.hero-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { padding: 17px 24px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: .25s ease; }
.button.primary { background: var(--copper); color: white; }
.button.primary:hover { background: #d18c5b; }
.button.ghost { border: 1px solid rgba(255,255,255,.5); color: white; }
.button.ghost:hover { background: white; color: var(--ink); }
.hero-index { position: absolute; z-index: 2; right: 6vw; bottom: 55px; display: flex; align-items: center; gap: 16px; max-width: 265px; }
.hero-index span { font-family: Georgia, serif; font-size: 48px; color: #eadacb; }
.hero-index p { margin: 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.3); font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }

.search-band { width: 92vw; margin: -28px auto 0; position: relative; z-index: 3; background: white; box-shadow: 0 20px 60px rgba(21,43,49,.14); }
.search-band form { min-height: 152px; padding: 28px 32px; display: grid; align-items: end; grid-template-columns: 1.35fr repeat(4, 1fr) auto; gap: 18px; }
.search-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 29px; font-weight: 400; }
.search-heading .eyebrow { margin-bottom: 8px; }
.search-band label { display: grid; gap: 8px; }
.search-band label span { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .11em; text-transform: uppercase; }
.search-band select, .search-band input { width: 100%; height: 47px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); outline: none; }
.search-band select:focus, .search-band input:focus { border-color: var(--copper); }
.search-button { height: 49px; min-width: 90px; border: 0; background: var(--sage); color: white; font-size: 11px; font-weight: 800; text-transform: uppercase; cursor: pointer; }

.section { padding: 120px 7vw; }
.section-label { grid-area: label; align-self: start; display: flex; gap: 13px; align-items: center; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); }
.section-label span { color: var(--copper); font-size: 11px; }
.section-label p { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-label.inverse { color: rgba(255,255,255,.5); }
.intro { display: grid; grid-template-columns: 35px minmax(350px, 1.05fr) minmax(340px, .85fr); grid-template-areas: "label copy image"; gap: 6vw; align-items: center; }
.intro-copy { grid-area: copy; }
.intro h2, .services h2, .method h2, .opportunities h2, .cta-panel h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.025em; }
.intro h2 { margin: 0 0 30px; font-size: clamp(42px, 5vw, 70px); line-height: 1.04; }
.intro-copy > p:last-of-type { max-width: 690px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.principles { margin-top: 38px; border-top: 1px solid var(--line); }
.principles > div { display: grid; grid-template-columns: 120px 1fr; padding: 17px 0; border-bottom: 1px solid var(--line); }
.principles strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.principles span { color: var(--muted); font-size: 14px; }
.intro-image { grid-area: image; margin: 0; position: relative; }
.intro-image::before { content: ""; position: absolute; width: 70%; height: 55%; left: -22px; bottom: -22px; background: var(--copper); z-index: -1; }
.intro-image img { width: 100%; height: 590px; object-fit: cover; filter: saturate(.75) contrast(1.08); }
.intro-image figcaption { margin-top: 34px; font-size: 10px; letter-spacing: .11em; color: var(--muted); text-transform: uppercase; }

.services { background: var(--ink); color: white; display: grid; grid-template-columns: 35px 1fr; grid-template-areas: "label heading" "label cards"; gap: 45px 6vw; }
.services-heading { grid-area: heading; display: grid; grid-template-columns: .4fr 1fr; align-items: start; }
.services-heading h2 { margin: 0; max-width: 870px; font-size: clamp(44px, 5.3vw, 76px); line-height: 1.05; }
.service-grid { grid-area: cards; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.service-grid article { padding: 34px 28px 10px 0; min-height: 330px; border-right: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; }
.service-grid article:not(:first-child) { padding-left: 28px; }
.service-grid article > span { color: var(--copper); font-size: 11px; }
.service-grid h3 { margin: 55px 0 20px; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.service-grid p { margin: 0; color: rgba(255,255,255,.63); font-size: 14px; line-height: 1.7; }
.service-grid a { margin-top: auto; padding-top: 30px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.service-grid b { color: var(--copper); }

.method { display: grid; grid-template-columns: 35px .85fr 1.1fr; grid-template-areas: "label heading list"; gap: 6vw; }
.method-heading { grid-area: heading; }
.method-heading h2 { margin: 0; font-size: clamp(42px, 4.5vw, 65px); line-height: 1.05; }
.method-list { grid-area: list; list-style: none; margin: 0; padding: 0; }
.method-list li { display: grid; grid-template-columns: 50px 1fr; gap: 25px; padding: 27px 0; border-top: 1px solid var(--line); }
.method-list li:last-child { border-bottom: 1px solid var(--line); }
.method-list > li > span { color: var(--copper); font-size: 11px; }
.method-list h3 { margin: 0 0 10px; font-size: 19px; text-transform: uppercase; letter-spacing: .06em; }
.method-list p { margin: 0; color: var(--muted); line-height: 1.6; }

.opportunities { background: #e9e8e2; }
.opportunities-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; }
.opportunities h2 { margin: 0; font-size: clamp(44px, 5.5vw, 72px); }
.opportunities-top > p { max-width: 420px; color: var(--muted); line-height: 1.6; }
.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.opportunity-grid article { background: white; min-width: 0; }
.opportunity-image { height: 260px; background: linear-gradient(125deg, rgba(21,43,49,.94), rgba(46,115,93,.75)), url('../images/apoquindo-el-golf.jpg') center / cover; padding: 22px; }
.opportunity-grid article:nth-child(2) .opportunity-image { background-position: 70% center; }
.opportunity-grid article:nth-child(3) .opportunity-image { background-position: 20% center; }
.opportunity-image span { display: inline-block; color: white; border: 1px solid rgba(255,255,255,.5); padding: 8px 10px; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.opportunity-body { padding: 26px; }
.opportunity-meta { display: flex; justify-content: space-between; color: var(--copper); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.opportunity-body h3 { margin: 28px 0 9px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.opportunity-body > p { margin: 0 0 35px; color: var(--muted); font-size: 14px; }
.opportunity-body > div:last-child { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.opportunity-body a { font-weight: 800; text-transform: uppercase; color: var(--sage); }
.empty-state { background: white; padding: 24px; color: var(--muted); }

.cta-panel { min-height: 590px; position: relative; display: flex; align-items: center; overflow: hidden; color: white; }
.cta-image { position: absolute; inset: 0; background: url('../images/las-condes-hero.jpg') center / cover no-repeat, url('../images/apoquindo-el-golf.jpg') center / cover no-repeat; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,37,43,.95), rgba(13,37,43,.5)); }
.cta-content { position: relative; z-index: 2; width: min(850px, 82vw); margin-left: 10vw; }
.cta-panel h2 { margin: 0; font-size: clamp(45px, 5.5vw, 78px); line-height: 1.04; }
.cta-content > p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.65; margin: 26px 0; }

footer { display: grid; grid-template-columns: 1.3fr .55fr 1fr; gap: 7vw; padding: 65px 7vw 35px; background: #10252b; color: rgba(255,255,255,.65); font-size: 13px; }
.footer-brand img { width: 320px; background: white; padding: 9px; }
.footer-brand p { margin-top: 20px; }
footer > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 12px; }
footer strong { color: white; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 7px; }
.footer-legal { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; letter-spacing: .06em; }
.whatsapp-float { position: fixed; z-index: 40; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #0a361a; font-size: 11px; font-weight: 900; box-shadow: 0 10px 30px rgba(0,0,0,.24); }

@media (max-width: 1100px) {
  .nav { gap: 1.3vw; }
  .nav-cta { display: none; }
  .search-band form { grid-template-columns: repeat(2, 1fr); }
  .search-heading { grid-column: 1 / -1; }
  .search-button { min-width: 100%; }
  .intro { grid-template-columns: 30px 1fr; grid-template-areas: "label copy" ". image"; }
  .intro-image img { height: 500px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: 30px 1fr; grid-template-areas: "label heading" ". list"; }
}

@media (max-width: 760px) {
  .topbar { height: 72px; padding: 0 18px; }
  .brand { width: 220px; max-width: 72vw; }
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; padding: 25px; background: white; display: none; flex-direction: column; align-items: flex-start; gap: 22px; box-shadow: 0 20px 30px rgba(21,43,49,.15); }
  .nav.open { display: flex; }
  .hero { min-height: 720px; }
  .hero-content { margin-left: 7vw; padding-top: 60px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-lead { font-size: 15px; }
  .hero-index { right: auto; left: 7vw; bottom: 30px; }
  .search-band { margin-top: 0; width: 100%; }
  .search-band form { grid-template-columns: 1fr; padding: 28px 22px; }
  .section { padding: 85px 7vw; }
  .section-label { display: none; }
  .intro, .services, .method { display: block; }
  .intro-image { margin-top: 55px; }
  .intro-image img { height: 410px; }
  .services-heading { display: block; }
  .service-grid { grid-template-columns: 1fr; margin-top: 50px; }
  .service-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding: 30px 0 !important; min-height: 280px; }
  .service-grid h3 { margin-top: 30px; }
  .method-list { margin-top: 45px; }
  .opportunities-top { display: block; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .cta-content { margin: 0 7vw; }
  footer { grid-template-columns: 1fr; }
  .footer-legal { grid-column: 1; }
}

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

/* Formularios de contacto */
.form-page { min-height: calc(100vh - 92px); padding: 105px 7vw 120px; display: grid; grid-template-columns: minmax(300px,.82fr) minmax(420px,1.05fr); gap: 9vw; align-items: start; background: linear-gradient(115deg, #f3f2ed 0%, #f3f2ed 63%, #e8e7e1 63%, #e8e7e1 100%); }
.form-page-intro { position: sticky; top: 145px; }
.form-page-intro h1 { margin: 0 0 28px; max-width: 650px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(50px, 6vw, 82px); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.form-page-intro > p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.78; }
.text-link { display: inline-block; margin-top: 24px; color: var(--sage); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-card { background: white; padding: 45px; box-shadow: 0 24px 70px rgba(21,43,49,.12); }
.contact-form { display: grid; gap: 24px; }
.contact-form label { display: grid; gap: 9px; }
.contact-form label > span { color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid rgba(21,43,49,.19); border-radius: 0; background: #fff; color: var(--ink); padding: 14px 15px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input, .contact-form select { min-height: 52px; }
.contact-form textarea { resize: vertical; min-height: 185px; font: inherit; line-height: 1.55; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(191,123,77,.11); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-submit { justify-self: start; min-height: 52px; padding: 0 25px; border: 0; background: var(--ink); color: white; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.form-submit:hover { background: var(--sage); }
.form-note { margin: -6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-success, .form-errors { margin-bottom: 28px; padding: 18px 20px; font-size: 13px; line-height: 1.55; }
.form-success { border-left: 3px solid var(--sage); background: rgba(46,115,93,.08); }
.form-errors { border-left: 3px solid var(--copper); background: rgba(191,123,77,.09); }
.form-success p { margin: 7px 0 0; }
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.footer-brand p { margin: 0; max-width: 270px; color: rgba(255,255,255,.72); font-family: Georgia, 'Times New Roman', serif; font-size: 22px; line-height: 1.35; }

@media (max-width: 900px) {
  .form-page { grid-template-columns: 1fr; gap: 50px; padding-top: 75px; background: var(--paper); }
  .form-page-intro { position: static; }
}

@media (max-width: 760px) {
  .form-page { min-height: 0; padding: 58px 7vw 80px; }
  .form-page-intro h1 { font-size: clamp(45px, 14vw, 66px); }
  .form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Solicitud privada de antecedentes de una oportunidad */
.opportunity-request-summary { margin: 0 0 30px; padding: 24px 25px; border: 1px solid rgba(21,43,49,.14); background: #f7f6f2; }
.opportunity-request-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--copper); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.opportunity-request-summary h2 { margin: 18px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 400; line-height: 1.08; }
.opportunity-request-summary p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.opportunity-request-summary small { display: block; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.inline-button { display: inline-flex; align-items: center; text-decoration: none; }
