/* continualimprovement — minimal one-page */

:root {
  --bg: #fafafa;
  --bg-hero: #1a1a1a;
  --text: #2d2d2d;
  --text-muted: #6b6b6b;
  --accent: #b8860b;
  --accent-soft: #c9a227;
  --border: rgba(0, 0, 0, 0.08);
  --white: #fff;
  --space: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 2px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ----- Hero (espacio + naves disparando) ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0e;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Estrellas */
.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: star-twinkle 3s ease-in-out infinite;
}

.star:nth-child(1)  { left: 8%;  top: 12%; animation-delay: 0s; }
.star:nth-child(2)  { left: 22%; top: 28%; animation-delay: 0.5s; }
.star:nth-child(3)  { left: 45%; top: 8%;  animation-delay: 1s; }
.star:nth-child(4)  { left: 68%; top: 35%; animation-delay: 0.2s; }
.star:nth-child(5)  { left: 85%; top: 18%; animation-delay: 1.2s; }
.star:nth-child(6)  { left: 15%; top: 55%; animation-delay: 0.8s; }
.star:nth-child(7)  { left: 52%; top: 62%; animation-delay: 0.3s; }
.star:nth-child(8)  { left: 78%; top: 72%; animation-delay: 1.5s; }
.star:nth-child(9)  { left: 32%; top: 82%; animation-delay: 0.6s; }
.star:nth-child(10) { left: 90%; top: 48%; animation-delay: 1.8s; }
.star:nth-child(11) { left: 5%;  top: 75%; animation-delay: 0.4s; }
.star:nth-child(12) { left: 58%; top: 42%; animation-delay: 1.1s; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Naves y disparos */
.space-battle {
  position: absolute;
  inset: 0;
}

.ship {
  position: absolute;
  animation: ship-drift 20s linear infinite;
}

.ship--1 { left: 5%;  top: 25%; animation-duration: 18s; animation-name: ship-fly-right; }
.ship--2 { left: 88%; top: 40%; animation-duration: 22s; animation-name: ship-fly-left; animation-delay: -5s; }
.ship--3 { left: 12%; top: 65%; animation-duration: 25s; animation-name: ship-fly-right; animation-delay: -8s; }
.ship--4 { left: 82%; top: 78%; animation-duration: 20s; animation-name: ship-fly-left; animation-delay: -12s; }

@keyframes ship-fly-right {
  0% { transform: translateX(-80px) scale(1); opacity: 0.7; }
  100% { transform: translateX(100vw) scale(1); opacity: 0.7; }
}

@keyframes ship-fly-left {
  0% { transform: translateX(80px) scaleX(-1) scaleY(1); opacity: 0.6; }
  100% { transform: translateX(-100vw) scaleX(-1) scaleY(1); opacity: 0.6; }
}

/* Disparos desde naves */
.ship .shot {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(100,200,255,0.9), transparent);
  border-radius: 1px;
  animation: shot-fire 1.2s ease-out infinite;
  transform: translateY(-50%);
}

.ship .shot--2 { animation-delay: 0.4s; top: 45%; }

.ship--2 .shot { animation-delay: 0.3s; animation-name: shot-fire-left; }
.ship--3 .shot--2 { animation-delay: 0.5s; }
.ship--4 .shot { animation-delay: 0.6s; animation-name: shot-fire-left; }

.ship--2 .shot, .ship--4 .shot { left: auto; right: 100%; background: linear-gradient(270deg, rgba(100,200,255,0.9), transparent); }

@keyframes shot-fire {
  0% { transform: translateY(-50%) scaleX(0.3); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-50%) translateX(120px) scaleX(1); opacity: 0; }
}

@keyframes shot-fire-left {
  0% { transform: translateY(-50%) scaleX(0.3); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-50%) translateX(-120px) scaleX(1); opacity: 0; }
}

/* Laseres cruzando la pantalla */
.laser {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150,220,255,0.7), transparent);
  border-radius: 1px;
  animation: laser-cross 2.5s linear infinite;
}

.laser--1 { top: 20%; left: 0; width: 80px; animation-duration: 2s; animation-delay: 0s; }
.laser--2 { top: 45%; left: 100%; width: 60px; animation-direction: reverse; animation-duration: 2.8s; animation-delay: 0.7s; }
.laser--3 { top: 70%; left: 0; width: 70px; animation-duration: 2.3s; animation-delay: 1.2s; }
.laser--4 { top: 55%; left: 100%; width: 50px; animation-direction: reverse; animation-duration: 2.6s; animation-delay: 1.8s; }

@keyframes laser-cross {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateX(-100vw); opacity: 0; }
}

.laser--2, .laser--4 { animation-name: laser-cross-rev; }
@keyframes laser-cross-rev {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateX(100vw); opacity: 0; }
}

.hero-graphic {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  max-width: 700px;
  height: auto;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-lg);
  max-width: 32rem;
}

.hero-logo {
  margin-bottom: var(--space);
  color: var(--white);
  opacity: 0.95;
}

.hero-logo svg {
  display: inline-block;
}

.hero-title {
  margin: 0 0 0.5em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.hero-tagline {
  margin: 0 0 0.35em;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.hero-desc {
  margin: 0 0 var(--space-lg);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-hero {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ----- Nav (tema espacio) ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: lowercase;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.nav-link.is-active,
  .nav-link:hover {
    color: var(--accent);
  }

  .lang-switcher {
    margin-left: 1rem;
  }

  .lang-switcher select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
  }

  .lang-switcher select:focus {
    outline: none;
    border-color: var(--accent);
  }

  .lang-switcher select option {
    background: #0a0a0e;
    color: var(--white);
  }

  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* ----- Sections (alternancia blanco / negro) ----- */
.section {
  padding: var(--space-xl) var(--space);
  position: relative;
  z-index: 1;
}

.container {
  max-width: 52rem;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.5em;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--text);
}

.section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.6em auto 0;
  background: var(--accent);
}

.section-lead {
  margin: 0 auto var(--space-lg);
  max-width: 36rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
}

/* Secciones NEGRAS (fondo oscuro, texto claro): How, CTA, Footer */
.section-how,
.section-cta,
.footer {
  background: rgba(10, 10, 14, 0.88);
}

.section-how .section-title,
.section-cta .section-title {
  color: var(--white);
}

.section-how .section-lead,
.section-cta .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.section-how .step-title {
  color: var(--white);
}

.section-how .step-desc {
  color: rgba(255, 255, 255, 0.75);
}

.section-cta .btn-cta {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.section-cta .btn-cta:hover {
  background: var(--white);
  color: #0a0a0e;
  border-color: var(--white);
}

/* ----- What We Do (BLANCO) ----- */
.section-what {
  background: #f5f5f7;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.service {
  text-align: center;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space);
  color: var(--accent);
}

.service-title {
  margin: 0 0 0.4em;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.service-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- How We Work ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.step-title {
  margin: 0 0 0.35em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.step-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Who It's For (BLANCO) ----- */
.section-who {
  background: #fafafa;
}

.audience {
  max-width: 32rem;
  margin: 0 auto;
}

.audience li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ----- CTA (NEGRO) ----- */
.section-cta {
  text-align: center;
}

.btn-cta {
  color: var(--text);
  border-color: var(--text);
}

.btn-cta:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* ----- Contact (BLANCO) ----- */
.section-contact {
  background: #f5f5f7;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.btn-send {
  margin-top: 1rem;
  align-self: flex-start;
  color: var(--text);
  border-color: var(--text);
  background: transparent;
}

.btn-send:hover {
  background: var(--text);
  color: var(--white);
}

.contact-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-info p {
  margin: 0 0 0.5em;
}

.contact-brand {
  margin-top: 1rem !important;
  font-weight: 600;
  color: var(--text);
}

.contact-info a:hover {
  color: var(--accent);
}

/* ----- Footer (NEGRO) ----- */
.footer {
  padding: var(--space-lg) var(--space);
  background: rgba(10, 10, 14, 0.92);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: block;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25em;
}

.footer-desc {
  margin: 0 0 0.35em;
}

.footer-contact {
  margin: 0.5em 0 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
  color: var(--accent);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space);
    background: rgba(10, 10, 14, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.75rem;
  }

  .nav.is-open .lang-switcher {
    margin-left: 0;
  }

  .nav.is-open .lang-switcher select {
    border-color: rgba(255, 255, 255, 0.15);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-lg) var(--space);
  }
}
