:root {
  --paper: #f4f3ee;
  --paper-bright: #fbfaf6;
  --ink: #171916;
  --muted: #62675f;
  --line: #d8d9d2;
  --line-dark: rgba(255, 255, 255, 0.16);
  --teal: #0a735f;
  --teal-bright: #16a085;
  --teal-pale: #dcece7;
  --dark: #18221f;
  --white: #ffffff;
  --radius: 18px;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-bright);
  font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--teal); }

.shell { width: var(--shell); margin-inline: 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; z-index: 1000; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(23, 25, 22, 0.1);
}

.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; width: 114px; height: 42px; overflow: hidden; line-height: 1; }
.brand img { display: block; width: 122px; height: 42px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 0.875rem; font-weight: 500; }
.site-nav > a:not(.nav-cta) { position: relative; color: #383d37; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; inset: auto 0 -7px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.site-nav > a:not(.nav-cta):hover::after, .site-nav > a:not(.nav-cta):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; gap: 18px; padding: 11px 16px; color: white; background: var(--ink); border-radius: 100px; transition: background .2s ease, transform .2s ease; }
.nav-cta:hover { background: var(--teal); transform: translateY(-1px); }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; padding: 164px 0 28px; min-height: 790px; background-color: var(--paper); background-image: radial-gradient(rgba(23,25,22,.13) .65px, transparent .65px); background-size: 14px 14px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -190px; top: -210px; border: 1px solid rgba(10,115,95,.13); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(390px, .87fr); gap: 74px; align-items: center; }
.eyebrow { margin: 0 0 22px; color: var(--teal); font-size: .75rem; line-height: 1.2; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: "Aptos Display", Aptos, "Segoe UI", Helvetica, Arial, sans-serif; }
h1 { max-width: 760px; margin-bottom: 28px; font-size: clamp(3.2rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.065em; font-weight: 500; }
h1 em { color: var(--teal); font-style: normal; }
.hero-lead { max-width: 660px; margin: 0; color: #4c514b; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 38px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 13px 22px; border: 1px solid transparent; border-radius: 100px; font-weight: 600; font-size: .92rem; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover { background: var(--teal); }
.button-text { min-height: auto; padding: 10px 2px; border-radius: 0; border-bottom-color: var(--ink); }
.button-text:hover { color: var(--teal); border-bottom-color: var(--teal); }
.hero-note { display: flex; align-items: center; gap: 10px; margin: 34px 0 0; color: #747971; font-size: .82rem; }
.hero-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(10,115,95,.1); }

.process-visual { position: relative; padding: 14px; border: 1px solid rgba(23,25,22,.16); border-radius: 26px; background: rgba(255,255,255,.7); box-shadow: 0 26px 70px rgba(34,45,40,.09); backdrop-filter: blur(8px); }
.visual-header, .visual-footer { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 12px; color: #676d65; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.visual-status { display: flex; align-items: center; gap: 7px; }
.visual-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(22,160,133,.1); }
.visual-canvas { position: relative; min-height: 420px; overflow: hidden; border: 1px solid #303935; border-radius: 16px; background: var(--dark); }
.visual-canvas::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent); }
.orbit { position: absolute; border: 1px solid rgba(68,208,176,.13); border-radius: 50%; }
.orbit-one { width: 410px; height: 410px; top: -170px; right: -190px; }
.orbit-two { width: 260px; height: 260px; bottom: -130px; left: -120px; }
.visual-node { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; min-width: 180px; padding: 12px; color: white; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(32,47,42,.92); box-shadow: 0 15px 40px rgba(0,0,0,.25); }
.visual-node > span { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(69,213,179,.38); border-radius: 8px; color: #7de1ca; font-size: .72rem; }
.visual-node small, .visual-node strong { display: block; }
.visual-node small { margin-bottom: 2px; color: #829088; font-size: .63rem; text-transform: uppercase; letter-spacing: .09em; }
.visual-node strong { font-size: .78rem; font-weight: 500; }
.node-source { top: 54px; left: 28px; }
.node-center { top: 175px; left: 50%; transform: translateX(-50%); border-color: rgba(69,213,179,.52); }
.node-output { right: 24px; bottom: 52px; }
.node-symbol { font-family: "Aptos Display", Aptos, "Segoe UI", sans-serif; font-size: 1rem !important; }
.connector-lines { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; fill: none; stroke: #3fc4a6; stroke-width: 1.4; stroke-dasharray: 5 7; opacity: .7; }
.visual-tags { position: absolute; z-index: 3; right: 18px; top: 28px; display: flex; gap: 6px; }
.visual-tags span { padding: 4px 7px; color: #85928c; border: 1px solid rgba(255,255,255,.1); border-radius: 100px; font-size: .58rem; }
.visual-footer { justify-content: flex-start; gap: 18px; }
.visual-footer span { display: flex; align-items: center; gap: 7px; }
.visual-footer span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); }
.hero-index { position: relative; display: flex; justify-content: space-between; margin-top: 76px; padding-top: 20px; border-top: 1px solid rgba(23,25,22,.13); color: #747871; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

.section { padding: 128px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: end; margin-bottom: 58px; }
.section-heading h2, .challenge-intro h2, .principle-copy h2, .contact-copy h2 { margin-bottom: 0; font-size: clamp(2.3rem, 4.2vw, 4rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 500; }
.section-heading > p { max-width: 480px; margin: 0 0 4px; color: var(--muted); font-size: 1.03rem; }
.editorial-media { position: relative; overflow: hidden; margin: 0; background: #e8e9e4; border: 1px solid rgba(23,25,22,.14); border-radius: 18px; box-shadow: 0 22px 55px rgba(28,39,34,.1); }
.editorial-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.editorial-media:hover img { transform: scale(1.012); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 315px; display: flex; flex-direction: column; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.service-card:hover { position: relative; z-index: 1; background: #fff; transform: translateY(-4px); box-shadow: 0 20px 48px rgba(31,38,34,.07); }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; color: #8b9089; font-size: .74rem; }
.service-card h3 { margin-bottom: 14px; font-size: 1.45rem; letter-spacing: -.035em; font-weight: 500; }
.service-card p { max-width: 480px; margin: 0; color: var(--muted); }
.card-meta { margin-top: auto; padding-top: 24px; color: var(--teal); font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; }
.icon { position: relative; width: 23px; height: 23px; color: var(--teal); }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-flow::before { width: 5px; height: 5px; left: 2px; top: 3px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 13px 12px 0 -1.5px var(--paper-bright), 13px 12px 0 0 currentColor; }
.icon-flow::after { width: 12px; height: 10px; left: 6px; top: 7px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.icon-spark::before { width: 15px; height: 15px; left: 4px; top: 4px; border: 1.5px solid currentColor; transform: rotate(45deg); border-radius: 3px; }
.icon-spark::after { width: 5px; height: 5px; left: 9px; top: 9px; background: currentColor; border-radius: 50%; }
.icon-frame::before { inset: 2px; border: 1.5px solid currentColor; border-radius: 4px; }
.icon-frame::after { width: 9px; height: 1px; left: 7px; top: 11px; background: currentColor; box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor; }
.icon-link::before { width: 11px; height: 7px; left: 1px; top: 5px; border: 1.5px solid currentColor; border-radius: 8px; transform: rotate(-28deg); }
.icon-link::after { width: 11px; height: 7px; right: 1px; bottom: 5px; border: 1.5px solid currentColor; border-radius: 8px; transform: rotate(-28deg); }

.challenges { color: white; background: var(--dark); }
.challenge-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.eyebrow-light { color: #79d5bf; }
.challenge-intro h2 { max-width: 500px; }
.challenge-intro > p { max-width: 460px; margin: 28px 0; color: #adb7b2; font-size: 1.03rem; }
.challenge-media { width: min(100%, 460px); aspect-ratio: 16 / 9; margin: 32px 0 24px; border-color: rgba(255,255,255,.2); box-shadow: 0 24px 55px rgba(0,0,0,.2); }
.challenge-media img { object-position: center; }
.text-link { display: inline-flex; gap: 30px; padding: 10px 0 5px; border-bottom: 1px solid rgba(255,255,255,.4); font-size: .9rem; }
.text-link:hover { color: #79d5bf; border-color: #79d5bf; }
.challenge-list { border-top: 1px solid var(--line-dark); }
.challenge-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; min-height: 92px; border-bottom: 1px solid var(--line-dark); }
.challenge-row > span { color: #6f8179; font-size: .7rem; }
.challenge-row p { margin: 0; color: #e8ece9; font-family: "Aptos Display", Aptos, "Segoe UI", sans-serif; font-size: 1.04rem; }
.challenge-row i { color: #69cdb5; font-style: normal; transition: transform .2s ease; }
.challenge-row:hover i { transform: translateX(5px); }

.method { background: var(--paper); }
.method-heading { margin-bottom: 45px; }
.method-media { aspect-ratio: 3 / 2; align-self: end; }
.method-media img { object-position: center; }
.method-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c8cbc3; }
.method-step { display: grid; grid-template-columns: 95px minmax(0, 1fr) 230px; gap: 30px; align-items: start; padding: 32px 0; border-bottom: 1px solid #c8cbc3; }
.step-number { display: grid; place-items: center; width: 45px; height: 45px; color: white; background: var(--ink); border-radius: 50%; font-size: .72rem; }
.method-step h3 { margin-bottom: 9px; font-size: 1.42rem; letter-spacing: -.03em; font-weight: 500; }
.method-step p { max-width: 640px; margin: 0; color: var(--muted); }
.step-note { justify-self: end; color: var(--teal); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }

.principle { padding: 92px 0; color: white; background: #0a725f; }
.principle-grid { display: grid; grid-template-columns: .42fr 1.1fr .35fr; gap: 60px; align-items: center; }
.principle .eyebrow { color: #b4e6d9; }
.principle-copy h2 { max-width: 760px; }
.principle-copy p { max-width: 720px; margin: 24px 0 0; color: #d4eee8; font-size: 1.1rem; }
.principle-mark { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 9px; color: #b9e4da; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; }
.principle-mark i { display: block; position: relative; width: 1px; height: 80px; background: rgba(255,255,255,.35); }
.principle-mark i::after { content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px; border-right: 1px solid white; border-bottom: 1px solid white; transform: rotate(45deg); }

.contact { background: var(--paper-bright); }
.contact-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: 100px; }
.contact-copy > p:not(.eyebrow) { max-width: 450px; margin: 26px 0; color: var(--muted); font-size: 1.04rem; }
.contact-detail { margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-detail span { color: var(--teal); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-detail address { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 12px; font-style: normal; }
.contact-detail address a { font-size: 1rem; font-weight: 500; }
.contact-detail address a:hover { color: var(--teal); }
.contact-detail p { max-width: 410px; margin: 7px 0 0; color: #7a7e77; font-size: .82rem; }
.contact-form { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 24px 60px rgba(31,38,34,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: block; margin-bottom: 24px; color: #41463f; font-size: .78rem; font-weight: 600; letter-spacing: .03em; }
.contact-form label > span:not(.optional) { color: var(--teal); }
.optional { float: right; color: #93978f; font-size: .68rem; font-weight: 400; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 13px 0; color: var(--ink); border: 0; border-bottom: 1px solid #bec2bb; border-radius: 0; outline: none; background: transparent; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.contact-form textarea::placeholder { color: #9a9e97; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 1px 0 var(--teal); }
.privacy-summary { margin: 2px 0 20px; padding: 16px; color: #596059; background: #f3f7f5; border: 1px solid #dce7e2; border-radius: 10px; font-size: .73rem; line-height: 1.55; }
.privacy-summary strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: .76rem; }
.privacy-summary p { margin: 0; }
.privacy-summary a, .consent a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.contact-form .consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 0 0 22px; font-size: .78rem; font-weight: 400; line-height: 1.5; }
.contact-form .consent input { width: 17px; height: 17px; margin: 2px 0 0; padding: 0; accent-color: var(--teal); }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 8px; }
.form-bottom p { max-width: 330px; margin: 0; color: #888d85; font-size: .73rem; }
.form-status { display: none; margin: 20px 0 0; padding: 12px 14px; color: #175546; background: #e9f4f0; border-radius: 8px; font-size: .83rem; }
.form-status.is-visible { display: block; }

.site-footer { padding: 68px 0 28px; color: #cbd0cd; background: #111714; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .72fr .82fr 1fr; gap: 42px; }
.brand-footer { filter: invert(1); }
.footer-grid > div:first-child > p { margin: 18px 0 0; color: #858f89; font-size: .85rem; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: .82rem; }
.footer-nav > span { margin-bottom: 8px; color: #738078; font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-nav a:hover { color: #6bd0b7; }
.footer-nav p { margin: 0; color: #6d7772; }
.footer-legal { grid-column: 1 / -1; margin: 48px 0 0; padding-top: 20px; color: #65706a; border-top: 1px solid rgba(255,255,255,.1); font-size: .7rem; }

.contact-chat-button { margin-top: 20px; }
.ximena-preview { position: relative; min-height: 420px; overflow: hidden; padding: 34px; color: white; background: var(--dark); border: 1px solid #2b3934; border-radius: 22px; box-shadow: 0 28px 70px rgba(27, 39, 34, .14); }
.ximena-preview::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) .7px, transparent .7px); background-size: 16px 16px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.ximena-preview-top { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ximena-preview-top strong, .ximena-preview-top small { display: block; }
.ximena-preview-top strong { font-size: 1rem; }
.ximena-preview-top small, .ximena-identity small { color: #96aaa2; font-size: .72rem; }
.ximena-preview-top small i, .ximena-identity small i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #47c6a7; border-radius: 50%; }
.ximena-avatar { flex: 0 0 auto; display: block; width: 42px; height: 42px; object-fit: cover; object-position: center 38%; background: #d7e1dd; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.ximena-preview-message { position: relative; max-width: 82%; margin-top: 48px; padding: 18px; color: #eaf0ed; background: #24332e; border: 1px solid rgba(255,255,255,.11); border-radius: 6px 16px 16px 16px; font-size: 1rem; }
.ximena-preview-options { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ximena-preview-options span { padding: 8px 12px; color: #aadbcf; border: 1px solid rgba(99,209,183,.3); border-radius: 100px; font-size: .75rem; }

.ximena-widget { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ximena-launcher { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 18px 8px 8px; color: white; background: var(--dark); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; box-shadow: 0 14px 45px rgba(17, 28, 24, .25); cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.ximena-launcher:hover { transform: translateY(-2px); background: #0d705d; box-shadow: 0 18px 55px rgba(17, 28, 24, .32); }
.ximena-launcher-icon { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--teal); border-radius: 50%; }
.ximena-launcher-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ximena-launcher-label { display: block; line-height: 1.2; }
.ximena-launcher-label strong { font-size: .88rem; font-weight: 600; }
.ximena-widget[data-state="open"] .ximena-launcher-label { display: none; }
.ximena-widget[data-state="open"] .ximena-launcher { width: 62px; padding: 8px; }

.ximena-nudge { position: relative; max-width: 290px; padding: 0 34px 0 0; color: var(--ink); background: white; border: 1px solid var(--teal); border-radius: 14px; box-shadow: 0 15px 45px rgba(24, 32, 28, .15); animation: nudge-in .35s cubic-bezier(.2,.8,.2,1); }
.ximena-nudge[hidden] { display: none; }
.ximena-nudge::after { content: ""; position: absolute; right: 25px; bottom: -6px; width: 11px; height: 11px; background: white; border-right: 1px solid var(--teal); border-bottom: 1px solid var(--teal); transform: rotate(45deg); }
.ximena-nudge-text { display: block; width: 100%; padding: 15px 10px 15px 16px; color: inherit; background: transparent; border: 0; text-align: left; font-size: .86rem; font-weight: 500; line-height: 1.4; cursor: pointer; }
.ximena-nudge-close { position: absolute; z-index: 2; top: 7px; right: 7px; width: 26px; height: 26px; padding: 0; color: #777d76; background: transparent; border: 0; border-radius: 50%; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.ximena-nudge-close:hover { color: var(--ink); background: #f0f1ed; }

.back-to-top {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(23, 25, 22, .2);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(24, 32, 28, .12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease, border-color .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.back-to-top:hover {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(10, 115, 95, .48);
}
.back-to-top:active { transform: translate(-50%, 2px); }
.back-to-top svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.ximena-chat-open .back-to-top { display: none; }

.ximena-panel { width: min(390px, calc(100vw - 32px)); height: min(610px, calc(100vh - 120px)); overflow: hidden; color: var(--ink); background: #fbfaf6; border: 1px solid #cfd3cc; border-radius: 22px; box-shadow: 0 26px 80px rgba(14, 24, 20, .25); transform-origin: bottom right; animation: chat-in .3s cubic-bezier(.2,.8,.2,1); }
.ximena-panel[hidden] { display: none; }
.ximena-panel-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 14px 13px 16px; color: white; background: var(--dark); }
.ximena-identity { display: flex; align-items: center; gap: 10px; }
.ximena-identity strong, .ximena-identity small { display: block; }
.ximena-identity strong { font-size: .92rem; }
.ximena-actions { display: flex; gap: 5px; }
.ximena-icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #d8e0dc; background: transparent; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.ximena-icon-button:hover { color: white; background: rgba(255,255,255,.08); }
.ximena-icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ximena-icon-button[aria-pressed="false"] .sound-wave { display: none; }

.ximena-consent { height: calc(100% - 72px); display: flex; flex-direction: column; align-items: flex-start; overflow-y: auto; padding: 28px 24px 22px; }
.ximena-consent[hidden], .ximena-chat-content[hidden] { display: none; }
.ximena-consent-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--teal); background: #e8f2ee; border-radius: 13px; }
.ximena-consent-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ximena-consent h3 { margin: 20px 0 9px; font-size: 1.2rem; letter-spacing: -.025em; }
.ximena-consent > p { margin: 0; color: #59635e; font-size: .84rem; line-height: 1.55; }
.ximena-ai-notice { margin: 0 0 14px; padding: 12px 13px; color: #29483f; background: #e8f2ee; border: 1px solid #c8ddd5; border-radius: 10px; font-size: .76rem; line-height: 1.45; }
.ximena-ai-notice strong, .ximena-ai-notice span { display: block; }
.ximena-ai-notice strong { margin-bottom: 4px; color: #123d33; font-size: .72rem; }
.ximena-ai-notice a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ximena-consent-warning { margin: 18px 0; padding: 12px 13px; color: #5e5141; background: #f7f1e7; border: 1px solid #ebdec9; border-radius: 10px; font-size: .76rem; line-height: 1.45; }
.ximena-consent-warning strong { display: block; margin-bottom: 3px; color: #3d372f; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.ximena-consent-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #505a55; font-size: .76rem; line-height: 1.45; cursor: pointer; }
.ximena-consent-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--teal); }
.ximena-consent-check a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.ximena-consent-error { width: 100%; margin: 12px 0 0; color: #8b2f2f; font-size: .74rem; line-height: 1.4; }
.ximena-consent-button { width: 100%; min-height: 44px; margin-top: auto; padding: 11px 16px; color: white; background: var(--teal); border: 0; border-radius: 11px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.ximena-consent-button:hover { background: #075e4e; }
.ximena-consent-button:disabled { color: #929b96; background: #e4e8e5; cursor: not-allowed; }
.ximena-chat-content { height: calc(100% - 72px); display: flex; flex-direction: column; }
.ximena-messages { flex: 1 1 auto; min-height: 150px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px 10px; scroll-behavior: smooth; }
.chat-message { width: fit-content; max-width: 86%; margin-bottom: 13px; padding: 11px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.chat-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-contact-link { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.chat-contact-link:hover { color: #064e41; }
.chat-contact-link:focus-visible { border-radius: 3px; outline: 2px solid var(--teal); outline-offset: 2px; }
.chat-message-agent { color: #34413c; background: #edf1ee; border-radius: 5px 14px 14px 14px; }
.chat-message-user { margin-left: auto; color: white; background: var(--teal); border-radius: 14px 5px 14px 14px; }
.chat-message-label { display: block; margin-bottom: 3px; color: #718079; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.chat-message-user .chat-message-label { color: #bfe7dd; }
.chat-message-error { color: #724239; background: #f8ece9; border: 1px solid #edd4cf; }
.chat-typing { display: flex; align-items: center; gap: 4px; min-width: 52px; }
.chat-typing i { width: 6px; height: 6px; background: #8d9993; border-radius: 50%; animation: typing 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }

.ximena-quick-actions { display: flex; gap: 7px; overflow-x: auto; padding: 5px 16px 10px; scrollbar-width: none; }
.ximena-quick-actions:empty, .ximena-quick-actions.is-hidden { display: none; }
.ximena-quick-actions button { flex: 0 0 auto; padding: 7px 10px; color: var(--teal); background: white; border: 1px solid #cdded8; border-radius: 999px; font-size: .71rem; cursor: pointer; }
.ximena-quick-actions button:hover { color: white; background: var(--teal); border-color: var(--teal); }
.ximena-form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: end; margin: 0 12px; padding: 8px 8px 8px 13px; background: white; border: 1px solid #cfd4cd; border-radius: 16px; }
.ximena-form:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,115,95,.08); }
.ximena-form textarea { width: 100%; max-height: 98px; padding: 8px 0; color: var(--ink); background: transparent; border: 0; outline: 0; resize: none; font-size: .9rem; line-height: 1.4; }
.ximena-form button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: white; background: var(--ink); border: 0; border-radius: 12px; cursor: pointer; }
.ximena-form button:hover { background: var(--teal); }
.ximena-form button:disabled { opacity: .45; cursor: wait; }
.ximena-form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ximena-privacy { margin: 8px 18px 12px; color: #7c837c; font-size: .62rem; line-height: 1.35; }
.ximena-privacy a { color: var(--teal); text-decoration: underline; }

@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nudge-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }

.legal-page { min-height: 100vh; background: var(--paper-bright); }
.legal-header { position: static; background: var(--paper-bright); }
.legal-header .header-inner { border-bottom: 1px solid var(--line); }
.legal-back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; }
.legal-back:hover { color: var(--teal); }
.legal-main { padding: 96px 0 120px; }
.legal-hero { max-width: 820px; margin-bottom: 70px; }
.legal-hero h1 { margin-bottom: 22px; font-size: clamp(3rem, 7vw, 5rem); }
.legal-hero > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.legal-updated { display: block; margin-top: 20px; color: #83887f; font-size: .78rem; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 80px; align-items: start; }
.legal-toc { position: sticky; top: 30px; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-toc span { margin-bottom: 5px; color: var(--teal); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.legal-toc a { color: var(--muted); font-size: .82rem; }
.legal-toc a:hover { color: var(--teal); }
.legal-content section { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin-bottom: 17px; font-size: 1.65rem; line-height: 1.25; letter-spacing: -.03em; font-weight: 500; }
.legal-content h3 { margin: 24px 0 10px; font-size: 1.05rem; font-weight: 600; }
.legal-content p, .legal-content li { color: #555b54; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal-card { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: .88rem; }
.legal-table th, .legal-table td { padding: 13px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.legal-table th { color: var(--ink); background: var(--paper); font-weight: 600; }
.legal-table td { color: var(--muted); }
.legal-footer { padding-top: 42px; }
.legal-footer .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: .12s; }

:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 4px; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.6); }
  .menu-toggle span:not(.sr-only) { width: 100%; height: 1px; background: var(--ink); transition: transform .25s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 82px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 32px 24px; visibility: hidden; opacity: 0; transform: translateY(-10px); background: var(--paper-bright); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav > a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
  .site-nav .nav-cta { justify-content: space-between; margin-top: 24px; padding: 15px 20px; border: 0; font-size: 1rem; }
  .hero { padding-top: 140px; }
  .hero-grid { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy { max-width: 750px; }
  .process-visual { max-width: 620px; }
  .section-heading, .challenge-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .section-heading { align-items: start; }
  .challenge-media, .method-media { width: min(100%, 620px); }
  .challenge-intro h2 { max-width: 700px; }
  .method-step { grid-template-columns: 72px 1fr; }
  .step-note { grid-column: 2; justify-self: start; }
  .principle-grid { grid-template-columns: 1fr .3fr; }
  .principle-grid > .eyebrow { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .legal-toc span { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 32px); }
  body.ximena-chat-open { overflow: hidden; overscroll-behavior: none; }
  .header-inner { height: 72px; }
  .site-nav { top: 72px; }
  .hero { min-height: auto; padding: 122px 0 24px; }
  h1 { font-size: clamp(3rem, 14.3vw, 4.25rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .button-text { width: auto !important; align-self: flex-start; gap: 70px; }
  .process-visual { padding: 9px; border-radius: 20px; }
  .visual-canvas { min-height: 390px; }
  .visual-node { min-width: 165px; }
  .node-source { left: 16px; }
  .node-output { right: 14px; }
  .visual-tags { display: none; }
  .hero-index { margin-top: 52px; }
  .hero-index span:last-child { display: none; }
  .section { padding: 88px 0; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .challenge-intro h2, .principle-copy h2, .contact-copy h2 { font-size: 2.45rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; padding: 28px; }
  .service-top { margin-bottom: 46px; }
  .challenges { padding-block: 94px; }
  .challenge-row { grid-template-columns: 34px 1fr auto; min-height: 100px; }
  .method-heading { margin-bottom: 42px; }
  .method-media { aspect-ratio: 16 / 9; }
  .method-step { grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; }
  .method-step .step-note { display: none; }
  .step-number { width: 38px; height: 38px; }
  .principle { padding: 76px 0; }
  .principle-grid { grid-template-columns: 1fr; gap: 34px; }
  .principle-mark { display: none; }
  .contact-grid { gap: 44px; }
  .contact-detail { margin-top: 42px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .form-bottom .button { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-legal { margin-top: 18px; }
  .legal-main { padding: 66px 0 88px; }
  .legal-hero { margin-bottom: 50px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc span { grid-column: auto; }
  .legal-table { display: block; overflow-x: auto; }
  .legal-footer .footer-grid { grid-template-columns: 1fr; }
  .ximena-widget { right: 16px; bottom: 16px; }
  .back-to-top {
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
  }
  .ximena-launcher { width: 58px; min-height: 58px; padding: 6px; }
  .ximena-launcher-icon { width: 44px; height: 44px; }
  .ximena-launcher-label { display: none; }
  .ximena-panel { width: calc(100vw - 24px); height: min(650px, calc(100dvh - 32px)); border-radius: 20px; }
  .ximena-widget[data-state="open"] {
    top: var(--ximena-viewport-top, 0px);
    right: auto;
    bottom: auto;
    left: var(--ximena-viewport-left, 0px);
    width: var(--ximena-viewport-width, 100vw);
    height: var(--ximena-viewport-height, 100dvh);
    box-sizing: border-box;
    align-items: stretch;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    overscroll-behavior: none;
  }
  .ximena-widget[data-state="open"] .ximena-panel { width: 100%; height: 100%; min-height: 0; border-radius: 16px; }
  .ximena-widget[data-state="open"] .ximena-launcher { display: none; }
  .ximena-widget[data-state="open"] .ximena-chat-content { min-height: 0; }
  .ximena-widget[data-state="open"] .ximena-messages { min-height: 0; }
  .ximena-widget[data-keyboard="open"] { padding-top: 4px; padding-bottom: 4px; }
  .ximena-widget[data-keyboard="open"] .ximena-panel { border-radius: 12px; }
  .ximena-widget[data-keyboard="open"] .ximena-panel-header { min-height: 60px; padding-block: 8px; }
  .ximena-widget[data-keyboard="open"] .ximena-chat-content { height: calc(100% - 60px); }
  .ximena-widget[data-keyboard="open"] .ximena-quick-actions,
  .ximena-widget[data-keyboard="open"] .ximena-privacy { display: none; }
  .ximena-widget[data-keyboard="open"] .ximena-messages { padding-top: 12px; }
  .ximena-form textarea { font-size: 1rem; }
  .ximena-consent { padding: 22px 20px 18px; }
  .ximena-nudge { max-width: min(290px, calc(100vw - 82px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
