/* ===== Certificación WG v2 — Modern, tech, white ====== */
:root {
  --teal: #1A7F7A;
  --teal-dk: #0F5A56;
  --teal-lt: #E8F4F3;
  --navy: #17384A;
  --navy-dk: #0C2230;
  --gray: #C4C4C4;
  --gray-lt: #F4F4F5;
  --gray-md: #E4E4E7;

  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-tint: #F4F7F7;
  --ink: #0C1E2A;
  --ink-2: #4A5B67;
  --ink-3: #8A95A0;
  --line: #E6E8EA;
  --line-dk: #D1D5D9;

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-sans: "Geist", -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--teal); color: #fff; }

/* ======= Cursor ======= */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #b8b8b8; border-radius: 50%; }
.cursor-ring {
  width: 36px; height: 36px; border: 1.25px solid #b8b8b8; border-radius: 50%;
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, background .3s;
}
.cursor-ring.hover { width: 60px; height: 60px; background: rgba(184,184,184,0.1); border-color: #b8b8b8; }

/* ======= Containers / type ======= */
.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 760px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--teal);
}

.display {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
h1, h2, h3 { font-family: var(--f-sans); letter-spacing: -0.025em; font-weight: 500; }
.serif-accent { font-family: var(--f-display); font-style: italic; font-weight: 300; letter-spacing: -0.015em; }

/* ======= Buttons ======= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { border: 1px solid var(--line-dk); color: var(--ink); }
.btn-ghost:hover { background: var(--gray-lt); border-color: var(--ink-3); }
.arrow { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ======= Nav ======= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .nav { padding: 14px 20px; } }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--navy); line-height: 1.1; }
.nav-brand .brand-text { display: inline-flex; flex-direction: column; align-items: flex-start; }
.nav-brand .brand-text .sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.nav.on-dark .nav-brand .brand-text .sub { color: rgba(255,255,255,0.6); }
.nav-brand .brand-logo {
  height: 62px; width: auto; display: block;
  content: url("../media/wg-logo-text-dark.png");
}
.nav.on-dark .nav-brand .brand-logo {
  content: url("../media/wg-logo-text.png");
}
@media (max-width: 760px) {
  .nav-brand .brand-logo { height: 53px; }
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.nav-links a {
  padding: 7px 11px; border-radius: 8px; font-size: 13px; color: var(--ink-2);
  transition: background .3s, color .3s; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--gray-lt); }
.nav-links a.active { color: var(--teal); }
.nav-cta { padding: 8px 14px; background: var(--navy); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: background .3s; white-space: nowrap; }
.nav-cta:hover { background: var(--teal); }
.nav-end { display: inline-flex; align-items: center; gap: 8px; }
.nav-link-secondary {
  padding: 8px 14px; background: transparent; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .3s, color .3s, border-color .3s; white-space: nowrap;
}
.nav-link-secondary:hover { background: var(--navy); color: #fff; }
.nav.on-dark .nav-link-secondary { color: #fff; border-color: rgba(255,255,255,0.4); }
.nav.on-dark .nav-link-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ======= Burger + mobile panel ======= */
.nav-burger {
  display: none;
  background: transparent; border: 0; padding: 8px; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; gap: 5px;
  justify-content: center; align-items: center; border-radius: 8px;
  transition: background .2s;
}
.nav-burger:hover { background: rgba(0,0,0,0.05); }
.nav.on-dark .nav-burger:hover { background: rgba(255,255,255,0.08); }
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .3s, opacity .2s;
}
.nav.on-dark .nav-burger span { background: #fff; }
body.nav-mobile-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-mobile-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-mobile-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; background: rgba(12,30,42,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 99; opacity: 0; pointer-events: none;
  padding-top: 80px;
  overflow-y: auto;
  visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile { transition: opacity .3s var(--ease); }
}
body.nav-mobile-open .nav-mobile { opacity: 1 !important; pointer-events: auto !important; visibility: visible !important; }
.nav-mobile-inner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 32px 24px; max-width: 480px; margin: 0 auto;
}
.nav-mobile a {
  font-size: 22px; color: rgba(255,255,255,0.8); padding: 14px 16px;
  border-radius: 10px; transition: background .2s, color .2s;
  font-weight: 400;
}
.nav-mobile a:hover, .nav-mobile a.active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-mobile a.active { color: var(--teal); }
.nav-mobile-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.nav-mobile-cta a {
  font-size: 15px; padding: 14px 20px; text-align: center; justify-content: center;
}
.nav-mobile-cta .nav-link-secondary {
  color: #fff; border: 1px solid rgba(255,255,255,0.35);
}
.nav-mobile-cta .nav-link-secondary:hover { background: #fff; color: var(--navy); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-end { display: none; }
  .nav-burger { display: flex; }
}

/* ======= Reveal ======= */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ======= Scrollbar ======= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--line-dk); border-radius: 10px; }

/* ======= Photo card (Unsplash) ======= */
.photo {
  position: relative; overflow: hidden;
  background: var(--gray-lt); border-radius: 18px;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.8s var(--ease);
}
.photo:hover img { transform: scale(1.04); }
.photo .caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(12,30,42,0.75); backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 6px;
}
.photo-grad::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,30,42,0.35) 100%);
}

/* ======= Video placeholder (animated) ======= */
.vid {
  position: relative; overflow: hidden;
  background: var(--navy); border-radius: 18px; color: #fff;
  aspect-ratio: 16/9;
}
.vid[data-ratio="4/5"] { aspect-ratio: 4/5; }
.vid[data-ratio="1/1"] { aspect-ratio: 1/1; }
.vid[data-ratio="21/9"] { aspect-ratio: 21/9; }
.vid::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 30% 40%, rgba(26,127,122,0.35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px);
  animation: scan 4s linear infinite;
}
.vid::after {
  content: ""; position: absolute; top: 14px; left: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: #FF5454;
  box-shadow: 0 0 0 4px rgba(255,84,84,0.25);
  animation: rec 1.8s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: 0.3; } }
@keyframes scan { to { background-position: 0 0, 4px 0; } }
.vid .vid-label {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 6px;
}
.vid .vid-time {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7);
}
.vid .vid-crosshair { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,0.1); pointer-events: none; }
.vid .vid-crosshair::before, .vid .vid-crosshair::after { content: ""; position: absolute; background: rgba(255,255,255,0.15); }
.vid .vid-crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vid .vid-crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }

/* Pulsing IA box — simulates detection */
.vid-ia-box {
  position: absolute;
  border: 1.5px solid var(--teal);
  background: rgba(26,127,122,0.1);
  border-radius: 2px;
  animation: iaMove 6s ease-in-out infinite;
}
.vid-ia-box::before {
  content: attr(data-label);
  position: absolute; top: -22px; left: -1px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--teal); background: #fff; padding: 2px 6px; border-radius: 3px;
}
@keyframes iaMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, 10px); }
  50% { transform: translate(40px, -5px); }
  75% { transform: translate(15px, 15px); }
}

/* ======= Footer ======= */
.footer {
  padding: 96px 0 48px; border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--f-mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-3); margin: 0 0 16px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14px; transition: color .3s; }
.footer a:hover { color: var(--teal); }
.footer-head { font-family: var(--f-sans); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 500; color: var(--navy); }
.footer-head em { color: var(--teal); font-style: italic; font-family: var(--f-display); font-weight: 300; }
.footer-tag { color: var(--ink-2); font-size: 14px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-huge {
  font-family: var(--f-sans); font-weight: 500; font-size: clamp(80px, 16vw, 220px);
  line-height: 0.9; letter-spacing: -0.04em; color: var(--navy); text-align: center;
  margin: 60px 0 0; user-select: none;
}
.footer-huge em { color: var(--teal); font-family: var(--f-display); font-weight: 300; font-style: italic; }
