/* =========================================================
   Veltrix Styles
   File: css/styles.css
========================================================= */

/* =========================================================
   Tokens
========================================================= */
:root{
  --bg: #ffffff;
  --text: #111111;
  --blue: #0017ff;

  --border: rgba(17,17,17,.25);
  --border-soft: rgba(17,17,17,.08);

  --surface: #f7f7f6;
  --surface-alt: #fafafa;

  --container: 1100px;
  --gutter: 24px;

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 14px;

  --t-fast: .15s ease;
}

/* =========================================================
   Base / Reset
========================================================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

html,
body{
  overflow-x: hidden;
}

body{
  margin: 0;
  max-width: 100%;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a{
  color: inherit;
}

/* =========================================================
   Layout
========================================================= */
.container{
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========================================================
   Header (Fixed + Glow on Scroll – Palantir style)
========================================================= */
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  background: rgba(255,255,255,.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(17,17,17,.06);

  transition:
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

/* Halo */
.header::before{
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);

  width: min(900px, 92vw);
  height: 90px;

  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transition: opacity .25s ease;
}

/* Estado con scroll */
.header.is-scrolled{
  background: rgba(255,255,255,.9);
  border-bottom-color: rgba(29,78,216,.2);
}

.header.is-scrolled::before{
  opacity: 1;
}

.header > .container{
  position: relative;
  z-index: 1;
}

/* Inner & Nav */
.header__inner{
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.brand img{
  width: 100px;
}

.nav{
  margin-left: auto;
  display: flex;
  gap: 48px;
  font-size: 18px;
}

.nav a{
  text-decoration: none;
  color: var(--text);
}

.actions{
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 30px;
}

.icon-btn{
  width: 34px;
  height: 34px;
  padding: 0;

  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;

  display: grid;
  place-items: center;
}

.icon-btn:hover{
  background: rgba(17,17,17,.06);
}

/* =========================================================
   Hero
========================================================= */
.hero{
  background: var(--surface-alt);
  min-height: calc(100vh - 80px);

  display: flex;
  align-items: center;
  padding: 160px 0;
}

.hero__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0px;
}

.hero__inner img{
  width: 150px;
}

.hero__inner p{
  margin-bottom: 40px;
  margin-top: 0px;
}

.hero h1{
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.btn{
  padding: 16px 48px;

  border: 2px solid rgba(17,17,17,.6);
  border-radius: var(--radius-md);

  text-decoration: none;
  color: var(--blue);
  font-size: 22px;
  font-weight: 500;

  background: #fff;
  transition: background var(--t-fast), transform var(--t-fast);
}

.btn:hover{
  background: rgba(29,78,216,.06);
}

/* =========================================================
   LegalTech
========================================================= */
.legaltech{
  padding: 140px 0;
}

.legaltech__inner{
  text-align: center;
}

.legaltech__title{
  margin: 0 0 80px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
}

.legaltech__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.lt-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.spacer{
  height: 15px;
}

.lt-card__top{
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 48px 40px;
  gap: 12px;
}

.lt-card__top h3{
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.lt-card__top small{
  font-size: 22px;
  font-weight: 600;
}

.lt-card__tag{
  font-size: 24px;
  font-weight: 500;
}

.lt-card__bottom{
  border-top: 1px solid var(--border);
  padding: 0 32px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;

  height: 120px;
  background-color: #fff;

  font-size: 15px;
  font-weight: 500;
  color: #666;
}

.lt-card__bottom--stack{
  flex-direction: column;
  gap: 10px;
}

.lt-card__list{
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.lt-card__bottom h3{
  margin: 0;
  font-size: 18px;
  color: #000;
}

/* =========================================================
   RegTech
========================================================= */
.regtech{
  background: var(--surface-alt);
  padding: 140px 0;
}

.regtech__inner{
  text-align: center;
}

.regtech__title{
  margin: 0 0 80px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
}

.regtech__wrap{
  display: flex;
  justify-content: center;
}

.rt-card{
  width: min(520px, 100%);
  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.rt-card__top{
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 48px 40px;
}

.rt-card__top h3{
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.rt-card__bottom{
  border-top: 1px solid var(--border);
  padding: 32px;

  background-color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;

  font-size: 15px;
}

/* =========================================================
   Pulsar
========================================================= */
.pulsar{
  display: flex;
  align-items: center;
  padding: 120px;
}

.pulsar__inner{
  text-align: center;
}

.pulsar__title{
  margin: 0 0 80px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--blue);
}

.pulsar__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.pulsar-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-height: 350px;
  
  filter: blur(6px);
}

.pulsar-card.is-locked{
  filter: blur(6px);
  opacity: .9;
  pointer-events: none;
}

.pulsar-card__top{
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;
}

.pulsar-card__top h3{
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.pulsar-card__bottom{
  border-top: 1px solid var(--border);
  padding: 40px 24px;

  background-color: #fff;
  display: flex;
  justify-content: center;
}

.pulsar-btn{
  padding: 10px 28px;

  border: 1.5px solid rgba(17,17,17,.4);
  border-radius: var(--radius-sm);

  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);

  background: #fff;
  transition: background var(--t-fast);
}

.pulsar-btn:hover{
  background: rgba(29,78,216,.06);
}

/* =========================================================
   Footer Top (MX)
========================================================= */
.footer-top{
  padding: 220px 0 120px;
}

.footer-top__inner{
  text-align: center;
}

.footer-top__title{
  margin: 0 0 24px;
  font-size: 48px;
  font-weight: 600;
}

.footer-top__line{
  width: 100%;
  max-width: 560px;
  height: 1px;
  margin: 24px auto;
  background: var(--border);
}

.footer-socials{
  display: flex;
  justify-content: center;
  gap: 120px;

  font-size: 22px;
  font-weight: 500;
}

.footer-socials a{
  text-decoration: none;
  color: var(--text);
}

/* =========================================================
   Legal page (Veltrix style)
========================================================= */
.legal-page{
  padding: 120px 0 80px;
}

.legal-wrap{
  max-width: 900px;
}

.legal-title{
  font-family: "Inter", sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.legal-updated{
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 48px;
}

.legal-section{
  margin-bottom: 42px;
}

.legal-section h2{
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
}

.legal-section p{
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111;
  margin: 0 0 12px;
}

.legal-section ul{
  padding-left: 20px;
  margin: 12px 0;
}

.legal-section li{
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* responsive */
@media (max-width: 600px){
  .legal-page{
    padding: 96px 0 60px;
  }
}
/* =========================================================
   Footer
========================================================= */
.footer{
  padding: 80px 0 120px;
}

.footer__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__copy{
  margin: 0;
  font-size: 15px;
  opacity: .9;
}

.footer__links{
  display: flex;
  gap: 16px;
}

.footer__links a{
  padding: 10px 22px;
  border: 1px solid rgba(17,17,17,.25);
  border-radius: 14px;

  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);

  background: transparent;
  transition: background .15s ease;
}

.footer__links a:hover{
  background: rgba(17,17,17,.04);
}

/* =========================================================
   Responsive (AGRUPADO)
========================================================= */
@media (max-width: 1100px){
  .legaltech__grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pulsar__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px){
  :root{
    --gutter: 16px;
  }

  .nav{
    gap: 15px;
    font-size: 16px;
  }

  .actions{
    padding-left: 0px;
  }

  .hero{
    padding: 64px 0;
  }

  .legaltech{
    padding: 100px 0;
  }

  .regtech{
    padding: 100px 0;
  }

  .pulsar{
    padding: 100px 0;
  }

  .footer-top{
    padding: 120px 0 100px;
  }

  .footer-socials{
    gap: 48px;
    font-size: 18px;
  }

  .footer-top__title{
    font-size: 40px;
  }

  .footer__links{
    gap: 12px;
  }

  .lt-card__list{
    gap: 30px;
  }

  .lt-card__bottom,
  .rt-card__bottom{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .spacer{
    display: none;
  }
}

@media (max-width: 600px){
  .pulsar__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Scroll Reveal Animations
========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1{ transition-delay: .08s; }
.reveal--delay-2{ transition-delay: .16s; }
.reveal--delay-3{ transition-delay: .24s; }
.reveal--delay-4{ transition-delay: .32s; }

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}