@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #17191d;
  --bg-soft: #20242a;
  --surface: rgba(33, 38, 45, 0.76);
  --surface-strong: rgba(39, 45, 53, 0.94);
  --primary: #0e4a92;
  --primary-light: #2f80ed;
  --accent: #1cc7c9;
  --accent-soft: #67e8e5;
  --text: #f7f9fc;
  --muted: #b8c0cc;
  --border: rgba(113, 214, 214, 0.16);
  --success: #3ee6a8;
  --danger: #ff7f96;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 34px rgba(28, 199, 201, 0.22);
  --radius: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 15%, rgba(28, 199, 201, 0.17), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(14, 74, 146, 0.16), transparent 30%),
    radial-gradient(circle at 70% 82%, rgba(26, 156, 170, 0.09), transparent 30%),
    linear-gradient(135deg, #191b20 0%, #21252b 46%, #17191d 100%);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  width: 460px;
  height: 460px;
  right: -180px;
  top: 23%;
  z-index: -2;
  border-radius: 50%;
  background: rgba(28, 199, 201, 0.11);
  filter: blur(95px);
  animation: floatGlow 10s ease-in-out infinite alternate;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-sm {
  padding: 64px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(28, 199, 201, 0.28);
  border-radius: 999px;
  background: rgba(28, 199, 201, 0.08);
  color: #aaf4f2;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.055em;
}

h2 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, #ffffff 5%, #9ee7e6 45%, #5aa6ff 85%);
  background-clip: text;
  -webkit-background-clip: text;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #031517;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  box-shadow: 0 12px 36px rgba(28, 199, 201, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px rgba(28, 199, 201, 0.38);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: rgba(28, 199, 201, 0.48);
  box-shadow: var(--glow);
}

.btn-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: .92rem;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.navbar.scrolled {
  background: rgba(25, 27, 32, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.brand img {
  width: 156px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 11px;
  color: #d3dae5;
  font-size: .95rem;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(28, 199, 201, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: white;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 60px;
}

.hero-copy p {
  max-width: 690px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #c7d0dc;
  font-size: .86rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.atom-system {
  position: relative;
  width: min(520px, 92vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.atom-system::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28,199,201,.16), rgba(14,74,146,.08) 38%, transparent 68%);
  filter: blur(18px);
  animation: atomGlow 5s ease-in-out infinite;
}

.atom-ring {
  position: absolute;
  width: 84%;
  height: 38%;
  border: 1px solid rgba(103,232,229,.38);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(28,199,201,.12),
    inset 0 0 18px rgba(28,199,201,.05);
  transform-style: preserve-3d;
}

.atom-ring.ring-a {
  transform: rotate(0deg);
  animation: orbitA 10s linear infinite;
}

.atom-ring.ring-b {
  transform: rotate(60deg);
  animation: orbitB 13s linear infinite reverse;
}

.atom-ring.ring-c {
  transform: rotate(-60deg);
  animation: orbitC 16s linear infinite;
}

.atom-electron {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  box-shadow:
    0 0 10px var(--accent),
    0 0 24px rgba(28,199,201,.72);
  transform: translate(-50%, -50%);
}

.atom-ring.ring-a .atom-electron {
  animation: electronA 4.8s linear infinite;
}

.atom-ring.ring-b .atom-electron {
  animation: electronB 6.2s linear infinite;
}

.atom-ring.ring-c .atom-electron {
  animation: electronC 7.2s linear infinite;
}

.atom-core {
  position: relative;
  width: 228px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(103,232,229,.44);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), transparent 28%),
    radial-gradient(circle, rgba(28,199,201,.22), rgba(14,74,146,.22) 46%, rgba(25,29,35,.96) 74%);
  box-shadow:
    inset 0 0 40px rgba(28,199,201,.18),
    0 0 34px rgba(28,199,201,.24),
    0 0 90px rgba(14,74,146,.22);
  animation: corePulse 4.6s ease-in-out infinite;
  z-index: 5;
}

.circuit-globe {
  width: 162px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), transparent 18%),
    linear-gradient(145deg, #1cc7c9 0%, #0e4a92 58%, #082f66 100%);
  box-shadow:
    inset -18px -18px 38px rgba(0,0,0,.28),
    inset 10px 10px 24px rgba(255,255,255,.08),
    0 0 28px rgba(28,199,201,.42);
}

.circuit-globe::before,
.circuit-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.circuit-globe::before {
  background:
    radial-gradient(ellipse at 32% 30%, transparent 0 15%, #071b2a 16% 19%, transparent 20%),
    radial-gradient(ellipse at 56% 37%, transparent 0 12%, #071b2a 13% 16%, transparent 17%),
    radial-gradient(ellipse at 66% 65%, transparent 0 16%, #071b2a 17% 21%, transparent 22%),
    radial-gradient(ellipse at 38% 70%, transparent 0 13%, #071b2a 14% 18%, transparent 19%);
  opacity: .86;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.08));
}

.circuit-globe::after {
  background-image:
    linear-gradient(90deg, transparent 46%, rgba(255,255,255,.32) 47% 48%, transparent 49%),
    linear-gradient(transparent 46%, rgba(255,255,255,.26) 47% 48%, transparent 49%),
    radial-gradient(circle at 25% 24%, #b6ffff 0 2px, transparent 3px),
    radial-gradient(circle at 68% 30%, #b6ffff 0 2px, transparent 3px),
    radial-gradient(circle at 72% 70%, #b6ffff 0 2px, transparent 3px),
    radial-gradient(circle at 30% 74%, #b6ffff 0 2px, transparent 3px);
  background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
  opacity: .62;
  mix-blend-mode: screen;
  animation: circuitShift 7s linear infinite;
}

.atom-label {
  position: absolute;
  z-index: 8;
  min-width: 132px;
  padding: 11px 15px;
  border: 1px solid rgba(103,232,229,.28);
  border-radius: 14px;
  background: rgba(30,35,42,.84);
  backdrop-filter: blur(14px);
  color: #ecffff;
  font-size: .84rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0,0,0,.24), 0 0 18px rgba(28,199,201,.08);
}

.atom-label.analysis {
  top: 9%;
  right: 1%;
  animation: labelFloat 4s ease-in-out infinite;
}

.atom-label.innovation {
  left: -2%;
  top: 45%;
  animation: labelFloat 4.7s ease-in-out infinite reverse;
}

.atom-label.results {
  right: 4%;
  bottom: 8%;
  animation: labelFloat 5.2s ease-in-out infinite;
}

.atom-caption {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(223,255,255,.66);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes orbitA {
  to { transform: rotate(360deg); }
}

@keyframes orbitB {
  to { transform: rotate(420deg); }
}

@keyframes orbitC {
  to { transform: rotate(300deg); }
}

@keyframes electronA {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(215px); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(215px); }
}

@keyframes electronB {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(205px); }
  100% { transform: translate(-50%, -50%) rotate(-360deg) translateX(205px); }
}

@keyframes electronC {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(195px); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(195px); }
}

@keyframes corePulse {
  50% {
    transform: scale(1.035);
    box-shadow:
      inset 0 0 52px rgba(28,199,201,.23),
      0 0 48px rgba(28,199,201,.3),
      0 0 110px rgba(14,74,146,.3);
  }
}

@keyframes circuitShift {
  to { background-position: 34px 0, 0 34px, 0 0, 0 0, 0 0, 0 0; }
}

@keyframes atomGlow {
  50% { transform: scale(1.08); opacity: .85; }
}

@keyframes labelFloat {
  50% { transform: translateY(-10px); }
}

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

.stat,
.card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(44, 50, 59, .80), rgba(29, 34, 40, .74));
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
}

.stat {
  padding: 26px;
  border-radius: 18px;
}

.stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  color: #fff;
}

.stat span {
  color: var(--muted);
  font-size: .92rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 30px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: -70px;
  right: -70px;
  border-radius: 50%;
  background: rgba(28, 199, 201, .11);
  filter: blur(30px);
  transition: transform .35s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(28, 199, 201, .46);
  box-shadow: 0 24px 75px rgba(15, 80, 90, .22);
}

.card:hover::before {
  transform: scale(1.6);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(28, 199, 201, .28);
  border-radius: 16px;
  background: rgba(28, 199, 201, .08);
  color: var(--accent-soft);
  font-size: 1.5rem;
}

.card-link {
  color: #9df5f1;
  font-weight: 700;
}

.card ul {
  padding-left: 20px;
  color: var(--muted);
}

.card li + li {
  margin-top: 7px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.028);
}

.feature-mark {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #03130d;
  background: var(--success);
  font-weight: 900;
}

.cta {
  padding: 54px;
  border: 1px solid rgba(28, 199, 201, .28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(28, 199, 201, .18), transparent 32%),
    linear-gradient(135deg, rgba(46, 53, 62, .92), rgba(27, 31, 37, .94));
  box-shadow: var(--shadow);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-hero {
  padding: 170px 0 90px;
  text-align: center;
}

.page-hero p {
  max-width: 700px;
  margin-inline: auto;
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
}

.contact-panel,
.form-panel {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
}

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

.form-group {
  display: grid;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  font-size: .91rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(23, 25, 29, .88);
  color: white;
  outline: none;
  padding: 14px 15px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(28, 199, 201, .68);
  box-shadow: 0 0 0 4px rgba(28, 199, 201, .09);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.footer {
  padding: 54px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(20, 22, 26, .82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 38px;
}

.footer-logo-wrap {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  margin-bottom: 16px;
}

.footer-logo {
  width: 180px;
}

.footer h3 {
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: #929ba8;
  font-size: .88rem;
  text-align: center;
}

.whatsapp-float,
.back-top {
  position: fixed;
  right: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  border: 0;
  color: #03130c;
  box-shadow: var(--shadow);
}

.whatsapp-float {
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #39e67b;
  font-size: 1.42rem;
}

.back-top {
  bottom: 92px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .25s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  50% { transform: scale(1.035); box-shadow: inset 0 0 90px rgba(28, 199, 201, .12), 0 0 100px rgba(28, 199, 201, .24); }
}

@keyframes levitate {
  50% { transform: translateY(-12px); }
}

@keyframes floatGlow {
  to { transform: translate(-90px, 100px) scale(1.15); }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-tags {
    justify-content: center;
  }

  .hero-visual {
    min-height: 450px;
  }

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

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

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(25, 27, 32, .97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: .25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links .btn {
    width: 100%;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .orbit.one {
    width: 330px;
    height: 330px;
  }

  .orbit.two {
    width: 250px;
    height: 250px;
  }

  .floating-card {
    display: none;
  }

  .services-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .cta {
    padding: 34px 24px;
  }

  .page-hero {
    padding-top: 140px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .brand img {
    width: 140px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .form-panel {
    padding: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}


@media (max-width: 760px) {
  .atom-system {
    width: min(390px, 94vw);
  }

  .atom-core {
    width: 178px;
  }

  .circuit-globe {
    width: 126px;
  }

  .atom-label {
    min-width: 108px;
    padding: 9px 11px;
    font-size: .72rem;
  }

  .atom-label.analysis {
    right: 0;
  }

  .atom-label.innovation {
    left: 0;
  }

  .atom-label.results {
    right: 1%;
  }
}

@media (max-width: 460px) {
  .atom-label {
    display: none;
  }

  .atom-caption {
    font-size: .64rem;
  }
}


/* ===========================
   Proyectos y servicio destacado
=========================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(44, 50, 59, .82), rgba(29, 34, 40, .78));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(28, 199, 201, .48);
  box-shadow: 0 24px 75px rgba(15, 80, 90, .22);
}

.project-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: rgba(255,255,255,.08);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.project-tags span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(28,199,201,.06);
  color: #b9efee;
  font-size: .78rem;
}

.featured-project {
  border-color: rgba(28,199,201,.34);
  background:
    radial-gradient(circle at 88% 12%, rgba(28,199,201,.18), transparent 30%),
    linear-gradient(145deg, rgba(41, 56, 63, .9), rgba(28, 34, 40, .88));
}

.featured-project .btn {
  margin-top: 22px;
}

.specialty-section {
  overflow: hidden;
}

.specialty-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 42px;
  align-items: center;
  padding: 54px;
  border: 1px solid rgba(28,199,201,.3);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(28,199,201,.16), transparent 34%),
    linear-gradient(135deg, rgba(45,52,61,.94), rgba(25,29,35,.96));
  box-shadow: var(--shadow);
}

.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.specialty-visual {
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
}

.data-core {
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(103,232,229,.5);
  background: radial-gradient(circle at 35% 30%, #67e8e5, #0e4a92 58%, #15191f);
  box-shadow: 0 0 60px rgba(28,199,201,.28), inset 0 0 34px rgba(255,255,255,.12);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .14em;
  animation: corePulse 4.6s ease-in-out infinite;
  z-index: 3;
}

.data-orbit {
  position: absolute;
  width: 290px;
  height: 130px;
  border: 1px solid rgba(103,232,229,.3);
  border-radius: 50%;
}

.data-orbit.orbit-one {
  transform: rotate(28deg);
  animation: dataOrbitOne 10s linear infinite;
}

.data-orbit.orbit-two {
  transform: rotate(-28deg);
  animation: dataOrbitTwo 13s linear infinite reverse;
}

.data-chip {
  position: absolute;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(25,29,35,.88);
  color: #dfffff;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.chip-one { top: 15%; right: 6%; }
.chip-two { left: 0; top: 48%; }
.chip-three { right: 4%; bottom: 14%; }

@keyframes dataOrbitOne {
  to { transform: rotate(388deg); }
}

@keyframes dataOrbitTwo {
  to { transform: rotate(-388deg); }
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialty-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .project-grid,
  .specialty-grid {
    grid-template-columns: 1fr;
  }

  .specialty-card {
    padding: 34px 24px;
  }

  .specialty-visual {
    min-height: 310px;
  }
}


/* ===========================
   Proyectos V4 - esquema dinámico
=========================== */

.project-ecosystem-section {
  overflow: hidden;
}

.project-ecosystem {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
}

.ecosystem-core {
  position: relative;
  z-index: 5;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px;
  border: 1px solid rgba(103,232,229,.45);
  background:
    radial-gradient(circle at 35% 30%, rgba(103,232,229,.88), rgba(20,97,140,.95) 42%, rgba(19,24,30,.98) 78%);
  box-shadow:
    0 0 80px rgba(28,199,201,.24),
    inset 0 0 42px rgba(255,255,255,.12);
  animation: corePulse 4.6s ease-in-out infinite;
}

.ecosystem-core strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.core-kicker,
.ecosystem-core small {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.76);
}

.ecosystem-core small {
  margin-top: 8px;
  letter-spacing: .05em;
  text-transform: none;
}

.ecosystem-ring {
  position: absolute;
  border: 1px solid rgba(103,232,229,.18);
  border-radius: 50%;
  animation: ecosystemSpin 28s linear infinite;
}

.ring-one {
  width: 420px;
  height: 420px;
}

.ring-two {
  width: 590px;
  height: 360px;
  transform: rotate(24deg);
  animation-duration: 34s;
  animation-direction: reverse;
}

.ring-three {
  width: 650px;
  height: 280px;
  transform: rotate(-22deg);
  animation-duration: 40s;
}

.ecosystem-node {
  position: absolute;
  z-index: 6;
  width: 190px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(27,32,38,.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.ecosystem-node:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(103,232,229,.46);
  box-shadow: 0 20px 70px rgba(15,80,90,.28);
}

.ecosystem-node strong,
.ecosystem-node small {
  display: block;
}

.ecosystem-node strong {
  margin-top: 8px;
  font-size: .95rem;
}

.ecosystem-node small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .75rem;
}

.node-icon {
  font-size: 1.6rem;
  color: #67e8e5;
}

.node-helpdesk { top: 8%; left: 12%; }
.node-docs { top: 12%; right: 11%; }
.node-monitor { left: 4%; bottom: 13%; }
.node-data { right: 3%; bottom: 14%; width: 220px; }
.node-auto { left: 50%; bottom: 2%; transform: translateX(-50%); }

.node-auto:hover {
  transform: translateX(-50%) translateY(-8px) scale(1.03);
}

@keyframes ecosystemSpin {
  to { transform: rotate(360deg); }
}

.project-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.project-flow::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,232,229,.55), transparent);
}

.flow-step {
  position: relative;
  text-align: center;
  padding: 0 22px;
}

.flow-number {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103,232,229,.42);
  background: rgba(27,32,38,.95);
  color: #67e8e5;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 0 35px rgba(28,199,201,.12);
}

.project-detail-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-detail {
  display: grid;
  grid-template-columns: 80px 1fr 320px;
  gap: 28px;
  align-items: center;
  padding: 30px 34px;
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.018), transparent);
}

.detail-index {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,.16);
}

.detail-copy h2 {
  margin-bottom: 12px;
}

.detail-copy p {
  max-width: 760px;
}

.detail-visual {
  min-height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.detail-visual > span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(28,199,201,.06);
  color: #c9ffff;
  font-size: .78rem;
  animation: floatNode 4s ease-in-out infinite;
}

.detail-visual > span:nth-child(2) { animation-delay: .8s; }
.detail-visual > span:nth-child(3) { animation-delay: 1.6s; }

.featured-detail {
  border: 1px solid rgba(28,199,201,.3);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(28,199,201,.14), transparent 34%),
    linear-gradient(135deg, rgba(42,50,58,.9), rgba(25,29,35,.94));
}

.analytics-visual {
  min-height: 240px;
  overflow: hidden;
}

.mini-chart.bars {
  width: 210px;
  height: 145px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  border-left: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.mini-chart.bars i {
  flex: 1;
  display: block;
  min-height: 20px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #67e8e5, #1d78d3);
  box-shadow: 0 0 20px rgba(28,199,201,.22);
  animation: barRise 2.8s ease-in-out infinite alternate;
}

.mini-chart.bars i:nth-child(2) { animation-delay: .3s; }
.mini-chart.bars i:nth-child(3) { animation-delay: .6s; }
.mini-chart.bars i:nth-child(4) { animation-delay: .9s; }
.mini-chart.bars i:nth-child(5) { animation-delay: 1.2s; }

.analytics-label {
  position: absolute;
  top: 18px;
  right: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(25,29,35,.9);
  color: #dfffff;
  font-size: .75rem;
}

.analytics-label.second {
  top: auto;
  bottom: 18px;
  left: 0;
  right: auto;
}

@keyframes floatNode {
  50% { transform: translateY(-10px); }
}

@keyframes barRise {
  from { transform: scaleY(.88); opacity: .75; }
  to { transform: scaleY(1.04); opacity: 1; }
}

@media (max-width: 980px) {
  .project-ecosystem {
    min-height: 820px;
  }

  .node-helpdesk { top: 5%; left: 4%; }
  .node-docs { top: 5%; right: 4%; }
  .node-monitor { left: 2%; bottom: 18%; }
  .node-data { right: 2%; bottom: 18%; }
  .node-auto { bottom: 1%; }

  .project-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .project-flow::before {
    display: none;
  }

  .project-detail {
    grid-template-columns: 60px 1fr;
  }

  .detail-visual {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .project-ecosystem {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
  }

  .ecosystem-core {
    width: 180px;
    margin-bottom: 14px;
  }

  .ecosystem-ring {
    display: none;
  }

  .ecosystem-node,
  .node-helpdesk,
  .node-docs,
  .node-monitor,
  .node-data,
  .node-auto {
    position: static;
    width: 100%;
    transform: none;
  }

  .node-auto:hover {
    transform: translateY(-8px) scale(1.03);
  }

  .project-flow {
    grid-template-columns: 1fr;
  }

  .project-detail {
    grid-template-columns: 1fr;
    padding: 26px 0;
  }

  .detail-index {
    font-size: 1.4rem;
  }

  .detail-visual {
    grid-column: 1;
  }
}
