:root { --gc: #274193; --bg: #fff; --fg: #111; }
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { background:var(--bg); color:var(--fg); font-family:"Montserrat",sans-serif; overflow-x:hidden; }

/* ═══ HERO ═══ */
#hero {
  height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(24px,5vw,60px) clamp(20px,5vw,60px) clamp(40px,6vw,72px);
  gap: clamp(20px,3vw,36px);
  position: relative;
}
#viz-wrap { width: min(680px,100%); }
#viz { display:block; width:100%; height:auto; overflow:visible; }

#scroll-hint {
  position: absolute; bottom: clamp(14px,2.5vw,24px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s ease 2.5s forwards; cursor: pointer;
  background: linear-gradient(90deg, #274193 0%, #4a90d9 55%, #7ec8e3 100%);
  border-radius: 6px; padding: 12px 24px;
  box-shadow: 0 4px 16px rgba(39,65,147,.25);
  transition: box-shadow .25s, transform .2s; white-space: nowrap;
}
#scroll-hint:hover { box-shadow: 0 8px 28px rgba(39,65,147,.35); transform: translateX(-50%) translateY(-2px); }
#scroll-hint:active { transform: translateX(-50%) translateY(1px); box-shadow: 0 2px 8px rgba(39,65,147,.2); }
#scroll-hint span { font-size:9px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:#fff; }
#scroll-hint svg { animation: bounce 2s ease-in-out infinite; }

@keyframes fadeIn { to { opacity:1; } }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }
@keyframes geo-pulse-anim { 0%,100%{r:3;opacity:0.5} 50%{r:5;opacity:0.15} }

/* ═══ CONTENT ═══ */
#content { display:flex; flex-direction:column; align-items:center; padding:clamp(36px,5vw,72px) clamp(20px,5vw,60px); gap:clamp(20px,3vw,40px); }

/* DATA BAR */
#data-bar { display:none; width:100%; border-bottom:1px solid rgba(0,0,0,.06); padding-bottom:18px; opacity:0; transform:translateY(8px); transition:opacity .6s,transform .6s; }
#data-bar.visible { opacity:1; transform:translateY(0); }
.data-bar-inner { display:flex; align-items:center; justify-content:center; }
.data-item { display:flex; flex-direction:column; align-items:center; gap:3px; padding:0 14px; border-right:1px solid rgba(0,0,0,.07); }
.data-item:last-child { border-right:none; }
.data-item-label { font-size:7px; font-weight:300; letter-spacing:.12em; text-transform:uppercase; color:rgba(0,0,0,.28); }
.data-item-value { font-size:12px; font-weight:300; color:var(--gc); white-space:nowrap; transition:color .3s; }

/* SECTION LABEL */
.section-label { font-size:9px; font-weight:500; letter-spacing:.22em; text-transform:uppercase; color:rgba(0,0,0,.3); margin-bottom:clamp(20px,3vw,36px); display:flex; align-items:center; gap:14px; }
.section-label::after { content:''; flex:1; height:0.5px; background:rgba(0,0,0,.1); }

/* COPY */
.copy-wrapper { width:min(1080px,100%); margin-bottom:clamp(56px,8vw,96px); }
.copy { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,3vw,36px); }
.copy p { font-size:clamp(18px,2vw,26px); font-weight:500; line-height:1.4; color:#111; letter-spacing:-.01em; }
.copy p strong { font-weight:500; background:linear-gradient(90deg,#274193 0%,#4a90d9 55%,#7ec8e3 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* CARRUSEL */
#carousel-wrap { width:100%; overflow:hidden; border-top:1px solid rgba(0,0,0,.07); border-bottom:1px solid rgba(0,0,0,.07); padding:clamp(28px,4vw,48px) 0; position:relative; margin-bottom:clamp(56px,8vw,96px); }
#carousel-wrap::before,#carousel-wrap::after { content:''; position:absolute; top:0; bottom:0; width:clamp(40px,6vw,80px); z-index:2; pointer-events:none; }
#carousel-wrap::before { left:0; background:linear-gradient(to right,#fff,transparent); }
#carousel-wrap::after  { right:0; background:linear-gradient(to left,#fff,transparent); }
.carousel-track { display:flex; align-items:center; gap:clamp(60px,8vw,100px); width:max-content; animation:scroll-logos 30s linear infinite; }
.carousel-track:hover { animation-play-state:paused; }
.carousel-track img { height:clamp(16px,2vw,26px); width:auto; opacity:0.32; filter:grayscale(1); transition:opacity .3s,filter .3s; flex-shrink:0; }
.carousel-track img:hover { opacity:0.7; filter:grayscale(0.2); }
@keyframes scroll-logos { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ═══ PANEL ═══ */
#panel { width:min(680px,100%); border-top:1px solid rgba(0,0,0,.07); padding-top:clamp(14px,2vw,22px); }
#panel-header { display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; width:fit-content; }
#panel-header span { font-size:8px; font-weight:500; letter-spacing:.15em; text-transform:uppercase; color:rgba(0,0,0,.3); transition:color .2s; }
#panel-header:hover span { color:var(--gc); }
#panel-toggle-line { width:18px; height:1px; background:rgba(0,0,0,.18); position:relative; transition:background .2s; }
#panel-toggle-line::after { content:''; position:absolute; width:1px; height:8px; background:rgba(0,0,0,.18); top:-3.5px; left:50%; transform:translateX(-50%); transition:opacity .2s; }
#panel-header:hover #panel-toggle-line,#panel-header:hover #panel-toggle-line::after { background:var(--gc); }
#panel-header.open #panel-toggle-line::after { opacity:0; }
#panel-body { display:grid; grid-template-columns:1fr 1fr; gap:clamp(18px,3vw,36px); margin-top:clamp(14px,2vw,24px); overflow:hidden; max-height:0; opacity:0; transition:max-height .4s ease,opacity .3s ease; }
#panel-body.open { max-height:500px; opacity:1; }

/* CONTROLES */
.ctrl { display:flex; flex-direction:column; gap:8px; }
.ctrl.full { grid-column:1/-1; }
.ctrl-label { font-size:7px; font-weight:300; letter-spacing:.14em; text-transform:uppercase; color:rgba(0,0,0,.28); }
.ctrl-value { font-size:11px; font-weight:300; color:var(--gc); transition:color .3s; }
input[type=range] { -webkit-appearance:none; appearance:none; width:100%; height:1px; background:rgba(0,0,0,.1); outline:none; cursor:pointer; }
input[type=range]:hover { background:var(--gc); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:9px; height:9px; border-radius:50%; background:var(--gc); cursor:pointer; }
input[type=range]::-moz-range-thumb { width:9px; height:9px; border-radius:50%; background:var(--gc); border:none; }
.ctrl-btns { display:flex; gap:5px; flex-wrap:wrap; }
.ctrl-btn { font-family:"Montserrat",sans-serif; font-size:7.5px; font-weight:400; letter-spacing:.08em; text-transform:uppercase; color:rgba(0,0,0,.32); background:none; border:0.75px solid rgba(0,0,0,.12); padding:5px 10px; cursor:pointer; transition:border-color .2s,color .2s; }
.ctrl-btn:hover,.ctrl-btn.active { border-color:var(--gc); color:var(--gc); }
.wind-dir-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; width:fit-content; }
.wind-dir-btn { font-family:"Montserrat",sans-serif; font-size:7px; font-weight:400; color:rgba(0,0,0,.28); background:none; border:0.75px solid rgba(0,0,0,.08); padding:5px 7px; cursor:pointer; text-align:center; transition:border-color .15s,color .15s; }
.wind-dir-btn:hover,.wind-dir-btn.active { border-color:var(--gc); color:var(--gc); }
.wind-dir-btn.center { visibility:hidden; }

/* ═══ SERVICIOS ═══ */
.services { width:min(1080px,100%); display:flex; flex-direction:column; gap:clamp(48px,7vw,80px); }
.service-headline { font-size:clamp(22px,3vw,44px); font-weight:500; line-height:1.2; color:#111; letter-spacing:-.01em; margin-bottom:clamp(16px,2.5vw,28px); }
.grad { background:linear-gradient(90deg,#274193 0%,#4a90d9 55%,#7ec8e3 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.service-items { display:flex; flex-direction:column; gap:0; padding-left:clamp(14px,2vw,24px); border-left:0.75px solid rgba(39,65,147,.15); margin-bottom:20px; }
.service-sub { font-size:clamp(13px,1.3vw,16px); font-weight:300; color:rgba(0,0,0,.6); letter-spacing:.02em; padding:10px 0; border-bottom:0.5px solid rgba(0,0,0,.06); }
.service-sub:last-child { border-bottom:none; }
.ver-btn { display:inline-flex; align-items:center; gap:8px; font-family:"Montserrat",sans-serif; font-size:11px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:#274193; background:none; border:0.75px solid rgba(39,65,147,.35); padding:10px 20px; cursor:pointer; transition:background .2s,border-color .2s; }
.ver-btn:hover { background:rgba(39,65,147,.05); border-color:#274193; }

/* REVEAL */
.reveal { opacity:0; transform:translateY(20px); transition:opacity .6s ease,transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* CTA */
.cta-row { display:flex; align-items:center; justify-content:center; width:min(1080px,100%); margin-top:clamp(32px,5vw,60px); }
.cta { font-family:"Montserrat",sans-serif; font-size:12px; font-weight:500; letter-spacing:.14em; color:#fff; text-decoration:none; background:linear-gradient(90deg,#274193 0%,#4a90d9 55%,#7ec8e3 100%); border:none; border-radius:6px; padding:18px 56px 18px 36px; position:relative; box-shadow:0 4px 16px rgba(39,65,147,.25); transition:box-shadow .25s,transform .2s; display:inline-block; }
.cta::after { content:''; position:absolute; right:18px; top:50%; transform:translateY(-50%); width:18px; height:1px; background:#fff; transition:width .25s; }
.cta:hover { box-shadow:0 8px 28px rgba(39,65,147,.35); transform:translateY(-2px); }
.cta:hover::after { width:24px; }
.cta:active { transform:translateY(1px); box-shadow:0 2px 8px rgba(39,65,147,.2); }

.proj-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:200; align-items:center; justify-content:center; padding:16px; }
.proj-overlay.active { display:flex; }
.proj-modal { background:#fff; border-radius:8px; width:100%; max-width:480px; max-height:94vh; overflow-y:auto; overflow-x:hidden; }
.proj-modal-header { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-bottom:0.5px solid rgba(0,0,0,.08); position:sticky; top:0; background:#fff; z-index:1; }
.proj-modal-cat { font-size:9px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:rgba(0,0,0,.3); }
.proj-modal-nav { display:flex; align-items:center; gap:6px; }
.proj-nav-btn { background:none; border:0.5px solid rgba(0,0,0,.15); width:26px; height:26px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; color:rgba(0,0,0,.5); border-radius:4px; transition:background .15s; }
.proj-nav-btn:hover { background:rgba(0,0,0,.04); }
.proj-nav-btn:disabled { opacity:.25; cursor:default; }
.proj-close-btn { background:none; border:none; cursor:pointer; font-size:20px; color:rgba(0,0,0,.4); padding:2px 6px; line-height:1; margin-left:4px; }
.proj-gallery { overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; margin:0; }
.proj-gallery::-webkit-scrollbar { display:none; }
.proj-gallery-track { display:flex; gap:2px; width:max-content; }
.proj-gallery-img {
  width: 480px;
  height: calc(480px * 16 / 9);
  flex-shrink: 0;
  background: rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(0,0,0,.3);
  cursor: pointer; transition: opacity .15s;
  background-size: cover; background-position: center;
}
.proj-gallery-img.active { outline: 2px solid #274193; outline-offset: -2px; }

.proj-peek { padding: 14px 20px 6px; }
.proj-peek .proj-num { font-size:9px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:rgba(0,0,0,.3); margin-bottom:4px; }
.proj-peek .proj-title-peek { font-size:15px; font-weight:500; line-height:1.3; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.proj-gallery::-webkit-scrollbar { display:none; }
.proj-gallery-track { display:flex; gap:2px; width:max-content; }
.proj-gallery-img {
  width: calc(480px - 0px);
  height: calc((480px) * 16 / 9);
  flex-shrink:0;
  background:rgba(0,0,0,.06);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:rgba(0,0,0,.3);
  cursor:pointer; transition:opacity .15s;
  background-size:cover; background-position:center;
}
.proj-gallery-img:first-child { margin-left:0; }
.proj-gallery-img:last-child { margin-right:0; }
.proj-gallery-img.active { outline:2px solid #274193; outline-offset:-2px; }
.proj-modal-body { padding:24px 20px 32px; }
.proj-num { font-size:9px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:rgba(0,0,0,.3); margin-bottom:6px; }
.proj-title { font-family:"Montserrat",sans-serif; font-size:18px; font-weight:500; line-height:1.3; margin-bottom:24px; color:#111; }
.proj-blocks { display:flex; flex-direction:column; gap:20px; margin-bottom:20px; }
.proj-block-label { font-size:8px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:rgba(0,0,0,.3); margin-bottom:5px; }
.proj-block-text { font-size:14px; font-weight:300; line-height:1.75; color:rgba(0,0,0,.55); }
.proj-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.proj-tag { font-size:11px; font-weight:400; color:#274193; background:rgba(39,65,147,.07); padding:4px 12px; border-radius:20px; }
.proj-modal-footer { border-top:0.5px solid rgba(0,0,0,.07); padding:14px 20px; display:flex; justify-content:space-between; align-items:center; position:sticky; bottom:0; background:#fff; }
.proj-dots { display:flex; gap:5px; }
.proj-dot { width:5px; height:5px; border-radius:50%; background:rgba(0,0,0,.15); cursor:pointer; transition:background .15s; }
.proj-dot.active { background:#274193; }
.proj-cliente { font-size:10px; font-weight:300; color:rgba(0,0,0,.3); }

@media(max-width:767px){
  .proj-overlay { padding:0; align-items:flex-end; }
  .proj-modal {
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
    max-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .proj-modal-header {
    flex-shrink: 0;
    position: relative;
    top: auto;
  }
  .proj-gallery { flex-shrink: 0; }
  .proj-gallery-track { gap:8px; padding: 0 16px; }
  .proj-gallery-img {
    width: calc(100vw - 48px);
    height: calc((100vw - 48px) * 16 / 9);
  }
  .proj-peek { padding:12px 16px 4px; flex-shrink:0; }
  .proj-modal-body { padding:16px 16px 28px; flex:1; overflow-y:auto; }
  .proj-modal-footer { flex-shrink:0; position:relative; bottom:auto; }
  .proj-title { font-size:16px; }
}
/* FUNDADOR */
.founder { width:min(1080px,100%); border-top:0.5px solid rgba(0,0,0,.08); padding-top:clamp(40px,6vw,72px); margin-top:clamp(40px,6vw,72px); display:grid; grid-template-columns:200px 1fr; gap:clamp(32px,6vw,72px); align-items:start; }
.founder-photo { width:100%; aspect-ratio:1/1; object-fit:cover; object-position:top center; filter:grayscale(1); display:block; }
.founder-name { font-size:13px; font-weight:500; color:#111; margin:14px 0 2px; }
.founder-role { font-size:11px; font-weight:300; color:rgba(0,0,0,.35); margin:0; }
.founder-body { display:flex; flex-direction:column; gap:28px; padding-top:4px; }
.founder-bio { font-size:clamp(15px,1.5vw,18px); font-weight:400; line-height:1.75; color:rgba(0,0,0,.55); margin:0; }
.founder-degrees { display:flex; flex-direction:column; gap:10px; border-left:0.75px solid rgba(39,65,147,.2); padding-left:16px; }
.founder-degree { display:flex; flex-direction:column; gap:3px; }
.degree-label { font-size:13px; font-weight:500; color:#111; letter-spacing:0; text-transform:none; }
.degree-school { font-size:11px; font-weight:300; color:rgba(0,0,0,.35); letter-spacing:.04em; }
.founder-divider { height:0.5px; background:rgba(0,0,0,.07); }
.linkedin-link { display:inline-flex; align-items:center; color:rgba(39,65,147,.5); text-decoration:none; transition:color .2s; }
.linkedin-link:hover { color:#274193; }

footer { padding:14px clamp(20px,5vw,60px); font-size:8px; font-weight:300; letter-spacing:.08em; color:rgba(0,0,0,.16); border-top:1px solid rgba(0,0,0,.05); }

/* FAB + DRAWER */
#fab,#drawer,#fab-overlay { display:none; }

/* ═══ MOBILE ═══ */
@media(max-width:767px){
  #hero { padding:16px 16px 56px; gap:12px; }
  #data-bar { display:none !important; }
  .copy { grid-template-columns:1fr; gap:28px; }
  .copy p { font-size:15px; padding-top:0; }
  .carousel-track img { height:52px; }
  .services { gap:40px; }
  .service-headline { font-size:clamp(20px,5vw,28px); }
  #panel { display:block !important; width:100%; }
  #panel-body.open { max-height:600px; }
  .ctrl-value { font-size:13px; }
  .cta-row { width:100%; justify-content:center; }
  .cta { display:block; text-align:center; width:100%; padding:16px 20px; }
  .cta::after { display:none; }
  footer { text-align:center; }
  .founder { grid-template-columns:1fr; gap:24px; }
  .founder-photo { width:120px; aspect-ratio:1/1; }
  .founder-bio { font-size:15px; }
  #fab,#drawer,#fab-overlay { display:none !important; }
  .proj-gallery-img { width:300px; height:220px; }
}
