:root {
  --bg: #070b18;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #a8b3cf;
  --primary: #6ee7ff;
  --secondary: #a78bfa;
  --accent: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(110, 231, 255, 0.15), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(167, 139, 250, 0.15), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(52, 211, 153, 0.1), transparent 50%);
  z-index: -2;
  filter: blur(60px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 24, 0.64);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: 15px;
}

.brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06101f;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  transition: 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #07101f;
  border: none;
  box-shadow: 0 10px 25px rgba(110, 231, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 15px 35px rgba(167, 139, 250, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}

h1, h2, h3 {
  letter-spacing: -0.04em;
  font-weight: 800;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  margin-bottom: 24px;
  animation: fadeUp 0.9s ease 0.08s both;
}

.gradient-text {
  background: linear-gradient(135deg, #fff, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.centered-actions {
  justify-content: center;
  margin-top: 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.trust-card,
.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-card {
  padding: 18px;
}

.trust-card strong {
  display: block;
  font-size: 24px;
}

.trust-card span {
  color: var(--muted);
  font-size: 13px;
}

.profile-card {
  position: relative;
  padding: 24px;
  min-height: 550px;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -70px;
  right: -70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  opacity: 0.65;
}

.avatar {
  position: relative;
  height: 270px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.34), rgba(167, 139, 250, 0.26)),
    linear-gradient(145deg, #111a33, #070b18);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar h2 {
  font-size: 92px;
  letter-spacing: -0.12em;
}

.floating-code {
  position: absolute;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 11, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--primary);
  font-size: 13px;
  animation: float 4s ease-in-out infinite;
}

.code-1 {
  top: 50px;
  left: 22px;
}

.code-2 {
  right: 26px;
  bottom: 80px;
  color: var(--accent);
}

.code-3 {
  left: 42px;
  bottom: 30px;
  color: var(--secondary);
}

.profile-info {
  position: relative;
  margin-top: 24px;
}

.profile-info h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.profile-info p {
  color: var(--muted);
  line-height: 1.7;
}

section {
  padding: 90px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head span {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.06em;
  margin-top: 10px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card, .proyecto-card {
  padding: 28px;
  min-height: 285px;
  transition: 0.3s ease;
}

/* Efecto magnético para las tarjetas (Servicios y Proyectos) */
.service-card:hover, .proyecto-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(110, 231, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  cursor: pointer;
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(110, 231, 255, 0.12);
  font-size: 24px;
  margin-bottom: 22px;
}

/* El icono brilla cuando pasas el ratón por la tarjeta */
.service-card:hover .icon, .proyecto-card:hover .icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #070b18;
  transform: scale(1.15) rotate(5deg);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.65;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.skill {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 26px;
}

.timeline-date {
  color: var(--primary);
  font-weight: 800;
}

.timeline-content h3 {
  font-size: 23px;
  margin-bottom: 6px;
}

.timeline-content strong,
.timeline-content p {
  color: var(--muted);
}

.timeline-content p {
  line-height: 1.7;
  margin-top: 12px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  padding: 24px;
}

.process-card b {
  color: var(--primary);
}

.process-card h3 {
  margin: 14px 0 10px;
}

.process-card p {
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  padding: 54px;
  border-radius: 36px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.07em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 28px;
}

footer {
  padding: 34px 0 50px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMACIONES */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 13px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Botones de redes sociales circulares */
.btn-icon {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* DISEÑO RESPONSIVO (MÓVILES) */
@media (max-width: 900px) {
  header {
    border-radius: 24px;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 36px 22px;
  }
}