/* Variables de tema */
:root {
  --pro-blue: #0055FF;
  --deep-navy: #001A34;
  --tech-orange: #FF6600;
  --hover-orange: #FF8533;
  --light-bg: #F8FAFF;
  --dark-text: #1A1D24;
  --white: #FFFFFF;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

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

/* Estilos base */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--dark-text);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
  background: linear-gradient(15deg, var(--pro-blue) 20%, var(--deep-navy) 120%);
  min-height: 70vh;
  display: grid;
  place-items: center;
  margin: 80px 0 4rem;
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.05) 0%, transparent 15%),
    linear-gradient(45deg, transparent 60%, rgba(0,85,255,0.1) 100%),
    url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23001122" /><path d="M50 0L100 50L50 100L0 50Z" fill="%23002255" opacity="0.2"/></svg>');
  background-size: cover;
  animation: industrial-pulse 20s infinite linear;
}

@keyframes industrial-pulse {
  0% { background-position: 0 0; }
  100% { background-position: 100% 100%; }
}

.logo {
  font-size: 4rem;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.pro {
  font-weight: 800;
  color: var(--white);
}

.reini {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

/* Contenedor principal */
.main-content {
  padding: 0 1rem;
}

/* Secciones de servicios */
.service-section {
  background: var(--white);
  margin: 4rem auto;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.service-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tech-orange);
  z-index: 1;
}

/* Encabezado de cada sección */
.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.section-header .text-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header .text-content p {
  font-size: 1rem;
  line-height: 1.4;
}

.section-header img {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
  margin-top: 1rem;
}

.section-header img:hover {
  transform: scale(1.02);
}

/* Grilla de servicios */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

/* Estado inicial de los items con animación */
.service-item {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 85, 255, 0.1);
  transition: all var(--transition-speed) ease;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  min-height: 100px; /* Altura mínima para consistencia */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrado vertical */
  align-items: center; /* Centrado horizontal */
  text-align: center; /* Alineación del texto */
  padding: 1.5rem; /* Ajuste de padding para mejor centrado */
  min-height: 100px; /* Mantener altura ajustada */
}

/* Estado visible para activar la animación */
.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto hover utilizando clases */
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 85, 255, 0.1);
  border-color: var(--tech-orange);
}

.service-item h3 {
  color: var(--deep-navy);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  text-align: left; /* Alineación izquierda para mejor flujo */
  text-align: center; /* Centrado del título */
  padding-left: 0; /* Eliminar padding izquierdo */
  width: auto; /* Ancho automático para centrado preciso */
  display: inline-flex; /* Contenedor flexible para alinear flecha y texto */
  align-items: center;
  gap: 0.5rem; /* Espacio entre flecha y texto */
}

.service-item h3::before {
  content: '➤';
  color: var(--tech-orange); /* Color mantenido */
  font-size: 0.9em; /* Tamaño relativo al texto */
  transform: none; /* Eliminamos transform para mejor control */
  display: inline-block; /* Mejor manejo de flujo */
  position: static; /* Quitar posicionamiento absoluto */
  top: auto;
  left: auto;
  margin-right: 0.3rem; /* Espacio después de la flecha */
}

.service-item p {
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: center; /* Centrado del párrafo */
  width: 100%; /* Asegurar ancho completo */
}

/* ========== SECCIÓN DE CONTACTO ACTUALIZADA ========== */
.contact-section {
  background: var(--deep-navy);
  padding: 6rem 2rem;
  margin-top: 4rem;
  color: var(--white);
}

.contact-info {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.contact-info h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--tech-orange);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed) ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.contact-item strong {
  display: block;
  color: var(--tech-orange);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.contact-item a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.contact-item a:hover {
  color: var(--tech-orange);
}

.social-links {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--tech-orange);
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a:hover {
  background: var(--tech-orange);
  color: var(--deep-navy);
}

/* Pie de Página */
footer {
  background: var(--deep-navy);
  padding: 1rem;
  text-align: center;
  color: var(--white);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ========== BARRA DE NAVEGACIÓN ========== */
nav {
  background: var(--deep-navy);
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  max-width: 1320px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  position: relative;
  display: inline-block;
}

/* Efecto hover con subrayado dinámico */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--tech-orange);
  bottom: 0;
  left: 0;
  transition: width var(--transition-speed) ease;
}

nav a:hover {
  color: var(--tech-orange);
}

nav a:hover::after {
  width: 100%;
}

/* Estado activo */
nav a.active {
  background: var(--pro-blue);
  color: var(--white);
}

nav a.active::after {
  display: none;
}

/* ========== COMPONENTES HERO ========== */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.logo {
  font-size: 5rem;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-top: 1rem;
  position: relative;
  display: inline-block;
  padding: 0.5rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
}

.cta-button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  background: var(--tech-orange);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
  text-decoration: none;
}

.cta-button:hover {
  background: var(--hover-orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 102, 0, 0.4);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Media Queries */
@media (min-width: 1024px) {
  .hero {
    padding: 12rem 2rem 8rem;
  }
  
  .logo {
    font-size: 6.5rem;
  }
  
  .tagline {
    font-size: 1.75rem;
  }

  .section-header {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 4rem;
    min-height: 50vh;
  }
  
  .logo {
    font-size: 3.5rem;
  }
  
  .tagline {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }
  
  .cta-button {
    font-size: 0.9rem;
    padding: 0.8rem 1.8rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    justify-content: center;
  }

  nav a {
    width: 100%;
    justify-content: center;
  }

  .contact-section {
    padding: 4rem 1rem;
  }
  
  .contact-info h3 {
    font-size: 2rem;
  }
  
  .social-links a {
    margin: 0.5rem;
    width: 100%;
    justify-content: center;
  }
}

/* ========== SECCIÓN NOSOTROS ========== */
.about-section {
  background: var(--white);
  padding: 6rem 2rem;
  margin: 4rem 0;
}

.about-content {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--deep-navy);
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--tech-orange);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item h3 {
  color: var(--pro-blue);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text h2 {
    font-size: 2rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
}
/* Mobile First Adjustments */
@media (max-width: 480px) {
  .logo {
    font-size: 2.5rem !important;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

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

  .section-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-header img {
    order: -1;
    height: 150px;
  }

  .about-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    margin: 60px 0 2rem;
    padding: 4rem 1rem;
  }

  .service-item h3 {
    font-size: 1rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    padding: 1rem;
  }
}

.mobile-menu-toggle {
  display: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep-navy);
    padding: 1rem;
  }

  nav ul.active {
    display: flex;
    flex-direction: column;
  }
}