/* Xeito Capital. Most layout lives inline in each page, as it came from the design canvas;
   this file holds the shared states, the portfolio controls and the scroll animations. */

body { margin: 0; background: #FFFFFF; }
a { color: #325947; }
a:hover { color: #1C342A; }
.nav { color: #1F2A25; text-decoration: none; transition: color .2s; }
.nav:hover { color: #325947; }
.btn-p { transition: background-color .2s; }
.btn-p:hover { background: #1C342A !important; color: #FFFFFF !important; }
.btn-g { transition: background-color .2s; }
.btn-g:hover { background: #F2F5F3 !important; color: #1C342A !important; }
.lnk:hover { color: #1C342A !important; }
.ft a { color: #CFE0D7; text-decoration: none; }
.ft a:hover { color: #FFFFFF; }
.mail:hover { border-bottom-color: #FFFFFF !important; color: #FFFFFF !important; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; }
.pf2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.matrix { table-layout: fixed; }
@media (max-width: 1000px) { .row5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step-line { display: none !important; } }
@media (max-width: 760px) { .pf2 { grid-template-columns: minmax(0, 1fr); } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .row5 { grid-template-columns: minmax(0, 1fr); } }

/* Enfoque: the two columns share their rows (heading, then three points), so each point lines
   up with the one beside it. Stacked on narrow screens. */
.enfoque-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.enfoque-cols > div { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
@media (max-width: 700px) {
  .enfoque-cols { grid-template-columns: minmax(0, 1fr); }
  .enfoque-cols > div + div { margin-top: 40px; }
}

/* Keyboard focus */
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: #325947; color: #FFFFFF; font: 600 15px/1.2 'Geist', system-ui, sans-serif; text-decoration: none; }
.skip:focus { top: 16px; color: #FFFFFF; }

/* Portfolio tabs and map */
.pf-tab { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: #325947; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.pf-tab:hover { background: #E3ECE7; }
.pf-tab[aria-selected="true"] { background: #325947; color: #FFFFFF; }
.pf-item.is-on { background: #E3ECE7 !important; }
.pin-dot, .pin-halo { transition: r .2s ease; }
.map-es, .map-pt { transition: fill .2s; }

/* Scroll animations: content rises 16px and fades in once, the first time it enters the screen.
   Only with JavaScript running and when the visitor has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js [data-rv] {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1) var(--rv-d, 0ms), transform .8s cubic-bezier(.22, .61, .36, 1) var(--rv-d, 0ms);
  }
  .js [data-rv].rv-in, .js.rv-fallback [data-rv] { opacity: 1; transform: none; }
}

/* Hero: green band. The tower fills the height of the band and, on load, rises while its
   ramp turns; the copy rises in with the rest of the page's animations. */
.hero { position: relative; overflow: hidden; background: #325947; color: #FFFFFF; }
.hero-in { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.hero-copy { align-self: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-fig { position: relative; margin: 0; container-type: size; min-height: 380px; }
.hero-tw { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: min(140cqw, calc(0.8 * (100cqh - 24px))); }
.hero-tower { display: block; width: 100%; height: auto; }
.btn-w { transition: background-color .2s; }
.btn-w:hover { background: #CFE0D7 !important; color: #1C342A !important; }
.btn-o { transition: background-color .2s, border-color .2s; }
.btn-o:hover { background: rgba(255, 255, 255, .08) !important; border-color: #FFFFFF !important; color: #FFFFFF !important; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 32px; }
  .hero-fig { height: min(112vw, 460px); min-height: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-tw { animation: hero-rise 1.4s cubic-bezier(.22, .7, .25, 1) .15s both; }
  .hero-ramp { animation: hero-ramp 1.4s cubic-bezier(.22, .7, .25, 1) .15s both; }
}
@keyframes hero-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hero-ramp { from { transform: translateY(-360px); } to { transform: none; } }

/* Who we like to talk to: on wide screens the cards fan out along a dome as the section comes
   into view; hovering one lifts it upright. Narrower screens keep a plain grid. */
.fan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
/* Tablets: three cards, then two centred below, so none is left alone on a row. */
@media (min-width: 700px) and (max-width: 1239px) {
  .fan { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fan-card { grid-column: span 2; }
  .fan-card:nth-child(4) { grid-column: 2 / span 2; }
}
.fan-card { box-sizing: border-box; padding: 24px 24px 28px; border-radius: 20px; background: #F2F5F3; color: #1C342A; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px -22px rgba(12, 28, 21, .6); }
@media (min-width: 1240px) {
  .fan { display: block; position: relative; height: 600px; margin-top: 56px; }
  .fan-card { position: absolute; left: 50%; top: 8px; width: 220px; height: 340px; margin-left: -110px; z-index: var(--z);
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    transition: transform .9s cubic-bezier(.2, .75, .25, 1), box-shadow .3s; }
  .fan-card:hover { z-index: 9; transform: translate(var(--x), calc(var(--y) - 18px)) rotate(0deg); box-shadow: 0 28px 50px -22px rgba(12, 28, 21, .7); transition-duration: .35s; transition-delay: 0s; }
}
@media (min-width: 1240px) and (prefers-reduced-motion: no-preference) {
  .js .fan:not(.rv-in) .fan-card { transform: translate(0, 120px) rotate(0deg); }
  .js .fan .fan-card:nth-child(2), .js .fan .fan-card:nth-child(4) { transition-delay: .08s; }
  .js .fan .fan-card:nth-child(1), .js .fan .fan-card:nth-child(5) { transition-delay: .16s; }
  .js .fan .fan-card:hover { transition-delay: 0s; transition-duration: .35s; }
}

/* How we work on a deal: site.js marks each step .is-on as the list scrolls past and fills the
   line to the next step, so the circles turn white one after another. */
.step-dot { transition: background-color .35s, color .35s, border-color .35s; }
.step-line { height: 2px !important; background: linear-gradient(#FFFFFF, #FFFFFF) 0 0 / calc(var(--fill, 0) * 100%) 100% no-repeat, #5E8472 !important; }
.step.is-on .step-dot { background: #FFFFFF; border-color: #FFFFFF !important; color: #325947 !important; }
.js .steps .step { opacity: .35; transition: opacity .4s; }
.js .steps .step.is-on { opacity: 1; }
.js.rv-fallback .steps .step { opacity: 1; }

/* Brand pieces: the tower's arch, dome and gallery, without rotation. Enfoque gets a large
   composition that runs to the left edge of the screen; other sections use a single piece; the
   contact card shows the whole lighthouse. Pieces that stand on a section's bottom edge meet the
   next section exactly. They stay behind the content and rise in with their section. */
.pz-host { position: relative; overflow: clip; }
.pz-host > :not(.piece) { position: relative; z-index: 1; }
.piece { position: absolute; z-index: 0; display: block; pointer-events: none; }
.pz-enfoque { left: 0; bottom: 0; width: min(560px, 38vw); height: auto; }
.pz-publicaciones { left: max(clamp(16px, 4vw, 40px), calc(50% - 560px)); bottom: 0; width: 280px; height: auto; }
.pz-criterios { right: max(0px, calc(50% - 640px)); bottom: 0; width: 260px; height: auto; }
.pz-hablar { right: max(clamp(16px, 4vw, 40px), calc(50% - 560px)); top: clamp(64px, 8vw, 112px); width: 380px; height: auto; }
.pz-quienes { right: max(0px, calc(50% - 680px)); bottom: 0; width: 220px; height: auto; }
.pz-contacto { right: clamp(24px, 5vw, 64px); bottom: 0; height: calc(100% - 28px); width: auto; }
@media (max-width: 1023px) {
  .pz-enfoque { display: none; }
}
@media (max-width: 860px) {
  .pz-criterios, .pz-publicaciones, .pz-hablar { display: none; }
  .pz-quienes { width: 150px; right: 0; }
  .pz-contacto { height: 55%; right: 16px; }
}
