/* ===== Variables ===== */
:root {
  --navy-950: #05070f;
  --navy-900: #0a0f24;
  --navy-800: #0f1734;
  --navy-700: #16204a;
  --blue-600: #1d3fd6;
  --blue-500: #2f6fed;
  --blue-400: #4d8dff;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --text-hi: #f4f7ff;
  --text-mid: #b7c1e0;
  --text-low: #8590b3;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);

  --font-body: 'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;

  --radius: 16px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--text-mid);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 700;
  line-height: 1.25;
}

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

.accent { color: var(--cyan-400); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: #04101c;
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.4);
}

.btn--ghost {
  background: var(--glass);
  color: var(--text-hi);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-300);
}

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  background: rgba(5, 7, 15, 0.92);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo { width: 38px; height: 38px; object-fit: contain; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-hi);
}

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

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transition: width 0.25s ease;
}

.nav__link:hover { color: var(--text-hi); }
.nav__link:hover::after { width: 100%; }

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--text-hi);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(700px 500px at 10% 30%, rgba(47, 111, 237, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-950));
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-300);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
}

.hero__text {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat__num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-hi);
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-low);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-card {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(47,111,237,0.14), rgba(34,211,238,0.06));
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: float 6s ease-in-out infinite;
}

.orbit-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(160deg, var(--cyan-400), transparent 40%, var(--blue-500));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}

.orbit-card__logo {
  width: 62%;
  filter: drop-shadow(0 12px 30px rgba(34, 211, 238, 0.25));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section--alt { background: var(--navy-900); }

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__head .eyebrow { display: inline-flex; }

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.section__text { font-size: 1rem; }

/* ===== Grid & Cards ===== */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: 1fr 1fr; gap: 60px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--center { align-items: center; }

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47,111,237,0.25), rgba(34,211,238,0.18));
  margin-bottom: 20px;
}

.card__title { font-size: 1.15rem; margin-bottom: 10px; }
.card__text { font-size: 0.92rem; }

/* ===== Check list ===== */
.check-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-400));
  border-radius: 50%;
}

/* ===== Panel (Nosotros) ===== */
.panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.panel__row {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.panel__row:hover { background: rgba(255,255,255,0.04); }

.panel__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan-400);
  min-width: 34px;
}

.panel__row h4 { font-size: 1rem; margin-bottom: 4px; }
.panel__row p { font-size: 0.88rem; }

/* ===== Steps (Proceso) ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: var(--navy-950);
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; }

/* ===== Contact ===== */
.contact-info { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }

.contact-info__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-hi);
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-info__item:hover { border-color: var(--cyan-400); color: var(--cyan-300); }

.form {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row { display: flex; flex-direction: column; gap: 8px; }

.form__row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}

.form__row input,
.form__row textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-hi);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
}

.form__note {
  font-size: 0.85rem;
  color: var(--cyan-300);
  min-height: 18px;
}

/* ===== Footer ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy { font-size: 0.85rem; color: var(--text-low); }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
  z-index: 90;
  animation: float 4s ease-in-out infinite;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--2 { grid-template-columns: 1fr; gap: 40px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .orbit-card { width: 220px; height: 220px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.is-open { max-height: 320px; }

  .nav__link {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle { display: flex; }
  .header__actions .btn--sm { display: none; }

  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
}
