/* ══ RESET & BASE ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1A5C8A;
  --blue-mid:    #1a4f78;
  --blue-dark:   #123F61;
  --blue-deep:   #0D2C45;
  --blue-deeper: #081C2D;
  --silver:      #B0BFCC;
  --silver-lt:   #E8EDF2;
  --accent:      #3AB4F2;
  --accent-glow: rgba(58,180,242,0.35);
  --white:       #FFFFFF;
  --text:        #0F1E2B;
  --text-muted:  #5A6E7F;
  --radius:      14px;
  --t:           0.28s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}
.eyebrow.light { color: rgba(58,180,242,.8); }

/* ── Text gradient ── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #6DD5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-light {
  background: linear-gradient(135deg, #6DD5FA 0%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .85rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.9rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-glow {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow), 0 0 0 4px rgba(58,180,242,.15);
}

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--blue);
  color: var(--white);
  padding: .55rem 1.3rem;
  font-size: .82rem;
  border-radius: 6px;
}
.btn-nav:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  margin-top: 2rem;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,92,138,.3); }

.btn-full { width: 100%; justify-content: center; }

/* ══ NAV ══ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  transition: background var(--t), box-shadow var(--t);
}
.nav.transparent { background: transparent; }
.nav.solid {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 24px rgba(26,92,138,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

/* show light logo on dark nav, dark logo on solid nav */
.nav.transparent .logo-light { display: none; }
.nav.transparent .logo-dark  { display: block; }
.nav.solid      .logo-dark   { display: none; }
.nav.solid      .logo-light  { display: block; }

.nav-logo img { height: 36px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
}
.nav.transparent .nav-links a { color: rgba(255,255,255,.8); }
.nav.solid       .nav-links a { color: var(--text-muted); }
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--t);
}
.nav.transparent .nav-links a:hover { color: var(--white); }
.nav.solid       .nav-links a:hover { color: var(--blue); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  border-radius: 2px;
  transition: background var(--t);
}
.nav.transparent .nav-burger span { background: rgba(255,255,255,.8); }
.nav.solid       .nav-burger span { background: var(--text); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: .85rem;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: .95rem; font-weight: 500; color: var(--text-muted); }

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-deeper);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,92,138,.7) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(58,180,242,.25) 0%, transparent 70%);
  bottom: -10%; right: 10%;
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(26,92,138,.5) 0%, transparent 70%);
  top: 40%; right: 30%;
  animation: orbFloat 10s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.05); }
  66%      { transform: translate(-20px,20px) scale(.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-block: 8rem 6rem;
  padding-top: calc(72px + 5rem);
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1rem;
  border: 1px solid rgba(58,180,242,.35);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(58,180,242,.08);
  margin-bottom: 1.8rem;
  letter-spacing: .04em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(58,180,242,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(58,180,242,0); }
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-trust > span {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.trust-logos span {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.trust-logos .sep { color: rgba(255,255,255,.2); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(58,180,242,.8), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ══ SECTIONS ══ */
.section { padding-block: 7rem; }
.section-alt { background: #F4F7FA; }

/* ══ SERVICES ══ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(26,92,138,.1);
  background: var(--white);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(58,180,242,.4);
  box-shadow: 0 16px 48px rgba(26,92,138,.12), 0 0 0 1px rgba(58,180,242,.2);
}
.service-card:hover .card-glow { opacity: 1; }

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(58,180,242,.07) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.service-num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.service-icon {
  width: 54px; height: 54px;
  color: var(--blue);
  margin-bottom: 1.4rem;
  transition: color var(--t);
}
.service-card:hover .service-icon { color: var(--accent); }
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 750;
  margin-bottom: .75rem;
  color: var(--text);
}
.service-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.service-tags span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue);
  background: rgba(26,92,138,.07);
  border: 1px solid rgba(26,92,138,.12);
  padding: .2rem .7rem;
  border-radius: 100px;
}

/* ══ STATS ══ */
.stats-section {
  position: relative;
  padding-block: 5rem;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-darker, #0a2236) 100%);
}
.stats-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,180,242,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,180,242,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-num {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .4rem;
}
.stat-plus {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}
.stat-txt { -webkit-text-fill-color: transparent; }

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ══ CLIENTS ══ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(26,92,138,.1);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,92,138,.12);
  border-color: rgba(58,180,242,.3);
}

.client-logo-wrap {
  width: 180px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo-wrap svg  { width: 100%; height: 100%; }
.client-logo-wrap img  { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Crubvet: circular logo needs square container */
.client-logo-square {
  width: 80px;
  height: 80px;
}
.client-logo-square img { border-radius: 50%; }

.client-sector {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--silver-lt);
  padding-top: .75rem;
  width: 100%;
  text-align: center;
}

/* ══ NOSOTROS ══ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

.why-img-ring {
  position: relative;
  width: 340px;
  height: 340px;
  margin: auto;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(26,92,138,.15);
  animation: ringPulse 4s ease-in-out infinite;
}
.ring-1 {
  inset: -20px;
  animation-delay: 0s;
}
.ring-2 {
  inset: -44px;
  border-style: dashed;
  animation-delay: .8s;
  animation-duration: 6s;
}
@keyframes ringPulse {
  0%,100% { opacity: .4; transform: scale(1); }
  50%      { opacity: .8; transform: scale(1.02); }
}
.why-img-box {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(13,44,69,.3), 0 0 0 4px rgba(58,180,242,.2);
}
.why-img-box img { width: 100%; height: 100%; object-fit: cover; }

.why-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.why-text > p {
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2rem;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: .93rem;
  color: var(--text);
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 4px 12px rgba(26,92,138,.3);
}

/* ══ CONTACT ══ */
.contact-section {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--blue-deeper) 0%, var(--blue-deep) 50%, #0e3554 100%);
}
.contact-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,180,242,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,180,242,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.contact-info > p {
  color: rgba(255,255,255,.6);
  margin-bottom: 2.5rem;
  max-width: 380px;
}

.contact-links { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity var(--t);
}
.contact-link-item:hover { opacity: .8; }

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }

.cl-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .15rem;
}
.cl-value {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}

.contact-logo { max-width: 200px; }
.contact-logo img { width: 100%; height: auto; object-fit: contain; }

/* ── Form ── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.28); }
.form-group select { color: rgba(255,255,255,.55); cursor: pointer; }
.form-group select option { color: var(--text); background: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(58,180,242,.15);
}

.form-success {
  font-size: .85rem;
  color: rgba(58,180,242,.9);
  text-align: center;
  min-height: 1.4em;
  font-weight: 500;
}

/* ══ FOOTER ══ */
.footer {
  background: var(--blue-deeper);
  border-top: 1px solid rgba(255,255,255,.05);
  padding-block: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.footer-brand img {
  height: 30px;
  width: auto;
  object-fit: contain;
  margin-bottom: .4rem;
}
.footer-brand p {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.footer-nav a {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  transition: color var(--t);
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
  text-align: right;
}

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

/* stagger for grids */
.services-grid .reveal:nth-child(2) { transition-delay: .1s; }
.services-grid .reveal:nth-child(3) { transition-delay: .2s; }
.clients-grid  .reveal:nth-child(2) { transition-delay: .08s; }
.clients-grid  .reveal:nth-child(3) { transition-delay: .16s; }
.clients-grid  .reveal:nth-child(4) { transition-delay: .24s; }
.clients-grid  .reveal:nth-child(5) { transition-delay: .32s; }
.clients-grid  .reveal:nth-child(6) { transition-delay: .40s; }
.stats-grid    .reveal:nth-child(2) { transition-delay: .1s; }
.stats-grid    .reveal:nth-child(3) { transition-delay: .2s; }
.stats-grid    .reveal:nth-child(4) { transition-delay: .3s; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid   { grid-template-columns: 1fr; gap: 3.5rem; }
  .why-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy  { text-align: center; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .form-row   { grid-template-columns: 1fr; }
  .section    { padding-block: 5rem; }
  .hero-content { padding-top: calc(72px + 4rem); }
}

@media (max-width: 520px) {
  .clients-grid { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .why-img-ring { width: 260px; height: 260px; }
}
