/* Ceiba Consultores: visual system.
   Identity: the logo's canopy. Rounded bars (the copa) in magenta, teal and green over a navy trunk and an
   orange base are the building block of the whole site: pills, colour bands, section markers, the hero. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest.woff2) format("woff2"); }

:root {
  --navy: #0B2340; --deep: #071A33; --ink: #0F1D2E; --ink-2: #45526A; --ink-3: #6B7689;
  --cream: #F6F3EC; --sand: #EDE8DD; --white: #FFFFFF;
  --line: rgba(15, 29, 46, .12); --line-2: rgba(15, 29, 46, .22);
  --magenta: #C1268A; --teal: #0A939C; --green: #178A3E; --orange: #DD5E26; --leaf: #5FC08E;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "Onest", system-ui, sans-serif;
  --wrap: 1200px; --gut: clamp(20px, 4.5vw, 56px);
  --r: 28px; --r-sm: 16px;
  --sec: clamp(72px, 8vw, 112px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #C7C0B2 var(--cream); }
body { background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; caret-color: var(--teal); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* type */
h1, h2, h3 { font-weight: 600; color: var(--navy); text-wrap: balance; letter-spacing: -0.03em; }
.h-xl { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.h-l { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; }
.h-m { font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-3); }

/* the canopy marker: three little bars, used before headings (the brand's signature, not a kicker) */
.marker { display: inline-grid; gap: 3px; justify-items: center; width: 34px; margin-bottom: 18px; }
.marker i { display: block; height: 6px; border-radius: 6px; }
.marker i:nth-child(1) { width: 40%; background: var(--magenta); }
.marker i:nth-child(2) { width: 70%; background: var(--teal); }
.marker i:nth-child(3) { width: 100%; background: var(--green); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 1rem; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.btn svg { transition: transform 260ms var(--ease-out); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-line { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
@media (hover: hover) and (pointer: fine) {
  .btn-navy:hover { background: #16365F; }
  .btn-white:hover { background: #E7EEF3; }
  .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
  .btn-line-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
  .btn:hover svg { transform: translateX(4px); }
}

/* ---------------- header ---------------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }
.header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo svg { width: 36px; height: 29px; }
.logo img { height: 30px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { position: relative; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: color 200ms ease, background-color 200ms ease; }
.menu a[aria-current="page"] { color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .menu a:not([aria-current]):hover { color: var(--navy); background: rgba(255,255,255,.6); } }
.header .btn { height: 44px; padding: 0 20px; font-size: .93rem; }
.toggle { display: none; width: 46px; height: 46px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); place-items: center; }
@media (max-width: 1020px) {
  .menu, .header .cta { display: none; }
  .toggle { display: grid; }
  .header.open .menu { display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 76px; left: 0; right: 0; bottom: 0; padding: 16px var(--gut) 32px; background: var(--cream); gap: 0; animation: drop 240ms var(--ease-out); }
  .header.open .menu a { padding: 18px 4px; font-size: 1.3rem; border-radius: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; }
  .header.open .menu a[aria-current="page"] { color: var(--teal); }
  .header.open .menu .btn { margin-top: 24px; height: 54px; border: 0; color: #fff; font-size: 1.05rem; padding: 0; }
}
@media (min-width: 1021px) { .menu .btn { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- hero (navy, the canopy of words) ---------------- */
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lead { color: rgba(255,255,255,.76); margin-top: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.86); }
.hero .facts i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }

.tree { display: grid; justify-items: center; gap: clamp(8px, 1vw, 12px); width: 100%; max-width: 560px; margin-inline: auto; }
.tree .pill { display: flex; align-items: center; justify-content: center; gap: 10px; height: clamp(54px, 5.6vw, 72px); border-radius: 999px; background: var(--c); color: #fff; font-weight: 600; font-size: clamp(.95rem, 1.25vw, 1.12rem); letter-spacing: -0.01em; padding: 0 22px; text-align: center;
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out); will-change: transform; }
.tree .pill small { font-weight: 500; font-size: .78em; opacity: .8; }
.tree .p1 { width: 44%; } .tree .p2 { width: 72%; } .tree .p3 { width: 100%; }
.tree .trunk { width: 32%; height: clamp(64px, 7vw, 92px); margin-top: -2px; }
.tree .trunk svg { width: 100%; height: 100%; }
.tree .base { width: 62%; height: clamp(34px, 3.4vw, 44px); font-size: clamp(.85rem, 1vw, .95rem); }
@media (hover: hover) and (pointer: fine) {
  .tree a.pill:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 34px -18px rgba(0,0,0,.6); }
}
.tree.grow .pill, .tree.grow .trunk { animation: grow 900ms var(--ease-out) both; transform-origin: 50% 100%; }
.tree.grow .base { animation-delay: 120ms; } .tree.grow .trunk { animation-delay: 220ms; }
.tree.grow .p3 { animation-delay: 340ms; } .tree.grow .p2 { animation-delay: 430ms; } .tree.grow .p1 { animation-delay: 500ms; }
@keyframes grow { from { opacity: 0; transform: translateY(22px) scaleX(.6); } to { opacity: 1; transform: none; } }
.hero-in > * { animation: rise 900ms var(--ease-out) both; }
.hero-in > :nth-child(2) { animation-delay: 80ms; } .hero-in > :nth-child(3) { animation-delay: 150ms; } .hero-in > :nth-child(4) { animation-delay: 210ms; } .hero-in > :nth-child(5) { animation-delay: 260ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* inner page heads: compact navy band with the canopy bars at its edge */
.phead { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.phead .wrap { padding: clamp(56px, 6vw, 84px) 0 clamp(52px, 5.5vw, 76px); position: relative; z-index: 1; }
.phead h1 { color: #fff; max-width: 15em; }
.phead .lead { color: rgba(255,255,255,.74); margin-top: 18px; }
.phead .bars { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; justify-items: end; width: min(42vw, 520px); opacity: .95; }
.phead .bars i { display: block; height: clamp(34px, 3.6vw, 52px); border-radius: 999px 0 0 999px; }
.phead .bars i:nth-child(1) { width: 46%; background: var(--magenta); }
.phead .bars i:nth-child(2) { width: 72%; background: var(--teal); }
.phead .bars i:nth-child(3) { width: 100%; background: var(--green); }
@media (max-width: 860px) { .phead .bars { position: static; transform: none; width: 70%; margin: 0 calc(-1 * var(--gut)) 0 auto; padding-bottom: 32px; } .phead .bars i { height: 26px; } }

/* ---------------- sections ---------------- */
.sec { padding: var(--sec) 0; }
.sec.tight { padding-top: 0; }
.sec.sand { background: var(--sand); }
.sec.navy { background: var(--navy); color: #fff; }
.sec.navy h2 { color: #fff; }
.head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.head .lead { justify-self: end; }
.head.one { grid-template-columns: 1fr; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } .head .lead { justify-self: start; } }

/* problems band */
.band { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.band__track { display: flex; gap: 16px; width: max-content; padding: 6px 0 14px; will-change: transform; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.band__track.grabbing { cursor: grabbing; }
.pcard { flex: none; width: clamp(286px, 25vw, 360px); display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--r); padding: 26px; box-shadow: 0 0 0 1px var(--line); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.pcard .tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font-size: .8rem; font-weight: 600; }
.pcard .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pcard h3 { font-size: 1.25rem; line-height: 1.22; letter-spacing: -0.02em; margin-top: 6px; }
.pcard p { color: var(--ink-2); font-size: .97rem; }
.pcard .ans { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-2); color: var(--ink); }
.pcard .ans b { font-weight: 600; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .pcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 22px 44px -28px rgba(11,35,64,.45); } }
.band-ctrl { display: flex; align-items: center; gap: 10px; justify-self: end; }
.band-ctrl span { font-size: .88rem; color: var(--ink-3); margin-right: 6px; }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: transform 140ms var(--ease-out), background-color 200ms; }
.round:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .round:hover { background: #fff; } }
@media (max-width: 860px) { .band-ctrl { justify-self: start; } }

/* area tiles (bento): each frente in its own colour */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 26px; border-radius: var(--r); background: var(--c); color: #fff; overflow: hidden; isolation: isolate; transition: transform 380ms var(--ease-out); }
.area::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 70%; height: 46px; border-radius: 999px; background: rgba(255,255,255,.16); z-index: -1; transition: transform 500ms var(--ease-out); }
.area::before { content: ""; position: absolute; right: -30px; bottom: 26px; width: 46%; height: 46px; border-radius: 999px; background: rgba(255,255,255,.1); z-index: -1; transition: transform 500ms var(--ease-out); }
.area .n { font-size: .85rem; font-weight: 600; opacity: .8; }
.area h3 { color: #fff; font-size: 1.5rem; line-height: 1.1; }
.area ul { display: grid; gap: 6px; font-size: .96rem; }
.area li { display: flex; gap: 8px; } .area li::before { content: "—"; opacity: .6; }
.area .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .93rem; }
.area .go svg { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .area:hover { transform: translateY(-4px); } .area:hover::after { transform: translateX(-18px); } .area:hover::before { transform: translateX(-30px); } .area:hover .go svg { transform: translateX(4px); } }
@media (max-width: 1020px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } .area { min-height: 0; } }

/* route: four steps, each tree drawn to its stage; hover grows its own new part */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-weight: 600; font-size: .9rem; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.step h3 { font-size: 1.2rem; margin-top: 8px; }
.step p { color: var(--ink-2); font-size: .95rem; }
.step .mini { margin-top: auto; padding: 22px 18% 4px; }
.step .mini .pt { transform-box: fill-box; transform-origin: 50% 100%; }
.step .mini .off { opacity: .12; }
@media (max-width: 1020px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* statement */
.stmt p { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -0.03em; font-weight: 600; max-width: 22em; }
.stmt .w { color: rgba(255,255,255,.28); transition: color 300ms ease; }
.stmt .w.on { color: #fff; }
.stmt .k.on { color: var(--leaf); }

/* call to action band */
.cta { position: relative; overflow: hidden; border-radius: 36px; background: var(--deep); color: #fff; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.72); margin-top: 12px; max-width: 34em; }
.cta .bars { position: absolute; right: -24px; top: -18px; display: grid; gap: 10px; justify-items: end; width: 280px; opacity: .22; }
.cta .bars i { display: block; height: 30px; border-radius: 999px; }
.cta .bars i:nth-child(1) { width: 46%; background: var(--magenta); } .cta .bars i:nth-child(2) { width: 72%; background: var(--teal); } .cta .bars i:nth-child(3) { width: 100%; background: var(--green); }
.cta > div, .cta > a { position: relative; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------------- services: compact cards + mini window ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: .93rem; color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 8px; transition: background-color 220ms ease, color 200ms ease, transform 140ms var(--ease-out); }
.filters button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.filters button:active { transform: scale(.97); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { position: relative; text-align: left; display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden;
  transition: transform 340ms var(--ease-out), box-shadow 340ms var(--ease-out); }
.svc .band-top { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--c); }
.svc .meta { font-size: .8rem; font-weight: 600; color: color-mix(in srgb, var(--c) 82%, #000); margin-top: 6px; }
.svc h3 { font-size: 1.28rem; line-height: 1.16; }
.svc p { color: var(--ink-2); font-size: .94rem; }
.svc .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; color: var(--navy); }
.svc .more .plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); transition: background-color 200ms, color 200ms, transform 300ms var(--ease-out); }
.svc:active { transform: scale(.985); transition-duration: 120ms; }
.svc.hide { display: none; }
@media (hover: hover) and (pointer: fine) { .svc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -30px rgba(11,35,64,.5); } .svc:hover .plus { background: var(--c); color: #fff; transform: rotate(90deg); } }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal.open { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(7, 26, 51, .5); opacity: 0; transition: opacity 240ms ease; }
.modal.open .scrim { opacity: 1; }
.win { position: relative; width: min(720px, 100%); max-height: min(86vh, 860px); overflow: auto; overscroll-behavior: contain; border-radius: 30px; background: var(--cream); box-shadow: 0 50px 120px -40px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.96) translateY(8px); transition: opacity 220ms var(--ease-out), transform 300ms var(--ease-out); }
.modal.open .win { opacity: 1; transform: none; }
.win .top { position: sticky; top: 0; z-index: 1; background: var(--c); color: #fff; padding: 26px 28px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; }
.win .top .meta { font-size: .85rem; font-weight: 500; opacity: .85; }
.win .top h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.08; grid-column: 1; }
.win .x { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; transition: background-color 200ms, transform 140ms var(--ease-out); }
.win .x:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .win .x:hover { background: rgba(255,255,255,.3); } }
.win .body { padding: 26px 28px 30px; display: grid; gap: 22px; }
.win .body > p { font-size: 1.05rem; color: var(--ink); }
.win h4 { font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.win ul { display: grid; gap: 8px; }
.win li { position: relative; padding-left: 22px; color: var(--ink-2); }
.win li::before { content: ""; position: absolute; left: 0; top: .68em; width: 12px; height: 4px; border-radius: 4px; background: var(--c); }
.win .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.win .ideal { padding: 16px 18px; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.win .ideal b { color: var(--navy); font-weight: 600; }
@media (max-width: 620px) { .win .two { grid-template-columns: 1fr; } .modal { padding: 0; align-items: end; } .win { border-radius: 26px 26px 0 0; max-height: 90vh; transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .win { transform: none !important; } }

/* ---------------- why ---------------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { padding: 26px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.value .dot { display: block; width: 46px; height: 10px; border-radius: 10px; background: var(--c); margin-bottom: 20px; }
.value h3 { font-size: 1.3rem; margin-bottom: 8px; }
.value p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 1020px) { .values { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.vs { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.vs .col { padding: clamp(24px, 3vw, 36px); }
.vs .before { background: #fff; }
.vs .after { background: var(--navy); color: #fff; }
.vs h3 { font-size: 1rem; margin-bottom: 14px; color: var(--ink-3); }
.vs .after h3 { color: var(--leaf); }
.vs li { padding: 14px 0; border-top: 1px solid var(--line); }
.vs .after li { border-color: rgba(255,255,255,.14); }
.vs .before li { color: var(--ink-2); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.cmp { border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cmp .row { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr; gap: 16px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); }
.cmp .row:first-child { border-top: 0; font-size: .85rem; color: var(--ink-3); background: var(--cream); }
.cmp .row > span:not(:first-child) { text-align: center; }
.cmp .row > span:last-child { background: color-mix(in srgb, var(--teal) 8%, transparent); margin: -16px -24px -16px 0; padding: 16px 24px 16px 0; align-self: stretch; display: grid; place-items: center; }
.cmp .row:first-child > span:last-child { color: var(--navy); font-weight: 600; }
.yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; }
.yes.dim { background: #C3C9D2; }
.no { color: #A2AAB6; }
@media (max-width: 640px) { .cmp .row { grid-template-columns: 1fr 44px 44px 52px; padding: 14px 16px; gap: 8px; font-size: .9rem; } .cmp .row > span:last-child { margin: -14px -16px -14px 0; padding: 14px 16px 14px 0; } .cmp .row:first-child span { font-size: .7rem; } }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: p; }
.process li { padding: 22px; border-radius: var(--r-sm); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.process li::before { counter-increment: p; content: counter(p); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c, var(--teal)); color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.process b { display: block; font-weight: 600; color: #fff; margin-bottom: 6px; }
.process span { color: rgba(255,255,255,.72); font-size: .94rem; }
@media (max-width: 1020px) { .process { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq div { padding: 22px 24px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.faq h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.faq p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---------------- team ---------------- */
.person { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.photo { position: relative; border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(11,35,64,.45); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.photo .bars { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 10px; }
.photo .bars i { flex: 1; } .photo .bars i:nth-child(1) { background: var(--magenta); } .photo .bars i:nth-child(2) { background: var(--teal); } .photo .bars i:nth-child(3) { background: var(--green); } .photo .bars i:nth-child(4) { background: var(--orange); }
.role { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.role i { width: 22px; height: 6px; border-radius: 6px; background: var(--green); }
.person .lead { margin-top: 20px; color: var(--ink); }
.edu { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edu div { padding: 18px 20px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--line); border-top: 4px solid var(--c); }
.edu b { display: block; font-weight: 600; color: var(--navy); line-height: 1.3; }
.edu span { display: block; margin-top: 4px; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) { .person { grid-template-columns: 1fr; } .photo { max-width: 460px; width: 100%; margin: 0 auto; } }
@media (max-width: 520px) { .edu { grid-template-columns: 1fr; } }

/* ---------------- contact ---------------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.cards { display: grid; gap: 12px; }
.ccard { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ccard .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); }
.ccard div { flex: 1; min-width: 0; }
.ccard small { display: block; font-size: .82rem; color: var(--ink-3); }
.ccard a, .ccard span { font-weight: 600; color: var(--navy); word-break: break-word; }
.copy { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; transition: transform 140ms var(--ease-out), background-color 200ms; }
.copy:active { transform: scale(.95); }
.copy.ok { background: var(--navy); color: #fff; box-shadow: none; }
.form { padding: clamp(24px, 3.4vw, 40px); border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -56px rgba(11,35,64,.45); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form h2 { grid-column: 1 / -1; font-size: 1.6rem; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 0; border-radius: 14px; padding: 13px 15px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease, background-color 200ms ease; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2345526A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px rgba(11,35,64,.08); }
.field .err { display: none; font-size: .84rem; color: #B4232C; }
.field.bad .err { display: block; }
.field.bad input { box-shadow: inset 0 0 0 1.5px #B4232C; }
.form .send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form .note { font-size: .86rem; color: var(--ink-3); }
.form .done { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--green) 10%, #fff); color: var(--ink); }
.form.sent .done { display: block; }
.done pre { white-space: pre-wrap; font: inherit; font-size: .9rem; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------------- footer ---------------- */
footer { background: var(--deep); color: rgba(255,255,255,.66); padding: 64px 0 32px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.flogo { display: flex; align-items: center; gap: 12px; }
.flogo svg { width: 44px; height: 35px; }
.flogo b { display: block; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.flogo small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .34em; color: var(--leaf); margin-top: 6px; }
footer .motto { margin-top: 18px; font-size: 1.1rem; color: #fff; }
footer h2 { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.45); letter-spacing: 0; margin-bottom: 12px; }
footer li a, footer li span { display: inline-flex; min-height: 34px; align-items: center; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: #fff; } }
.fbottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .tree.grow *, .hero-in > * { animation: none !important; }
  .stmt .w { color: #fff; } .stmt .k { color: var(--leaf); }
  .area, .svc, .pcard, .area::after, .area::before { transition: none; }
}
@media (min-width: 861px) { .phead h1, .phead .lead { max-width: min(15em, 62%); } .phead .lead { max-width: min(36em, 58%); } }
.tree { max-width: 600px; }

/* team: education as flip cards (logo in front, degree behind) */
.edu .flip { display: block; position: relative; height: 196px; padding: 0; border-radius: var(--r-sm); perspective: 1100px; text-align: left; -webkit-tap-highlight-color: transparent; }
.flip__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 640ms var(--ease-in-out); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .flip:hover .flip__inner { transform: rotateY(180deg); } }
.flip__face { position: absolute; inset: 0; border-radius: var(--r-sm); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.flip__front { display: grid; place-items: center; padding: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); border-top: 4px solid var(--c); }
.flip__front img { max-width: 72%; max-height: 132px; width: auto; height: auto; object-fit: contain; }
.flip__hint { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink-3); }
.flip__back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 22px; background: var(--c); color: #fff; }
.flip__back b { font-weight: 600; font-size: 1.05rem; line-height: 1.25; color: #fff; }
.flip__back > span { font-size: .92rem; color: rgba(255,255,255,.86); }
.flip__back .flip__hon { align-self: flex-start; margin-top: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .8rem; font-weight: 600; color: #fff; }
.flip:active .flip__inner { transition-duration: 640ms; }
.flip:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .flip__inner { transition: none; transform: none !important; }
  .flip__back { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .flip.is-flipped .flip__back { opacity: 1; }
  @media (hover: hover) and (pointer: fine) { .flip:hover .flip__back { opacity: 1; } }
}
.flip__back .flip__hon { width: fit-content; }
/* phone menu: a solid sheet. The header's blur made the fixed menu inherit its translucent box, so it is dropped while the menu is open */
@media (max-width: 1020px) {
  .header.open { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.open .menu { background: var(--cream); z-index: 60; }
}
@media (max-width: 1020px) { .header.open .menu a.btn { background: var(--navy); color: #fff; border-radius: 999px; border-bottom: 0; justify-content: center; } }

/* accessible tones: each category colour, darkened only enough for white text (WCAG AA 4.5:1) */
:root { --orange-d: #BF4F1E; --green-d: #16833B; --teal-d: #097F86; --leaf-d: #327F57; --ink-3: #5F697C; }
footer h2 { color: rgba(255,255,255,.62); }
.fbottom { color: rgba(255,255,255,.62); }
.fbottom .legal-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
@media (hover: hover) and (pointer: fine) { .fbottom .legal-link:hover { color: #fff; text-decoration-color: #fff; } }
.form .privacy-note { flex-basis: 100%; font-size: .84rem; color: var(--ink-3); }
.form .privacy-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* privacy page */
.legal { max-width: 760px; }
.legal__date { font-size: .9rem; color: var(--ink-3); margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 36px 0 12px; }
.legal p { margin-bottom: 12px; color: var(--ink); }
.legal ul { margin: 0 0 14px; display: grid; gap: 6px; }
.legal li { position: relative; padding-left: 22px; color: var(--ink); }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 4px; border-radius: 4px; background: var(--orange-d); }
.legal a { color: var(--teal-d); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1020px) { .header.open .menu a[aria-current="page"] { color: var(--teal-d); } }

/* ============ orientation quiz (servicios) ============ */
.qz-cta { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(28px, 4vw, 56px); }
.qz-intro { display: grid; gap: 0; align-content: start; }
.qz-intro .btn { justify-self: start; margin-top: 26px; }
.qz { position: relative; border-radius: 24px; padding: 20px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.qz__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 16px; }
.qz__count { font-size: .84rem; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qz__count b { color: #fff; font-weight: 600; }
.qz__prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qz__prog i { position: relative; display: block; height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.qz__prog i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.qz__prog i:nth-child(1)::after { background: var(--orange); } .qz__prog i:nth-child(2)::after { background: var(--green); }
.qz__prog i:nth-child(3)::after { background: var(--teal); } .qz__prog i:nth-child(4)::after { background: var(--magenta); }
.qz__prog i.on::after { transform: scaleX(1); }
.qz__back { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .84rem; color: rgba(255,255,255,.8); background: none; border: 0; padding: 8px 10px; margin: -8px -10px; border-radius: 99px; cursor: pointer; transition: opacity 200ms ease, transform 160ms var(--ease-out), background-color 200ms ease; }
.qz__back:disabled { opacity: 0; pointer-events: none; }
.qz__back:active { transform: scale(.97); }
.qz__stage { display: grid; }
.qz__step { grid-area: 1 / 1; border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; align-content: start;
  transition: transform 380ms var(--ease-out), opacity 260ms var(--ease-out), visibility 0s linear 380ms; }
.qz__step[data-state="now"] { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.qz__step[data-state="next"] { transform: translateX(28px); opacity: 0; visibility: hidden; pointer-events: none; }
.qz__step[data-state="prev"] { transform: translateX(-28px); opacity: 0; visibility: hidden; pointer-events: none; }
.qz__q { float: left; width: 100%; padding: 0; font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: #fff; outline: none; }
.qz__q + * { clear: both; }
.qz__opts { display: grid; gap: 8px; }
.qz__opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-size: .95rem; line-height: 1.35; color: #fff; padding: 13px 16px; border: 0; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.qz__opt:active { transform: scale(.98); }
.qz__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); transition: box-shadow 200ms var(--ease-out), background-color 200ms ease; }
.qz__opt[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: none; }
.qz__opt[aria-pressed="true"] .qz__dot { background: var(--magenta); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1.5px var(--magenta); }
.qz__opt:focus-visible, .qz__back:focus-visible, .qz__again:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .qz__opt:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
  .qz__back:hover { background: rgba(255,255,255,.08); }
  .qz__again:hover { color: #fff; }
}
.qz__picks { display: grid; gap: 8px; }
.qz__pick { position: relative; display: grid; gap: 3px; padding: 14px 16px 14px 20px; border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); overflow: hidden;
  opacity: 0; transform: translateY(8px); transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out); }
.qz__pick::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.qz__pick.in { opacity: 1; transform: none; }
.qz__pick small { font-size: .76rem; letter-spacing: .02em; color: rgba(255,255,255,.7); }
.qz__pick b { font-weight: 600; font-size: 1.02rem; color: #fff; }
.qz__pick span { font-size: .88rem; line-height: 1.45; color: rgba(255,255,255,.8); }
.qz__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.qz__again { font: inherit; font-size: .88rem; color: rgba(255,255,255,.78); background: none; border: 0; padding: 6px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color 200ms ease; }
@media (max-width: 900px) { .qz-cta { grid-template-columns: 1fr; } .qz { padding: 16px; margin: 0 -8px; } }
@media (prefers-reduced-motion: reduce) {
  .qz__step, .qz__pick { transform: none !important; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .qz__step[data-state="now"] { transition-delay: 0s; }
}
@media (prefers-reduced-transparency: reduce) { .qz { backdrop-filter: none; -webkit-backdrop-filter: none; background: #13284A; } }
.qz__stage { grid-template-columns: minmax(0, 1fr); }
.qz__acts .btn { white-space: normal; text-align: left; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
