/* ============================================================
   MD Solutions — Hoja de estilos principal
   Tema: oscuro premium con "liquid glass" (vidrio esmerilado
   sobre blobs de color animados).
   Paleta:  primario #0F172A · secundario #2563EB · acento #38BDF8
            fondo oscuro #020617 · texto claro #E2E8F0
   Tipografía: Inter (Google Fonts)
============================================================ */

/* ---------- Tokens ---------- */
:root {
  --primary:   #0F172A;
  --secondary: #2563EB;
  --accent:    #38BDF8;
  --violet:    #8B5CF6;
  --bg:        #020617;
  --bg-deep:   #010412;
  --text:      #E2E8F0;
  --muted:     #94A3B8;
  --faint:     #64748B;

  --border-glass: rgba(148, 163, 184, .16);
  --grad: linear-gradient(100deg, var(--secondary), var(--accent));

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:    16px;
  --radius-lg: 24px;
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, .35);

  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Resplandores fijos de fondo, compartidos por todas las páginas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 8%,  rgba(37, 99, 235, .09), transparent 70%),
    radial-gradient(38% 34% at 88% 30%, rgba(56, 189, 248, .06), transparent 70%),
    radial-gradient(46% 40% at 50% 100%, rgba(139, 92, 246, .05), transparent 70%);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(56, 189, 248, .3); }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: 820px; }

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

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .3);
  background: rgba(56, 189, 248, .08);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Panel de vidrio (liquid glass) */
.glass {
  background: linear-gradient(155deg, rgba(148, 163, 184, .1), rgba(148, 163, 184, .03));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 20px 50px -20px rgba(0, 0, 0, .55);
}

/* Chip / etiqueta de vidrio */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: rgba(148, 163, 184, .07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease);
}
.chip:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, .45);
  transform: translateY(-2px);
}
.chip.is-active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section--deep {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(37, 99, 235, .07), transparent 60%),
    var(--bg-deep);
  border-block: 1px solid rgba(148, 163, 184, .07);
}

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

.section__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 18px;
}
.section__title--left { text-align: left; }

.section__lead {
  font-size: 1.13rem;
  color: var(--muted);
}

.section__foot {
  text-align: center;
  margin-top: 52px;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 12px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}

.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn:not(.btn--sm):not(.btn--lg) { padding: 13px 26px; font-size: .95rem; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, .5);
}

.btn--ghost {
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(148, 163, 184, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(56, 189, 248, .1);
  transform: translateY(-2px);
}

/* Efecto ripple (creado desde JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Barra de progreso ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 1001;
}

/* ---------- Navbar (vidrio) ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.navbar.is-scrolled {
  background: rgba(2, 6, 23, .68);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(148, 163, 184, .14);
}

.navbar__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo img { height: 44px; width: auto; }

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

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link.is-active {
  color: #fff;
  background: rgba(148, 163, 184, .12);
  border: 1px solid var(--border-glass);
}

/* Hamburguesa */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.navbar__toggle span {
  width: 22px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
}

.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.hero__aurora--1 {
  width: 640px; height: 640px;
  top: -220px; left: -180px;
  background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 65%);
}
.hero__aurora--2 {
  width: 560px; height: 560px;
  bottom: -220px; right: -140px;
  background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 65%);
  animation-delay: -6s;
}
.hero__aurora--3 {
  width: 700px; height: 420px;
  top: 45%; left: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .18), transparent 70%);
  animation-delay: -12s;
}
@keyframes aurora-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.15); }
}

/* Figuras flotantes */
.hero__shape {
  position: absolute;
  opacity: .35;
  animation: float 7s ease-in-out infinite;
}
.hero__shape--ring {
  width: 90px; height: 90px;
  top: 22%; right: 14%;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.hero__shape--dot {
  width: 14px; height: 14px;
  top: 60%; right: 26%;
  background: var(--accent);
  border-radius: 50%;
  animation-delay: -2s;
}
.hero__shape--square {
  width: 42px; height: 42px;
  bottom: 24%; right: 8%;
  border: 2px solid var(--secondary);
  border-radius: 10px;
  rotate: 20deg;
  animation-delay: -4s;
}
.hero__shape--cross {
  width: 26px; height: 26px;
  top: 34%; left: 6%;
  animation-delay: -3s;
}
.hero__shape--cross::before,
.hero__shape--cross::after {
  content: '';
  position: absolute;
  background: var(--secondary);
  border-radius: 2px;
}
.hero__shape--cross::before { inset: 45% 0; }
.hero__shape--cross::after  { inset: 0 45%; }

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

.hero__content {
  position: relative;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 90px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .3);
  background: rgba(56, 189, 248, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #7DD3FC;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 32px;
}
.hero__badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 189, 248, .5); }
  50%      { opacity: .6; box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.9rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 26px;
  max-width: 900px;
}

/* Palabra rotatoria del titular */
.rotator { display: inline-grid; }
.rotator__word {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(55%);
  filter: blur(10px);
  transition: opacity .65s var(--ease), transform .65s var(--ease), filter .65s var(--ease);
  pointer-events: none;
}
.rotator__word.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.rotator__word.was-active {
  opacity: 0;
  transform: translateY(-55%);
  filter: blur(10px);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 42px;
}

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

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 0 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }

.page-hero__title {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
}
.page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.page-hero .container { position: relative; }

/* ---------- Vitrina 3D (liquid glass) ---------- */
.showcase {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background: var(--bg-deep);
  border-block: 1px solid rgba(148, 163, 184, .07);
}

/* Blobs de color en movimiento: el "líquido" bajo el vidrio */
.showcase__blobs { position: absolute; inset: 0; pointer-events: none; }
.showcase__blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.showcase__blobs span:nth-child(1) {
  width: 420px; height: 420px;
  top: 18%; left: 12%;
  background: radial-gradient(circle, rgba(37, 99, 235, .5), transparent 65%);
}
.showcase__blobs span:nth-child(2) {
  width: 360px; height: 360px;
  top: 46%; right: 10%;
  background: radial-gradient(circle, rgba(56, 189, 248, .38), transparent 65%);
  animation-delay: -4s;
}
.showcase__blobs span:nth-child(3) {
  width: 320px; height: 320px;
  bottom: 4%; left: 38%;
  background: radial-gradient(circle, rgba(139, 92, 246, .32), transparent 65%);
  animation-delay: -9s;
}
.showcase__blobs span:nth-child(4) {
  width: 260px; height: 260px;
  top: 8%; right: 34%;
  background: radial-gradient(circle, rgba(16, 185, 129, .2), transparent 65%);
  animation-delay: -13s;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-70px, 50px) scale(1.25); }
}

/* Escenario con perspectiva */
.scene {
  position: relative;
  height: 480px;
  perspective: 1500px;
  cursor: grab;
  touch-action: pan-y;
  outline-offset: -2px;
}
.scene.is-dragging { cursor: grabbing; }

.ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Tarjeta de vidrio del anillo (posicionada en 3D desde JS) */
.ring-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 290px;
  height: 350px;
  margin: -175px 0 0 -145px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: linear-gradient(155deg, rgba(148, 163, 184, .13), rgba(148, 163, 184, .04));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 24px 60px -18px rgba(0, 0, 0, .6);
  user-select: none;
  transition: border-color .4s, box-shadow .4s;
}

/* Brillo especular del vidrio */
.ring-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 20% -10%, rgba(255, 255, 255, .14), transparent 55%);
  pointer-events: none;
}

/* Tarjeta frontal: resaltada (clase desde JS) */
.ring-card.is-front {
  border-color: rgba(56, 189, 248, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 0 0 1px rgba(56, 189, 248, .25),
    0 30px 70px -18px rgba(37, 99, 235, .45);
}

.ring-card__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .25);
  color: var(--accent);
  margin-bottom: 20px;
  transition: background .4s, color .4s, box-shadow .4s;
}
.ring-card__icon svg { width: 28px; height: 28px; }
.ring-card.is-front .ring-card__icon {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .4);
}

.ring-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 10px;
}
.ring-card p {
  font-size: .88rem;
  color: var(--muted);
  flex-grow: 1;
}

.ring-card__num {
  align-self: flex-end;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: rgba(148, 163, 184, .22);
  transition: color .4s;
}
.ring-card.is-front .ring-card__num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Controles de la vitrina */
.showcase__controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 40px;
}

.showcase__btn {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(148, 163, 184, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.showcase__btn:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-blue);
}
.showcase__btn:active { transform: scale(.95); }

.showcase__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Tarjetas de servicio (home) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 24px 60px -18px rgba(37, 99, 235, .35);
}

.service-tile__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
  transition: transform .35s var(--ease);
}
.service-tile__icon svg { width: 26px; height: 26px; }
.service-tile:hover .service-tile__icon { transform: scale(1.1) rotate(-6deg); }

.service-tile h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.service-tile p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}
.service-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
}
.service-tile__cta svg { transition: transform .25s var(--ease); }
.service-tile:hover .service-tile__cta svg { transform: translateX(4px); }

/* ---------- Proyectos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  --pc-accent: var(--secondary);
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, rgba(15, 23, 42, .8), rgba(15, 23, 42, .5));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  transform-style: preserve-3d;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--pc-accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc-accent) 30%, transparent),
              0 24px 48px -16px color-mix(in srgb, var(--pc-accent) 40%, transparent);
}

/* Foco de luz que sigue el cursor (coordenadas desde JS) */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx) var(--my),
              color-mix(in srgb, var(--pc-accent) 13%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.project-card:hover::after { opacity: 1; }

/* Acentos por tarjeta */
.project-card[data-accent="blue"]    { --pc-accent: #2563EB; }
.project-card[data-accent="violet"]  { --pc-accent: #8B5CF6; }
.project-card[data-accent="sky"]     { --pc-accent: #38BDF8; }
.project-card[data-accent="emerald"] { --pc-accent: #10B981; }
.project-card[data-accent="amber"]   { --pc-accent: #F59E0B; }
.project-card[data-accent="rose"]    { --pc-accent: #F43F5E; }

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 130% at 80% 0%, color-mix(in srgb, var(--pc-accent) 32%, transparent), transparent 60%),
    radial-gradient(100% 120% at 10% 100%, color-mix(in srgb, var(--pc-accent) 16%, transparent), transparent 55%),
    #060B18;
}
.project-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.project-card__media > svg {
  width: 64px; height: 64px;
  color: var(--pc-accent);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--pc-accent) 70%, transparent));
  transition: transform .35s var(--ease);
}
.project-card:hover .project-card__media > svg { transform: scale(1.12) rotate(-3deg); }

.project-card__chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 14px;
  background: rgba(2, 6, 23, .55);
  border-bottom: 1px solid var(--border-glass);
}
.project-card__chrome span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, .3);
}
.project-card__chrome span:first-child { background: color-mix(in srgb, var(--pc-accent) 75%, transparent); }

.project-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
  padding: 26px 26px 28px;
}

.project-card__category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pc-accent);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 10px;
}

.project-card__body > p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-card__tags span {
  font-size: .72rem;
  font-weight: 500;
  color: #CBD5E1;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(148, 163, 184, .1);
  border: 1px solid var(--border-glass);
}

/* Filtros de proyectos */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.no-results {
  text-align: center;
  padding: 70px 0 30px;
  color: var(--faint);
  font-size: .95rem;
}

/* ---------- Tarjetas "por qué" / valores ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.features-grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, .4);
}

.feature-card__icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-card__icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .5);
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card p { font-size: .9rem; color: var(--muted); }

/* ---------- Secciones divididas (página de servicios) ---------- */
.split {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 72px;
  align-items: center;
}
.split--reverse .split__text  { order: 2; }
.split--reverse .split__media { order: 1; }

.split__badge {
  --sp-accent: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--sp-accent);
  background: color-mix(in srgb, var(--sp-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sp-accent) 30%, transparent);
  margin-bottom: 22px;
}
.split__badge svg { width: 20px; height: 20px; }

.split__title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 8px;
}
.split__subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.split__desc {
  color: var(--muted);
  margin-bottom: 28px;
}

.split__features {
  display: grid;
  gap: 11px;
  margin-bottom: 28px;
}
.split__features li {
  position: relative;
  padding-left: 30px;
  font-size: .93rem;
  color: #CBD5E1;
}
.split__features li::before {
  content: '';
  position: absolute;
  left: 4px; top: 6px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.split__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.split__stack span {
  font-size: .78rem;
  font-weight: 500;
  color: #CBD5E1;
  padding: 5px 12px;
  border-radius: 9px;
  background: rgba(148, 163, 184, .09);
  border: 1px solid var(--border-glass);
}

.split__frame {
  padding: 14px;
  overflow: hidden;
}
.split__frame img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  transition: transform .6s var(--ease);
}
.split__frame:hover img { transform: scale(1.05); }

/* ---------- Proceso (timeline horizontal) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px; left: 4%; right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  opacity: .35;
  animation: line-flow 6s linear infinite;
}
@keyframes line-flow { to { background-position: -200% 0; } }

.timeline__step {
  position: relative;
  text-align: center;
  padding-top: 4px;
}

.timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--secondary);
  color: var(--accent);
  font-weight: 800;
  font-size: .95rem;
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.timeline__step:hover .timeline__num {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: scale(1.12);
  box-shadow: var(--shadow-blue);
}

.timeline__step h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.timeline__step p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Historia (nosotros) ---------- */
.story {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 72px;
  align-items: start;
}

.story__body {
  display: grid;
  gap: 16px;
  color: var(--muted);
  margin-bottom: 36px;
}

.story__media .split__frame img { aspect-ratio: 16 / 9; }

/* Timeline vertical */
.vtimeline {
  display: grid;
  gap: 22px;
  position: relative;
  padding-left: 34px;
}
.vtimeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary), var(--accent), transparent);
  opacity: .5;
}

.vtimeline__item { position: relative; }
.vtimeline__item::before {
  content: '';
  position: absolute;
  left: -30px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
}

.vtimeline__year {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.vtimeline__content { padding: 18px 22px; border-radius: var(--radius); }
.vtimeline__content h3 {
  font-size: .98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.vtimeline__content p { font-size: .87rem; color: var(--muted); }

/* ---------- Misión / Visión / Propósito ---------- */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mvp-card {
  padding: 38px 30px;
  text-align: center;
  transition: transform .3s var(--ease), border-color .3s;
}
.mvp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, .4);
}

.mvp-card__icon {
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 17px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
}
.mvp-card__icon svg { width: 28px; height: 28px; }

.mvp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.mvp-card p { font-size: .92rem; color: var(--muted); }

/* ---------- Equipo ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin-inline: auto;
}

.team-card {
  padding: 34px 28px;
  text-align: center;
  transition: transform .3s var(--ease), border-color .3s;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, .4);
}

.team-card__avatar {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--tg1, #2563EB), var(--tg2, #38BDF8));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .35);
}

.team-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.team-card__role {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.team-card p { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ (acordeón de vidrio) ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion__item {
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}
.accordion__item[open] { border-color: rgba(56, 189, 248, .4); }

.accordion__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  position: relative;
  user-select: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }

.accordion__item summary::before,
.accordion__item summary::after {
  content: '';
  position: absolute;
  right: 24px; top: 50%;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .3s var(--ease);
}
.accordion__item summary::after { transform: rotate(90deg); }
.accordion__item[open] summary::after { transform: rotate(0); }

.accordion__content {
  padding: 0 24px;
  overflow: hidden;
}
.accordion__content p {
  padding-bottom: 22px;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; }

.contact__glow {
  position: absolute;
  top: -180px; left: 50%;
  translate: -50%;
  width: 720px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .2), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.contact__layout {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

.contact__heading {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 34px;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 40px;
}
.contact__channels li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact__channel-icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
}
.contact__channel-icon svg { width: 20px; height: 20px; }

.contact__channels li span:not(.contact__channel-icon) {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.contact__channels li a,
.contact__channels li p {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.contact__channels li a:hover { color: var(--accent); }

.contact__guarantee {
  padding: 24px 26px;
  border-radius: var(--radius);
}
.contact__guarantee h3 {
  font-size: .95rem;
  color: #fff;
  margin-bottom: 12px;
}
.contact__guarantee ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__guarantee li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 26px;
  position: relative;
}
.contact__guarantee li::before {
  content: '';
  position: absolute;
  left: 2px; top: 5px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Formulario */
.contact__form-wrap { padding: 42px; }

.form__title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.form__subtitle { font-size: .9rem; color: var(--muted); margin-bottom: 30px; }

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

.form__field { margin-bottom: 18px; }

.form__field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}
.form__field label em {
  color: var(--accent);
  font-style: normal;
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(148, 163, 184, .25);
  color: #F1F5F9;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--faint); }

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .15);
}

.form__field.has-error input,
.form__field.has-error textarea { border-color: #F43F5E; }

.form__error {
  display: none;
  font-size: .78rem;
  color: #FB7185;
  margin-top: 5px;
}
.form__field.has-error .form__error { display: block; }

.form__submit { width: 100%; margin-top: 6px; }

.form__spinner { display: none; animation: spin 1s linear infinite; }
.form.is-loading .form__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .9rem;
}
.form__status.is-visible { display: block; }
.form__status--success {
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #6EE7B7;
}
.form__status--error {
  background: rgba(244, 63, 94, .1);
  border: 1px solid rgba(244, 63, 94, .3);
  color: #FDA4AF;
}

/* ---------- Llamado a la acción ---------- */
.cta { padding: 110px 0; }

.cta__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 90px 48px;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.cta__aurora {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(38% 45% at 30% 40%, rgba(37, 99, 235, .4), transparent 70%),
    radial-gradient(32% 40% at 72% 60%, rgba(56, 189, 248, .28), transparent 70%),
    radial-gradient(30% 36% at 55% 25%, rgba(139, 92, 246, .18), transparent 70%);
  animation: cta-spin 22s linear infinite;
}
@keyframes cta-spin { to { transform: rotate(360deg); } }

.cta__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 90% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 50%, #000 30%, transparent 100%);
}

.cta__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}

.cta__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 38px;
}

.cta__card .eyebrow + .cta__title { margin-top: 4px; }
.cta__title + .cta__actions { margin-top: 38px; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-glass);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer__brand p {
  font-size: .9rem;
  color: var(--muted);
  max-width: 300px;
  margin-bottom: 22px;
}

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(148, 163, 184, .07);
  color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s, background .2s;
}
.footer__social a:hover {
  color: var(--accent);
  border-color: rgba(56, 189, 248, .4);
  background: rgba(56, 189, 248, .1);
  transform: translateY(-2px);
}

.footer__col h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a, .footer__col span {
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-glass);
}
.footer__bottom p { font-size: .82rem; color: var(--faint); }
.footer__slogan { font-style: italic; }

/* ---------- Volver arriba ---------- */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 900;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Animaciones de aparición (reveal on scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
.reveal[data-delay="6"] { transition-delay: .6s; }

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

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
