:root {
  --navy: #0c1b3a;
  --navy-2: #12274f;
  --navy-3: #1e3a6d;
  --blue: #54a9f0;
  --blue-soft: #8ec7f7;
  --blue-deep: #2a78d6;
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .14);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, .72);
  --text-3: rgba(255, 255, 255, .5);
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --max: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-soft); text-decoration: none; }

h1, h2, h3 { letter-spacing: -1px; }

/* ---- language switching ---- */
.tx-en { display: none !important; }
[data-lang="en"] .tx-en { display: revert !important; }
[data-lang="en"] ul.tx-en { display: flex !important; }
[data-lang="en"] .tx-es { display: none !important; }

/* ---- motion ---- */
[data-motion="off"] * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@keyframes apicFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes apicFloat2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(10px) rotate(2deg); } }
@keyframes apicFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes apicSheen { 0% { transform: translateX(-120%); } 100% { transform: translateX(220%); } }
@keyframes apicPulse { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }

/* ---- page shell ---- */
.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(165deg, #0c1b3a 0%, #12274f 40%, #1e3a6d 130%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.orb--1 {
  top: -120px; right: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle at 35% 35%, rgba(84, 169, 240, .3), rgba(84, 169, 240, 0) 70%);
  animation: apicFloat 9s ease-in-out infinite;
}
.orb--2 {
  top: 900px; left: -100px; width: 420px; height: 420px;
  background: radial-gradient(circle at 60% 40%, rgba(84, 169, 240, .14), rgba(84, 169, 240, 0) 70%);
  animation: apicFloat2 12s ease-in-out infinite;
}
.orb--3 {
  top: 2200px; right: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle at 40% 40%, rgba(84, 169, 240, .12), rgba(84, 169, 240, 0) 70%);
  animation: apicFloat 11s ease-in-out infinite;
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  backdrop-filter: blur(16px);
  background: rgba(12, 27, 58, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { font-weight: 800; font-size: 26px; letter-spacing: -.5px; }
.brand__mark span:first-child { color: var(--blue); }
.brand__mark span:last-child { color: var(--blue-soft); }
.brand__word {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
}
.brand--sm .brand__mark { font-size: 20px; }
.brand--sm .brand__word { font-size: 10px; letter-spacing: 2.5px; color: rgba(255, 255, 255, .6); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.nav__link { color: rgba(255, 255, 255, .75); transition: color .2s ease; }
.nav__link:hover { color: #fff; }

.langswitch {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px;
}
.langswitch__btn {
  padding: 4px 12px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  transition: background .2s ease, color .2s ease;
}
.langswitch__btn.is-active {
  background: rgba(255, 255, 255, .9);
  color: var(--navy-2);
  font-weight: 600;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

/* ---- hero ---- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 48px 80px;
}

.hero__copy { animation: apicFadeUp .9s ease-out both; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 18px;
  border-radius: 24px;
  background: rgba(84, 169, 240, .12);
  border: 1px solid rgba(84, 169, 240, .3);
  backdrop-filter: blur(8px);
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--blue-soft);
}
.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: apicPulse 2.5s ease-in-out infinite;
}

.hero__title {
  margin: 0 0 24px;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.hero__title em { color: var(--blue); font-style: normal; }

.hero__lede {
  margin: 0 0 40px;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

.hero__actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 16px 34px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 12px 32px rgba(84, 169, 240, .35);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--block { width: 100%; }
.btn__sheen {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: apicSheen 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* ---- hero teaser cards ---- */
.hero__cards { display: flex; flex-direction: column; gap: 20px; }

.teaser {
  display: block;
  padding: 26px 30px;
  border-radius: 22px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  color: inherit;
  transition: background .25s ease, transform .25s ease;
  animation: apicFadeUp 1s ease-out both;
}
.teaser:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.teaser:nth-child(1) { animation-delay: .15s; }
.teaser:nth-child(2) { animation-delay: .3s; }
.teaser:nth-child(3) { animation-delay: .45s; }
.teaser--offset { margin-left: 36px; }

.teaser__kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--blue-soft);
}
.teaser__title {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.teaser__text {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .65);
}

/* ---- trust bar ---- */
.trustbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  padding: 20px 48px;
  background: rgba(255, 255, 255, .04);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}
.trustbar__label {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--text-3);
}
.trustbar__items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}
.chip img { max-height: 100%; max-width: 150px; object-fit: contain; }

/* ---- sections ---- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 48px;
}

.band {
  position: relative;
  z-index: 1;
  padding: 96px 48px;
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.band--contact { border-bottom: none; padding-bottom: 80px; }
.band__inner { max-width: var(--max); margin: 0 auto; }

.section__head { text-align: center; margin-bottom: 64px; }
.section__head h2 { margin: 0 0 16px; font-size: 40px; font-weight: 700; }

.kicker {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--blue);
}

.section__lede {
  margin: 0 auto;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .65);
}
.section__lede--left { margin: 0 0 40px; max-width: 640px; line-height: 1.7; color: rgba(255, 255, 255, .7); }

/* ---- services ---- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}

.service {
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.service--offset { margin-top: 28px; }
.service h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -.3px; }

.service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.dashlist {
  margin: 18px 0 0;
  padding: 0 0 0 2px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.dashlist li { display: flex; gap: 10px; }
.dashlist li::before { content: "—"; color: var(--blue); flex: none; }

/* ---- experience ---- */
.experience {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}
.experience__aside { display: flex; flex-direction: column; gap: 24px; }
.experience__main h2 { margin: 0 0 20px; font-size: 40px; font-weight: 700; }

.photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, .06);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__placeholder {
  display: none;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.photo--empty .photo__placeholder { display: block; }

.card {
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.card__kicker {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--blue-soft);
}
.card__body { font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .75); }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cred {
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.cred--wide {
  grid-column: 1 / -1;
  background: rgba(84, 169, 240, .1);
  border-color: rgba(84, 169, 240, .28);
}
.cred__title { margin-bottom: 6px; font-size: 16px; font-weight: 700; color: #fff; }
.cred__meta { font-size: 13.5px; color: rgba(255, 255, 255, .6); }

/* ---- clients ---- */
.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.logos[hidden] { display: none; }
/* Los logos son oscuros sobre transparente: van en fichas claras para que
   se lean sobre el azul marino y conserven sus colores de marca. */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 10px 12px;
  border-radius: 12px;
  overflow: hidden;
  /* Blanco opaco a propósito: los recortes conservan un halo blanco en el
     borde y con una ficha translúcida el azul de fondo lo delata. */
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.logo:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .26); }
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logos__note { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--text-3); }

/* ---- contact ---- */
.contact {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact h2 { margin: 0 0 20px; font-size: 40px; font-weight: 700; }
.contact__links { display: flex; flex-direction: column; gap: 16px; }

.contactlink {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  color: #fff;
  transition: background .2s ease;
}
.contactlink:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.contactlink__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(84, 169, 240, .18);
  color: var(--blue);
  font-size: 18px;
}
.contactlink__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contactlink__label { font-size: 12px; letter-spacing: 1.5px; color: var(--text-3); }
.contactlink__value { font-size: 16px; font-weight: 600; word-break: break-word; }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px;
  border-radius: 26px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
}
.field input,
.field textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(12, 27, 58, .5);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--blue); }
.field input:user-invalid { border-color: #f0748a; }

.form__status { margin: 0; font-size: 13px; color: var(--blue-soft); min-height: 1em; line-height: 1.5; }
.form__status.is-error { color: #f0748a; }

/* Campo trampa: invisible para personas, visible para bots que leen el HTML. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled { opacity: .65; cursor: progress; }

/* ---- footer ---- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 48px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(12, 27, 58, .6);
}
.footer__copy { font-size: 13px; color: var(--text-3); }
.footer__links { display: flex; gap: 24px; font-size: 13px; }
.footer__links a { color: rgba(255, 255, 255, .6); }
.footer__links a:hover { color: #fff; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 72px 32px 64px; }
  .hero__title { font-size: 44px; }
  .teaser--offset { margin-left: 0; }
  .services { grid-template-columns: 1fr; }
  .service--offset { margin-top: 0; }
  .experience { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .logos { grid-template-columns: repeat(5, 1fr); }
  .section, .band { padding: 72px 32px; }
}

@media (max-width: 760px) {
  .nav { padding: 14px 20px; flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 4px 8px;
  }
  .nav__menu.is-open { display: flex; }

  .hero { padding: 56px 20px 48px; }
  .hero__title { font-size: 34px; letter-spacing: -1px; }
  .hero__lede { font-size: 16px; }
  .btn { width: 100%; text-align: center; }
  .hero__actions { flex-direction: column; align-items: stretch; }

  .trustbar { gap: 16px; padding: 20px; }
  .trustbar__items { gap: 18px; justify-content: center; }

  .section, .band { padding: 64px 20px; }
  .section__head { margin-bottom: 40px; }
  .section__head h2,
  .experience__main h2,
  .contact h2 { font-size: 30px; }

  .creds { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 26px; }
  .form__row { grid-template-columns: 1fr; }

  .footer { padding: 24px 20px; justify-content: center; text-align: center; }
}
