/* ============================================================
   72 DIGITAL STUDIO — Base visual del sitio de postulaciones
   Identidad corporativa (tokens, tipografía, botones, navegación,
   fondos, tarjetas y footer) tomada de css/styles.css del sitio
   72digitalstudio.com. Es una copia propia: este proyecto no carga
   nada del sitio corporativo. Si la marca cambia allí, sincronizar
   los tokens de :root.
   ============================================================ */

/* ---------- Inter autoalojada ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:        #05070D;
  --bg-2:      #080B14;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --text:      #F4F6FB;
  --muted:     #9AA6BC;          /* 8.20:1 sobre --bg */
  --muted-2:   #7A8599;          /* 5.41:1 sobre --bg */
  --blue:      #2E6BFF;
  --blue-2:    #5FD0FF;
  --violet:    #6D5BFF;
  --radius:    20px;
  --radius-sm: 13px;
  --maxw:      1200px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --focus:     #5FD0FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(46, 107, 255, 0.4); color: #fff; }

/* ---------- Foco visible ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1001;
  padding: 12px 20px; border-radius: 100px;
  background: var(--blue); color: #fff; font-size: 0.9rem; font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* Bloquea el scroll de fondo mientras el menú móvil está abierto */
body.is-locked { overflow: hidden; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.grad-text {
  background: linear-gradient(120deg, var(--blue-2), var(--blue) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  --pad: 13px 22px;
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad);
  font-family: inherit; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(180deg, #3b78ff, var(--blue));
  border: none; border-radius: 100px;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), filter 0.3s;
  box-shadow: 0 8px 30px -8px rgba(46, 107, 255, 0.65), inset 0 1px 0 rgba(255,255,255,0.25);
  overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 60px at 50% -20%, rgba(255,255,255,0.5), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(46, 107, 255, 0.75), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; border-radius: 100px; }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { --pad: 10px 18px; font-size: 0.88rem; }
.btn--lg { --pad: 16px 28px; font-size: 1rem; }
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: none; backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6); }

/* ---------- Glow que sigue al cursor ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 480px; height: 480px; margin: -240px 0 0 -240px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(46,107,255,0.12), transparent 60%);
  transition: transform 0.18s ease-out, opacity 0.4s;
  opacity: 0; will-change: transform;
}

/* ---------- Capas de fondo ---------- */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 78% 8%, rgba(46,107,255,0.28), transparent 60%),
    radial-gradient(38% 45% at 12% 30%, rgba(109,91,255,0.18), transparent 60%),
    radial-gradient(45% 55% at 60% 95%, rgba(95,208,255,0.12), transparent 60%);
  filter: blur(20px);
  animation: meshfloat 22s ease-in-out infinite alternate;
}
@keyframes meshfloat {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
.bg-noise {
  position: absolute; inset: 0;
  background: url("../assets/svg/noise.svg");
  opacity: 0.04; mix-blend-mode: overlay;
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(7, 10, 18, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand img { width: 108px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; margin-right: 22px; }
.nav__links a { font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color 0.3s; position: relative; white-space: nowrap; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-5px; width:0; height:1.5px; background: var(--blue-2); transition: width 0.35s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { flex-shrink: 0; white-space: nowrap; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); transform-origin: center; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }
/* El CTA vive dos veces: en la barra (escritorio) y dentro del menú (móvil) */
.nav__links-cta { display: none; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Pill / eyebrow ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; backdrop-filter: blur(10px);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 4px rgba(95,208,255,0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95,208,255,0); } }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 18px;
}

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.section__title { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.card { padding: 30px; transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s; will-change: transform; }
.card__glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(46,107,255,0.18), transparent 65%); top: var(--my,0); left: var(--mx,0); transform: translate(-50%,-50%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.card:hover .card__glow { opacity: 1; }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(46,107,255,0.12); border: 1px solid rgba(46,107,255,0.25);
  color: var(--blue-2); margin-bottom: 22px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 36px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; padding-bottom: 50px; }
.footer__brand img { width: 120px; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 280px; font-size: 0.95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 30px; }
.footer__cols h2 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 600; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; transition: color 0.3s; }
.footer__cols a:hover { color: var(--text); }
.footer__cols .footer__social { display: flex; align-items: center; gap: 8px; }
.footer__social svg { width: 17px; height: 17px; flex-shrink: 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.85rem; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 80px 0; }
.notfound__inner { max-width: 620px; text-align: center; }
.notfound__logo { width: 120px; margin: 0 auto 32px; }
.notfound__title { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; margin: 6px 0 18px; }
.notfound__lead { color: var(--muted); font-size: 1.06rem; margin-bottom: 34px; }

/* ---------- Aviso de privacidad ---------- */
.legal__header { border-bottom: 1px solid var(--line); background: rgba(5,7,13,0.85); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.legal__header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.legal { padding: 64px 0 96px; }
.legal__inner { max-width: 760px; }
.legal__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.legal__meta { color: var(--muted-2); font-size: 0.92rem; margin: 14px 0 28px; }
.legal__meta strong { color: var(--muted); font-weight: 600; }
.legal__lead { color: var(--muted); font-size: 1.08rem; line-height: 1.7; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal__section { padding: 30px 0 4px; }
.legal__section h2 { font-size: 1.28rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 14px; }
.legal__section p, .legal__section li { color: var(--muted); line-height: 1.75; }
.legal__section p + p, .legal__section ul + p, .legal__section p + ul { margin-top: 14px; }
.legal__section ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal__section li::marker { color: var(--blue-2); }
.legal__section strong { color: var(--text); font-weight: 600; }
.legal__link { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__link:hover { color: var(--text); }
.legal__back { margin-top: 48px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 721px) and (max-width: 1000px) {
  .nav__links { gap: 18px; margin-right: 14px; }
  .nav__links a { font-size: 0.86rem; }
}

@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 0 0 auto; top: 0; flex-direction: column; padding: 90px 28px 34px; background: rgba(7,10,18,0.96); backdrop-filter: blur(20px); transform: translateY(-100%); transition: transform 0.45s var(--ease); margin: 0; gap: 10px; border-bottom: 1px solid var(--line); max-height: 100dvh; overflow-y: auto; }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.1rem; padding: 8px 0; }
  /* En el sitio corporativo `.nav__links a` le quita al botón el relleno y el
     texto blanco (queda gris sobre azul). Aquí se corrige. */
  .nav__links .nav__links-cta { display: inline-flex; align-self: flex-start; font-size: 0.95rem; margin-top: 4px; padding: 11px 20px; color: #fff; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; z-index: 101; min-width: 44px; min-height: 44px; padding: 0; align-items: center; justify-content: center; }
  .nav__brand img { width: 88px; }
  .section { padding: 80px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .footer__cols a { padding: 10px 0; margin-bottom: 0; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
