/* ==========================================================================
   Musa Developers Designs — estilos
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #09090b;
  --bg-alt: #050507;
  --card: rgba(255, 255, 255, 0.03);
  --card-soft: rgba(255, 255, 255, 0.015);
  --chip: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.05);

  --text: #f4f4f5;
  --text-muted: #a1a1aa;

  --primary: #00b4d8;
  --primary-container: #0077b6;
  --secondary: #f3722c;
  --secondary-container: #e63946;
  --tertiary: #b5179e;

  --border: rgba(255, 255, 255, 0.15);
  --border-soft: rgba(255, 255, 255, 0.08);

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --gradient: linear-gradient(90deg, var(--primary), var(--tertiary), var(--secondary));
  --header-h: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* Accesibilidad Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Modo Movimiento Reducido */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Optimización de Renderizado para Secciones Fuera de Pantalla */
.blog-section,
.faq-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 650px;
}

::selection {
  background: var(--tertiary);
  color: #fff;
}

h1,
h2,
h3,
h4,
p,
ul,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.main {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--header-h);
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

ul {
  list-style: none;
}

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

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

.icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  user-select: none;
}

.icon--sm {
  font-size: 16px;
}

.icon--md {
  font-size: 20px;
}

.icon--lg {
  font-size: 22px;
}

/* ---------- Acentos (variable --accent) ---------- */
.accent-primary {
  --accent: var(--primary);
}

.accent-secondary {
  --accent: var(--secondary);
}

.accent-tertiary {
  --accent: var(--tertiary);
}

/* ---------- Liquid Glass (Glassmorphism) ---------- */
.header,
.nav,
.btn--ghost,
.stat,
.card,
.review-card,
.team-card,
.pricing-card,
.faq-item,
.footer__card,
.footer__form,
.contact-form,
.chip,
.icon-box {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3), inset -1px -1px 2px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header {
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  position: relative;
  width: 100%;
  padding: 6.5rem 0;
  scroll-margin-top: var(--header-h);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section::before,
.section::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.25;
}

.section::before {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--primary);
}

.section::after {
  bottom: -10%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: var(--tertiary);
}

#inicio,
.hero,
.hero-wrap {
  scroll-margin-top: 0 !important;
}

.section--alt {
  background: var(--bg-alt);
}

.section--alt::before {
  background: var(--secondary);
  opacity: 0.15;
}

.section--alt::after {
  background: var(--primary-container);
  opacity: 0.15;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-head--lg {
  margin-bottom: 2.5rem;
}

.section-head--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, var(--primary));
}

.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 24rem;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.6);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.7);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  overflow: visible;
  padding: 0;
}

.logo img {
  height: 7.5rem;
  width: 7.5rem;
  max-width: none;
  object-fit: contain;
  margin: -1.5rem -0.5rem;
  filter: drop-shadow(0 2px 14px rgba(0, 180, 216, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.logo:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 22px rgba(181, 23, 158, 0.55));
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  background: var(--nav-bg);
  border: 1px solid var(--border);
}

.nav__link {
  padding: 4px 1rem;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav__link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 600;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.05em;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
  transition: all 0.25s;
}

.btn--sm {
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  gap: 4px;
}

.btn--md {
  min-height: 48px;
  padding: 14px 2.5rem;
}

.btn--block {
  width: 100%;
  min-height: 48px;
  padding: 14px 1.5rem;
  gap: 4px;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  backdrop-filter: blur(16px) saturate(250%);
  -webkit-backdrop-filter: blur(16px) saturate(250%);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(255, 255, 255, 0.05), 0 4px 24px rgba(0, 180, 216, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.6;
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.3s;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.5), inset -1px -1px 2px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(181, 23, 158, 0.7);
}

.btn--primary:hover::before {
  opacity: 0.85;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  padding: 14px 1.5rem;
  gap: 4px;
  background: #141417;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn--ghost:hover {
  background: #1f1f23;
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero-wrap {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.glow--a {
  top: -10rem;
  left: 25%;
  width: 600px;
  height: 600px;
  background: rgba(0, 180, 216, 0.1);
  filter: blur(140px);
}

.glow--b {
  top: 20rem;
  right: 2.5rem;
  width: 500px;
  height: 500px;
  background: rgba(181, 23, 158, 0.15);
  filter: blur(160px);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1.5rem;
  padding: 6px 1rem;
  border-radius: 9999px;
  background: rgba(20, 20, 23, 0.9);
  border: 1px solid var(--border);
  color: var(--secondary);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--primary);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero__title {
  max-width: 56rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  font-size: 16px;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stats {
  width: 100%;
  max-width: 56rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.stat__value {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat__label {
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ---------- Tarjetas de servicio ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.card--service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.card--service:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--accent) 22%, transparent);
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--chip);
  border: 1px solid var(--border-soft);
  color: var(--accent);
}

.card__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--chip);
  color: var(--accent);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tag--wide {
  display: inline-block;
  width: fit-content;
  margin-top: 1rem;
}

/* ---------- Portafolio ---------- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}

.project:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 24px 45px -10px color-mix(in srgb, var(--accent) 18%, transparent);
}

.project__media {
  position: relative;
  height: 14rem;
  min-height: 220px;
  overflow: hidden;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover .project__media img {
  transform: scale(1.05);
}

.project__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(9, 9, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.project__title {
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}

.project__text {
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  border-radius: 0.5rem;
  background: var(--card-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric__value {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  color: var(--accent);
}

.metric__label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.testimonial__quote {
  margin-bottom: 0.5rem;
  font-size: 14px;
  line-height: 20px;
  font-style: italic;
  letter-spacing: 0.01em;
}

.testimonial__author {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ---------- Metodología ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.4rem;
  border-radius: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  min-height: 180px;
}

.step__num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.step__title {
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}

.step__text {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.pill {
  display: none;
  padding: 4px 0.75rem;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 6px;
}

.feature {
  padding: 0.85rem 0.65rem;
  text-align: center;
  border-radius: 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.feature .icon {
  margin-bottom: 4px;
  color: var(--accent);
}

.feature__title {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.feature__text {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.about__media {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent 60%);
  opacity: 0.8;
}

.about__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(16, 16, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.about__caption strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.about__caption strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--primary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.about__caption span {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact__title {
  margin-bottom: 0.5rem;
}

.contact__desc {
  margin-bottom: 1.5rem;
  max-width: none;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
}

.contact-item .icon {
  color: var(--accent);
}

.contact-item small {
  display: block;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item span:last-child {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.note {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.note strong {
  color: var(--primary);
}

/* ---------- Formulario ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 1rem;
  border-radius: 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  transition: all 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(161, 161, 170, 0.4);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field select option {
  background: var(--card);
  color: var(--text);
}

.field select option[disabled] {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.feedback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  font-size: 14px;
  line-height: 20px;
}

.feedback .icon {
  color: var(--primary);
}

.feedback[hidden] {
  display: none;
}

/* Casilla de autorización de datos (Ley 1581 de 2012) */
.consent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 6px 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
  cursor: pointer;
  box-sizing: border-box;
}

.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent a:hover {
  color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer__logo {
  height: 9rem;
  width: auto;
  object-fit: contain;
  margin: -1.5rem 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 14px;
  line-height: 20px;
}

.footer__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
  box-sizing: border-box;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.footer__social-link:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(0, 180, 216, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__copy {
  font-size: 14px;
  line-height: 20px;
}

.footer__legal {
  border-top: 1px solid var(--border-soft);
}

.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 12px;
  line-height: 18px;
}

.footer__legal a,
.footer__legal button {
  padding: 0.5rem 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.2s;
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: var(--primary);
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(14, 14, 17, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cookie-banner strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text);
}

.cookie-banner strong .icon {
  color: var(--primary);
}

.cookie-banner p {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.cookie-banner p b {
  color: var(--text);
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner__actions .btn {
  flex: 1;
  padding: 12px 1.25rem;
}

/* ---------- Páginas legales ---------- */
.legal {
  padding: 4rem 0 5rem;
}

.legal__box {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1.5rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.legal__back:hover {
  color: var(--primary);
}

.legal h1 {
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.legal__updated {
  margin-bottom: 2rem;
  font-size: 13px;
  color: var(--text-muted);
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 28px;
  color: var(--text);
}

.legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 15px;
  color: var(--text);
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 26px;
  color: #d4d4d8;
}

.legal p+p {
  margin-top: 0.75rem;
}

.legal ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal li::marker {
  color: var(--primary);
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--text);
}

.legal__table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal th,
.legal td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
  color: #d4d4d8;
}

.legal th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.legal__callout {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.25);
}

/* ---------- Animaciones ---------- */
@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .logo img {
    height: 7.5rem;
    width: 7.5rem;
    margin: -1.5rem -0.75rem;
  }
}

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

@media (min-width: 768px) {
  .section {
    padding: 7.5rem 0;
    min-height: 80vh;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 44px;
    line-height: 52px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }

  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pill {
    display: inline-block;
  }

  .footer__inner {
    flex-direction: row;
  }

  .cookie-banner {
    flex-direction: row;
    align-items: center;
  }

  .cookie-banner__actions {
    flex-shrink: 0;
  }

  .legal__box {
    padding: 3rem;
  }

  .legal h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .nav {
    display: flex;
  }

  .mobile-toggle {
    display: none !important;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 7rem;
  }

  .hero__title {
    font-size: 64px;
    line-height: 72px;
  }

  .hero__lead {
    font-size: 18px;
    line-height: 28px;
  }

  .section {
    padding: 8.5rem 0;
    min-height: 85vh;
  }

  .section-head {
    margin-bottom: 3rem;
  }

  .project {
    grid-template-columns: repeat(12, 1fr);
  }

  .project__media {
    grid-column: span 5;
    height: auto;
  }

  .project__body {
    grid-column: span 7;
    padding: 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .step {
    min-height: 200px;
    padding: 1.85rem 1.5rem;
  }

  .about {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }

  .about__media {
    height: 420px;
    border-radius: 1rem;
  }

  .card {
    padding: 1.85rem 1.6rem;
    border-radius: 0.85rem;
  }

  .card--service {
    min-height: 260px;
  }

  .contact {
    grid-template-columns: repeat(12, 1fr);
  }

  .contact__info {
    grid-column: span 5;
  }

  .form {
    grid-column: span 7;
  }
}

/* ==========================================================================
   MENÚ RESPONSIVE CINEMATOGRÁFICO (MOBILE & TABLET CYBER HUD)
   ========================================================================== */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Botón Trigger Cápsula Dinámica en Header */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 60;
}

.mobile-toggle__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding: 9px 14px;
  border-radius: 9999px;
  background: rgba(20, 20, 24, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-toggle:hover .mobile-toggle__pill,
.mobile-toggle.is-active .mobile-toggle__pill {
  border-color: rgba(0, 180, 216, 0.6);
  background: rgba(26, 26, 34, 0.9);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.25), 0 0 22px rgba(0, 180, 216, 0.35);
}

.mobile-toggle__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mobile-toggle.is-active .mobile-toggle__dot {
  background: var(--tertiary);
  box-shadow: 0 0 10px var(--tertiary);
  animation: none;
}

.mobile-toggle__text {
  font-family: var(--font-head);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

/* Ícono de barras cinéticas que mutan a '✕' */
.mobile-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 14px;
  position: relative;
}

.mobile-toggle__icon .bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    width 0.25s ease;
  position: absolute;
}

.mobile-toggle__icon .bar--top {
  transform: translateY(-4px);
}

.mobile-toggle__icon .bar--bottom {
  transform: translateY(4px);
  width: 70%;
  align-self: flex-end;
}

.mobile-toggle.is-active .mobile-toggle__icon .bar--top {
  transform: rotate(45deg);
  background: var(--primary);
}

.mobile-toggle.is-active .mobile-toggle__icon .bar--bottom {
  width: 100%;
  transform: rotate(-45deg);
  background: var(--secondary);
}

/* Overlay & Panel del Menú Móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

/* Backdrop con desenfoque cinematográfico */
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

/* Panel flotante de cristal estilo HUD */
.mobile-menu__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: rgba(11, 11, 15, 0.94);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8),
    inset 1px 0 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%) scale(0.98);
  filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0) scale(1);
  filter: blur(0px);
}

/* Cabecera del Menú */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.mobile-menu__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu__logo {
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.5));
  display: block;
  flex-shrink: 0;
}

.mobile-menu__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

/* Cuerpo con navegación */
.mobile-menu__body {
  padding: 1.25rem 1.25rem;
  flex: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateX(30px);
  filter: blur(6px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Cascada Stagger al abrir */
.mobile-menu.is-open .mobile-nav__item:nth-child(1) {
  transition-delay: 0.06s;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.mobile-menu.is-open .mobile-nav__item:nth-child(2) {
  transition-delay: 0.11s;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.mobile-menu.is-open .mobile-nav__item:nth-child(3) {
  transition-delay: 0.16s;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.mobile-menu.is-open .mobile-nav__item:nth-child(4) {
  transition-delay: 0.21s;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.mobile-menu.is-open .mobile-nav__item:nth-child(5) {
  transition-delay: 0.26s;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.mobile-menu.is-open .mobile-nav__item:nth-child(6) {
  transition-delay: 0.31s;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.mobile-menu.is-open .mobile-nav__item:nth-child(7) {
  transition-delay: 0.36s;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.mobile-nav__item:hover,
.mobile-nav__item:active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 180, 216, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.15);
}

.mobile-nav__num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.mobile-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  color: var(--primary);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-nav__item:hover .mobile-nav__icon {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

.mobile-nav__info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-nav__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

.mobile-nav__sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.mobile-nav__arrow {
  color: var(--text-muted);
  opacity: 0.4;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.mobile-nav__item:hover .mobile-nav__arrow {
  opacity: 1;
  color: var(--primary);
  transform: translateX(3px);
}

/* Pie del Menú Móvil */
.mobile-menu__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.mobile-menu__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 440px) {
  .mobile-toggle__text {
    display: none;
  }

  .mobile-toggle__pill {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
  }

  .header__wa-btn .btn__text {
    display: none;
  }

  .header__wa-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.65rem 1rem;
  }
}

/* Indicadores de foco accesible WCAG 2.2 */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.mobile-toggle:focus-visible,
.mobile-menu__close:focus-visible,
.mobile-nav__item:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ==========================================================================
   Antigravity Motion Engine — Animaciones Épicas, Focus Blur & Spotlight
   ========================================================================== */

/* Shimmer fluido y vibrante en texto gradiente */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--tertiary) 75%, var(--primary) 100%);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: antishimmer 4.8s ease-in-out infinite alternate;
}

@keyframes antishimmer {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 12px rgba(0, 180, 216, 0.2));
  }

  100% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 16px rgba(243, 114, 44, 0.25));
  }
}

/* Halos orbitales orgánicos en GPU */
.glow--a {
  animation: floatOrbA 12s ease-in-out infinite alternate;
  will-change: transform;
}

.glow--b {
  animation: floatOrbB 15s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes floatOrbA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate3d(45px, 30px, 0) scale(1.18);
    opacity: 1;
  }

  100% {
    transform: translate3d(-30px, 55px, 0) scale(0.92);
    opacity: 0.85;
  }
}

@keyframes floatOrbB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate3d(-50px, -25px, 0) scale(1.15);
    opacity: 1;
  }

  100% {
    transform: translate3d(35px, -45px, 0) scale(0.94);
    opacity: 0.85;
  }
}

/* Antigravity Card Spotlight Efecto Cursor Interactivo */
.card--service,
.project,
.step,
.stat,
.blog-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

.card--service:hover,
.project:hover,
.step:hover,
.stat:hover,
.blog-card:hover {
  transform: translateY(-9px) scale(1.018);
  border-color: color-mix(in srgb, var(--accent, var(--primary)) 70%, transparent) !important;
  box-shadow: 0 24px 50px -12px color-mix(in srgb, var(--accent, var(--primary)) 35%, transparent),
    0 0 30px -5px color-mix(in srgb, var(--accent, var(--primary)) 25%, transparent) !important;
}

.card--service::before,
.project::before,
.step::before,
.stat::before,
.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--spotlight-x, -999px) var(--spotlight-y, -999px),
      color-mix(in srgb, var(--accent, var(--primary)) 28%, transparent),
      transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.card--service:hover::before,
.project:hover::before,
.step:hover::before,
.stat:hover::before,
.blog-card:hover::before {
  opacity: 1;
}

/* Efecto Shine Sweep en Botones Primarios */
.btn--primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px -5px color-mix(in srgb, var(--primary) 50%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px -2px color-mix(in srgb, var(--primary) 75%, transparent);
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  transform: rotate(25deg) translateX(480%);
}

/* Sistema de Revelado Scroll Antigravity Cinematográfico (Depth Focus Blur + Spring Pop) */
.anti-reveal {
  opacity: 0;
  transform: perspective(1000px) translateY(55px) scale(0.935);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.anti-reveal--left {
  opacity: 0;
  transform: perspective(1000px) translateX(-65px) scale(0.935);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.anti-reveal--right {
  opacity: 0;
  transform: perspective(1000px) translateX(65px) scale(0.935);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.anti-reveal--scale {
  opacity: 0;
  transform: scale(0.88);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

/* Estado activo visible (Enfoque nítido y presencia total) */
.anti-reveal.is-in-view,
.anti-reveal--left.is-in-view,
.anti-reveal--right.is-in-view,
.anti-reveal--scale.is-in-view {
  opacity: 1;
  transform: perspective(1000px) translate3d(0, 0, 0) scale(1);
  filter: blur(0px);
}

/* Escalonamiento sutil (Stagger dinámico) */
.stagger-1 {
  transition-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.17s;
}

.stagger-3 {
  transition-delay: 0.26s;
}

.stagger-4 {
  transition-delay: 0.35s;
}

/* Bypass instantáneo para bots de indexación y auditorías de rendimiento */
html.is-audit #page-loader {
  display: none !important;
}

html.is-audit .anti-reveal,
html.is-audit .anti-reveal--left,
html.is-audit .anti-reveal--right,
html.is-audit .anti-reveal--scale {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
  overflow: hidden;
}

/* Cortinas gemelas monolíticas 100% opacas */
.loader-shutter {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #03050a;
  z-index: 1;
  transition: transform 0.82s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.loader-shutter--top {
  top: 0;
  transform: translateY(0);
}

.loader-shutter--bottom {
  bottom: 0;
  transform: translateY(0);
}

/* Borde láser de alta precisión en la unión de apertura */
.loader-shutter__edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}

.loader-shutter--top .loader-shutter__edge {
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.6) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.loader-shutter--bottom .loader-shutter__edge {
  top: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(181, 23, 158, 0.5) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(181, 23, 158, 0.4);
}

/* Núcleo central Apple-style */
.loader-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.85rem;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.35s ease-out;
  will-change: transform, opacity;
}

/* Emblema con halo fluido */
.loader-emblem {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(0, 180, 216, 0.18) 40%, transparent 72%);
  filter: blur(14px);
  animation: haloBreath 2.2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes haloBreath {
  0% {
    transform: scale(0.92);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.loader-logo {
  position: relative;
  z-index: 3;
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 180, 216, 0.6));
  animation: logoLevitate 3s ease-in-out infinite alternate;
}

@keyframes logoLevitate {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-3px);
  }
}

/* Bloque de marca sobrio y limpio */
.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 220px;
}

.loader-title {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
}

.loader-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00b4d8, #00f0ff, #b5179e);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.75);
  transition: width 0.08s linear;
}

.loader-counter {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ESTADO DE APERTURA (.is-exiting)
   ========================================================================== */
.page-loader.is-exiting {
  pointer-events: none;
}

/* Elevación limpia del núcleo al abrir */
.page-loader.is-exiting .loader-core {
  transform: scale(1.15);
  opacity: 0;
}

/* Las cortinas abren hacia arriba y hacia abajo con aceleración cinematográfica */
.page-loader.is-exiting .loader-shutter--top {
  transform: translateY(-101%);
}

.page-loader.is-exiting .loader-shutter--bottom {
  transform: translateY(101%);
}

.page-loader.is-loaded {
  display: none !important;
}

/* Hero Elements siempre visibles para renderizado LCP instantáneo */
.hero__title,
.hero__lead,
.hero__actions {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}