/* ==========================================================================
   Estilos de la landing — paleta azul, Unbounded + Manrope
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800;900&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  /* Superficies */
  --bg:         #070b16;
  --surface:    #111a2e;
  --surface-2:  #1a2642;
  --surface-3:  #2a3a5e;
  --white:      #ffffff;
  --ink:        #06101f;   /* texto sobre fondos claros */

  /* Marca */
  --accent:     #4f9dff;   /* rellenos (cards, CTA) */
  --accent-2:   #7cc4ff;   /* texto, bordes, iconos sobre oscuro */
  --accent-3:   #1f5eff;   /* glows y degradados */
  --accent-soft:#e8f2ff;

  /* Texto */
  --text:       #ffffff;
  --muted:      #b7c3d9;
  --subtle:     #6b7a99;

  /* Gradientes */
  --g-card:  linear-gradient(90deg, #111a2e 1%, #2a3a5e);
  --g-glass: linear-gradient(145deg, rgba(79,157,255,.28), rgba(255,255,255,0));
  --g-glow:  radial-gradient(closest-side, rgba(31,94,255,.9), rgba(79,157,255,.35) 55%, rgba(79,157,255,0));

  /* Tipografía */
  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body:    "Manrope", Helvetica, Arial, sans-serif;

  /* Radios */
  --r-sm: 12px; --r-md: 22px; --r-lg: 25px; --r-xl: 31px; --r-pill: 999px;

  /* Layout */
  --container: 1120px;
  --gutter: 40px;

  --ease: cubic-bezier(.22,1,.36,1);
}
@media (max-width: 767px) { :root { --gutter: 16px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: 110px; overflow-x: clip; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--f-display); text-transform: uppercase; line-height: 1.02; letter-spacing: -.01em; }
.h-hero  { font-size: clamp(2.6rem, 6.2vw, 4.4rem); font-weight: 900; }
.h2      { font-size: clamp(1.6rem, 3.3vw, 2.3rem); font-weight: 800; max-width: 22ch; margin-bottom: 56px; }
.h-card  { font: 700 clamp(1.1rem, 2vw, 1.45rem)/1.1 var(--f-display); text-transform: uppercase; }
.h-tile  { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--f-body); letter-spacing: -.01em; }
.lead    { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; }
.muted   { color: var(--muted); }
.accent  { color: var(--accent-2); }

/* ---------- Botones ---------- */
.btn {
  --c: var(--accent-2); --fill-text: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 44px; padding: 10px 26px;
  border: 1px solid var(--c); border-radius: var(--r-lg);
  background: transparent; color: var(--c);
  font: 500 1.05rem/1 var(--f-body); cursor: pointer; white-space: nowrap;
  transition: background-color .3s, color .3s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .btn:hover { background: var(--c); color: var(--fill-text); }
  .btn:hover svg { transform: translateX(4px); }
}
.btn-sm { min-height: 38px; padding: 6px 20px; font-size: .95rem; border-radius: var(--r-sm); }
.btn-lg { min-height: 66px; padding: 14px 30px 14px 44px; font-size: 1.6rem; gap: 40px; }
.btn-dark { --c: var(--ink); --fill-text: var(--white); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (hover: hover) { .btn-solid:hover { background: transparent; color: var(--accent-2); border-color: var(--accent-2); } }

/* ---------- Navbar ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(7,11,22,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; font: 900 1.05rem/.92 var(--f-display); text-transform: uppercase; }
.logo-mark { width: 26px; height: 34px; }
.nav-menu { display: flex; align-items: center; gap: 36px; font-weight: 500; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; background: none; border: 0; cursor: pointer; transition: color .3s; }
.nav-link svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
@media (hover: hover) { .nav-link:hover { color: var(--accent-2); } }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
  width: 360px; padding: 10px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--surface-2);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.dropdown.open .dropdown-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.dropdown.open .nav-link svg { transform: rotate(180deg); }
.dropdown-item { display: block; padding: 12px 14px; border-radius: var(--r-sm); transition: background-color .2s; }
.dropdown-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.dropdown-item span { font-size: .875rem; color: var(--muted); }
@media (hover: hover) { .dropdown-item:hover { background: var(--surface-2); } }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 84px 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 40px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 1.2rem; border-bottom: 1px solid var(--surface-2); }
  .dropdown-panel { position: static; translate: none; width: auto; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 12px; }
  .dropdown.open .dropdown-panel { display: block; }
  .nav-menu .btn { margin-top: 28px; min-height: 52px; }
}

/* ---------- Glow ---------- */
.glow { position: absolute; z-index: 0; pointer-events: none; width: 560px; height: 560px; border-radius: 50%; background: var(--g-glow); filter: blur(50px); opacity: .85; }
.glow-br { right: -260px; bottom: -200px; }
.glow-bl { left: -300px; bottom: -160px; }
.glow-tr { right: -280px; top: -140px; }
.section > .container, .hero > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 60px 120px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 44px; }
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 560px; }
}

/* Collage del hero hecho con CSS */
.hero-art { position: relative; aspect-ratio: 1.1; width: 100%; }
.art-arch { position: absolute; left: 22%; top: 8%; width: 32%; height: 62%; border-radius: 200px 200px 40px 40px; background: linear-gradient(180deg, var(--accent), var(--accent-3)); }
.art-arch .person { position: absolute; inset: 14% 10% 0; border-radius: 200px 200px 0 0; background: radial-gradient(circle at 50% 28%, #dfe7f5 0 18%, transparent 18.5%), radial-gradient(ellipse at 50% 100%, #c9d4e8 0 52%, transparent 52.5%); }
.art-cloud { position: absolute; right: 4%; top: 4%; width: 42%; height: 34%; border-radius: 50%; background: var(--white); }
.art-cloud .person { position: absolute; inset: 18% 30% 0; background: radial-gradient(circle at 50% 30%, #2a3a5e 0 20%, transparent 20.5%), radial-gradient(ellipse at 50% 100%, #3d5080 0 55%, transparent 55.5%); }
.art-hill { position: absolute; left: 44%; right: 6%; bottom: 14%; height: 18%; border-radius: 60% 60% 0 0 / 100% 100% 0 0; background: linear-gradient(180deg, rgba(79,157,255,.85), rgba(79,157,255,0)); }
.art-bubble {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  max-width: 190px; padding: 10px 12px; border-radius: 10px;
  background: var(--white); color: var(--ink); font-size: .78rem; line-height: 1.25; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.art-bubble small { display: flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 500; color: var(--subtle); }
.art-bubble small i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.art-b1 { left: 0; top: 18%; }
.art-b2 { left: 24%; bottom: 0; }
.art-glass {
  position: absolute; border-radius: 10px; padding: 10px;
  background: linear-gradient(180deg, rgba(120,140,180,.55), rgba(60,75,110,.55));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); font-size: .7rem; color: var(--white);
}
.art-cal { left: 40%; top: 50%; width: 30%; }
.art-cal .grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 6px; text-align: center; font-size: .6rem; color: var(--muted); }
.art-cal .grid7 b { color: var(--accent-2); border: 1px solid var(--accent-2); border-radius: 50%; }
.art-date { left: 12%; top: 54%; width: 14%; aspect-ratio: 1; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; }
.art-tag { right: 6%; top: 40%; text-align: center; font-weight: 600; }
.art-avatars { position: absolute; right: 8%; top: 56%; display: flex; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--ink); border: 2px solid var(--bg); }
.art-avatars .avatar + .avatar { margin-left: -10px; }
.art-squiggle { position: absolute; color: var(--accent-2); }
.art-s1 { left: 34%; top: 0; width: 60px; }
.art-s2 { right: 0; top: 46%; width: 50px; }
.av1 { background: #cfe3ff; } .av2 { background: #9cc8ff; } .av3 { background: #7cc4ff; } .av4 { background: #e8f2ff; } .av5 { background: #b5d6ff; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .services { grid-template-columns: 1fr; } }

.card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); padding: 34px; }
.card-accent { background: var(--accent); color: var(--ink); }
.card-white  { background: var(--white); color: var(--ink); }
.card-white .muted, .card-accent .muted { color: rgba(6,16,31,.72); }

.service { display: flex; flex-direction: column; min-height: 520px; transition: transform .4s var(--ease), background-color .3s; }
.service .h-card { margin-bottom: 26px; padding-right: 36px; }
.service p { font-size: 1.05rem; color: var(--muted); }
.service-arrow { position: absolute; top: 34px; right: 34px; width: 26px; height: 26px; color: var(--white); transition: transform .3s var(--ease), color .3s; }
.service-art { margin-top: auto; height: 170px; position: relative; }
@media (hover: hover) {
  .service:hover { transform: translateY(-6px); background: var(--surface-2); }
  .service:hover .service-arrow { transform: translate(3px, -3px); color: var(--accent-2); }
}

/* Mini UI de ilustración reutilizable */
.mini { position: absolute; border-radius: 10px; background: var(--surface-3); }
.mini-blue { background: var(--accent); }
.mini-person { position: absolute; bottom: 0; width: 120px; height: 150px; left: 50%; translate: -50% 0;
  background: radial-gradient(circle at 50% 26%, #dfe7f5 0 17%, transparent 17.5%), radial-gradient(ellipse at 50% 100%, #3d5080 0 50%, transparent 50.5%); }

/* ---------- Logos ---------- */
.logos-title { text-align: center; color: var(--accent-2); font-weight: 600; max-width: 30ch; margin: 0 auto 40px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1 var(--f-body); color: #4a5878; letter-spacing: -.02em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process (scroll pinneado) ---------- */
.process-scroll { position: relative; height: 320vh; }
.process-sticky { position: sticky; top: 100px; }
.process-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px; border-radius: var(--r-xl); background: var(--surface); min-height: 540px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.step-btn {
  display: grid; grid-template-columns: 56px 1fr; align-items: start; width: 100%;
  padding: 18px 0; background: none; border: 0; text-align: left; cursor: pointer;
  color: var(--subtle); transition: color .35s;
}
.step-btn .num { position: relative; padding-top: 8px; font-size: .9rem; }
.step-btn .num::before { content: ""; position: absolute; top: -8px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); opacity: 0; transition: opacity .35s; }
.step-btn .label { font: 500 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--f-body); }
.step-btn .pill { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink); font-size: .7rem; font-weight: 700; }
.step-btn.active { color: var(--white); }
.step-btn.active .num::before { opacity: 1; }
.step-panels { position: relative; }
.step-panel { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .5s var(--ease); pointer-events: none; }
.step-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.step-panel p { font-size: 1.05rem; color: var(--white); }
.step-art { position: relative; flex: 1; min-height: 200px; margin-top: 20px; }

@media (max-width: 991px) {
  .process-scroll { height: auto; }
  .process-sticky { position: static; }
  .process-card { grid-template-columns: 1fr; padding: 28px; }
  .step-panels { min-height: 380px; }
}

/* ---------- Segments (2x2) ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 767px) { .grid-2 { grid-template-columns: 1fr; } }
.tile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 340px; transition: transform .4s var(--ease); }
.tile .h-tile { grid-column: 1 / -1; margin-bottom: 8px; }
.tile-body { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; font-size: .95rem; }
.tile-body p { color: var(--muted); }
.tile-art { position: relative; }
.card-white .tile-body p, .card-accent .tile-body p { color: rgba(6,16,31,.75); }
@media (hover: hover) { .tile:hover { transform: translateY(-6px); } }
@media (max-width: 480px) { .tile { grid-template-columns: 1fr; } .tile-art { min-height: 140px; } }

/* ---------- Case studies ---------- */
.case { display: flex; flex-direction: column; min-height: 520px; }
.case-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 56px; }
.chip { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 700; }
.case-logo { font: 700 1.5rem/1 var(--f-body); letter-spacing: -.03em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.stat-value { font: 500 clamp(2.6rem, 5vw, 3.6rem)/1 var(--f-body); color: var(--accent-2); letter-spacing: -.03em; }
.card-white .stat-value { color: var(--ink); }
.stat-label { margin-top: 10px; font-size: .95rem; }
.case-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.case p { color: var(--muted); }
.card-white.case p { color: rgba(6,16,31,.75); }

.award { display: flex; flex-direction: column; min-height: 380px; }
.badges { display: flex; gap: 16px; margin-top: auto; }
.badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--white); color: var(--ink); font-size: .55rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.badge-blue { background: var(--accent); }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; min-height: 380px; }
.feature .mini-person { width: 220px; height: 280px; }
@media (max-width: 480px) { .feature { grid-template-columns: 1fr; } .feature .tile-art { min-height: 220px; } }

/* ---------- CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.cta-grid .h2 { margin-bottom: 28px; }
.cta-stats { display: flex; flex-direction: column; gap: 36px; }
.cta-stat { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--surface-2); }
.cta-stat .stat-value { font: 900 clamp(2.6rem, 5vw, 3.8rem)/1 var(--f-display); color: var(--white); }
@media (max-width: 991px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--surface); padding-block: 80px 32px; font-size: .9rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--surface-2); }
.footer-addr { margin-top: 24px; line-height: 1.6; }
.newsletter { width: min(100%, 360px); }
.newsletter label { display: block; color: var(--white); font-weight: 600; margin-bottom: 14px; }
.newsletter-field { display: flex; align-items: center; border-bottom: 1px solid var(--muted); }
.newsletter input { flex: 1; min-width: 0; min-height: 48px; background: transparent; border: 0; color: var(--white); font: inherit; font-size: 16px; }
.newsletter input::placeholder { color: var(--subtle); }
.newsletter input:focus { outline: none; }
.newsletter-field:focus-within { border-color: var(--accent-2); }
.newsletter button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--white); }
.socials { display: flex; gap: 14px; margin-top: 28px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--surface-3); transition: border-color .3s, color .3s; }
.socials svg { width: 18px; height: 18px; }
@media (hover: hover) { .socials a:hover { border-color: var(--accent-2); color: var(--accent-2); } }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 48px; }
@media (max-width: 767px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-cols h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-cols a { display: block; padding: 5px 0; transition: color .3s; }
@media (hover: hover) { .footer-cols a:hover { color: var(--accent-2); } }
.footer-bottom { text-align: center; font-size: .8rem; color: var(--subtle); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* El backdrop-filter de .nav encierra al menú fijo: se quita mientras está abierto */
@media (max-width: 991px) {
  .nav.menu-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .art-avatars { top: 68%; right: 2%; }
  .avatar { width: 32px; height: 32px; font-size: .62rem; }
}
