:root {
  /* Paleta de marca CLUSTERTECH: azul firmamento + naranja (niñez, fantasía) */
  --navy-950: #060c1c;
  --navy-900: #0d1a36;
  --navy-800: #13234a;
  --navy-700: #1c3363;
  --blue-500: #3b5eab;
  --blue-400: #5c7fc4;
  --orange-500: #dc8927;
  --orange-400: #eba65d;
  --orange-300: #f6c98f;
  --gray-50: #f7f9fc;
  --gray-100: #eef1f7;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 16px;
  --shadow-md: 0 10px 30px -12px rgba(10, 17, 40, 0.25);
  --shadow-lg: 0 25px 50px -12px rgba(10, 17, 40, 0.35);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy-900);
}

p { margin: 0 0 1em; color: var(--gray-700); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange-400);
  display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-head p { font-size: 17px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--orange-400));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 11, 24, 0.0);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.navbar.is-scrolled {
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 34px;
  width: auto;
}
.footer-brand .brand-logo {
  height: 38px;
  margin-bottom: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--orange-300); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
}
.lang-switch form { display: contents; }
.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.is-active {
  background: linear-gradient(135deg, var(--blue-500), var(--orange-400));
  color: var(--white);
}
.lang-switch--mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6, 11, 24, 0.98);
    padding: 20px 24px 32px;
    gap: 20px;
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-toggle { display: block; flex: none; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn-outline { display: none; }
  .lang-switch--desktop { display: none; }
  .lang-switch--mobile { display: flex; align-self: flex-start; margin-top: 4px; }
}

@media (max-width: 420px) {
  .navbar .container { padding: 0 16px; }
  .brand-logo { height: 28px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 140px;
  background: radial-gradient(ellipse at top right, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 70% 20%, black 10%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -120px; top: -80px;
  background: radial-gradient(circle, rgba(242,169,78,.35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* Cúmulo de estrellas (guiño a las Pléyades del logo): universo sin límites */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='%23ffffff' fill-opacity='0.55'%3E%3Cpath d='M60 40 L64 54 L78 58 L64 62 L60 76 L56 62 L42 58 L56 54 Z'/%3E%3Cpath d='M300 90 L303 100 L313 103 L303 106 L300 116 L297 106 L287 103 L297 100 Z'/%3E%3Cpath d='M340 150 L344 162 L356 166 L344 170 L340 182 L336 170 L324 166 L336 162 Z'/%3E%3Cpath d='M120 220 L123 230 L133 233 L123 236 L120 246 L117 236 L107 233 L117 230 Z'/%3E%3Cpath d='M370 260 L373 270 L383 273 L373 276 L370 286 L367 276 L357 273 L367 270 Z'/%3E%3Cpath d='M40 300 L44 312 L56 316 L44 320 L40 332 L36 320 L24 316 L36 312 Z'/%3E%3Cpath d='M220 40 L222 47 L229 49 L222 51 L220 58 L218 51 L211 49 L218 47 Z'/%3E%3Cpath d='M180 340 L182 347 L189 349 L182 351 L180 358 L178 351 L171 349 L178 347 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 420px 420px;
  opacity: .8;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-300);
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.02em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--orange-300), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  color: var(--white);
}
.hero-stats .stat span {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.hero-panel {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.hero-panel-header span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.hero-panel-header span:nth-child(1) { background: #ef4444; }
.hero-panel-header span:nth-child(2) { background: #f59e0b; }
.hero-panel-header span:nth-child(3) { background: #22c55e; }
.hero-code {
  font-family: "Fira Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.9;
  white-space: pre-wrap;
}
.hero-code .k { color: #f6c17e; }
.hero-code .s { color: #86efac; }
.hero-code .c { color: #64748b; }
.hero-code .f { color: #9db8e8; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
}

/* ---------- Marquee / clientes ---------- */
.trust-bar {
  background: var(--navy-950);
  color: rgba(255,255,255,.55);
  padding: 18px 0;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Valores ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-500), var(--orange-400));
  color: var(--white);
  font-size: 20px;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14.5px; margin: 0; }

@media (max-width: 960px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Nosotros: descripción + datos legales ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.about-description { font-size: 15.5px; margin: 0; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
}
.fact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-500);
}
.fact-value { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .about-facts { grid-template-columns: 1fr; }
}

/* ---------- Liderazgo ---------- */
.leadership-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
}
.leadership-card h3 { color: var(--white); margin-bottom: 2px; font-size: 19px; }
.leadership-card p { color: rgba(255,255,255,.7); font-size: 14.5px; margin-top: 12px; margin-bottom: 0; }
.leadership-role {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-300);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.leadership-avatar {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--orange-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--white);
}

@media (max-width: 640px) {
  .leadership-card { flex-direction: column; text-align: center; align-items: center; }
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 94, 171, .3);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--navy-900);
  color: var(--orange-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}
.service-card h3 { font-size: 19px; }
.service-card p { font-size: 14.5px; }
.service-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--gray-500);
}
.service-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-weight: 700;
}

@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
  font-family: "Poppins", sans-serif;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 16.5px; }
.process-step p { font-size: 14px; }

@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -80px; bottom: -120px;
  background: radial-gradient(circle, rgba(242,169,78,.3), transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: 26px; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.contact-info-card h3 { color: var(--white); font-size: 20px; }
.contact-info-card p { color: rgba(255,255,255,.65); font-size: 14.5px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contact-item:first-of-type { border-top: none; }
.contact-item .icon {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: var(--orange-300);
  display: flex; align-items: center; justify-content: center;
}
.contact-item strong { display: block; font-size: 14px; color: var(--white); }
.contact-item a, .contact-item span.value { font-size: 15px; color: rgba(255,255,255,.85); word-break: break-word; }
.contact-item a:hover { color: var(--orange-300); }

.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .2s ease;
}
.social-row a:hover { background: var(--blue-500); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--gray-900);
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-100);
  background: var(--gray-50);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--gray-900);
  transition: border-color .2s ease, background .2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue-400);
  background: var(--white);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-errors { color: #dc2626; font-size: 13px; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--gray-500); margin-top: 14px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Alertas ---------- */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--navy-950);
  color: rgba(255,255,255,.55);
  padding: 56px 0 28px;
  overflow: hidden;
}
.footer .container { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .brand { margin-bottom: 14px; }
.footer p { color: rgba(255,255,255,.5); font-size: 14px; }
.footer h4 { color: var(--white); font-size: 14.5px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,.55); font-size: 14px; transition: color .2s ease; }
.footer ul a:hover { color: var(--orange-300); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.duns-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-300);
  font-weight: 600;
  transition: color .2s ease;
}
.duns-badge:hover { color: var(--orange-400); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utilidades de animación ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
