:root {
  --bg: #0A0E1A;
  --surface: #1A2030;
  --text: #E8ECF4;
  --text-muted: #8A93A8;
  --text-dim: #5A6378;
  --cyan: #22D3EE;
  --magenta: #C026D3;
  --gradient: linear-gradient(135deg, #22D3EE 0%, #A855F7 50%, #C026D3 100%);
  --overlay-opacity: 0.35;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

input::placeholder { color: #525C72; }

::selection { background: rgba(34,211,238,0.3); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}
.reveal.is-visible {
  animation: fadeUp 0.9s ease both;
}

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

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.4s ease;
}
.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loader__logo { width: 150px; height: auto; }
.loader__text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.loader__track {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #22D3EE, #C026D3);
  transition: width 0.3s ease;
}

/* ---------- Background video/overlay ---------- */
.bg-media {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bg-media--hidden { display: none; }
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,var(--overlay-opacity));
  z-index: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10,14,26,0);
  border-bottom: 1px solid rgba(255,255,255,0);
  backdrop-filter: none;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.is-solid {
  background: rgba(10,14,26,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px,5vw,48px);
}
.nav__logo-link {
  display: flex;
  align-items: center;
  border-radius: 6px;
}
.nav__logo-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.nav__logo { width: clamp(96px,11vw,132px); height: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px,3vw,40px);
}
.nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.25s ease;
  border-radius: 4px;
  text-shadow: 0 1px 8px rgba(10,14,26,0.8);
}
.nav__link:hover { opacity: 1; }
.nav__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.nav__cta {
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid rgba(34,211,238,0.45);
  border-radius: 10px;
  background: rgba(10,14,26,0.45);
  transition: border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.nav__cta:hover { border-color: var(--cyan); background: rgba(34,211,238,0.1); }
.nav__cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 767px) {
  .nav__links { display: none; }
}

/* ---------- Layout helpers ---------- */
.main { position: relative; z-index: 1; }

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(80px,14vh,160px) clamp(20px,6vw,72px);
}

.section__inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.section__heading {
  max-width: 640px;
  margin-bottom: clamp(40px,6vh,64px);
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(10,14,26,0.6) 0%, rgba(10,14,26,0.35) 60%, rgba(10,14,26,0) 100%);
}
.section__heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(10,14,26,0.6) 0%, rgba(10,14,26,0) 100%);
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow--cyan { color: var(--cyan); }
.eyebrow--magenta { color: var(--magenta); }

.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem,3.6vw,2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
.section-title--center { text-align: center; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid--contact { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; align-items: stretch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn--primary {
  background: var(--gradient);
  color: var(--bg);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(168,85,247,0.35); }
.btn--primary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn--ghost {
  border: 1px solid rgba(232,236,244,0.28);
  background: rgba(10,14,26,0.35);
  color: var(--text);
  font-weight: 500;
}
.btn--ghost:hover { border-color: rgba(232,236,244,0.6); background: rgba(232,236,244,0.08); }
.btn--ghost:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--block { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.btn--submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  align-items: flex-end;
  padding-bottom: clamp(64px,12vh,120px);
  background: linear-gradient(to top, rgba(10,14,26,0.68) 0%, rgba(10,14,26,0.3) 38%, rgba(10,14,26,0) 62%);
}
.hero__content { max-width: 680px; }
.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem,5.4vw,4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.hero__subtext {
  margin: 0 0 36px;
  max-width: 540px;
  font-size: clamp(1rem,1.4vw,1.15rem);
  line-height: 1.65;
  color: #C4CBDA;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Problema ---------- */
.problema__panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px,5vw,56px);
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(10,14,26,0.62) 0%, rgba(10,14,26,0.42) 55%, rgba(10,14,26,0) 100%);
}
.problema__body {
  margin: 0 auto 48px;
  max-width: 600px;
  font-size: clamp(1rem,1.3vw,1.1rem);
  line-height: 1.7;
  color: #C4CBDA;
}
.stat-callout {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px clamp(28px,5vw,56px);
  border-radius: 20px;
  background: rgba(26,32,48,0.75);
  border: 1px solid rgba(34,211,238,0.18);
}
.stat-callout__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem,6vw,4.2rem);
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(34,211,238,0.45);
}
.stat-callout__label { font-size: 15px; color: #B8C0D2; }

/* ---------- Solución cards ---------- */
.card-border {
  border-radius: 18px;
  padding: 1px;
  background: rgba(255,255,255,0.09);
  transition: background 0.4s ease;
}
.card-border:hover { background: var(--gradient); }
.card {
  background: var(--surface);
  border-radius: 17px;
  padding: 30px 28px;
  height: 100%;
}
.card__title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}
.card__body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* ---------- Servicios ---------- */
.service-card {
  position: relative;
  background: rgba(26,32,48,0.82);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color 0.3s ease;
}
.service-card:hover { border-color: rgba(34,211,238,0.4); }
.service-card--highlight {
  border: 1px solid rgba(192,38,211,0.35);
}
.service-card--highlight:hover { border-color: var(--magenta); }
.service-card__icon { margin-bottom: 16px; }
.service-card__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.service-card__body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.service-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gradient);
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 700;
}

/* ---------- Data / stats ---------- */
.data__inner { text-align: center; }
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  overflow: hidden;
}
.stat-cell {
  background: rgba(16,21,36,0.9);
  padding: clamp(28px,4vw,44px) 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-cell__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.9rem,3.4vw,2.7rem);
  line-height: 1;
}
.stat-cell__value--cyan { color: var(--cyan); text-shadow: 0 0 24px rgba(34,211,238,0.4); }
.stat-cell__value--magenta { color: var(--magenta); text-shadow: 0 0 24px rgba(192,38,211,0.4); }
.stat-cell__label { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Contacto ---------- */
.contacto .section__inner { max-width: 1020px; }
.offer-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: clamp(28px,4vw,40px);
  display: flex;
  flex-direction: column;
}
.offer-card--highlight { border: 1px solid rgba(34,211,238,0.25); }
.offer-card__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
}
.offer-card__body { margin: 0 0 24px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.offer-card__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.offer-card__list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  color: #B8C0D2;
}
.offer-card__bullet { color: var(--cyan); font-family: var(--font-mono); }

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  margin: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: #B8C0D2; }
.field__input {
  width: 100%;
  background: rgba(10,14,26,0.75);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.18);
}
.field__error { margin: 0; font-size: 13px; color: #FF7A9C; }
.field__error[hidden] { display: none; }
.form__status { margin: 8px 0 0; font-size: 14.5px; }
.form__status--ok { color: #4ADE80; font-weight: 500; }
.form__status--error { color: #FF7A9C; }
.form__status--error a { color: var(--cyan); }
.form__status[hidden] { display: none; }
.btn--submit { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__top {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(64px,10vh,110px) clamp(20px,6vw,48px) 0;
}
.footer__heading {
  margin: 0 0 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem,3vw,2.1rem);
  letter-spacing: -0.015em;
  color: var(--text);
}
.footer__heading--about {
  margin: clamp(48px,8vh,72px) 0 16px;
  font-size: clamp(1.3rem,2.4vw,1.7rem);
  letter-spacing: -0.01em;
}
.footer__about { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-muted); }

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.faq__item { border-bottom: 1px solid rgba(255,255,255,0.09); }
.faq__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.faq__summary:hover { color: var(--cyan); }
.faq__summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.faq__icon { color: var(--cyan); font-family: var(--font-mono); flex-shrink: 0; }
.faq__answer { margin: 0; padding: 0 4px 22px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

.footer__bottom {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(48px,7vh,72px) clamp(20px,6vw,48px) 28px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__logo { width: 170px; height: auto; }
.footer__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  padding: 4px 11px;
}
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
  border-radius: 4px;
}
.footer__link:hover { color: var(--text); }
.footer__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.footer__link--accent { color: var(--cyan); font-weight: 500; }
.footer__link--accent:hover { color: var(--text); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}
.footer__legal p { margin: 0; font-size: 12.5px; color: var(--text-dim); }
