/* =========================
   AeroCaptura — One Page + Portfolio
   Vanilla HTML/CSS/JS
   ========================= */

/* Fonts
   CRÍTICO: unicode-range para cubrir SOLO letras (A-Z, a-z, acentos).
   Dígitos y símbolos caen a system font.
*/
@font-face{
  font-family:"ACBrand";
  src:url("../fonts/ACFont.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
  unicode-range:
    U+0041-005A, U+0061-007A,
    U+00C0-00FF,
    U+0100-017F;
}

@font-face{
  font-family:"ACText";
  src:url("../fonts/ACFontRegular.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
  unicode-range:
    U+0041-005A, U+0061-007A,
    U+00C0-00FF,
    U+0100-017F;
}

@font-face{
  font-family:"ACText";
  src:url("../fonts/ACFontBold.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
  unicode-range:
    U+0041-005A, U+0061-007A,
    U+00C0-00FF,
    U+0100-017F;
}

:root{
  --blue:#0B1F3A;
  --copper:#B45309;
  --copper-deep:#92400E;
  --copper-light:#D97706;

  --ink:#0B1F3A;
  --paper:#F3F6FF;

  --radius:18px;
  --radius-lg:26px;

  --shadow-soft:0 10px 30px rgba(0,0,0,.20);
  --shadow-lite:0 8px 22px rgba(0,0,0,.18);

  --border-blue:rgba(243,246,255,.16);

  /* JS setea estos (home) */
  --bg-r:11;
  --bg-g:31;
  --bg-b:58;

  --container:1100px;
  --pad:20px;

  --ease:cubic-bezier(.2,.8,.2,1);
  --ease2:cubic-bezier(.16,1,.3,1);
}

*{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  background:rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  color:var(--paper);
  font-family:"ACText", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.55;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }

.skip{
  position:absolute;
  left:12px;
  top:12px;
  z-index:9999;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.45);
  color:var(--paper);
  text-decoration:none;
  transform:translateY(-200%);
  transition:transform .25s var(--ease);
}
.skip:focus{ transform:translateY(0); outline:2px solid rgba(217,119,6,.75); outline-offset:2px; }

.container{
  width:min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline:auto;
}

.ac-title{
  font-family:"ACBrand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.02em;
}

.sys, .num{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing:0;
}

a{ color:inherit; }
a:focus-visible, button:focus-visible{
  outline:2px solid rgba(217,119,6,.78);
  outline-offset:3px;
  border-radius:12px;
}

/* Headings */
.h2{
  font-size:clamp(28px, 4.2vw, 46px);
  line-height:1.08;
  margin:0 0 12px 0;
  letter-spacing:-.02em;
}
.h3{
  font-size:18px;
  margin:0 0 8px 0;
  letter-spacing:-.01em;
}
.lead{
  font-size:clamp(15px, 2vw, 18px);
  opacity:.92;
  margin:0;
  max-width:60ch;
}

/* Top bar */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:80;
  padding:10px 12px;
  pointer-events:none;
}
.topbar__inner{
  pointer-events:auto;
  width:min(1120px, calc(100% - 0px));
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(243,246,255,.14);
  background:rgba(0,0,0,.18);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.topbar__brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  white-space:nowrap;
}
.topbar__brand img{
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.22));
}
.topbar__brand span{
  color:rgba(243,246,255,.96);
}

.tabs{
  display:flex;
  gap:8px;
  align-items:center;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  max-width:68vw;
  padding-bottom:2px;
}
.tab{
  text-decoration:none;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(243,246,255,.12);
  background:rgba(255,255,255,.05);
  opacity:.92;
  transition:transform 200ms var(--ease), background 200ms var(--ease), opacity 200ms var(--ease);
  white-space:nowrap;
}
.tab:hover{
  transform:translate3d(0,-1px,0);
  background:rgba(255,255,255,.08);
  opacity:.98;
}
.tab--cta{
  border:1px solid rgba(217,119,6,.32);
  background:linear-gradient(135deg, rgba(217,119,6,.35), rgba(180,83,9,.20));
}
.tab.is-active{
  opacity:1;
  border-color:rgba(217,119,6,.48);
}

@media (min-width: 860px){
  .tabs{ max-width:none; }
}

/* Sections offset for fixed topbar */
section[id]{
  scroll-margin-top: 92px;
}

/* HERO (centrado, sin “cortes”) */
.hero{
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:86px 0 44px 0; /* deja espacio por topbar */
}
.hero__inner{
  width:min(980px, calc(100% - (var(--pad) * 2)));
  display:grid;
  justify-items:center;
  gap:22px;
}
.hero__brand{
  display:grid;
  justify-items:center;
  gap:14px;
  opacity:0;
  transform:translate3d(0,10px,0);
  transition:opacity 700ms var(--ease), transform 900ms var(--ease2);
}
body.is-loaded .hero__brand{
  opacity:1;
  transform:translate3d(0,0,0);
}

.hero__logo{
  width:min(240px, 44vw);
  height:auto;
  filter:drop-shadow(0 12px 34px rgba(0,0,0,.25));
}
.hero__wordmark{
  font-size:clamp(46px, 7.4vw, 76px);
  line-height:1;
  color:var(--copper); /* bronce base */
  text-shadow:0 14px 34px rgba(0,0,0,.22);
}

/* Scroll hint */
.scroll-hint{
  display:inline-grid;
  align-items:center;
  justify-items:center;
  gap:10px;
  padding:14px 16px;
  border-radius:999px;
  border:1px solid rgba(243,246,255,.18);
  background:rgba(255,255,255,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  cursor:pointer;
  opacity:0;
  transform:translate3d(0,10px,0);
  transition:opacity 700ms var(--ease), transform 900ms var(--ease2), background 200ms var(--ease);
}
body.is-loaded .scroll-hint{
  opacity:1;
  transform:translate3d(0,0,0);
}
.scroll-hint:hover{
  background:rgba(255,255,255,.09);
}
.scroll-hint--dark{
  border:1px solid rgba(11,31,58,.20);
  background:rgba(255,255,255,.14);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}
.scroll-hint--lg{
  padding:18px 22px;
  gap:12px;
}
.scroll-hint--lg .scroll-hint__text{
  font-size:14px;
}

.scroll-hint__text{
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.95;
}
.scroll-hint__arrow{
  width:11px;
  height:11px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  opacity:.92;
  animation:bounce 1.9s var(--ease) infinite;
}
@keyframes bounce{
  0%,100%{ transform:translateY(0) rotate(45deg); }
  50%{ transform:translateY(6px) rotate(45deg); }
}

/* SECTIONS */
.section{
  padding:72px 0;
}
.section__head{ margin-bottom:26px; }

.section--video{ color:var(--ink); padding-top:86px; }
.video-card{
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.12);
  border:1px solid rgba(11,31,58,.16);
  box-shadow:var(--shadow-lite);
  overflow:hidden;
}
.video-card__frame{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  background:rgba(11,31,58,.08);
}
.yt{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.post-video-hint{
  margin-top:22px;
  display:grid;
  justify-items:center;
  min-height:72px;
}
[data-hidden]{
  opacity:0;
  transform:translate3d(0,10px,0);
  transition:opacity 700ms var(--ease), transform 900ms var(--ease2);
  pointer-events:none;
}
.is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
  pointer-events:auto;
}

/* ABOUT */
.about{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
  align-items:center;
}
.about__text{ max-width:70ch; }
.about__text p{ margin:0 0 14px 0; opacity:.96; }
.bullets{
  margin-top:10px;
  border-left:2px solid rgba(217,119,6,.55);
  padding-left:14px;
}
.bullet{ margin:0 0 10px 0; }
.star{ margin-right:6px; opacity:.95; }

.about__media{ display:grid; justify-items:center; }
.founders{
  width:min(360px, 72vw);
  aspect-ratio:1 / 1;
  border-radius:999px;
  overflow:hidden;
  border:2px solid rgba(180,83,9,.92);
  box-shadow:var(--shadow-soft);
  background:rgba(255,255,255,.03);
}

/* SERVICES */
.services{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:12px;
}
.service-card{
  border-radius:var(--radius);
  border:1px solid var(--border-blue);
  background:rgba(255,255,255,.06);
  padding:16px 16px;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.service-card p{ margin:0; opacity:.92; }

.process{
  margin-top:22px;
  border-radius:var(--radius);
  border:1px solid rgba(217,119,6,.24);
  background:rgba(0,0,0,.12);
  padding:16px 16px;
}
.process__title{ margin-bottom:10px; }
.process__list{ margin:0; padding-left:18px; }
.process__list li{ margin:8px 0; opacity:.95; }

.cta-wrap{
  margin-top:22px;
  display:grid;
  justify-items:start;
}
.cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  cursor:pointer;
  padding:14px 18px;
  border-radius:999px;
  font-weight:700;
  color:var(--paper);
  text-decoration:none;
  background:linear-gradient(135deg, rgba(217,119,6,.95), rgba(180,83,9,.95));
  box-shadow:0 18px 40px rgba(0,0,0,.22);
  transform:translate3d(0,0,0);
  transition:transform 220ms var(--ease), filter 220ms var(--ease);
}
.cta--xl{
  padding:18px 22px; /* más grande */
  font-size:16px;
}
.cta::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  border:1px solid rgba(243,246,255,.24);
  pointer-events:none;
}
.cta:hover{ transform:translate3d(0,-2px,0); filter:brightness(1.02); }
.cta:active{ transform:translate3d(0,0,0); }
.cta__spark{
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(120px 80px at 20% 10%, rgba(255,255,255,.26), transparent 55%);
  opacity:.55;
  pointer-events:none;
}

/* End section */
.section--end{
  padding-bottom:130px; /* espacio por barra sticky */
}
.endcap{
  padding:18px 16px;
  border-radius:var(--radius);
  border:1px solid rgba(243,246,255,.12);
  background:rgba(255,255,255,.04);
}

/* PORTFOLIO PAGE */
.section--portfolioPage{
  padding-top:110px;
  padding-bottom:120px;
}
.portfolio-hero{
  margin-bottom:18px;
}

/* Grid/cards */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.card{
  display:grid;
  grid-template-rows:auto 1fr;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border-blue);
  background:rgba(255,255,255,.05);
  text-decoration:none;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
  transform:translate3d(0,0,0);
  transition:transform 220ms var(--ease), background 220ms var(--ease);
}
.card:hover{
  transform:translate3d(0,-2px,0);
  background:rgba(255,255,255,.07);
}
.thumb{
  width:100%;
  aspect-ratio:16 / 9;
  background:rgba(0,0,0,.18);
  object-fit:cover;
}
.card__meta{
  padding:12px 12px 14px 12px;
  display:grid;
  gap:6px;
}
.card__title{ font-weight:700; letter-spacing:-.01em; }
.card__sub{ font-size:13px; opacity:.80; }

.noscript{
  opacity:.85;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(243,246,255,.22);
}

/* CONTACT (sticky bottom) */
.contact{
  position:fixed;
  left:0;
  right:0;
  bottom:10px;
  z-index:70;
  padding:0 12px;
  pointer-events:none;
}
.contact__inner{
  pointer-events:auto;
  width:min(1120px, calc(100% - 0px));
  margin-inline:auto;
  border-radius:18px;
  border:1px solid rgba(243,246,255,.16);
  background:rgba(0,0,0,.22);
  box-shadow:0 18px 45px rgba(0,0,0,.24);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:12px 12px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:12px;
}
.contact__headline{
  font-weight:700;
  letter-spacing:-.01em;
  margin-bottom:4px;
}
.contact__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  opacity:.92;
}
.contact__meta a{
  text-decoration:none;
  border-bottom:1px solid rgba(217,119,6,.0);
  transition:border-color 220ms var(--ease), opacity 220ms var(--ease);
}
.contact__meta a:hover{
  border-color:rgba(217,119,6,.55);
  opacity:.98;
}
.dot{ opacity:.55; }

.contact__icons{
  display:flex;
  gap:10px;
  align-items:center;
}
.icon{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(243,246,255,.16);
  background:rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  transition:transform 200ms var(--ease), background 200ms var(--ease);
  text-decoration:none;
}
.icon:hover{
  transform:translate3d(0,-2px,0);
  background:rgba(255,255,255,.09);
}

/* Responsive */
@media (min-width: 720px){
  .section{ padding:88px 0; }
  .about{ grid-template-columns:1.25fr .75fr; gap:28px; }
  .services{ grid-template-columns:repeat(2, 1fr); gap:14px; }
  .grid{ grid-template-columns:repeat(2, 1fr); }
  .contact__inner{ padding:12px 14px; }
}
@media (min-width: 1024px){
  .services{ grid-template-columns:repeat(3, 1fr); }
  .grid{ grid-template-columns:repeat(3, 1fr); }
}

/* Reveal */
.reveal{
  opacity:0;
  transform:translate3d(0, 14px, 0);
  transition:opacity 700ms var(--ease), transform 900ms var(--ease2);
  will-change:transform, opacity;
}
.reveal.in-view{
  opacity:1;
  transform:translate3d(0,0,0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .scroll-hint__arrow{ animation:none; }
  .reveal, [data-hidden], .card, .cta, .icon, .tab, .hero__brand, .scroll-hint{
    transition:none !important;
    animation:none !important;
  }
}