* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #050505;
  color: #FFFFFF;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Tipografía */
h1,
h2,
h3,
.logo,
.cta-button,
.nav-links a {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFFFFF 60%, #00D4FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.section-subhead {
  color: #A1A1AA;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* Layout & utilidades */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

/* Grids y cards */
.services-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card,
.team-card {
  background: #111111;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 212, 255, 0.1);
  backdrop-filter: blur(2px);
}

.service-card:hover,
.team-card:hover {
  transform: translateY(-6px);
  border-color: #00D4FF;
  box-shadow: 0 20px 35px -12px rgba(0, 100, 255, 0.25);
}

.featured-service {
  background: linear-gradient(145deg, #161618, #0a0f16);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.featured-service:hover {
  border-color: #00D4FF;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Iconografía dual-tone (línea fina + azul) */
.icon-wrapper {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.icon-wrapper i {
  background: linear-gradient(135deg, #FFFFFF 40%, #00D4FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: text-shadow 0.2s;
}

.service-card:hover .icon-wrapper i {
  text-shadow: 0 0 8px #00D4FF80;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-stack span {
  background: rgba(0, 212, 255, 0.1);
  color: #00D4FF;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  font-weight: 600;
}

/* Botones y CTA */
.cta-button {
  display: inline-block;
  background: #00D4FF;
  color: #050505;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 48px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background: #00a3cc;
  box-shadow: 0 0 18px #00D4FF;
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #00D4FF;
  color: #00D4FF;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: scale(1.02);
}

/* Header / Navegación */
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #FFFFFF 30%, #00D4FF 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #E4E4E7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #00D4FF;
}

.nav-links a.cta-button {
  color: #050505;
}

.nav-links a.cta-button:hover {
  color: #050505; /* Keep it dark on hover, unlike other nav links */
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem 0;
  background: linear-gradient(180deg, rgba(0, 100, 255, 0.12) 0%, rgba(0, 100, 255, 0) 100%);
  border-bottom: none;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, rgba(0, 212, 255, 0.5) 50%, transparent 90%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, #FFFFFF 70%, #00D4FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: #B0B0B8;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Metodología (pasos) */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.step-item {
  flex: 1;
  background: rgba(17, 17, 17, 0.6);
  padding: 2.5rem 1.8rem;
  border-radius: 32px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(17, 17, 17, 0.8);
  transform: translateY(-5px);
}

.step-icon {
  font-size: 2rem;
  color: #00D4FF;
  margin-bottom: 1.5rem;
  background: rgba(0, 212, 255, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.step-visual {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.methodology-logo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: grayscale(1) brightness(0.8);
  transition: all 0.3s ease;
}

.step-item:hover .methodology-logo {
  filter: grayscale(0) brightness(1);
}

/* casos de éxito */
.case-studies {
  background: #0A0A0A;
  border-radius: 32px;
  padding: 3rem 2rem;
  text-align: center;
}

.portfolio-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #161618;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.8);
  transition: filter 0.3s ease;
}

.project-card:hover .project-image {
  filter: saturate(1.2);
}

.project-info {
  padding: 1.5rem;
}

.project-info h4 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: #A1A1AA;
  font-size: 0.9rem;
}

.metrics {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.metric h3 {
  font-size: 2.2rem;
  color: #00D4FF;
}

/* Footer */
footer {
  background: #020202;
  padding: 3rem 0;
  text-align: center;
  color: #6b7280;
}

/* imágenes simuladas / avatares (placeholder + UI real) */
.avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #1f2a3a, #0a0f16);
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 2px solid #00D4FF;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  color: #00D4FF;
  object-fit: cover;
  transition: all 0.3s ease;
}

.team-card:hover .avatar {
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
  transform: scale(1.05);
}

.portfolio-link {
  color: #00D4FF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.portfolio-link:hover {
  gap: 0.8rem;
}

/* responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 1.9rem;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .container {
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
  }

  /* simplificación mobile: se puede agregar menú hamburguesa si se desea, pero mantenemos limpio */
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #111111;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.05);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #A1A1AA;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #00D4FF;
}

.modal-header h3 {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.modal-body p {
  color: #B0B0B8;
  font-size: 1.05rem;
  line-height: 1.6;
}

.team-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px; /* Espacio entre botones */
  margin-top: 1.5rem;
}

.btn-main {
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 1px solid #00D4FF;
  
  /* Esto garantiza que sean iguales */
  width: 120px; 
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-main:hover {
  background: #00D4FF;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  transform: translateY(-3px);
}

.btn-main i {
  font-size: 1.1rem; /* El icono de linkedin se verá proporcional */
}

/* Estilos de texto para las cards */
.team-role { color: #00D4FF; font-weight: 500; margin-bottom: 0.5rem; }
.team-quote { font-size: 0.9rem; color: #ccc; min-height: 45px; font-style: italic; }